/*
Theme Name: AGB99 Lite
Author: AGB99 Source Port
Description: Self-hosted source-fidelity WordPress port of the supplied AGB99 page with localized assets, responsive frontend, admin customization and source installer.
Version: 1.0.0
Text Domain: agb99-lite
*/
:root{
  --td-red:#cc1815;
  --td-red-dark:#a90f0d;
  --td-cyan:#a9e5f2;
  --td-cyan-border:#8fd7e7;
  --td-cream:#fffaf0;
  --td-gold:#f0d77c;
  --td-text:#171717;
  --td-muted:#4f4f4f;
  --td-border:#e6e6e6;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:Arial,Helvetica,sans-serif;color:var(--td-text);background:#fff;line-height:1.5}
a{color:inherit}
img{max-width:100%;height:auto}
.td-site{min-height:100vh;background:#fff}
.td-header{height:92px;border-bottom:1px solid #eee;background:#fff;display:flex;align-items:center;padding:0 38px;gap:30px;position:relative;z-index:20;box-shadow:0 2px 12px rgba(0,0,0,.04)}
.td-brand{width:250px;flex:0 0 250px;display:flex;align-items:center;height:60px}
.td-brand img{display:block;width:250px;height:60px}
.td-nav{display:flex;align-items:center;gap:27px;flex:1;justify-content:center;height:100%}
.td-nav a,.td-top a{font-size:15px;text-decoration:none;font-weight:700;white-space:nowrap;transition:color .2s ease,background-color .2s ease,opacity .2s ease}.td-nav a{background:#eeeeee;border:1px solid #dcdcdc;border-radius:4px;padding:6px 12px}.td-nav a:hover{background:#3f3f3f;border-color:#3f3f3f;color:#fff}.td-top a:hover{color:var(--td-gold)}.td-icon:hover{color:var(--td-gold)}
.td-actions{display:flex;align-items:center;gap:16px}
.td-top{position:absolute;right:40px;top:10px;display:flex;gap:18px}
.td-icon{width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;transition:color .2s ease}
.td-icon svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.6}
.td-mobile-toggle{display:none;background:none;border:0;font-size:24px}
.td-main{max-width:1160px;margin:0 auto;padding:75px 20px 0}
.td-hero{display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:start}
.td-gallery{min-width:0}
.td-main-image{width:100%;max-width:450px;margin:0 auto;display:block;aspect-ratio:1/1;object-fit:cover}
.td-thumbs{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-top:18px}
.td-thumb{border:1px solid #eee;border-radius:6px;overflow:hidden;background:#fff;padding:0;cursor:pointer}
.td-thumb img{width:100%;display:block;aspect-ratio:1/1;object-fit:cover}
.td-more{border:1px solid #e8e8e8;border-radius:7px;background:#fff;font-weight:700;font-size:13px;display:flex;align-items:center;justify-content:center;text-align:center;padding:8px}
.td-card{border:1px solid #eadfcb;border-radius:24px;padding:0 0 18px;box-shadow:0 10px 25px rgba(0,0,0,.04);overflow:hidden;background:#fff}
.td-hero-title{font-size:25px;line-height:1.35;text-align:center;font-weight:800;margin:0;padding:15px 24px 25px}
.td-info{border:1px solid var(--td-cyan-border);border-radius:17px;overflow:hidden;margin:0 16px 18px}
.td-info-head{padding:22px 24px;background:#fffbf2;border-bottom:1px solid var(--td-cyan-border);font-size:20px;font-weight:800}
.td-info-row{min-height:54px;padding:12px 24px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #eee;font-size:15px}
.td-info-row:last-child{border-bottom:0}
.td-info-value{background:#f1e7d3;border-radius:20px;padding:5px 12px;font-weight:700;font-size:15px;max-width:62%;text-align:right}
.td-bonus{border:1px solid var(--td-cyan-border);border-radius:17px;padding:17px 16px;margin:0 16px 18px}
.td-bonus h3{text-align:center;font-size:20px;font-weight:800;margin:0 0 13px}
.td-bonus-item{background:#3f3f3f;color:#fff;border-radius:10px;margin:7px 0;padding:8px 12px;font-size:15px;font-weight:700}
.td-cta{display:flex;gap:16px;justify-content:center;padding:0 16px}
.td-btn{display:inline-flex;min-width:105px;justify-content:center;padding:11px 24px;border-radius:10px;text-decoration:none;font-weight:400;font-size:15px;background:#d9d9d9;color:#111;border:1px solid #c9c9c9;box-shadow:0 2px 5px rgba(0,0,0,.06);transition:background-color .2s ease,color .2s ease,border-color .2s ease,transform .2s ease,box-shadow .2s ease}
.td-btn-primary{background:#d9d9d9}.td-btn:hover{background:#3f3f3f;color:#fff;border-color:#3f3f3f;transform:translateY(-1px);box-shadow:0 4px 10px rgba(0,0,0,.12)}
.td-section-title{text-align:center;font-size:26px;line-height:1.3;margin:48px 0 25px;font-weight:800}
.td-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.td-stat{border:1px solid var(--td-cyan-border);border-radius:14px;padding:16px 14px;text-align:center;background:#fff;box-shadow:0 3px 10px rgba(0,0,0,.05);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.td-stat-label{font-size:15px;font-weight:700;line-height:1.3}
.td-stat-value{font-size:15px;font-weight:700;margin-top:4px;line-height:1.3}.td-stat:hover{transform:translateY(-3px);box-shadow:0 8px 18px rgba(0,0,0,.10);border-color:#8eddf3}
.td-highlight{background:var(--td-cyan);border-radius:12px;padding:20px 24px;margin-top:24px;font-size:15px;line-height:1.65}
.td-highlight p{margin:0 0 10px;text-align:justify}
.td-highlight p:last-child{margin-bottom:0}
.td-review-title{text-align:left;font-size:20px;margin:27px 0 18px;font-weight:800}
.td-reviews{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.td-review{background:var(--td-cyan);border-radius:14px;padding:15px 18px;min-height:125px}
.td-review-head{display:flex;justify-content:space-between;gap:10px;font-size:16px;font-weight:800}
.td-stars{letter-spacing:2px;color:#d4af37;display:inline-block;transition:transform .22s ease}
.td-review-text{font-size:15px;font-style:italic;margin:10px 0;color:#414141}
.td-review-date{font-size:13px;color:#777}
.td-review:hover .td-stars{transform:scale(1.22)}
.td-breadcrumb-row{border-top:1px solid #e6e6e6;margin-top:22px;padding:12px 28px;display:flex;align-items:center;justify-content:space-between;gap:12px;box-sizing:border-box;min-width:0}
.td-breadcrumb{padding:4px 0;font-size:15px;word-spacing:6px;min-width:0}
.td-stay-connected{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;white-space:nowrap;padding:7px 12px;border:1px solid #d4af37;border-radius:999px;background:#171717;color:#d4af37;font-size:12px;font-weight:800;line-height:1;letter-spacing:.2px;box-sizing:border-box}
.td-footer{display:block;width:100%;max-width:none;margin:0;padding:0;border-top:1px solid #ddd;background:#fff;box-sizing:border-box;overflow:hidden}
.td-footer-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:100%!important;max-width:none!important;margin:0!important;padding:0;box-sizing:border-box}
.td-footer-col{padding:16px 18px;border-right:1px solid #ddd;min-height:270px}
.td-footer-col:last-child{border-right:0}
.td-footer-col h4{font-size:15px;margin:-16px -18px 22px;padding:14px 18px;background:#171717;color:#fff;text-transform:uppercase;border-bottom:2px solid #d4af37;letter-spacing:.3px}
.td-footer-col a{display:block;text-decoration:none;font-size:15px;font-weight:700;color:#4b4f55;margin:0 0 10px}
.td-footer-brand{font-size:16px;font-weight:800;margin-top:20px}
.td-copyright{display:block;margin:0;padding:0;font-size:15px;box-sizing:border-box;white-space:nowrap}
.td-bottom{border-top:1px solid #eee;padding:14px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:15px;width:100%;max-width:none;margin:0;box-sizing:border-box}
.td-bottom-left{display:flex;align-items:center;gap:12px;min-width:0}
.td-bottom-language,.td-bottom-links,.td-bottom-link{font-size:15px;line-height:1.25}
.td-bottom-links{display:inline-flex;align-items:center;min-width:0}
.td-bottom-link{display:inline-flex;align-items:center;padding:0 10px;white-space:nowrap}
.td-bottom-link:first-child{border-left:1px solid #d9d9d9}
.td-bottom-link+ .td-bottom-link{border-left:1px solid #d9d9d9}
.td-popup{position:fixed;inset:0;background:rgba(0,0,0,.42);display:none;align-items:center;justify-content:center;z-index:99999;padding:20px}
.td-popup.is-open{display:flex}
.td-popup-box{width:min(420px,100%);background:#111;color:#fff;border-radius:18px;padding:28px;position:relative;text-align:center}
.td-popup-close{position:absolute;right:12px;top:8px;background:none;border:0;color:#fff;font-size:25px;cursor:pointer}
@media(max-width:900px){
 .td-header{height:70px;padding:0 16px}.td-top,.td-actions{display:none}.td-nav{display:none!important}.td-nav.is-open{display:flex!important;position:absolute;top:100%;left:0;right:0;z-index:9999;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:4px;background:#fff;border:1px solid #e1e1e1;border-top:0;border-radius:0 0 14px 14px;box-shadow:0 14px 28px rgba(0,0,0,.12);padding:10px 12px;max-height:calc(100vh - 70px);height:auto!important;overflow-y:auto!important;overflow-x:hidden;-webkit-overflow-scrolling:touch}.td-nav.is-open a{display:block!important;flex:0 0 auto!important;width:100%;box-sizing:border-box;font-size:15px;line-height:1.25;padding:13px 14px;border:1px solid #e2e2e2;background:#f4f4f4;color:#151515;border-radius:8px;text-align:left;visibility:visible!important;opacity:1!important}.td-nav.is-open a:hover,.td-nav.is-open a:focus{background:#3f3f3f;border-color:#3f3f3f;color:#fff}.td-mobile-toggle{display:flex;align-items:center;justify-content:center;margin-left:auto;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;cursor:pointer;border:1px solid #d4af37;border-radius:10px;background:#171717;color:#d4af37;box-shadow:0 4px 12px rgba(0,0,0,.12);font-size:0;transition:background-color .2s ease,transform .2s ease,box-shadow .2s ease}.td-mobile-toggle::before{content:"☰";font-size:22px;line-height:1;font-family:Arial,sans-serif;font-weight:700}.td-mobile-toggle[aria-expanded="true"]{background:#3f3f3f;box-shadow:0 6px 16px rgba(0,0,0,.18);transform:translateY(-1px)}.td-mobile-toggle[aria-expanded="true"]::before{content:"×";font-size:28px}.td-mobile-menu-open{overflow:hidden}
 .td-main{padding-top:35px}.td-hero{grid-template-columns:1fr;gap:28px}.td-card{max-width:620px;margin:auto}.td-hero-title{font-size:24px}.td-main-image{max-width:420px}
 .td-stats{grid-template-columns:repeat(2,1fr)}.td-reviews{grid-template-columns:1fr 1fr}.td-footer-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:560px){
 .td-header{height:64px}.td-brand{width:min(190px,calc(100vw - 100px));flex:0 1 auto;min-width:0}.td-brand img{width:100%;max-width:100%;height:auto;display:block}.td-main{padding:22px 12px 0}.td-thumbs{gap:6px}.td-more{font-size:13px}
 .td-info-row{padding:10px 14px}.td-info-value{max-width:55%;font-size:15px}.td-bonus{padding:14px 10px}.td-section-title{font-size:20px}.td-highlight{font-size:15px;padding:16px}.td-reviews{grid-template-columns:1fr}.td-breadcrumb-row{padding:10px 14px;gap:8px}.td-breadcrumb{font-size:13px;line-height:1.25;word-spacing:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.td-stay-connected{padding:6px 9px;font-size:11px;letter-spacing:0}.td-footer{width:calc(100% - 36px);margin:0 18px 12px;border:1px solid #e1e1e1}.td-footer-col{min-height:220px;padding:15px 12px;box-sizing:border-box}.td-bottom{padding:12px;gap:8px;align-items:center}.td-bottom-left{gap:8px;min-width:0;overflow:hidden}.td-bottom-language,.td-bottom-links,.td-bottom-link{font-size:11px;line-height:1.2}.td-bottom-links{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.td-bottom-link{padding:0 7px}.td-bottom-link:first-child{border-left:1px solid #ddd}.td-copyright{font-size:11px;flex:0 0 auto;text-align:right}.td-bottom-language{display:none!important}
}

/* Source gallery integration + responsive isolation. Source hdd02 CSS/JS remains the behavior source of truth. */
.td-main{min-width:0}.td-hero{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(24px,4.8vw,70px)}
.td-gallery-source-shell{width:100%;max-width:100%;min-width:0;overflow:visible}.td-gallery-source-shell .hdd02-gallery{width:100%;max-width:684px;margin:0 auto;min-width:0}
.td-gallery-source-shell .hdd02-gallery__content,.td-gallery-source-shell .hdd02-gallery__list{width:100%;min-width:0}.td-gallery-source-shell .hdd02-gallery__list{max-width:100%;overflow:hidden}
.td-gallery-source-shell .hdd02-gallery__item{width:100%!important;height:auto!important;aspect-ratio:1/1;min-width:0;padding:0!important}.td-gallery-source-shell .hdd02-gallery__image{width:100%;height:100%;margin:0 auto;border-radius:16px;overflow:hidden}.td-gallery-source-shell .hdd02-gallery__image .image{width:100%;height:100%}.td-gallery-source-shell .hdd02-gallery__image .image img{display:block;width:100%;height:100%;max-width:none;object-fit:contain;object-position:center}
.td-gallery-source-shell .hdd02-gallery__thumbnail{width:100%;max-width:100%;margin-top:14px;padding:0}.td-gallery-source-shell .hdd02-gallery__thumbnail-list{display:flex;width:100%;max-width:100%;min-width:0;align-items:center;justify-content:center;gap:clamp(6px,1vw,12px);overflow:hidden}.td-gallery-source-shell .hdd02-gallery__thumbnail-item{flex:1 1 0;min-width:0;max-width:104px}.td-gallery-source-shell .hdd02-gallery__thumbnail-item a{width:100%;height:auto;aspect-ratio:1/1;max-width:104px}.td-gallery-source-shell .hdd02-gallery__thumbnail-item-text{height:100%}.td-gallery-source-shell .hdd02-gallery__thumbnail-item-text .text{padding:10px;font-size:clamp(13px,1.1vw,16px)}
.td-gallery-source-shell .td-source-arrow{font-size:32px;line-height:1}.td-gallery-source-shell .td-source-close{font-size:32px;line-height:1;display:block}
.td-gallery-source-shell .hdd02-gallery__popup .layer-popup{padding:12px;overflow:hidden}.td-gallery-source-shell .hdd02-gallery__popup .layer-popup__contents{width:100%;height:min(820px,calc(100vh - 24px));max-width:1440px;max-height:calc(100vh - 24px);min-width:0;padding:56px 16px 12px 24px;overflow:hidden}.td-gallery-source-shell .hdd02-gallery__popup-close{top:16px;right:16px;z-index:10}
.td-gallery-source-shell .hdd02-gallery__popup-thumbnail{flex:0 0 clamp(140px,18vw,196px);width:auto;min-width:0;height:100%;overflow:auto}.td-gallery-source-shell .hdd02-gallery__popup-thumbnail .scrollbar__contents{width:100%;margin-right:0;padding:0 16px 24px 0}.td-gallery-source-shell .hdd02-gallery__popup-image-list{gap:10px;width:100%;overflow:visible}.td-gallery-source-shell .hdd02-gallery__popup-image-item{flex:0 0 auto}.td-gallery-source-shell .hdd02-gallery__popup-image-item a{width:clamp(56px,6vw,80px);height:clamp(56px,6vw,80px)}
.td-gallery-source-shell .hdd02-gallery__popup-vertical{flex:1 1 auto;width:auto;min-width:0;height:100%;overflow:hidden}.td-gallery-source-shell .hdd02-gallery__popup-vertical-content{width:100%;height:100%;margin:0;min-width:0;overflow:hidden}.td-gallery-source-shell .hdd02-gallery__popup-vertical-image{width:100%;height:calc(100% - 52px);min-height:0;overflow:hidden}.td-gallery-source-shell .hdd02-gallery__popup-vertical-image .default-image{width:min(684px,100%);height:100%;max-width:100%;max-height:100%}.td-gallery-source-shell .hdd02-gallery__popup-vertical-image .default-image .image{width:100%;height:100%}.td-gallery-source-shell .hdd02-gallery__popup-vertical-image .default-image .image__main{width:100%;height:100%;object-fit:contain}
.td-gallery-source-shell .hdd02-gallery__popup-control{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;height:40px;margin:0!important;padding:0;z-index:5}.td-gallery-source-shell .hdd02-gallery__popup-control-list{align-items:center;gap:16px;padding:2px}.td-gallery-source-shell .hdd02-gallery__popup-control-button{display:flex;align-items:center;justify-content:center;width:28px!important;height:28px!important;min-width:28px;min-height:28px;padding:0;background:#fff;border:1px solid #222;border-radius:50%;color:#111;box-shadow:0 1px 3px rgba(0,0,0,.18);font-size:0;line-height:0}.td-gallery-source-shell .hdd02-gallery__popup-control-button .icon,.td-gallery-source-shell .hdd02-gallery__popup-control-button svg{width:20px!important;height:20px!important;max-width:20px;max-height:20px}.td-gallery-source-shell .hdd02-gallery__popup-control-list+.hdd02-gallery__popup-control-list{margin-left:14px;padding-left:14px;width:auto;border-left:1px solid #ccc}.td-gallery-source-shell .hdd02-gallery__popup-vertical-image .zoom-image .snackbar{bottom:10px;width:min(196px,70%);height:48px;padding:0 12px;font-size:13px;z-index:3}
@media (min-width:768px){
.td-gallery-source-shell .hdd02-gallery__thumbnail{display:block!important}
.td-gallery-source-shell .hdd02-gallery__thumbnail-list{display:flex!important;align-items:center!important;justify-content:center!important;gap:12px!important;overflow:visible!important;flex-wrap:nowrap!important}
.td-gallery-source-shell .hdd02-gallery__thumbnail-item{display:block!important;flex:0 0 104px!important;width:104px!important;max-width:104px!important}
.td-gallery-source-shell .hdd02-gallery__thumbnail-item:nth-child(n+5){display:none!important}
.td-gallery-source-shell .hdd02-gallery__thumbnail-more{display:flex!important;flex:0 0 104px!important;width:104px!important;height:104px!important;align-items:center!important;justify-content:center!important;border:1px solid #ddd!important;border-radius:8px!important;box-sizing:border-box!important;text-align:center!important}
.td-gallery-source-shell .hdd02-gallery__thumbnail-more .text{font-size:16px!important;line-height:1.35!important;font-weight:700!important;color:#000!important}
.td-gallery-source-shell .hdd02-gallery__thumbnail > .screen-indicator{display:none!important}
}

@media (max-width:1100px){.td-main{padding-left:16px;padding-right:16px}.td-hero{gap:24px}.td-gallery-source-shell .hdd02-gallery__thumbnail-list{justify-content:flex-start}.td-gallery-source-shell .hdd02-gallery__thumbnail-item a{max-width:none}.td-gallery-source-shell .hdd02-gallery__popup .layer-popup__contents{padding-left:16px;padding-right:12px}.td-gallery-source-shell .hdd02-gallery__popup-thumbnail{flex-basis:150px}}
@media (max-width:900px){.td-hero{grid-template-columns:minmax(0,1fr)!important;gap:28px}.td-gallery-source-shell .hdd02-gallery{max-width:684px}.td-gallery-source-shell .hdd02-gallery__thumbnail-list{justify-content:center}.td-gallery-source-shell .hdd02-gallery__thumbnail-item{max-width:104px}.td-gallery-source-shell .hdd02-gallery__popup .layer-popup__contents{height:calc(100vh - 24px);max-height:calc(100vh - 24px);padding-top:52px}}
@media (max-width:767px){.td-main{padding-left:12px;padding-right:12px}.td-gallery-source-shell .hdd02-gallery{width:100%!important}.td-gallery-source-shell .hdd02-gallery__thumbnail{overflow:hidden}.td-gallery-source-shell .hdd02-gallery__thumbnail-more{display:none!important}.td-gallery-source-shell .hdd02-gallery__thumbnail-list{justify-content:flex-start;overflow-x:auto;overflow-y:hidden;flex-wrap:nowrap;scrollbar-width:none;padding-bottom:2px}.td-gallery-source-shell .hdd02-gallery__thumbnail-list::-webkit-scrollbar{display:none}.td-gallery-source-shell .hdd02-gallery__thumbnail-item{flex:0 0 clamp(64px,18vw,84px);max-width:none}.td-gallery-source-shell .hdd02-gallery__thumbnail-item a{width:100%;height:auto;aspect-ratio:1/1}.td-gallery-source-shell .hdd02-gallery__popup .layer-popup{padding:8px}.td-gallery-source-shell .hdd02-gallery__popup .layer-popup__contents{display:flex;flex-direction:column;height:calc(100vh - 16px);max-height:calc(100vh - 16px);padding:48px 10px 10px;overflow:hidden}.td-gallery-source-shell .hdd02-gallery__popup-thumbnail{flex:0 0 auto;width:100%;height:auto;max-height:112px;overflow-x:auto;overflow-y:hidden}.td-gallery-source-shell .hdd02-gallery__popup-thumbnail .scrollbar__contents{width:max-content;margin:0;padding:0 0 10px}.td-gallery-source-shell .hdd02-gallery__popup-image-list{flex-wrap:nowrap;width:max-content}.td-gallery-source-shell .hdd02-gallery__popup-vertical{width:100%;height:auto;flex:1 1 auto;min-height:0}.td-gallery-source-shell .hdd02-gallery__popup-vertical-content{height:100%;min-height:0}.td-gallery-source-shell .hdd02-gallery__popup-vertical-image{height:calc(100% - 52px)}.td-gallery-source-shell .hdd02-gallery__popup-vertical-image .default-image{width:100%;height:100%}.td-gallery-source-shell .hdd02-gallery__popup-control{height:40px}.td-gallery-source-shell .hdd02-gallery__popup-control-button{width:30px!important;height:30px!important}.td-gallery-source-shell .hdd02-gallery__popup-vertical-image .zoom-image .snackbar{bottom:8px;width:min(180px,65%);height:42px;font-size:13px}}
@media (max-width:420px){.td-gallery-source-shell .hdd02-gallery__popup-thumbnail{max-height:92px}.td-gallery-source-shell .hdd02-gallery__popup-image-item a{width:52px;height:52px}.td-gallery-source-shell .hdd02-gallery__popup-control-list{gap:10px}.td-gallery-source-shell .hdd02-gallery__popup-control-list+.hdd02-gallery__popup-control-list{margin-left:8px;padding-left:8px}.td-gallery-source-shell .hdd02-gallery__popup-control-button{width:26px!important;height:26px!important;min-width:26px;min-height:26px}}

/* Final popup geometry fix: reserve a dedicated control rail so the source snackbar never sits on top of zoom controls. */
.td-gallery-source-shell .hdd02-gallery__popup-vertical-content{height:min(752px,calc(100vh - 92px))!important;margin:0!important;position:relative!important;overflow:hidden!important}
.td-gallery-source-shell .hdd02-gallery__popup-vertical-image{height:calc(100% - 52px)!important;min-height:0!important}
.td-gallery-source-shell .hdd02-gallery__popup-control{bottom:0!important;top:auto!important;margin:0!important}
.td-gallery-source-shell .hdd02-gallery__popup-vertical-image .zoom-image .snackbar{bottom:10px!important}
@media (max-width:767px){
 .td-gallery-source-shell .hdd02-gallery__popup-vertical-content{height:100%!important;flex:1 1 auto!important;min-height:0!important}
 .td-gallery-source-shell .hdd02-gallery__popup-vertical-image{height:calc(100% - 52px)!important}
}

/* Mobile-only gallery state: keep desktop source gallery layout untouched. */
@media (max-width:767px){
 .td-gallery-source-shell .hdd02-gallery__popup{display:none!important}
 .td-gallery-source-shell .hdd02-gallery__list{height:auto!important}
 .td-gallery-source-shell .hdd02-gallery__list .swiper-wrapper{height:auto!important;display:block!important}
 .td-gallery-source-shell .hdd02-gallery__list .hdd02-gallery__item{display:none!important}
 .td-gallery-source-shell .hdd02-gallery__list .hdd02-gallery__item:first-child:not(.swiper-slide-active),
 .td-gallery-source-shell .hdd02-gallery__list .hdd02-gallery__item.swiper-slide-active{display:block!important}
 .td-gallery-source-shell .hdd02-gallery__thumbnail{display:block!important}
 .td-gallery-source-shell .hdd02-gallery__thumbnail-list{display:flex!important}
 .td-gallery-source-shell .hdd02-gallery__thumbnail-list{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important}
 .td-gallery-source-shell .hdd02-gallery__thumbnail-item{display:block!important}
 .td-gallery-source-shell .hdd02-gallery__thumbnail-item a{display:flex!important}
}

/* Final popup control visibility fix: source markup uses text glyph controls, while the source CSS hides button text for inline SVG icons. Render clear CSS glyphs in the WP port. */
.td-gallery-source-shell .hdd02-gallery__popup-control-button{position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:0!important;line-height:1!important;color:#111!important;background:#fff!important;border:1px solid #555!important;box-shadow:0 1px 4px rgba(0,0,0,.28)!important;text-indent:0!important;overflow:visible!important;transform:none!important;opacity:1!important}
.td-gallery-source-shell .hdd02-gallery__popup-control-button::before{display:block!important;font-family:Arial,sans-serif!important;font-weight:700!important;font-size:22px!important;line-height:1!important;color:#111!important;text-indent:0!important}
.td-gallery-source-shell .hdd02-gallery__popup-control-button.plus::before{content:"+"!important}
.td-gallery-source-shell .hdd02-gallery__popup-control-button.minus::before{content:"−"!important}
.td-gallery-source-shell .hdd02-gallery__popup-control-button.up::before{content:"↑"!important;font-size:20px!important}
.td-gallery-source-shell .hdd02-gallery__popup-control-button.down::before{content:"↓"!important;font-size:20px!important}
.td-gallery-source-shell .hdd02-gallery__popup-control-button.left::before{content:"←"!important;font-size:20px!important}
.td-gallery-source-shell .hdd02-gallery__popup-control-button.right::before{content:"→"!important;font-size:20px!important}
.td-gallery-source-shell .hdd02-gallery__popup-control-button:disabled{opacity:.55!important;background:#f7f7f7!important;border-color:#888!important}
.td-gallery-source-shell .hdd02-gallery__popup-control-button:disabled::before{color:#666!important}
@media (max-width:767px){.td-gallery-source-shell{width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important}.td-gallery-source-shell .hdd02-gallery{width:100%!important;max-width:none!important;margin:0 auto!important}.td-gallery-source-shell .hdd02-gallery__content{width:100%!important;margin:0 auto!important}.td-gallery-source-shell .hdd02-gallery__list,.td-gallery-source-shell .hdd02-gallery__list .swiper-wrapper{width:100%!important;max-width:none!important;margin:0!important;display:block!important}.td-gallery-source-shell .hdd02-gallery__item{display:none!important;width:100%!important;max-width:none!important;height:auto!important;aspect-ratio:1/1!important;margin:0!important}.td-gallery-source-shell .hdd02-gallery__item.swiper-slide-active{display:block!important}.td-gallery-source-shell .hdd02-gallery__image{width:100%!important;max-width:none!important;height:auto!important;aspect-ratio:1/1!important;margin:0!important;border-radius:0!important}.td-gallery-source-shell .hdd02-gallery__image .image{width:100%!important;height:100%!important}.td-gallery-source-shell .hdd02-gallery__image .image img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center center!important}.td-gallery-source-shell .progressbar-indicator{display:none!important}.td-gallery-source-shell .hdd02-gallery__thumbnail{display:grid!important;grid-template-columns:34px minmax(0,1fr) 34px!important;align-items:center!important;gap:6px!important;width:100%!important;margin-top:10px!important;padding:0!important;box-sizing:border-box!important;min-height:52px!important}.td-gallery-source-shell .hdd02-gallery__thumbnail-list{display:flex!important;flex-wrap:nowrap!important;justify-content:flex-start!important;gap:7px!important;width:100%!important;min-width:0!important;overflow-x:auto!important;overflow-y:hidden!important;padding:0!important;margin:0!important;scroll-snap-type:x proximity;scrollbar-width:none!important;-ms-overflow-style:none!important}.td-gallery-source-shell .hdd02-gallery__thumbnail-list::-webkit-scrollbar{display:none!important}.td-gallery-source-shell .hdd02-gallery__thumbnail-item{display:block!important;flex:0 0 52px!important;width:52px!important;height:52px!important;max-width:52px!important;scroll-snap-align:start}.td-gallery-source-shell .hdd02-gallery__thumbnail-item a{width:52px!important;height:52px!important;max-width:52px!important;border-radius:7px!important}.td-gallery-source-shell .hdd02-gallery__popup{position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;max-width:none!important;background:#fff!important;z-index:9998!important;overflow:hidden!important}.td-gallery-source-shell .hdd02-gallery__popup-image,.td-gallery-source-shell .hdd02-gallery__popup-vertical,.td-gallery-source-shell .hdd02-gallery__popup-vertical-content,.td-gallery-source-shell .hdd02-gallery__popup-vertical-image{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important}.td-gallery-source-shell .hdd02-gallery__popup-vertical-image .image-content.image-content--show{display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important}.td-gallery-source-shell .hdd02-gallery__popup-vertical-image .default-image,.td-gallery-source-shell .hdd02-gallery__popup-vertical-image .default-image .image{width:100%!important;height:100%!important}.td-gallery-source-shell .hdd02-gallery__popup-vertical-image .image__main{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important}.td-gallery-source-shell .hdd02-gallery__popup-control{position:absolute!important;left:50%!important;bottom:10px!important;transform:translateX(-50%)!important;margin:0!important;z-index:9999!important}.td-gallery-source-shell .screen-indicator{position:static!important;left:auto!important;right:auto!important;top:auto!important;width:34px!important;height:34px!important;min-width:34px!important;flex:0 0 34px!important;background:rgba(0,0,0,.72)!important;border:0!important;border-radius:50%!important;padding:0!important;margin:0!important;display:flex!important;align-items:center!important;justify-content:center!important;pointer-events:auto!important;box-shadow:0 2px 7px rgba(0,0,0,.22)!important;z-index:2!important}.td-gallery-source-shell .screen-indicator .td-source-arrow{position:static!important;display:block!important;transform:none!important;width:auto!important;height:auto!important;border-radius:0!important;background:transparent!important;color:#fff!important;font:700 24px/30px Arial,sans-serif!important;box-shadow:none!important}.td-gallery-source-shell .hdd02-gallery__popup-control-button::before{font-size:20px!important}.td-gallery-source-shell .hdd02-gallery__popup-control-button.up::before,.td-gallery-source-shell .hdd02-gallery__popup-control-button.down::before,.td-gallery-source-shell .hdd02-gallery__popup-control-button.left::before,.td-gallery-source-shell .hdd02-gallery__popup-control-button.right::before{font-size:18px!important}}

/* SOURCE POPUP — localized from source popup-overlay; isolated from gallery */
.td-source-promo-overlay{
  position:fixed;inset:0;width:100vw;height:100vh;box-sizing:border-box;
  background:rgba(0,0,0,.4);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);
  display:flex;justify-content:center;align-items:center;padding:12px;
  z-index:999999;overflow:auto;
}
.td-source-promo-container{
  --blade-cut:0px;
  position:relative;width:90%;max-width:420px;box-sizing:border-box;
  background:#000;
  border-radius:20px;overflow:hidden;text-align:center;
  animation:tdSourcePromoRotateScaleIn .8s cubic-bezier(.175,.885,.32,1.275),tdSourcePromoGoldPulse 3.5s infinite ease-in-out;
  box-shadow:0 20px 40px rgba(0,0,0,.7),0 0 0 1px rgba(212,175,55,.2);
  padding-bottom:20px;border:1px solid rgba(212,175,55,.2);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
}
.td-source-promo-container::before{
  content:"";position:absolute;top:-100%;left:-100%;width:200%;height:200%;
  background:linear-gradient(135deg,rgba(255,255,255,0) 45%,rgba(255,215,0,.95) 50%,rgba(255,255,255,0) 55%);
  animation:tdSourcePromoShineDiagonal 5s linear infinite;z-index:4;pointer-events:none;
}
.td-source-promo-content{position:relative;z-index:3}
.td-source-promo-image{
  width:100%;height:auto;display:block;border-bottom:1px solid rgba(212,175,55,.2);
}
.td-source-promo-buttons{
  width:97%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;
  font-family:'Poppins',sans-serif;font-weight:700;padding:20px;box-sizing:border-box;
  position:relative;overflow:hidden;margin:0 auto;
}
.td-source-promo-buttons::before{
  content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
  width:calc(100% - 30px);height:2px;
  background:linear-gradient(90deg,transparent,#fefcf7,#d4af37,#fefcf7,transparent);
  opacity:.4;filter:blur(1px);
}
.td-source-promo-btn{
  display:block;text-align:center;text-transform:uppercase;letter-spacing:1.5px;
  padding:16px 12px;margin:0;border-radius:14px;
  transition:all .4s cubic-bezier(.23,1,.32,1);position:relative;overflow:hidden;
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  border:2px solid transparent;box-shadow:0 8px 0 #000;
  clip-path:polygon(var(--blade-cut) 0,100% 0,100% calc(100% - var(--blade-cut)),calc(100% - var(--blade-cut)) 100%,0 100%,0 var(--blade-cut));
  z-index:1;text-decoration:none!important;
}
.td-source-promo-btn::after{
  content:"";position:absolute;inset:-2px;
  background:linear-gradient(45deg,#000,#fefcf7,#d4af37,#fefcf7,#000);
  border-radius:16px;z-index:-1;opacity:0;transition:opacity .3s ease;
}
.td-source-promo-btn:hover::after{opacity:1}
.td-source-promo-btn:hover{transform:translateY(-6px) scale(1.03);border-color:#d4af37}
.td-source-promo-login{
  color:#d4af37!important;background:linear-gradient(145deg,#525053,#000);
  border-color:#000;text-shadow:0 2px 4px rgba(0,0,0,.5);
}
.td-source-promo-login::before{
  position:absolute;left:15px;top:50%;transform:translateY(-50%);font-size:18px;
  opacity:.7;transition:all .3s ease;filter:drop-shadow(0 0 3px #d4af37);
}
.td-source-promo-login:hover{
  background:linear-gradient(145deg,#222,#1a1a1a);
  box-shadow:0 12px 0 #000,0 20px 40px rgba(212,175,55,.4),0 0 30px rgba(212,175,55,.2);
  color:#fff!important;border-color:#d4af37;
}
.td-source-promo-login:hover::before{opacity:1;transform:translateY(-50%) rotate(15deg);filter:drop-shadow(0 0 8px #d4af37)}
.td-source-promo-register{
  color:#fff!important;background:linear-gradient(145deg,#cc1815,#cc1815);
  border-color:#000;text-shadow:0 1px 2px rgba(255,255,255,.3);
}
.td-source-promo-register::before{
  position:absolute;right:15px;top:50%;transform:translateY(-50%);font-size:18px;
  opacity:.7;transition:all .3s ease;
}
.td-source-promo-register:hover{
  background:linear-gradient(145deg,#d51ced,#ce0ce8);
  box-shadow:0 12px 0 #000,0 20px 40px rgba(212,175,55,.5),0 0 35px rgba(251,0,255,.3);
  color:#000!important;border-color:#000;
}
.td-source-promo-register:hover::before{opacity:1;transform:translateY(-50%) scale(1.2) rotate(360deg);filter:drop-shadow(0 0 5px #cc1815)}
.td-source-promo-footer{
  font-size:13px;color:#ccc;padding:20px 10px;position:relative;z-index:3;
  line-height:1.6;font-family:'Playfair Display',serif;
}
.td-source-promo-footer span{color:#d4af37;font-weight:600;text-shadow:0 0 5px rgba(212,175,55,.5)}
.td-source-promo-particle{
  position:absolute;background:radial-gradient(circle,rgba(255,215,0,.8) 0%,rgba(212,175,55,.4) 100%);
  border-radius:50%;pointer-events:none;z-index:4;will-change:transform,opacity;animation:tdSourcePromoFloatGold 10s infinite ease-in-out;
  box-shadow:0 0 10px rgba(255,215,0,.6);
}
.td-source-promo-particle-1{width:10px;height:10px;top:15%;left:12%;animation-delay:0s}
.td-source-promo-particle-2{width:8px;height:8px;top:35%;left:88%;animation-delay:1.5s}
.td-source-promo-particle-3{width:12px;height:12px;top:65%;left:18%;animation-delay:3s}
.td-source-promo-particle-4{width:6px;height:6px;top:25%;left:75%;animation-delay:4.5s}
.td-source-promo-particle-5{width:9px;height:9px;top:80%;left:60%;animation-delay:6s}
.td-source-promo-particle-6{width:5px;height:5px;top:8%;left:35%;animation-delay:.7s}
.td-source-promo-particle-7{width:8px;height:8px;top:18%;left:63%;animation-delay:1.2s}
.td-source-promo-particle-8{width:4px;height:4px;top:30%;left:28%;animation-delay:2s}
.td-source-promo-particle-9{width:11px;height:11px;top:43%;left:92%;animation-delay:2.8s}
.td-source-promo-particle-10{width:5px;height:5px;top:52%;left:8%;animation-delay:3.6s}
.td-source-promo-particle-11{width:7px;height:7px;top:58%;left:42%;animation-delay:4.4s}
.td-source-promo-particle-12{width:4px;height:4px;top:70%;left:78%;animation-delay:5.1s}
.td-source-promo-particle-13{width:10px;height:10px;top:76%;left:27%;animation-delay:5.8s}
.td-source-promo-particle-14{width:6px;height:6px;top:84%;left:72%;animation-delay:6.5s}
.td-source-promo-particle-15{width:4px;height:4px;top:90%;left:48%;animation-delay:7.2s}
.td-source-promo-particle-16{width:8px;height:8px;top:12%;left:88%;animation-delay:8s}
.td-source-promo-particle-17{width:5px;height:5px;top:66%;left:55%;animation-delay:8.7s}
.td-source-promo-luxury-border{
  position:absolute;inset:0;border:1px solid rgba(212,175,55,.2);border-radius:20px;
  pointer-events:none;z-index:4;
  background:linear-gradient(135deg,rgba(212,175,55,0) 0%,rgba(212,175,55,.1) 50%,rgba(212,175,55,0) 100%);
}
.td-source-promo-close{
  position:absolute;top:15px;right:15px;width:32px;height:32px;padding:0;
  background:rgba(0,0,0,.5);border-radius:50%;display:flex;justify-content:center;align-items:center;
  cursor:pointer;z-index:10;transition:all .3s ease;border:1px solid rgba(212,175,55,.4);
}
.td-source-promo-close:hover{background:rgba(212,175,55,.8);transform:rotate(90deg)}
.td-source-promo-close::before,.td-source-promo-close::after{
  content:"";position:absolute;width:16px;height:2px;background:#000;
}
.td-source-promo-close::before{transform:rotate(45deg)}
.td-source-promo-close::after{transform:rotate(-45deg)}
@keyframes tdSourcePromoGoldPulse{
  0%,100%{box-shadow:0 20px 40px rgba(0,0,0,.7),0 0 20px rgba(212,175,55,.4),0 0 0 1px rgba(212,175,55,.2)}
  50%{box-shadow:0 20px 40px rgba(0,0,0,.7),0 0 30px rgba(212,175,55,.5),0 0 0 1px rgba(212,175,55,.4)}
}
@keyframes tdSourcePromoShineDiagonal{
  0%{transform:translate(-100%,-100%) rotate(30deg)}
  100%{transform:translate(100%,100%) rotate(30deg)}
}
@keyframes tdSourcePromoRotateScaleIn{
  0%{opacity:0;transform:scale(.3) rotate(-10deg)}
  50%{transform:scale(1.05) rotate(2deg)}
  100%{opacity:1;transform:scale(1) rotate(0)}
}
@keyframes tdSourcePromoFloatGold{
  0%,100%{transform:translateY(0) translateX(0);opacity:0}
  10%{opacity:.8}
  90%{opacity:.8}
  100%{transform:translateY(-120px) translateX(40px);opacity:0}
}
@media (max-width:480px){
  .td-source-promo-overlay{padding:8px}
  .td-source-promo-container{width:95%;max-width:350px}
  .td-source-promo-btn{font-size:14px;padding:16px 0}
  .td-source-promo-footer{font-size:13px}
  .td-source-promo-close{width:28px;height:28px}
}
