/*
Theme Name: Bader Editorial
Description: Bader The Photographer minimalist editorial theme.
Version: 0.4.2
Requires PHP: 7.4
Text Domain: bader-editorial
*/
:root{--bg:#101113;--panel:#17191b;--fg:#f5f3ee;--muted:#aaa;--accent:#c9a76a}*{box-sizing:border-box}html{scroll-behavior:smooth}body{background:var(--bg);color:var(--fg);margin:0;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.55}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto}button,input,textarea{font:inherit}.shell{width:min(1280px,calc(100% - 72px));margin-inline:auto}.site-header{height:76px;background:#0b0b0ceF;position:relative;z-index:10}.nav-wrap{height:100%;width:min(1400px,calc(100% - 72px));margin:auto;display:flex;align-items:center;gap:38px}.brand img{width:150px;max-height:60px;object-fit:contain}.site-nav{display:flex;gap:26px;margin:auto;font-size:13px}.site-nav a:hover,.language-nav a:hover{color:var(--accent)}.language-nav{display:flex;gap:14px;font-size:12px}.language-nav [aria-current]{border-bottom:1px solid var(--accent)}.mobile-toggle{display:none;color:white;background:none;border:0;font-size:25px}.hero{height:clamp(550px,69vh,790px);position:relative;background-image:var(--hero);background-position:center;background-size:cover;display:flex;align-items:center}.hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.74),rgba(0,0,0,.27) 65%,rgba(0,0,0,.08))}.hero-content{position:relative;z-index:1}.hero-content>div{max-width:760px}.overline,.micro{font-size:11px;letter-spacing:.21em;text-transform:uppercase;color:#ddd;font-weight:600}.hero-title{font-weight:300;font-size:clamp(44px,5.6vw,82px);line-height:1.08;letter-spacing:-.045em;margin:22px 0}.hero-sub{font-size:clamp(15px,1.7vw,20px);max-width:560px;color:#e1dfdb}.outline-btn{display:inline-block;padding:13px 24px;border:1px solid #ddd;font-size:12px;text-transform:uppercase;letter-spacing:.075em;margin-top:22px;background:transparent;color:var(--fg);cursor:pointer}.outline-btn:hover{background:white;color:#141414}.home-galleries{padding-top:24px}.category-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.category-card{position:relative;min-height:330px;aspect-ratio:.85;overflow:hidden;background:#242424}.category-card>img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0;transition:transform .5s}.category-card:hover>img{transform:scale(1.035)}.card-shade{position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.85),transparent 60%)}.category-caption{position:absolute;left:23px;bottom:24px;z-index:1;display:grid;gap:2px}.category-caption strong{font-size:24px;font-weight:400;letter-spacing:.035em}.category-caption small{font-size:10px;text-transform:uppercase;letter-spacing:.14em}.category-arrow{position:absolute;bottom:28px;right:20px;font-size:23px}.tour-feature{padding-block:92px 75px}.section-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:26px}.section-heading h2,.intro-wrap h2,.contact-strip h2{font-size:clamp(28px,3.5vw,46px);font-weight:400;margin:10px 0}.tour-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.tour-tile{position:relative;display:block;aspect-ratio:1.13;background:#242424;overflow:hidden}.tour-tile>img{width:100%;height:100%;object-fit:cover;transition:transform .4s}.tour-tile:hover>img{transform:scale(1.04)}.tour-tile:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 55%,rgba(0,0,0,.75))}.tour-tile strong{position:absolute;bottom:12px;left:14px;right:12px;z-index:1;font-weight:500;font-size:13px}.tour-mark{position:absolute;top:12px;right:12px;z-index:1;padding:8px;border:1px solid #fff;border-radius:50%;background:#0006;font-size:13px}.simple-intro{background:#1a1c1e;padding-block:64px}.intro-wrap{display:grid;grid-template-columns:1fr 1fr;gap:12%;align-items:start}.intro-wrap p{color:#cecece;line-height:1.8;max-width:620px}.text-link{font-size:13px;border-bottom:1px solid var(--accent);display:inline-block;padding-bottom:5px}.contact-strip{display:flex;align-items:center;justify-content:space-between;gap:30px;padding-block:90px}.contact-strip h2{max-width:550px}.contact-strip p{color:var(--muted)}.site-footer{border-top:1px solid #303030;background:#0b0d0e}.footer-main{display:grid;grid-template-columns:1fr 1fr 1fr;gap:35px;padding-block:48px}.footer-logo{width:165px}.footer-main p,.footer-main a,.footer-bottom{font-size:12px;color:#a5a5a5}.footer-main nav{display:grid;grid-template-columns:1fr 1fr;gap:8px}.footer-bottom{padding:18px 0;border-top:1px solid #303030}.page-top{padding-block:72px 100px;min-height:65vh}.page-top h1{font-weight:400;font-size:clamp(42px,5vw,70px);margin:12px 0}.page-top>p{max-width:680px;color:#c1c1c1}.filters{display:flex;gap:24px;flex-wrap:wrap;margin:35px 0;border-bottom:1px solid #444;padding-bottom:17px;font-size:13px}.filters a:hover{color:var(--accent)}.photo-grid{columns:4 210px;column-gap:12px}.photo-item{display:block;break-inside:avoid;margin:0 0 12px;overflow:hidden}.photo-item img{display:block;width:100%;height:auto;transition:transform .3s}.photo-item:hover img{transform:scale(1.025)}.empty-note{color:#999;font-size:14px;padding:50px 0}.prose{max-width:900px}.page-body{color:#d0d0d0;line-height:1.8}.service-simple{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:45px}.service-simple h2{font-size:24px;font-weight:400;margin:0}.service-simple p{color:#aaa;margin:0 0 20px}.contact-panel{max-width:640px}.contact-panel form{display:grid;gap:15px}.contact-panel label{display:grid;gap:5px}.contact-panel input,.contact-panel textarea{padding:12px;color:white;background:#222;border:1px solid #444}.journal-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:25px}.journal-card h2{font-weight:400;font-size:22px}.journal-card p{color:#aaa}.lightbox[hidden]{display:none!important}.lightbox{position:fixed;inset:0;z-index:99999;background:#000e;display:flex;align-items:center;justify-content:center}.lightbox img{max-width:88vw;max-height:90vh;object-fit:contain}.lightbox button{position:absolute;background:#222a;color:white;border:1px solid #777;font-size:32px;cursor:pointer}.lightbox-close{top:18px;right:20px}.lightbox-prev{left:20px}.lightbox-next{right:20px}.btp-img-edit{display:none}.btp-editor .btp-img-edit{display:block;position:absolute;z-index:5;right:20px;bottom:18px}.btp-editor [data-btp-key]{outline:1px dashed #f7c572;outline-offset:4px}.btp-editor-toolbar{position:fixed;bottom:14px;left:50%;transform:translateX(-50%);z-index:1000;background:#111;padding:12px 18px;display:flex;align-items:center;gap:14px;box-shadow:0 0 24px #0009}.btp-editor-toolbar button{background:#eee;border:0;padding:8px 16px;cursor:pointer}
@media(max-width:1050px){.site-nav{gap:14px}.category-caption strong{font-size:21px}.tour-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.shell,.nav-wrap{width:calc(100% - 34px)}.site-header{height:68px}.brand img{width:125px}.mobile-toggle{display:block;margin-left:3px}.site-nav{display:none;position:absolute;left:0;right:0;top:68px;padding:22px;background:#111;flex-direction:column}.site-nav.open{display:flex}.language-nav{margin-left:auto}.hero{height:72vh;min-height:480px;background-position:60% center}.hero-title{font-size:clamp(40px,10vw,65px)}.category-grid{grid-template-columns:1fr;gap:12px}.category-card{aspect-ratio:1.35;min-height:240px}.tour-feature{padding-block:60px}.tour-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.section-heading{align-items:start;flex-direction:column}.intro-wrap{grid-template-columns:1fr;gap:12px}.contact-strip{display:block;padding-block:60px}.footer-main{grid-template-columns:1fr 1fr}.footer-main>div:first-child{grid-column:1/-1}.page-top{padding-block:40px 70px}.photo-grid{columns:2 120px;column-gap:8px}.photo-item{margin-bottom:8px}.service-simple{grid-template-columns:1fr}.journal-grid{grid-template-columns:1fr}}

/* v0.3.1 editorial category cards and gallery navigation */
.category-card{border-radius:16px;aspect-ratio:3/4;min-height:0;isolation:isolate;}
.category-card>img{object-fit:cover;object-position:center center;}
.category-card:focus-visible{outline:2px solid var(--accent);outline-offset:4px;}
.filters{gap:8px;align-items:center;padding-bottom:16px;}
.filters a{display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:999px;padding:9px 18px;transition:color .2s,border-color .2s,background .2s;}
.filters a:hover,.filters a:focus-visible{color:var(--accent);border-color:var(--accent);}
.filters a.is-active,.filters a[aria-current="page"]{color:var(--accent);border-color:var(--accent);background:rgba(201,167,106,.08);}
.lightbox button{width:46px;height:46px;border:1px solid rgba(255,255,255,.32);border-radius:50%;display:grid;place-items:center;padding:0;background:rgba(27,27,27,.78);font-size:29px;line-height:1;transition:background .2s,border-color .2s,transform .2s;}
.lightbox button:hover,.lightbox button:focus-visible{background:#333;border-color:var(--accent);transform:scale(1.05);}
.lightbox-close{top:max(18px,env(safe-area-inset-top));right:20px;z-index:5;}
.lightbox-prev,.lightbox-next{top:50%;transform:translateY(-50%);}
.lightbox-prev:hover,.lightbox-next:hover{transform:translateY(-50%) scale(1.05);}
@media(max-width:760px){.category-card{aspect-ratio:3/4;min-height:0;border-radius:14px}.filters{gap:5px}.filters a{padding:7px 12px;font-size:12px}.lightbox button{width:42px;height:42px}.lightbox-prev{left:7px}.lightbox-next{right:7px}.lightbox img{max-width:96vw;max-height:85vh}}

/* v0.3.2 lightbox controls: fixed positions on hover and precisely centered icon. */
.lightbox button,.lightbox button:hover,.lightbox button:focus-visible {
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.lightbox .lightbox-close,.lightbox .lightbox-close:hover,.lightbox .lightbox-close:focus-visible {
  transform: none;
}
.lightbox .lightbox-prev,.lightbox .lightbox-prev:hover,.lightbox .lightbox-prev:focus-visible,
.lightbox .lightbox-next,.lightbox .lightbox-next:hover,.lightbox .lightbox-next:focus-visible {
  transform: translateY(-50%);
}
.lightbox .lightbox-close { display:flex; align-items:center; justify-content:center; line-height:0; }
.lightbox .lightbox-close svg { display:block; width:20px; height:20px; flex:none; stroke:currentColor; }

/* v0.3.3 centered navigation icons and footer contact */
.lightbox .lightbox-prev,.lightbox .lightbox-next{display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;line-height:0!important;}
.lightbox .lightbox-prev svg,.lightbox .lightbox-next svg{display:block;flex:0 0 20px;width:20px;height:20px;pointer-events:none;}
.footer-contact address{font-size:12px;font-style:normal;color:#a5a5a5;margin:12px 0;line-height:1.8}
.footer-social{display:flex;gap:13px;flex-wrap:wrap;margin:15px 0}
.footer-social a:hover,.footer-contact a:hover{color:var(--accent)}
.footer-cta{display:inline-block;margin-top:6px}
.contact-guard{position:absolute!important;left:-10000px!important;height:1px!important;width:1px!important;overflow:hidden!important;}
.contact-message{font-size:13px;padding:12px 16px;border:1px solid #555;margin-bottom:22px}
@media(max-width:760px){.footer-main{grid-template-columns:1fr 1fr}.footer-contact{grid-column:1/-1}}

/* v0.3.4 social icons and contact confirmation */
.footer-social{align-items:center;gap:12px}
.footer-social a{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border:1px solid #555;border-radius:50%;color:#ececec!important;transition:border-color .2s,color .2s,background-color .2s}
.footer-social a:hover,.footer-social a:focus-visible{border-color:var(--accent);color:var(--accent)!important;background:#ffffff0a}
.footer-social svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}
.footer-social svg .btp-solid{fill:currentColor;stroke:none}
.btp-modal{position:fixed;inset:0;z-index:99990;display:grid;place-items:center;padding:20px}
.btp-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.79)}
.btp-modal-card{position:relative;max-width:420px;width:100%;padding:34px 28px;text-align:center;background:#191a1c;border:1px solid #515151;border-radius:16px;box-shadow:0 18px 90px #000b}
.btp-modal-card h2{font-size:30px;font-weight:400;margin:9px 0}
.btp-modal-card p{color:#ccc;font-size:14px}
.btp-modal-check{display:grid;place-items:center;margin:auto;width:46px;height:46px;border-radius:50%;border:1px solid var(--accent);color:var(--accent);font-size:24px}
.btp-modal-close{position:absolute;right:12px;top:8px;background:transparent;border:0;color:#eee;cursor:pointer;font-size:27px;line-height:1;padding:8px}
.btp-modal-card .outline-btn{margin-top:10px}

/* v0.3.5 — About editorial biography */
.btp-about{padding:56px 0 96px}.btp-about-quote{padding:14px 0 75px;position:relative;max-width:1100px}.btp-quote-mark{display:block;font-family:Georgia,serif;font-size:92px;color:var(--accent);line-height:.65;height:55px}.btp-quote-text{font-family:Georgia,serif;font-style:italic;font-size:clamp(22px,2.45vw,34px);line-height:1.6;letter-spacing:.01em;color:#eee;max-width:1050px;margin:12px 0}.btp-quote-signature{font-family:Georgia,serif;font-style:italic;color:var(--accent);text-align:right;font-size:25px;margin-top:10px}.btp-about-layout{display:grid;grid-template-columns:minmax(200px,270px) minmax(0,1fr);gap:clamp(40px,6vw,110px);align-items:start}.btp-about-eyebrow{color:var(--accent);font-size:13px;letter-spacing:.16em}.btp-about-heading{font-size:clamp(37px,4.2vw,64px);line-height:1.06;letter-spacing:-.04em;font-weight:750;margin:20px 0 24px}.btp-about-heading span{display:block}.btp-about-heading span:last-child{color:var(--accent)}.btp-about-portrait{width:164px;height:164px;object-fit:cover;object-position:center;border-radius:50%;border:2px solid #e3e1da;display:block}.btp-about-bio{font-size:clamp(15px,1.35vw,18px);line-height:1.85;color:#bdbdbd}.btp-about-bio p{margin:0 0 19px}.btp-about-bottom{margin-top:45px;display:flex;gap:16px;flex-wrap:wrap}.btp-about-bottom .outline-btn{margin-top:0}
@media(max-width:760px){.btp-about{padding:34px 0 64px}.btp-about-quote{padding-bottom:45px}.btp-about-layout{grid-template-columns:1fr;gap:22px}.btp-about-aside{display:grid;grid-template-columns:1fr 108px;align-items:center;column-gap:16px}.btp-about-eyebrow{grid-column:1/-1}.btp-about-heading{font-size:clamp(35px,8vw,48px);margin:12px 0}.btp-about-portrait{width:108px;height:108px}.btp-quote-signature{font-size:21px}.btp-about-bio{line-height:1.8}}

/* v0.3.6 subtler about quotation */
.btp-about-quote{max-width:960px;padding-bottom:60px}.btp-quote-text{font-size:clamp(18px,1.75vw,25px);line-height:1.52;max-width:920px}.btp-quote-mark{font-size:72px;height:43px}.btp-quote-signature{font-size:20px}
@media(max-width:760px){.btp-quote-text{font-size:clamp(17px,4.4vw,21px)}.btp-about-quote{padding-bottom:38px}}

/* v0.3.10 — Russian About heading: prevent long Cyrillic words overflowing into the bio. */
.btp-about-layout > *, .btp-about-aside, .btp-about-bio {min-width:0;max-width:100%;}
.btp-about-ru .btp-about-heading{font-size:clamp(29px,2.7vw,41px);letter-spacing:-.035em;overflow-wrap:anywhere;word-break:normal;hyphens:auto;}
.btp-about-ru .btp-about-heading span{max-width:100%;}
.btp-about-ru .btp-about-bio{overflow-wrap:break-word;}
@media(max-width:760px){
  .btp-about-ru .btp-about-aside{display:flex;flex-direction:column;align-items:flex-start;gap:0;}
  .btp-about-ru .btp-about-heading{font-size:clamp(29px,7.2vw,39px);line-height:1.12;width:100%;margin:15px 0 22px;}
  .btp-about-ru .btp-about-portrait{width:118px;height:118px;flex:none;}
  .btp-about-ru .btp-about-layout{gap:28px;}
}

/* v0.3.11 — make translated About headings and portrait safe at every viewport. */
.btp-about-layout {grid-template-columns:minmax(0, 31%) minmax(0, 1fr);column-gap:clamp(24px,4vw,70px);}
.btp-about-layout, .btp-about-aside, .btp-about-bio, .btp-about-heading, .btp-about-heading span {min-width:0;max-width:100%;box-sizing:border-box;}
.btp-about-heading {overflow-wrap:anywhere;word-break:break-word;hyphens:auto;}
.btp-about-bio {overflow-wrap:break-word;}
.btp-about-ru .btp-about-heading {font-size:clamp(24px,2.45vw,36px);letter-spacing:-.025em;line-height:1.16;}
@media (max-width:900px) {
  .btp-about-layout {display:flex;flex-direction:column;gap:25px;}
  .btp-about-aside {display:flex;flex-direction:column;align-items:flex-start;width:100%;max-width:100%;gap:0;}
  .btp-about-heading, .btp-about-ru .btp-about-heading {font-size:clamp(26px,5.4vw,43px);width:100%;margin:15px 0 22px;overflow-wrap:anywhere;}
  .btp-about-portrait, .btp-about-ru .btp-about-portrait {display:block;width:118px;height:118px;max-width:118px;object-fit:cover;flex:0 0 auto;}
  .btp-about-bio {width:100%;max-width:100%;}
}
@media (max-width:480px) {
  .btp-about-heading, .btp-about-ru .btp-about-heading {font-size:clamp(23px,7vw,31px);line-height:1.13;}
  .btp-about-quote {max-width:100%;}
  .btp-about-bio {font-size:16px;line-height:1.7;}
}

/* v0.4.0 immersive viewer: near-full-window iframe, accessible controls */
body.single-btp_tour{background:#0a0b0c;}
.tour-viewer-page{min-height:calc(100dvh - 76px);display:flex;flex-direction:column;}
.tour-viewer-toolbar{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:13px clamp(16px,3vw,44px);background:#141516;}
.tour-viewer-toolbar h1{font-size:clamp(15px,1.7vw,21px);font-weight:500;margin:0;line-height:1.35;}
.tour-viewer-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
.tour-viewer-actions a,.tour-viewer-actions button{font:inherit;font-size:12px;cursor:pointer;color:#f4f4f4;border:1px solid #777;background:#252525;border-radius:7px;padding:9px 13px;}
.tour-viewer-actions a:hover,.tour-viewer-actions button:hover{border-color:var(--accent);color:var(--accent);}
.tour-iframe-wrap{position:relative;flex:1;min-height:65dvh;background:#070707;}
.tour-iframe-wrap iframe{display:block;width:100%;height:calc(100dvh - 148px);min-height:65dvh;border:0;}
.tour-info{padding:24px 0 38px;color:#bcbcbc;max-width:900px;}
.tour-info summary{cursor:pointer;color:#e4e4e4;font-size:13px;}
.tour-info p{line-height:1.7;}
.tour-placeholder{display:grid;place-items:center;width:100%;height:100%;font-size:42px;background:#25272a;}
@media(max-width:760px){.tour-viewer-page{min-height:calc(100dvh - 68px)}.tour-viewer-toolbar{align-items:flex-start;flex-direction:column;gap:9px}.tour-iframe-wrap iframe{height:calc(100dvh - 196px);min-height:56dvh}.tour-viewer-actions a,.tour-viewer-actions button{padding:7px 11px}}

/* v0.4.1 – Native full-viewport iframe and bespoke 360 thumbnail icon */
.tour-iframe-wrap:fullscreen,
.tour-iframe-wrap:-webkit-full-screen { width:100vw!important; height:100dvh!important; min-height:0!important; margin:0!important; padding:0!important; border:0!important; overflow:hidden!important; background:#000; display:block; }
.tour-iframe-wrap:fullscreen iframe,
.tour-iframe-wrap:-webkit-full-screen iframe { position:absolute!important; inset:0!important; display:block!important; width:100%!important; height:100%!important; min-height:0!important; max-height:none!important; margin:0!important; padding:0!important; border:0!important; }
.tour-mark { display:grid;place-items:center;width:50px;height:50px;padding:7px;background:rgba(0,0,0,.36);border:1px solid rgba(255,255,255,.65);border-radius:50%; }
.tour-mark img {display:block;width:100%;height:100%;object-fit:contain;}
@media(max-width:760px){.tour-mark{width:44px;height:44px;padding:6px}}


/* v0.4.2: immersive gallery refinements */
.tour-mark{width:60px;height:60px;padding:8px;}
.tour-viewer-heading{display:flex;align-items:center;gap:12px;min-width:0;}
.tour-viewer-heading h1{min-width:0;overflow-wrap:anywhere;}
.tour-mobile-back{display:none!important;}
@media(max-width:760px){
 .tour-viewer-toolbar{flex-direction:row;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px;}
 .tour-viewer-heading{flex:1;display:flex;align-items:center;justify-content:space-between;gap:12px;}
 .tour-viewer-heading h1{font-size:clamp(14px,3.6vw,18px);line-height:1.3;}
 .tour-mobile-back{display:inline-flex!important;flex:0 0 auto;align-items:center;justify-content:center;max-width:42%;padding:7px 8px;border:1px solid #777;border-radius:7px;color:#f4f4f4;font-size:11px;line-height:1.2;text-align:center;}
 .tour-viewer-actions{display:none!important;}
 .tour-fullscreen-button{display:none!important;}
 .tour-mark{width:53px;height:53px;padding:7px;}
 .tour-iframe-wrap iframe{height:calc(100dvh - 130px);min-height:56dvh;}
}
