/* Scoped additions for production-media editorial portfolio. No Admin overrides. */
@font-face{font-family:'Achtar Gothic';src:url('/assets/fonts/LeagueSpartan-Bold.woff2') format('woff2');font-weight:700;font-display:swap}
:root{color-scheme:dark}
*{box-sizing:border-box}body{margin:0;background:#0d0d0d;color:#f0ede7;font:14px/1.5 Arial,Helvetica,sans-serif;overflow-x:hidden}
[hidden]{display:none!important}html{scroll-behavior:smooth}
.dp-footer{flex-wrap:wrap}
.dp-desktop-nav{gap:clamp(14px,2vw,35px)}
.dp-hero-back,.dp-chapter-image{position:relative}
.dp-photo-more,.ip-photo-more{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(12px,2.5vw,38px);margin-top:clamp(35px,6vw,90px);align-items:start}
.ip-photo-more .dp-photo{aspect-ratio:1.16}
.ip-photo-more .dp-photo:nth-child(5n+2){aspect-ratio:.75;grid-row:span 2}
.ip-photo-more .dp-photo:nth-child(7n+4){aspect-ratio:1.6}
.ip-load-more{display:block;margin:36px auto 0;padding:17px 35px;border:1px solid #827669;background:transparent;color:#f0ede7;font:11px/1.45 Arial,sans-serif;letter-spacing:.15em;cursor:pointer}
.ip-load-more:hover,.ip-load-more:focus-visible{border-color:#d3b89b;color:#d3b89b}
.ip-load-more[hidden]{display:none!important}
.ip-empty{font:italic clamp(18px,2vw,26px)/1.55 Georgia,serif;color:#b7aa9e;max-width:690px}
.ip-not-found{min-height:76svh;padding:190px 8vw 110px}
.ip-not-found h1{font:400 clamp(38px,5.5vw,85px)/1.08 Georgia,serif;letter-spacing:-.05em}
.ip-not-found a{display:inline-flex;min-height:45px;align-items:center;border-bottom:1px solid #aea18f}
.ip-missing-photo{display:grid;place-items:center;width:100%;height:100%;min-height:260px;color:#bdb0a2;letter-spacing:.2em;background:linear-gradient(135deg,#31261c,#151310)}
@media(max-width:900px){
 .ip-photo-more{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .ip-photo-more .dp-photo:nth-child(5n+2){grid-row:auto;aspect-ratio:.77}
 .dp-header{padding:0 22px}
 .dp-desktop-nav{display:none}
 .dp-menu-trigger{display:flex;align-items:center;gap:14px}
}
@media(max-width:500px){
 .ip-photo-more{grid-template-columns:repeat(2,minmax(0,1fr));gap:3px}
 .ip-load-more{width:100%;max-width:360px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}


/* The 8-photo editorial rhythm of the owner's APPROVED demo repeats for
   additional REAL published photos rather than degrading into a flat catalog.
   No changes to media ordering, filenames, image IDs or the lightbox. */
.ip-photo-more{
 display:grid;
 grid-template-columns:repeat(12,minmax(0,1fr));
 grid-auto-flow:row;
 column-gap:clamp(16px,4.7vw,85px);
 row-gap:clamp(29px,5.5vw,90px);
 align-items:start;
 margin-top:clamp(58px,10vw,160px);
}
.ip-photo-more .dp-photo{grid-column:span 5;min-width:0;margin:0;aspect-ratio:.88}
.ip-photo-more .dp-photo:nth-child(8n+1){
 grid-column:span 12;aspect-ratio:1.72;margin:0 0 clamp(24px,6vw,98px)}
.ip-photo-more .dp-photo:nth-child(8n+2){grid-column:span 5;aspect-ratio:.74}
.ip-photo-more .dp-photo:nth-child(8n+3){
 grid-column:span 7;aspect-ratio:1.09;margin-top:clamp(55px,10vw,170px)}
.ip-photo-more .dp-photo:nth-child(8n+4){
 grid-column:span 7;aspect-ratio:1.47}
.ip-photo-more .dp-photo:nth-child(8n+5){
 grid-column:span 5;aspect-ratio:.83;margin-top:clamp(35px,7vw,110px)}
.ip-photo-more .dp-photo:nth-child(8n+6){
 grid-column:span 5;aspect-ratio:.78}
.ip-photo-more .dp-photo:nth-child(8n+7){
 grid-column:span 7;aspect-ratio:1.52;margin-top:clamp(30px,7vw,120px)}
.ip-photo-more .dp-photo:nth-child(8n+8){
 grid-column:span 12;aspect-ratio:1.65;margin:clamp(40px,8vw,125px) 0}
@media(max-width:900px){
 .ip-photo-more{grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:clamp(7px,2vw,18px);row-gap:clamp(21px,6vw,48px)}
 .ip-photo-more .dp-photo,
 .ip-photo-more .dp-photo:nth-child(8n+2),
 .ip-photo-more .dp-photo:nth-child(8n+3),
 .ip-photo-more .dp-photo:nth-child(8n+4),
 .ip-photo-more .dp-photo:nth-child(8n+5),
 .ip-photo-more .dp-photo:nth-child(8n+6),
 .ip-photo-more .dp-photo:nth-child(8n+7){
  grid-column:span 1;aspect-ratio:.8;margin:0}
 .ip-photo-more .dp-photo:nth-child(8n+3),
 .ip-photo-more .dp-photo:nth-child(8n+7){margin-top:clamp(25px,7vw,60px)}
 .ip-photo-more .dp-photo:nth-child(8n+1),
 .ip-photo-more .dp-photo:nth-child(8n+8){grid-column:span 2;
  aspect-ratio:1.32;margin:24px 0}
}
@media(prefers-reduced-motion:reduce){
 .ip-photo-more .dp-photo img{animation:none!important}
}


/* Denser photo-first continuation: keep every published photograph,
   without the old staggered blank columns on small screens. */
.dp-detail.dp-photo-first .ip-photo-more{
 margin-top:clamp(15px,3vw,40px);column-gap:clamp(10px,2vw,32px);
 row-gap:clamp(12px,3vw,32px)
}
.dp-detail.dp-photo-first .ip-photo-more .dp-photo:nth-child(n){margin-top:0;margin-bottom:0}
.dp-detail.dp-photo-first .ip-load-more{margin-top:28px}
@media(max-width:700px){
 .dp-detail.dp-photo-first .ip-photo-more{
  grid-template-columns:repeat(2,minmax(0,1fr));column-gap:8px;row-gap:10px;
  margin-top:12px
 }
 .dp-detail.dp-photo-first .ip-photo-more .dp-photo:nth-child(n){
  grid-column:span 1;grid-row:auto;aspect-ratio:.88;margin:0
 }
 .dp-detail.dp-photo-first .ip-photo-more .dp-photo:nth-child(6n+1){
  grid-column:span 2;aspect-ratio:1.36
 }
 .dp-detail.dp-photo-first .ip-load-more{margin:22px auto 0;min-height:48px}
}


/* AchtarFoto — uniform portfolio image tiles (2026-11-06) */
/* Only public portfolio detail galleries. No media transforms, Admin or client galleries. */
.dp-detail .dp-exhibition{
 display:grid;
 grid-template-columns:repeat(3,minmax(0,1fr));
 gap:clamp(10px,1.35vw,22px);
 align-items:start
}
/* Flatten editorial wrappers so EVERY photograph participates in the same grid.
   The original photograph continues to open un-cropped in the lightbox. */
.dp-detail .dp-exhibition > :is(.dp-photo-wide,.dp-photo-duo,.dp-photo-aside,.dp-photo-finale,.ip-photo-more){
 display:contents!important
}
.dp-detail .dp-exhibition > .dp-photo-editorial{display:none}
.dp-detail.dp-photo-first .dp-exhibition .dp-photo,
.dp-detail .dp-exhibition .dp-photo{
 width:100%!important;max-width:none!important;min-width:0;
 height:auto;margin:0!important;padding:0!important;
 aspect-ratio:4/5!important;grid-column:auto!important;grid-row:auto!important;
 align-self:start
}
.dp-detail .dp-exhibition .dp-photo button{display:block;width:100%;height:100%}
.dp-detail .dp-exhibition .dp-photo img{
 display:block;width:100%;height:100%;object-fit:cover;object-position:center
}
.dp-detail .dp-exhibition .dp-photo figcaption{display:none}
.dp-detail .dp-exhibition > :is(.ip-load-more,.ip-empty){grid-column:1/-1}
@media(max-width:1099px){
 .dp-detail .dp-exhibition{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
 .dp-detail .dp-exhibition{column-gap:8px;row-gap:10px}
}

/* PREVIEW ONLY 2026-11-09: gallery at the photograph's natural aspect ratio.
   Scope: five public category galleries (.dp-photo-first), never the Home
   collage, album covers, Admin, customer galleries or the fullscreen viewer.
   The source image's own dimensions determine its displayed height. */
.dp-detail.dp-photo-first .dp-category-photo-grid{
 display:block!important;
 columns:3;
 column-gap:clamp(12px,1.7vw,24px);
 align-items:initial;
}
.dp-detail.dp-photo-first .dp-category-photo-grid .dp-photo{
 display:inline-block!important;
 vertical-align:top;
 width:100%!important;
 max-width:100%!important;
 min-width:0;
 height:auto!important;
 aspect-ratio:auto!important;
 margin:0 0 clamp(12px,1.7vw,24px)!important;
 padding:0!important;
 break-inside:avoid;
 -webkit-column-break-inside:avoid;
}
.dp-detail.dp-photo-first .dp-category-photo-grid .dp-photo button{
 display:block;
 width:100%;
 height:auto!important;
 padding:0;
}
.dp-detail.dp-photo-first .dp-category-photo-grid .dp-photo img{
 display:block;
 width:100%!important;
 height:auto!important;
 aspect-ratio:auto!important;
 max-width:100%;
 object-fit:contain!important;
 object-position:center;
}
@media(max-width:1050px){
 .dp-detail.dp-photo-first .dp-category-photo-grid{columns:2}
}
@media(max-width:600px){
 .dp-detail.dp-photo-first .dp-category-photo-grid{columns:1;column-gap:0}
 .dp-detail.dp-photo-first .dp-category-photo-grid .dp-photo{
  margin-bottom:12px!important
 }
}
