/* AchtarFoto Youth photo-wall theme. Original Estelar renderer stays intact. */
html[data-af-theme-preview="youth"]{background:#070808}
.yf-home{--yf-gold:#d6b98b;--yf-dark:#070808;position:relative;min-height:100svh;background:var(--yf-dark);color:#f7f6f2}
body:has(.yf-home){margin:0;background:#070808;overflow-x:hidden}
body:has(.yf-home) .demo-header.yf-header{position:absolute;z-index:32;top:0;left:0;right:0;width:100%;height:clamp(65px,7vw,86px);display:flex;align-items:center;justify-content:space-between;padding:0 clamp(17px,4vw,65px);background:linear-gradient(#040504d9,#04050400);color:#fff}
.yf-header .demo-wordmark{font-size:clamp(18px,2vw,25px);font-weight:800;letter-spacing:-.04em;text-shadow:0 2px 9px #000b}
.yf-header .demo-desktop-nav{display:flex;gap:clamp(12px,2vw,30px)}
.yf-header .demo-desktop-nav a{font-size:11px;font-weight:700;letter-spacing:.13em;text-shadow:0 1px 7px #000}
.yf-header .demo-menu-toggle{display:inline-flex;align-items:center;gap:13px;border:0;color:#fff;background:transparent;padding:12px 0}
.yf-header .demo-menu-toggle i{display:block;width:23px;height:2px;margin:5px 0;background:#fff}
.yf-header .ai-lang{color:#fff}
.yf-menu.demo-mobile-menu:not([hidden]){position:fixed;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;inset:0;z-index:33;background:#080909f7;backdrop-filter:blur(18px);text-align:center;overflow-y:auto;padding:65px 20px}
.yf-menu a{display:block;color:#fff;text-decoration:none;font:400 clamp(26px,5vw,46px)/1.18 Georgia,serif;padding:9px 15px}
.yf-home a[hidden]{display:none!important}
.yf-menu a:hover,.yf-menu a:focus-visible{color:var(--yf-gold)}
.yf-menu .yf-close{position:absolute;right:20px;top:20px;border:1px solid #ffffff70;background:#171717;color:#fff;width:46px;height:46px;font-size:23px}
.yf-wall{width:100%;height:100svh;min-height:420px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));gap:4px;padding:0;margin:0;background:#070808}
.yf-photo{position:relative;min-height:0;min-width:0;display:block;overflow:hidden;background:#151615;cursor:default;border:0;padding:0;width:100%;height:100%;appearance:none}
.yf-photo img{width:100%;height:100%;display:block;object-fit:cover;filter:grayscale(1) contrast(1.13) brightness(.88);transition:filter .45s ease,transform .45s ease}
/* The five named/linked photos are in natural color from the first paint.
   Other photos stay B/W until individually toggled by touch or keyboard. */
.yf-photo-featured img,.yf-photo-toggle[aria-pressed="true"] img{filter:none}
.yf-photo-toggle{cursor:pointer;touch-action:manipulation}
.yf-photo-toggle:focus-visible{outline:2px solid #d6b98b;outline-offset:-2px}
/* Exactly five selected photos may link; their category names are BELOW the
   photographic area, in a slim strip INSIDE the original grid cell. */
.yf-photo-featured[href]{cursor:pointer;text-decoration:none;color:#eee4d6}
.yf-photo-featured[href] img{height:calc(100% - 29px)}
.yf-photo-featured .yf-photo-caption{height:29px;box-sizing:border-box;padding:0 7px;display:flex;align-items:center;justify-content:space-between;gap:3px;background:#10100e;color:#e5d0ae;border-top:1px solid #4b4137;font:700 clamp(8px,1.08vw,11px)/1 Arial,sans-serif;letter-spacing:.035em;white-space:nowrap}
.yf-photo-featured .yf-photo-caption>span{font-size:13px;flex:none}
.yf-photo-featured[href]:hover .yf-photo-caption{background:#252018}
.yf-photo-featured[href]:focus-visible{outline:2px solid #d6b98b;outline-offset:-2px}
.yf-photo-featured:not([href]) img{height:100%}
.yf-photo-featured:not([href]) .yf-photo-caption{display:none}
/* Color changes only on an explicit tap or keyboard activation; no hover-triggered navigation. */
.yf-photo img[data-site-cover-state="loading"]{opacity:1}
.yf-footer{padding:19px clamp(17px,4vw,65px);display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;color:#aaa49a;font:10px/1.5 Arial,sans-serif;letter-spacing:.11em}
.yf-footer a{color:#e8d0a9;text-decoration:none}
@media(max-width:850px){.yf-wall{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(5,minmax(0,1fr))}.yf-header .demo-desktop-nav{display:none}.yf-header .demo-menu-toggle{display:inline-flex}}
@media(max-width:540px){.yf-wall{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(7,minmax(0,1fr));gap:3px}.yf-photo:last-child:nth-child(3n+1){grid-column:span 3}.yf-photo:last-child:nth-child(3n+2){grid-column:span 2}.yf-header .demo-wordmark{font-size:18px}.yf-header .demo-menu-toggle{font-size:10px}}
@media(prefers-reduced-motion:reduce){.yf-photo img{transition:none!important}}
/* Portfolio visual difference is real: original editorial content remains opt-in. */
html[data-af-theme-preview="youth"] .dp-main{background:#080909}
html[data-af-theme-preview="youth"] .dp-index .dp-intro,
html[data-af-theme-preview="youth"] .dp-index .dp-index-collection,
html[data-af-theme-preview="youth"] .dp-index .dp-index-end{display:none!important}
html[data-af-theme-preview="youth"] .dp-index .dp-fast-portfolio{padding-top:clamp(95px,10vw,150px);padding-bottom:70px;min-height:85svh}
html[data-af-theme-preview="youth"] .dp-index .dp-fast-card span{display:none!important}
html[data-af-theme-preview="youth"] .dp-index .dp-fast-card img{filter:grayscale(1);transition:filter .35s ease}
html[data-af-theme-preview="youth"] .dp-index .dp-fast-card:hover img{filter:none}
html[data-af-theme-preview="youth"] .dp-detail-hero{height:210px;min-height:210px;background:#080909}
html[data-af-theme-preview="youth"] .dp-detail-hero>img,
html[data-af-theme-preview="youth"] .dp-detail-vignette,
html[data-af-theme-preview="youth"] .dp-detail-opening,
html[data-af-theme-preview="youth"] .dp-photo-editorial,
html[data-af-theme-preview="youth"] .dp-next-story{display:none!important}
html[data-af-theme-preview="youth"] .dp-detail-cover{bottom:25px;left:clamp(20px,5vw,76px);right:20px}
html[data-af-theme-preview="youth"] .dp-detail-cover h1{font-size:clamp(35px,5.5vw,69px);margin:12px 0 0}
html[data-af-theme-preview="youth"] .dp-detail-cover p,html[data-af-theme-preview="youth"] .dp-detail-cover .dp-photo-jump{display:none}
html[data-af-theme-preview="youth"] .dp-hero-back{top:105px;left:clamp(20px,5vw,76px);min-height:24px;color:#ddc39f}
html[data-af-theme-preview="youth"] .dp-exhibition{padding-top:0}
html[data-af-theme-preview="youth"] .dp-photo figcaption{display:none}
html[data-af-theme-preview="youth"] .dp-photo-wide{padding-bottom:clamp(10px,2vw,25px)}
html[data-af-theme-preview="youth"] .dp-photo-duo{padding:0;gap:clamp(8px,2vw,24px)}
html[data-af-theme-preview="youth"] .dp-photo-duo .dp-photo:last-child{margin-top:0}
html[data-af-theme-preview="youth"] .dp-photo-aside{padding:0 0 clamp(10px,2vw,25px)}
html[data-af-theme-preview="youth"] .dp-photo-aside .dp-photo{width:100%}
@media(max-width:540px){html[data-af-theme-preview="youth"] .dp-detail-hero{height:180px;min-height:180px}html[data-af-theme-preview="youth"] .dp-detail-cover{bottom:15px}html[data-af-theme-preview="youth"] .dp-detail-cover h1{font-size:39px}html[data-af-theme-preview="youth"] .dp-hero-back{top:93px}}
