/* AchtarFoto configurable presentation layer. */
:root{--af-site-bg:#090807;--af-site-text:#f0ede7;--af-site-accent:#d4b38b;--af-site-muted:#a69d93;--af-display-family:Georgia,'Times New Roman',serif;--af-button-radius:0px;--af-home-overlay:.92}
html[data-af-site-theme="custom"] body{background:var(--af-site-bg);color:var(--af-site-text)}
html[data-achtar-v2="home"] .demo-home,html[data-achtar-v2="home"] .demo-hero{background-color:var(--af-site-bg)}
html[data-achtar-v2="home"] .demo-mark,html[data-achtar-v2="home"] .demo-hero-heading>a:hover,html[data-achtar-v2="home"] .af-home-chapter-copy a:hover{color:var(--af-site-accent)}
html[data-achtar-v2="home"] .demo-eyebrow,html[data-achtar-v2="home"] .af-home-statement>span,html[data-achtar-v2="home"] .af-home-chapter-copy>span{color:var(--af-site-muted)}
html[data-achtar-v2="home"] .demo-hero-heading h1,html[data-achtar-v2="home"] .af-home-statement h2,html[data-achtar-v2="home"] .af-home-chapter-copy h3,html[data-achtar-v2="home"] .af-home-cta h2{font-family:var(--af-display-family)}
html[data-achtar-v2="home"] .demo-dark-overlay{opacity:var(--af-home-overlay)}
html[data-achtar-v2="home"] .demo-hero-heading>a,html[data-achtar-v2="home"] .af-home-chapter-copy a,html[data-achtar-v2="home"] .af-home-quote,html[data-achtar-v2="home"] .af-home-utility a{border-radius:var(--af-button-radius)}
[hidden]{display:none!important}
.collection-view{--cg-ink:var(--af-site-bg,#0b0a09);--cg-paper:var(--af-site-text,#f2eee7);--cg-gold:var(--af-site-accent,#d0b38a)}
.collection-view .collection-client-hero{height:min(var(--af-gallery-hero-desktop,96svh),1050px)!important}
.collection-view .collection-client-hero::after{background:linear-gradient(90deg,rgb(8 8 8 / var(--af-gallery-overlay,.42)),rgb(8 8 8 / var(--af-gallery-overlay,.42)) 47%,transparent 87%),linear-gradient(180deg,rgb(6 6 6 / .23),transparent 32%,rgb(8 8 8 / var(--af-gallery-overlay,.42)) 87%,rgb(8 8 8 / var(--af-gallery-overlay,.42)))!important}
.collection-view .collection-client-hero h1{font-family:var(--af-display-family);font-size:var(--af-gallery-title-size,clamp(52px,7vw,112px))!important}
.collection-view .collection-client-kicker{color:var(--af-site-accent)!important}
.collection-view button,.collection-view .collection-client-open-link{border-radius:var(--af-button-radius)}
@media(max-width:700px){.collection-view .collection-client-hero{height:var(--af-gallery-hero-mobile,90svh)!important}.collection-view .collection-client-hero h1{font-size:var(--af-gallery-title-size-mobile,clamp(42px,11vw,66px))!important}}

/* Synchronize published Admin appearance on every public section.
   Opt-in: no published manifest means the original site design is untouched. */
html[data-af-site-theme="custom"] .dp-main,
html[data-af-site-theme="custom"] .dp-intro,
html[data-af-site-theme="custom"] .af-public-gallery,
html[data-af-site-theme="custom"] .ds-hero,
html[data-af-site-theme="custom"] .da-hero,
html[data-af-site-theme="custom"] .dc-hero{
  background-color:var(--af-site-bg);
}
html[data-af-site-theme="custom"] .dp-main,
html[data-af-site-theme="custom"] .af-public-gallery{
  color:var(--af-site-text);
}
html[data-af-site-theme="custom"] .af-public-gallery-tools{
  background-color:var(--af-site-bg);
}
html[data-af-site-theme="custom"] .af-public-gallery-hero h1,
html[data-af-site-theme="custom"] .af-public-gallery-aside strong,
html[data-af-site-theme="custom"] .af-public-gallery-outro h2,
html[data-af-site-theme="custom"] .dp-main h1,
html[data-af-site-theme="custom"] .dp-main h2,
html[data-af-site-theme="custom"] .ds-hero-content h1,
html[data-af-site-theme="custom"] .da-hero-title h1,
html[data-af-site-theme="custom"] .dc-hero-copy h1{
  font-family:var(--af-display-family);
}
html[data-af-site-theme="custom"] .dp-logo span,
html[data-af-site-theme="custom"] .af-public-gallery-eyebrow{
  color:var(--af-site-accent);
}

/* Visual details from Admin > Personalizar: full-bleed category dividers.
   Scope only the published custom theme. Default CSS remains unchanged. */
html[data-af-site-theme="custom"][data-achtar-v2="home"] .af-home-statement::before,
html[data-af-site-theme="custom"][data-achtar-v2="home"] .af-home-stories,
html[data-af-site-theme="custom"][data-achtar-v2="home"] .af-home-chapter + .af-home-chapter,
html[data-af-site-theme="custom"][data-achtar-v2="home"] .af-home-cta{
  border-top:var(--af-category-divider-width,2px) solid var(--af-category-divider-color,#ffffff);
}
/* Portfolio index chapters have inset editorial cards: draw a full-width line
   without changing their grid, margins, cropping or mobile layout. */
html[data-af-site-theme="custom"] .dp-index-collection > .dp-chapter{
  position:relative;
}
html[data-af-site-theme="custom"] .dp-index-collection > .dp-chapter + .dp-chapter::before{
  content:"";
  position:absolute;
  left:50%;top:0;
  width:100vw;
  height:var(--af-category-divider-width,2px);
  transform:translateX(-50%);
  background:var(--af-category-divider-color,#ffffff);
  pointer-events:none;
}

/* Additive Portfolio chapter spacing: 0px preserves original layouts.
   Desktop and mobile values are independent; never changes other pages. */
@media(min-width:901px){
  html[data-af-site-theme="custom"] .dp-index-collection > .dp-chapter:not(:last-child){
    margin-bottom:calc(clamp(80px,11vh,145px) + var(--af-portfolio-extra-spacing-desktop,0px));
  }
}
@media(min-width:701px) and (max-width:900px){
  html[data-af-site-theme="custom"] .dp-index-collection > .dp-chapter:not(:last-child){
    margin-bottom:calc(100px + var(--af-portfolio-extra-spacing-mobile,0px));
  }
}
@media(max-width:700px){
  html[data-af-site-theme="custom"] .dp-index-collection > .dp-chapter:not(:last-child){
    margin-bottom:calc(80px + var(--af-portfolio-extra-spacing-mobile,0px));
  }
}

/* Portfolio title sizing from published Admin. Separate responsive controls.
   Defaults at 100% match the existing editorial composition. */
@media(min-width:901px){
  html[data-af-site-theme="custom"] .dp-index .dp-chapter-copy h2{
    font-size:clamp(calc(40px * var(--af-portfolio-title-scale-desktop,1)),calc(4vw * var(--af-portfolio-title-scale-desktop,1)),calc(70px * var(--af-portfolio-title-scale-desktop,1)));
  }
}
@media(max-width:900px){
  html[data-af-site-theme="custom"] .dp-index .dp-chapter-copy h2{
    font-size:clamp(calc(38px * var(--af-portfolio-title-scale-mobile,1)),calc(7vw * var(--af-portfolio-title-scale-mobile,1)),calc(58px * var(--af-portfolio-title-scale-mobile,1)));
  }
}

/* Opt-in managed public menu. Legacy markup remains until the owner publishes a menu. */
.af-nav-managed{--af-nav-menu-bg:#13242b;--af-nav-menu-border:#806342}
.af-nav-managed .af-nav-group{display:inline-flex;position:relative;align-items:center;flex:0 0 auto;min-width:0;font-family:inherit}
.af-nav-managed .af-nav-parent{display:flex;align-items:center;min-height:32px;gap:3px}
.af-nav-managed .af-nav-parent>a{display:inline-flex;align-items:center;min-width:0}
.af-nav-managed .af-nav-text{font-size:inherit;letter-spacing:inherit;color:inherit;cursor:default}
.af-nav-managed .af-nav-toggle{appearance:none;border:0;background:transparent;color:inherit;cursor:pointer;
  min-width:24px;min-height:32px;padding:0 4px;font:18px/1 system-ui,sans-serif;display:inline-flex;align-items:center;justify-content:center}
.af-nav-managed .af-nav-toggle:focus-visible,.af-nav-managed a:focus-visible{outline:2px solid #e2b16a;outline-offset:3px}
.af-nav-managed .af-nav-submenu{display:none;position:absolute;left:0;top:100%;z-index:40;min-width:185px;max-width:min(310px,85vw);
  padding:7px;background:var(--af-nav-menu-bg);border:1px solid var(--af-nav-menu-border);box-shadow:0 14px 32px #0009}
.af-nav-managed .af-nav-submenu>a{display:block!important;position:relative!important;white-space:normal!important;width:100%!important;
  padding:11px 12px!important;color:#f1d4a4!important;text-decoration:none;line-height:1.4;font-size:12px}
.af-nav-managed .af-nav-submenu>a:hover{background:#283d41}
.af-nav-managed .af-nav-group.af-nav-open .af-nav-submenu,
.af-nav-managed .af-nav-group:focus-within .af-nav-submenu{display:block}
@media(hover:hover) and (pointer:fine){.af-nav-managed .af-nav-group:hover .af-nav-submenu{display:block}}
.af-nav-managed:is(.demo-mobile-menu,.ds-mobile-links,.da-mobile-nav,.dc-mobile-nav,.dp-mobile-nav) .af-nav-group{
  display:flex;flex-direction:column;align-items:stretch;width:100%;
}
.af-nav-managed:is(.demo-mobile-menu,.ds-mobile-links,.da-mobile-nav,.dc-mobile-nav,.dp-mobile-nav) .af-nav-parent{
  width:100%;justify-content:space-between
}
.af-nav-managed:is(.demo-mobile-menu,.ds-mobile-links,.da-mobile-nav,.dc-mobile-nav,.dp-mobile-nav) .af-nav-submenu{
  position:static;left:auto;top:auto;max-width:100%;min-width:0;width:100%;
  box-shadow:none;margin:5px 0 10px 12px;border-left:2px solid #e2b16a;border-top:0;border-right:0;border-bottom:0;
}

/* Many owner-created links may overflow a phone; keep every item reachable. */
@media(max-width:800px){
  .af-nav-managed:is(.demo-mobile-menu,.ds-mobile-links,.da-mobile-nav,.dc-mobile-nav,.dp-mobile-nav):not([hidden]){
    overflow-y:auto!important;overscroll-behavior:contain;
    justify-content:flex-start!important;align-items:stretch!important;
    padding-top:92px!important;padding-bottom:35px!important
  }
}

/* Optional editable LEGO editorial sections: native text, no generated photographs. */
.af-studio-custom{display:flex;align-items:center;justify-content:center;min-height:230px;width:100%;padding:clamp(36px,7vw,90px) clamp(20px,6vw,80px);border-top:1px solid #384a50;border-bottom:1px solid #384a50;background:linear-gradient(145deg,#12252c,#0a161b);color:#f3eee5}
.af-studio-custom-inner{display:flex;flex-direction:column;align-items:flex-start;gap:15px;width:min(100%,1040px);margin:auto}
.af-studio-custom-label{font:800 11px/1.4 system-ui,sans-serif;color:#e0b276;letter-spacing:.15em}
.af-studio-custom h2{font:normal clamp(30px,5.2vw,66px)/1.13 Georgia,serif;max-width:100%;overflow-wrap:anywhere;white-space:pre-wrap;margin:0}
.af-studio-custom p{font:normal clamp(15px,1.5vw,19px)/1.65 system-ui,sans-serif;max-width:75ch;overflow-wrap:anywhere;white-space:pre-wrap;color:#bdc8c9;margin:0}
.af-studio-custom a{display:inline-flex;border:1px solid #e2b16a;border-radius:8px;padding:13px 20px;background:#e2b16a;color:#121c20;text-decoration:none;font:800 13px/1.4 system-ui,sans-serif}
.af-studio-custom a:focus-visible{outline:2px solid white;outline-offset:4px}


/* Web Studio visual LEGO: published, owned-photography components */
.af-studio-custom .af-studio-copy{min-width:0;width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:16px}
.af-studio-custom figure{margin:0;min-width:0}
.af-studio-photo{width:100%;overflow:hidden}
.af-studio-photo img{display:block;width:100%;height:auto;max-height:660px;object-fit:cover;aspect-ratio:16/10;border-radius:3px}
.af-studio-photo figcaption{margin-top:13px;color:#bfc8c9;font:13px/1.5 system-ui,sans-serif;overflow-wrap:anywhere}
.af-studio-image .af-studio-custom-inner{width:min(100%,1120px)}
.af-studio-imageText .af-studio-custom-inner{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;gap:clamp(22px,5vw,72px)}
.af-studio-imageText.af-studio-image-right .af-studio-photo{order:2}
.af-studio-imageText .af-studio-photo img{aspect-ratio:4/5;max-height:680px}
.af-studio-button .af-studio-copy{align-items:center;text-align:center}
.af-studio-button .af-studio-custom-inner{max-width:780px;text-align:center}
.af-studio-button .af-studio-copy p{max-width:60ch}
.af-studio-divider{min-height:0;padding:clamp(26px,5vw,58px) 20px;background:transparent;border:0}
.af-studio-divider .af-studio-custom-inner{display:flex;align-items:center;justify-content:center;gap:15px}
.af-studio-rule{display:block;width:min(100%,820px);border:0;border-top:1px solid #cda66f;margin:0}
.af-studio-rule-label{font:750 11px/1.5 system-ui,sans-serif;color:#dbb77e;letter-spacing:.17em;text-align:center;overflow-wrap:anywhere}
.af-studio-list ul,.af-studio-custom .af-studio-list{margin:0;padding:0;list-style:none;width:min(100%,800px)}
.af-studio-list li{border-bottom:1px solid #4e5b5c;padding:14px 0;color:#f4e7d1;font:clamp(15px,1.7vw,19px)/1.5 system-ui,sans-serif;overflow-wrap:anywhere}
.af-studio-list li::before{content:'◇';color:#c9a16b;margin-right:12px}
@media(max-width:700px){
 .af-studio-imageText .af-studio-custom-inner{grid-template-columns:minmax(0,1fr);gap:18px}
 .af-studio-imageText.af-studio-image-right .af-studio-photo{order:0}
 .af-studio-custom .af-studio-copy{gap:12px}
 .af-studio-photo img{max-height:420px}
 .af-studio-imageText .af-studio-photo img{aspect-ratio:4/3;max-height:420px}
 .af-studio-custom a{min-height:44px;align-items:center}
}

/* LEGO image crops: separate placement for narrow mobile layouts. */
.af-studio-photo img{object-position:var(--af-lego-crop-desktop,50% 50%)}
@media(max-width:700px){.af-studio-photo img{object-position:var(--af-lego-crop-mobile,50% 50%)}}


/* Premium LEGO advanced blocks / original Achtar Gold */
.af-studio-mosaic .af-studio-custom-inner{width:min(100%,1320px)}
.af-studio-mosaic-grid{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(5px,1.3vw,18px)}
.af-studio-mosaic-grid img{width:100%;height:clamp(190px,26vw,430px);object-fit:cover;display:block;border-radius:5px}
.af-studio-mosaic-grid img:first-child:nth-last-child(2),.af-studio-mosaic-grid img:nth-child(2):last-child{height:clamp(220px,36vw,490px)}
.af-studio-beforeAfter .af-studio-custom-inner{width:min(100%,1160px)}
.af-studio-comparator{position:relative;width:100%;aspect-ratio:16/9;min-height:200px;overflow:hidden;border:1px solid #846c50;border-radius:10px;background:#0d171a;--af-compare-position:50%}
.af-studio-comparator>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.af-studio-comparator-after{clip-path:inset(0 50% 0 0)}
.af-studio-comparator::after{position:absolute;z-index:2;content:'';left:var(--af-compare-position);top:0;bottom:0;width:2px;background:#f3d098;pointer-events:none;transform:translateX(-50%)}
.af-studio-comparator>input{position:absolute;inset:0;z-index:4;width:100%;height:100%;margin:0;cursor:ew-resize;appearance:none;background:transparent}
.af-studio-comparator>input::-webkit-slider-runnable-track{background:transparent}
.af-studio-comparator>input::-webkit-slider-thumb{appearance:none;width:30px;height:42px;border:2px solid #f3d098;border-radius:10px;background:#12222acf;box-shadow:0 0 0 1px #081217}
.af-studio-comparator>input::-moz-range-thumb{width:30px;height:42px;border:2px solid #f3d098;border-radius:10px;background:#12222acf}
.af-studio-compare-labels{position:absolute;inset:15px 18px auto;z-index:3;display:flex;justify-content:space-between;pointer-events:none;gap:15px;font:750 10px system-ui,sans-serif;letter-spacing:.1em}
.af-studio-compare-labels span{padding:6px 10px;border-radius:6px;background:#0a121bd9;color:#f3d098}
.af-studio-testimonial .af-studio-custom-inner{width:min(100%,880px);text-align:center;align-items:center}
.af-studio-testimonial .af-studio-copy{align-items:center;text-align:center}
.af-studio-testimonial .af-studio-copy p{font:italic clamp(23px,3.2vw,42px)/1.45 Georgia,serif;color:#f5f1e8}
.af-studio-testimonial .af-studio-copy h2{font-size:clamp(22px,3vw,36px);color:#dbad6b}
.af-studio-testimonial-role{color:#a7b6bb;font:750 11px/1.5 system-ui,sans-serif;letter-spacing:.1em}
.af-studio-faq .af-studio-custom-inner{width:min(100%,990px)}
.af-studio-faq-list{width:100%;border-top:1px solid #5c6565}
.af-studio-faq-list details{border-bottom:1px solid #5c6565}
.af-studio-faq-list summary{cursor:pointer;list-style:revert;padding:18px 0;color:#f5f1e8;font:normal clamp(17px,2vw,23px)/1.4 Georgia,serif}
.af-studio-faq-list summary:focus-visible{outline:2px solid #f3d098;outline-offset:3px}
.af-studio-faq-list details p{max-width:75ch;padding:0 0 20px;margin:0;color:#bac6c7}
@media(max-width:700px){
 .af-studio-mosaic-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 .af-studio-mosaic-grid img{height:clamp(145px,36vw,260px)}
 .af-studio-mosaic-grid img:last-child:nth-child(odd){grid-column:1/-1}
 .af-studio-mosaic-grid img:first-child:nth-last-child(2),.af-studio-mosaic-grid img:nth-child(2):last-child{height:clamp(145px,36vw,260px)}
 .af-studio-comparator{aspect-ratio:4/5}
 .af-studio-comparator>input::-webkit-slider-thumb{width:24px;height:38px}
}


/* ACHTARFOTO LAB: per-page hero composition. No change unless explicitly enabled.
   Only public marketing images: never private collection or client galleries. */
html[data-af-hero-crop="true"] .demo-hero-image,
html[data-af-hero-crop="true"] .dp-intro-visual img,
html[data-af-hero-crop="true"] .ds-hero-photo,
html[data-af-hero-crop="true"] .da-hero-image,
html[data-af-hero-crop="true"] .dc-hero-art img{
 object-position:var(--af-hero-position-desktop,50% 50%)!important;
}
@media(max-width:700px){
 html[data-af-hero-crop="true"] .demo-hero-image,
 html[data-af-hero-crop="true"] .dp-intro-visual img,
 html[data-af-hero-crop="true"] .ds-hero-photo,
 html[data-af-hero-crop="true"] .da-hero-image,
 html[data-af-hero-crop="true"] .dc-hero-art img{
  object-position:var(--af-hero-position-mobile,50% 50%)!important;
 }
}
