/* AchtarFoto — editorial skin over the real R2-powered collections.
   Existing selection, email registration, download, delivery and privacy logic stay intact. */
:root{--ig-paper:#f0ece5;--ig-accent:#d3b99a;--ig-muted:#c2b6a6}
.collection-view{background:#0d0b0a;color:var(--ig-paper)}
.collection-client-header{min-height:74px;background:#0c0b0ae8;border-color:#5b50423e}
.collection-client-brand{font-size:clamp(18px,2vw,23px);letter-spacing:-.035em}
.collection-client-shell{max-width:1720px;padding:0 clamp(16px,5vw,87px)}
.collection-client-hero{position:relative;isolation:isolate;min-height:clamp(410px,69svh,750px);padding:clamp(85px,15vw,230px) clamp(23px,5.6vw,105px) clamp(55px,7vw,115px);justify-content:flex-end;overflow:hidden;border-bottom:0;background:radial-gradient(ellipse at 70% 38%,#473526,#0c0a09 70%);margin:0 calc(-1 * clamp(16px,5vw,87px)) clamp(24px,4vw,60px)}
.collection-client-hero-cover{position:absolute;inset:0;z-index:-2}
.collection-client-hero-cover img{width:100%;height:100%;display:block;object-fit:cover;object-position:center 43%;filter:brightness(.60) saturate(.73)}
.collection-client-hero::after{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(0deg,#080706e8,transparent 73%),linear-gradient(90deg,#080706b5,transparent 80%);pointer-events:none}
.collection-client-hero h1{font:400 clamp(41px,5.8vw,96px)/1.025 Georgia,serif;letter-spacing:-.06em;max-width:1100px;margin:18px 0 30px;text-wrap:balance}
.collection-client-kicker{color:#e4cba9!important;font-size:10px!important;letter-spacing:.2em!important}
.collection-client-meta{color:#e6dcd1;letter-spacing:.12em;font-size:10px}
.collection-client-meta span{border-left:1px solid #e5dbce57;padding-left:17px}
.collection-client-meta span:first-child{border-left:0;padding-left:0}
.collection-client-toolbar{top:74px;padding:13px 0 17px;gap:11px;border-bottom:1px solid #7567565a;background:#0d0b0aee}
.collection-client-toolbar button{border-color:#685a4e;color:#e3d9cb;background:#14110f;transition:border-color .25s,background .25s}
.collection-client-toolbar button:hover{border-color:#e0c7a3}
.collection-client-toolbar button.active{background:#e9dac6;color:#15110e}
.collection-client-selection{color:#d9b788}
.collection-client-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(3px,.7vw,10px);padding:20px 0 95px;grid-auto-flow:dense}
.collection-client-card{background:#1b1815;aspect-ratio:1/1.16}
.collection-client-card:nth-child(11n+2),.collection-client-card:nth-child(11n+8){aspect-ratio:1/1.42}
.collection-client-card:nth-child(11n+5){aspect-ratio:1.3/1}
.collection-client-card img{transition:transform .7s ease,filter .5s;filter:brightness(.87) saturate(.89)}
.collection-client-card:hover img,.collection-client-card:focus-within img{filter:brightness(1) saturate(.97);transform:scale(1.028)}
.collection-favorite{width:44px;height:44px;right:12px;top:12px;border-color:#f6e4d4a9;background:#090807a6;color:#fff}
.collection-favorite.selected{background:#e8d4bd;color:#16110c;border-color:#e8d4bd}
.collection-card-caption{font-size:9px;letter-spacing:.08em}
.collection-more{border-color:#ad9275;letter-spacing:.17em;padding:0 40px}
.collection-submit-bar{bottom:max(18px,env(safe-area-inset-bottom));background:#eee4d6;color:#18120d;border:1px solid #d6c1a7;box-shadow:0 16px 45px #0009}
.collection-submit-bar button{background:#17120e}
.collection-client-dialog{background:#080807;color:#f2eadd}
.collection-client-dialog::backdrop{background:#050404ee;backdrop-filter:blur(8px)}
.collection-lightbox-image img{object-fit:contain}
.collection-client-status{background:#e9dbca;color:#251912}
.af-public-gallery{background:#0d0b0a;color:#f1ece5}
.af-public-gallery-hero{min-height:clamp(410px,51svh,650px);align-items:center;border-color:#7566536a}
.af-public-gallery-hero h1{font:400 clamp(46px,6.1vw,96px)/1.02 Georgia,serif;letter-spacing:-.066em;max-width:950px}
.af-public-gallery-hero p{color:#c6b9a9;font-size:clamp(17px,1.5vw,22px)}
.af-public-gallery-aside{border-color:#c5b09550}
.af-public-gallery-tools{background:#0d0b0ae9}
.af-public-gallery-tools button.is-active{background:#eadbc7;color:#120e0b;border-color:#eadbc7}
.af-collection-home-grid{gap:clamp(14px,2.5vw,45px)}
.af-collection-home-card figure{overflow:hidden;background:#171410}
.af-collection-home-card figure img{transition:transform .7s cubic-bezier(.2,.65,.2,1),filter .5s;filter:brightness(.85)}
.af-collection-home-card:hover figure img,.af-collection-home-card:focus-visible figure img{transform:scale(1.03);filter:brightness(1)}
.af-collection-home-card h2{font-family:Georgia,serif;font-weight:400;letter-spacing:-.047em}
.af-public-gallery-outro{border-color:#705e4c76}
@media(max-width:900px){
 .collection-client-hero{min-height:clamp(380px,62svh,600px);padding:90px 25px 55px}
 .collection-client-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:670px){
 .collection-client-header{min-height:65px}
 .collection-client-hero{min-height:450px;margin-left:-16px;margin-right:-16px;padding:80px 22px 54px}
 .collection-client-hero h1{font-size:clamp(43px,10vw,60px)}
 .collection-client-hero-cover img{object-position:55% 42%}
 .collection-client-toolbar{position:sticky;top:65px;flex-wrap:wrap}
 .collection-client-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;padding:14px 0 85px}
 .collection-client-card{aspect-ratio:1/1.16}
 .collection-client-card:nth-child(11n+2){aspect-ratio:1/1.4}
 .collection-client-card:nth-child(11n+5){aspect-ratio:1/1}
 .collection-client-meta{gap:11px;font-size:9px}
 .collection-submit-bar{padding:10px 13px;gap:9px}
 .collection-client-header span{max-width:45%;text-align:right}
 .af-public-gallery-hero{min-height:360px}
 .af-public-gallery-hero h1{font-size:clamp(39px,9vw,57px)}
}
@media(prefers-reduced-motion:reduce){
 .collection-client-card img,.af-collection-home-card figure img{transition:none!important;transform:none!important}
}


/* CLIENT GALLERY PARITY: reproduce the approved demo's elegant full-bleed
   cinematic cover and asymmetrical photographic grid with real collection
   images. No changes to access, email, favorites, limits or downloads. */
.collection-view{--cg-ink:#0b0a09;--cg-paper:#f2eee7;--cg-muted:#b7b0a9;--cg-gold:#d0b38a;
 background:var(--cg-ink);color:var(--cg-paper)}
.collection-view .collection-client-header{
 position:absolute;top:0;left:0;right:0;z-index:20;height:82px;
 border-color:transparent;
 background:linear-gradient(#0a090980,transparent);backdrop-filter:none;
}
.collection-view .collection-client-brand{font:700 clamp(18px,1.65vw,24px)/1 'Achtar Gothic',Arial,sans-serif;
 letter-spacing:-.025em}
.collection-view .collection-client-shell{max-width:1780px;padding:0 clamp(18px,4.2vw,72px)}
.collection-view .collection-client-hero{
 position:relative;min-height:565px;height:min(96svh,1050px);
 margin:0 calc(-1 * clamp(18px,4.2vw,72px)) 0;
 padding:140px clamp(24px,8vw,135px) clamp(85px,11svh,150px);
 justify-content:flex-end;border-bottom:0;
 background:radial-gradient(ellipse at 60% 35%,#5c372c,#15100f 55%,#080808 100%);
}
.collection-view .collection-client-hero-cover img{
 object-position:50% 43%;filter:brightness(.78) saturate(.74);
 animation:cg-owner-cover 1.35s ease-out both;
}
.collection-view .collection-client-hero::after{
 background:linear-gradient(90deg,#080808d1,#08080873 47%,#08080810 87%),
 linear-gradient(180deg,#0606063b,transparent 32%,#08080861 87%,#0808088c);
}
.collection-view .collection-client-kicker{font:10px/1.5 Arial,sans-serif;
 letter-spacing:.19em;color:#eee1cf!important;margin:0 0 24px}
.collection-view .collection-client-hero h1{
 font:400 clamp(52px,7vw,112px)/.99 Georgia,serif;
 letter-spacing:-.063em;margin:0 0 25px;max-width:1000px;text-wrap:balance;
}
.collection-view .collection-client-meta{font:10px/1.6 Arial,sans-serif;
 color:#e6ddd1;letter-spacing:.16em;gap:24px}
.collection-view .collection-client-toolbar{
 position:sticky;top:0;padding:23px 0 21px;margin:clamp(65px,8vw,125px) 0 27px;
 min-height:92px;background:#0b0a09ed;
 border-top:1px solid #49413c;border-bottom:1px solid #49413c;
 gap:14px;z-index:18;overflow:visible;flex-wrap:wrap;
}
.collection-view .collection-client-toolbar [data-set-tabs]{
 flex-wrap:wrap;min-width:0;max-width:100%;gap:9px}
.collection-view .collection-client-toolbar button{
 font:10px/1.35 Arial,sans-serif;letter-spacing:.14em;
 min-height:44px;padding:11px 16px;border-color:#514a43;
 color:#c8bcb0;background:#15120f}
.collection-view .collection-client-toolbar button.active{
 border-color:#ddd6cc;color:#fff;background:#282320}
.collection-view .collection-client-grid{
 display:grid;grid-template-columns:repeat(12,minmax(0,1fr));
 grid-auto-flow:row;gap:clamp(8px,1vw,17px);
 align-items:start;padding:10px 0 clamp(75px,11vw,160px);
}
.collection-view .collection-client-card,
.collection-view .collection-client-card:nth-child(n){
 grid-column:span 4;min-width:0;aspect-ratio:1.22;
 background:#1c1a18;
}
.collection-view .collection-client-card:nth-child(5n+1){
 grid-column:span 8;aspect-ratio:1.9}
.collection-view .collection-client-card:nth-child(5n+2){
 aspect-ratio:.8}
.collection-view .collection-client-card:nth-child(7n+3){
 aspect-ratio:1.45}
.collection-view .collection-client-card:nth-child(7n+4){
 aspect-ratio:.8;margin-top:clamp(8px,2.3vw,40px)}
.collection-view .collection-client-card img{
 filter:brightness(.89) saturate(.92);
 transition:transform .55s ease,filter .35s}
.collection-view .collection-client-card:hover img,
.collection-view .collection-client-card:focus-within img{
 transform:scale(1.025);filter:brightness(1)}
.collection-view .collection-favorite{
 width:46px;height:46px;top:13px;right:13px;
 border-color:#d9d2c35a;background:#100e0eb5;
 backdrop-filter:blur(4px)}
.collection-view .collection-favorite.selected{background:#f1e2cc;
 color:#20150e;border-color:#f1e2cc}
.collection-view .collection-card-caption{
 font:9px/1.4 Arial,sans-serif;letter-spacing:.13em;
 color:#f6f0e9;background:linear-gradient(transparent,#000a);
 padding:24px 12px 12px}
.collection-view .collection-more{
 min-height:48px;padding:12px 28px;border-color:#aa9d8d;
 letter-spacing:.12em}
.collection-view .collection-client-dialog::backdrop{background:#080807ee;
 backdrop-filter:blur(8px)}
.collection-view .collection-submit-bar{background:#e4d9c8;color:#0b0908;
 border-color:#e4d9c8}
.collection-view .collection-submit-bar button{background:#16120e;color:#f2e9dd}
.collection-view .collection-email-dialog{
 background:#13100e;color:#eee1d0;border-color:#544639}
@keyframes cg-owner-cover{
 from{opacity:.3;transform:scale(1.035)}
 to{opacity:1;transform:scale(1)}
}
@media(max-width:1020px){
 .collection-view .collection-client-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
 .collection-view .collection-client-card,
 .collection-view .collection-client-card:nth-child(n){grid-column:span 3}
 .collection-view .collection-client-card:nth-child(5n+1){grid-column:span 6}
}
@media(max-width:700px){
 .collection-view .collection-client-header{height:70px;min-height:70px;
 padding:0 19px}
 .collection-view .collection-client-hero{
 min-height:540px;height:90svh;
 margin:0 -12px 0;padding:110px 22px 115px;
 justify-content:flex-end;
 }
 .collection-view .collection-client-hero-cover img{object-position:60% 50%}
 .collection-view .collection-client-hero h1{
 font-size:clamp(42px,11vw,66px);
 letter-spacing:-.058em;margin:17px 0;line-height:1.02}
 .collection-view .collection-client-hero::after{
 background:linear-gradient(0deg,#080808db 0,#08080885 50%,#08080823 86%),
 linear-gradient(90deg,#08080855,transparent)}
 .collection-view .collection-client-hero .collection-client-kicker{margin-bottom:12px}
 .collection-view .collection-client-shell{padding:0 12px}
 .collection-view .collection-client-toolbar{
 top:0;display:flex;align-items:center;flex-wrap:wrap;
 margin:60px 0 18px;padding:19px 0;gap:12px}
 .collection-view .collection-client-toolbar [data-set-tabs]{display:flex;
 width:100%;max-width:100%;overflow-x:auto;flex-wrap:nowrap;gap:6px}
 .collection-view .collection-client-toolbar button{
 font-size:9px;flex:none;padding:12px 9px;min-height:44px}
 .collection-view .collection-client-selection{margin-left:0}
 .collection-view .collection-client-switch{margin-left:auto}
 .collection-view .collection-client-grid{
 grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .collection-view .collection-client-card,
 .collection-view .collection-client-card:nth-child(n){
 grid-column:span 1;aspect-ratio:.76;margin-top:0}
 .collection-view .collection-client-card:nth-child(5n+1){
 grid-column:span 2;aspect-ratio:1.35}
 .collection-view .collection-client-card:nth-child(5n+4){margin-top:36px}
 .collection-view .collection-favorite{
 width:41px;height:41px;top:7px;right:7px;font-size:23px}
 .collection-view .collection-card-caption{font-size:8px;padding:18px 7px 8px}
}
@media(prefers-reduced-motion:reduce){
 .collection-view .collection-client-hero-cover img{animation:none}
 .collection-view .collection-client-card img{transition:none}
}

/* Approved Client Gallery parity: narrative, image-aware photographic rhythm.
   Only the presentation changes; the access, selections and download controls stay intact. */
.collection-view .collection-client-hero{display:block;padding:0;isolation:isolate}
.collection-view .collection-client-hero-copy{
 position:absolute;z-index:2;left:clamp(24px,8vw,135px);right:clamp(24px,8vw,135px);
 top:53%;transform:translateY(-50%);max-width:720px;
 animation:cg-owner-copy 1s ease both;
}
.collection-view .collection-client-hero-copy h1{margin:24px 0 24px}
.collection-view .collection-client-hero-subtitle{
 margin:0 0 38px;color:#e1d8cd;
 font:italic clamp(18px,1.6vw,22px)/1.45 Georgia,serif;
}
.collection-view .collection-client-open-link{
 display:inline-flex;align-items:center;justify-content:space-between;gap:38px;
 min-height:46px;border-bottom:1px solid #e3d7c9;padding:12px 0;
 font:11px/1.5 Arial,sans-serif;letter-spacing:.17em;color:#eee7de;
}
.collection-view .collection-client-open-link span{font:19px/1 Arial,sans-serif}
.collection-view .collection-client-open-link:hover{color:#e2bf8d}
.collection-view .collection-hero-marker{
 position:absolute;z-index:2;top:112px;left:clamp(24px,4.2vw,72px);
 right:clamp(24px,4.2vw,72px);display:flex;justify-content:space-between;gap:15px;
 font:10px/1.5 Arial,sans-serif;letter-spacing:.18em;color:#e3d5c4;
}
.collection-view .collection-client-hero-foot{
 position:absolute;z-index:2;bottom:clamp(22px,4vw,52px);
 left:clamp(24px,4.2vw,72px);right:clamp(24px,4.2vw,72px);
 display:flex;justify-content:space-between;gap:16px;
 font:9px/1.4 Arial,sans-serif;letter-spacing:.18em;color:#e6e0d5;
}
.collection-view .collection-client-intro{
 max-width:1700px;min-height:470px;
 display:grid;grid-template-columns:minmax(120px,.48fr) minmax(0,1.4fr) minmax(110px,.32fr);
 gap:clamp(24px,6vw,100px);align-items:start;
 padding:clamp(95px,10vw,175px) clamp(22px,6vw,105px) clamp(100px,10vw,170px);
}
.collection-view .collection-intro-kicker{
 color:#b8b1a6;font:10px/1.5 Arial,sans-serif;letter-spacing:.19em;
}
.collection-view .collection-client-intro h2{
 font:400 clamp(34px,4vw,66px)/1.05 Georgia,serif;letter-spacing:-.052em;
 margin:0 0 25px;max-width:700px;
}
.collection-view .collection-client-intro p{
 font:italic clamp(16px,1.55vw,20px)/1.55 Georgia,serif;color:#c5bfb7;
 max-width:570px;margin:0 0 28px;
}
.collection-view .collection-client-intro small{font:10px/1.5 Arial,sans-serif;letter-spacing:.13em;color:#a89e93}
.collection-view .collection-intro-stats{
 display:grid;gap:8px;border-left:1px solid #49433e;padding-left:25px;
}
.collection-view .collection-intro-stats strong{font:400 33px/1 Georgia,serif}
.collection-view .collection-intro-stats strong:nth-of-type(2){margin-top:24px}
.collection-view .collection-intro-stats span{
 font:9px/1.4 Arial,sans-serif;letter-spacing:.13em;color:#b5aca4;
}
.collection-view .collection-gallery-intro{
 display:flex;justify-content:space-between;align-items:end;gap:30px;
 border-bottom:1px solid #49413c;padding:0 0 36px;scroll-margin-top:30px;
}
.collection-view .collection-gallery-intro h2{
 font:400 clamp(40px,5.5vw,82px)/1.03 Georgia,serif;
 letter-spacing:-.06em;margin:20px 0 18px;
}
.collection-view .collection-gallery-intro p{
 font:italic clamp(16px,1.25vw,19px)/1.5 Georgia,serif;
 color:#bfb7ac;max-width:590px;margin:0;
}
.collection-view .collection-gallery-counter{
 display:flex;flex-direction:column;align-items:end;gap:4px;
}
.collection-view .collection-gallery-counter strong{font:400 clamp(43px,6vw,75px)/1 Georgia,serif}
.collection-view .collection-gallery-counter span{
 font:10px/1.4 Arial,sans-serif;letter-spacing:.15em;color:#b3aaa0;
}
.collection-view .collection-client-toolbar{margin:0 0 27px}
.collection-view .collection-client-grid .collection-client-card,
.collection-view .collection-client-grid .collection-client-card:nth-child(n){
 grid-column:span 4;aspect-ratio:1.22;margin-top:0;
}
.collection-view .collection-client-grid .collection-client-card.cg-photo-wide{
 grid-column:span 8;aspect-ratio:1.9;
}
.collection-view .collection-client-grid .collection-client-card.cg-photo-portrait{aspect-ratio:.8}
.collection-view .collection-client-grid .collection-client-card.cg-photo-landscape{aspect-ratio:1.45}
.collection-view .collection-client-grid .collection-client-card:nth-child(5n+4):not(.cg-photo-wide){
 margin-top:clamp(8px,2.3vw,40px);
}
.collection-view .collection-client-footer{
 min-height:90px;display:flex;align-items:center;justify-content:space-between;
 gap:18px;border-top:1px solid #312d29;padding:23px 0;
 font:10px/1.5 Arial,sans-serif;letter-spacing:.12em;color:#aaa49b;
}
.collection-view .collection-client-footer a{color:#f1e9dc}
@keyframes cg-owner-copy{
 from{opacity:0;transform:translateY(calc(-50% + 13px))}
 to{opacity:1;transform:translateY(-50%)}
}
@media(max-width:1020px){
 .collection-view .collection-client-intro{grid-template-columns:1fr 2fr}
 .collection-view .collection-intro-stats{
  grid-column:2;grid-row:2;display:flex;align-items:baseline;gap:16px;
  border-left:0;padding-left:0;
 }
 .collection-view .collection-intro-stats strong:nth-of-type(2){margin-top:0}
 .collection-view .collection-client-grid .collection-client-card,
 .collection-view .collection-client-grid .collection-client-card:nth-child(n){grid-column:span 3}
 .collection-view .collection-client-grid .collection-client-card.cg-photo-wide{grid-column:span 6}
}
@media(max-width:700px){
 .collection-view .collection-hero-marker{
  top:92px;left:22px;right:22px;font-size:9px;
 }
 .collection-view .collection-hero-marker span:last-child{display:none}
 .collection-view .collection-client-hero-copy{
  top:auto;bottom:111px;left:22px;right:22px;transform:none;
  animation:none;
 }
 .collection-view .collection-client-hero-copy h1{margin:17px 0;font-size:clamp(42px,11vw,66px)}
 .collection-view .collection-client-hero-subtitle{font-size:17px;margin-bottom:26px}
 .collection-view .collection-client-hero-foot{
  bottom:20px;left:22px;right:22px;flex-direction:column;gap:7px;font-size:8px;
 }
 .collection-view .collection-client-intro{
  min-height:0;grid-template-columns:1fr;gap:20px;padding:95px 10px 110px;
 }
 .collection-view .collection-intro-stats{grid-column:auto;grid-row:auto;padding:0}
 .collection-view .collection-gallery-intro{
  flex-direction:column;align-items:start;padding:0 0 24px;
 }
 .collection-view .collection-gallery-counter{
  flex-direction:row;align-items:baseline;gap:12px;
 }
 .collection-view .collection-client-toolbar{margin:0 0 18px}
 .collection-view .collection-client-grid .collection-client-card,
 .collection-view .collection-client-grid .collection-client-card:nth-child(n){
  grid-column:span 1;aspect-ratio:.76;margin-top:0;
 }
 .collection-view .collection-client-grid .collection-client-card.cg-photo-wide{
  grid-column:span 2;aspect-ratio:1.35;
 }
 .collection-view .collection-client-grid .collection-client-card:nth-child(5n+4):not(.cg-photo-wide){
  margin-top:36px;
 }
 .collection-view .collection-client-footer{flex-wrap:wrap;font-size:9px}
 .collection-view .collection-client-footer span:nth-child(2){display:none}
}
@media(prefers-reduced-motion:reduce){.collection-view .collection-client-hero-copy{animation:none}}

/* DLVRD-informed finishing details — identity and approved demo layout
   remain unchanged. No changes to client permissions, email or downloads. */
.collection-view .collection-client-open-link,
.collection-view .collection-client-toolbar button,
.collection-view .collection-client-switch,
.collection-view .collection-favorite,
.collection-view .collection-more{
 -webkit-tap-highlight-color:transparent;
}
.collection-view .collection-client-open-link:focus-visible,
.collection-view .collection-client-toolbar button:focus-visible,
.collection-view .collection-client-switch:focus-visible,
.collection-view .collection-favorite:focus-visible,
.collection-view .collection-more:focus-visible,
.collection-view .collection-client-footer a:focus-visible{
 outline:2px solid #f1e7d6;outline-offset:4px;
}
.collection-view .collection-client-grid .collection-client-card img{
 object-position:center;
}
.collection-view .collection-client-grid .collection-client-card.cg-photo-portrait img{
 object-position:50% 42%;
}
.collection-view .collection-client-toolbar [data-set-tabs]{
 overscroll-behavior-x:contain;
 scrollbar-width:thin;
}
.collection-view .collection-gallery-intro{scroll-margin-top:28px}
@media(max-width:700px){
 .collection-view .collection-client-toolbar [data-set-tabs]{
  -webkit-overflow-scrolling:touch;
  scroll-snap-type:x proximity;
 }
 .collection-view .collection-client-toolbar [data-set-tabs] button{scroll-snap-align:start}
 .collection-view .collection-favorite{min-height:44px;min-width:44px}
 .collection-view .collection-client-hero-copy{max-width:calc(100% - 44px)}
 .collection-view .collection-client-hero-copy h1{overflow-wrap:break-word}
 .collection-view .collection-client-footer{padding-bottom:max(32px,env(safe-area-inset-bottom))}
}
@media(prefers-reduced-motion:reduce){
 .collection-view .collection-client-open-link,
 .collection-view .collection-client-grid .collection-client-card img{transition:none!important}
 .collection-view .collection-client-toolbar [data-set-tabs]{scroll-snap-type:none}
}

/* Restored approved thumbnail filmstrip inside the enlarged-photo viewer.
   The filmstrip is not the site's page scrollbar. */
.collection-view .collection-client-dialog .collection-lightbox{
 grid-template-rows:auto minmax(0,1fr) auto auto;
}
.collection-view .collection-lightbox-film{
 display:flex;align-items:center;justify-content:safe center;gap:8px;
 min-height:85px;min-width:0;max-width:100%;width:100%;
 padding:10px clamp(13px,3vw,44px) calc(12px + env(safe-area-inset-bottom));
 background:#11100f;border-top:1px solid #28231f;
 overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;
 scrollbar-width:thin;scrollbar-color:#85705c #11100f;
 -webkit-overflow-scrolling:touch;touch-action:pan-x;
}
.collection-view .collection-lightbox-film button{
 position:relative;flex:0 0 54px;width:54px;height:54px;
 padding:0;border:2px solid transparent;background:#24211f;
 opacity:.55;cursor:pointer;transition:opacity .24s,border-color .24s,transform .32s cubic-bezier(.2,.7,.2,1);
}
.collection-view .collection-lightbox-film button.is-current,
.collection-view .collection-lightbox-film button:focus-visible{
 opacity:1;border-color:#e7d8be;outline-offset:2px;transform:translateY(-3px) scale(1.06);
}
.collection-view .collection-lightbox-film img{
 display:block;width:100%;height:100%;object-fit:cover;
}
@media(max-width:700px){
 .collection-view .collection-lightbox-film{
  min-height:73px;gap:6px;
  padding:8px 12px calc(8px + env(safe-area-inset-bottom));
 }
 .collection-view .collection-lightbox-film button{
  flex-basis:47px;width:47px;height:47px;
 }
}
@media(prefers-reduced-motion:reduce){
 .collection-view .collection-lightbox-film button{transition:none}
}

/* Only thumbnails with a saved face focal crop are zoomed. Full image,
   favorite selection and delivery proofs stay at their original resolution. */
.collection-view .collection-client-grid .collection-client-card img{
 transform:scale(var(--crop-zoom,1));
 transform-origin:var(--crop-origin-x,50%) var(--crop-origin-y,30%);
}
.collection-view .collection-client-grid .collection-client-card:hover img,
.collection-view .collection-client-grid .collection-client-card:focus-within img{
 transform:scale(calc(var(--crop-zoom,1) * 1.025));
}
@media(prefers-reduced-motion:reduce){
 .collection-view .collection-client-grid .collection-client-card img,
 .collection-view .collection-client-grid .collection-client-card:hover img,
 .collection-view .collection-client-grid .collection-client-card:focus-within img{
  transform:scale(var(--crop-zoom,1));
 }
}


/* The collection document did not reset the browser's 8px body margin. */
body{margin:0}

/* AchtarFoto client gallery — photographic, full-width rhythm (Oct 2026).
   Visual only: the existing real R2 photos, favorites, delivery, lightbox,
   download actions, editorial typography and private access remain untouched.
   Avoid filler assets, duplicate photographs or artificial blank grid cells. */
.collection-view{
 width:100%;
 max-width:none;
}
.collection-view .collection-client-shell{
 width:100%;
 max-width:none;
 box-sizing:border-box;
 padding:0 clamp(12px,2vw,36px);
 margin:0;
}
.collection-view .collection-client-hero{
 box-sizing:border-box;
 width:calc(100% + 2 * clamp(12px,2vw,36px));
 max-width:none;
 margin:0 calc(-1 * clamp(12px,2vw,36px));
 min-height:clamp(460px,72svh,820px);
 height:clamp(460px,78svh,880px);
}
.collection-view .collection-client-hero-cover img{
 width:100%;height:100%;object-fit:cover;
}
.collection-view .collection-hero-marker,
.collection-view .collection-client-hero-foot{
 left:clamp(20px,4.2vw,80px);
 right:clamp(20px,4.2vw,80px);
}
.collection-view .collection-client-hero-copy{
 left:clamp(24px,6vw,115px);
 right:clamp(24px,6vw,115px);
}
.collection-view .collection-client-intro{
 box-sizing:border-box;
 width:100%;max-width:none;min-height:0;
 padding:clamp(30px,4.5vw,76px) clamp(14px,2.4vw,44px) clamp(28px,3.5vw,60px);
 gap:clamp(18px,3vw,56px);
 align-items:start;
}
.collection-view .collection-client-intro h2{margin:0 0 12px}
.collection-view .collection-client-intro p{margin:0 0 12px}
.collection-view .collection-intro-stats{gap:6px}
.collection-view .collection-intro-stats strong:nth-of-type(2){margin-top:10px}
.collection-view .collection-gallery-intro{
 padding:0 0 clamp(14px,2vw,26px);
 gap:clamp(12px,2vw,30px);
}
.collection-view .collection-gallery-intro h2{
 margin:8px 0 10px;
 font-size:clamp(36px,5vw,72px);
}
.collection-view .collection-client-toolbar{
 min-height:0;
 margin:0 0 12px;
 padding:12px 0;
}
.collection-view .collection-client-grid{
 display:grid;
 grid-template-columns:repeat(12,minmax(0,1fr));
 grid-auto-rows:clamp(235px,27vw,440px);
 grid-auto-flow:row;
 align-items:stretch;
 gap:clamp(5px,.55vw,10px);
 padding:0 0 clamp(12px,2.2vw,38px);
}
.collection-view .collection-client-grid .collection-client-card,
.collection-view .collection-client-grid .collection-client-card:nth-child(n),
.collection-view .collection-client-grid .collection-client-card:is(.cg-photo-wide,.cg-photo-portrait,.cg-photo-landscape,.cg-photo-square){
 grid-column:span 4;
 aspect-ratio:auto;
 width:100%;
 height:100%;
 min-height:0;
 margin-top:0;
}
/* Desktop-only last-row expansion: do not generate phantom implicit
   grid columns on mobile/tablet (e.g. at 28 photos, nth-child(3n+1)). */
@media(min-width:1021px){
 .collection-view .collection-client-grid .collection-client-card:nth-last-child(2):nth-child(3n + 1),
 .collection-view .collection-client-grid .collection-client-card:last-child:nth-child(3n + 2){
  grid-column:span 6;
 }
 .collection-view .collection-client-grid .collection-client-card:last-child:nth-child(3n + 1){
  grid-column:span 12;
 }
}
/* The former editorial offset on every fourth photo was 2.3vw;
   remove it at equal or higher specificity for aligned image rows. */
.collection-view .collection-client-grid .collection-client-card:nth-child(5n+4):not(.cg-photo-wide){
 margin-top:0;
}
.collection-view .collection-client-grid .collection-client-card img{
 display:block;width:100%;height:100%;object-fit:cover;
}
.collection-view .collection-more{margin:0 auto clamp(16px,3vw,48px)}
.collection-view .collection-client-footer{min-height:0;padding:18px 0}

@media(min-width:701px) and (max-width:1020px){
 .collection-view .collection-client-intro{
  grid-template-columns:minmax(90px,.4fr) minmax(0,1.5fr) minmax(90px,.38fr);
 }
 .collection-view .collection-intro-stats{
  display:grid;grid-column:auto;grid-row:auto;
  border-left:1px solid #49433e;padding-left:14px;
 }
 .collection-view .collection-client-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:clamp(220px,37vw,370px)}
 .collection-view .collection-client-grid .collection-client-card,
 .collection-view .collection-client-grid .collection-client-card:nth-child(n),
 .collection-view .collection-client-grid .collection-client-card:is(.cg-photo-wide,.cg-photo-portrait,.cg-photo-landscape,.cg-photo-square){
  grid-column:auto;
 }
 .collection-view .collection-client-grid .collection-client-card:last-child:nth-child(odd){
  grid-column:1/-1;
 }
}
@media(max-width:700px){
 .collection-view .collection-client-shell{padding:0 10px}
 .collection-view .collection-client-hero{
  width:calc(100% + 20px);margin:0 -10px;
  min-height:450px;height:clamp(450px,72svh,720px);
 }
 .collection-view .collection-client-intro{
  min-height:0;
  grid-template-columns:1fr;
  gap:14px;
  padding:30px 8px 25px;
 }
 .collection-view .collection-client-intro h2{font-size:clamp(34px,8vw,48px)}
 .collection-view .collection-intro-stats{
  display:flex;flex-wrap:wrap;gap:6px 12px;
  grid-column:auto;grid-row:auto;border-left:0;padding-left:0;
 }
 .collection-view .collection-intro-stats strong:nth-of-type(2){margin-top:0}
 .collection-view .collection-gallery-intro{
  flex-direction:row;align-items:end;gap:10px;padding:0 0 14px;
 }
 .collection-view .collection-gallery-intro h2{font-size:clamp(32px,8vw,52px);margin:6px 0 8px}
 .collection-view .collection-gallery-counter strong{font-size:clamp(30px,8vw,48px)}
 .collection-view .collection-gallery-counter{flex-direction:column;gap:2px}
 .collection-view .collection-client-toolbar{top:0;margin:0 0 9px;padding:10px 0}
 .collection-view .collection-client-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-auto-rows:clamp(200px,58vw,330px);
  gap:4px;padding:0 0 20px;
 }
 .collection-view .collection-client-grid .collection-client-card,
 .collection-view .collection-client-grid .collection-client-card:nth-child(n),
 .collection-view .collection-client-grid .collection-client-card:is(.cg-photo-wide,.cg-photo-portrait,.cg-photo-landscape,.cg-photo-square){
  grid-column:auto;aspect-ratio:auto;height:100%;margin-top:0;
 }
 .collection-view .collection-client-grid .collection-client-card:last-child:nth-child(odd){
  grid-column:1/-1;
 }
}



/* Client gallery: a single photographic story, not two competing chapters.
   Keep the full-bleed photo grid intact. All textual metadata shares one
   gutter and one compact, left-anchored group; no detached far-right stats. */
.collection-view{
 --cg-shell-pad:clamp(12px,2vw,36px);
 --cg-copy-edge:clamp(18px,2vw,36px);
 --cg-copy-inset:max(0px,calc(var(--cg-copy-edge) - var(--cg-shell-pad)));
}
.collection-view .collection-client-header{padding-inline:var(--cg-copy-edge)}
.collection-view .collection-hero-marker,
.collection-view .collection-client-hero-foot,
.collection-view .collection-client-hero-copy{
 left:var(--cg-copy-edge);
 right:var(--cg-copy-edge);
}
.collection-view .collection-client-hero-copy{
 max-width:min(680px,calc(100% - 2 * var(--cg-copy-edge)));
}
/* Selection/final-delivery guidance is important; show it in a restrained
   instruction strip. Public galleries omit it entirely after the hero. */
.collection-view .collection-client-intro{
 width:100%;max-width:none;min-height:0;
 display:grid;
 grid-template-columns:minmax(140px,.3fr) minmax(0,1fr);
 align-items:start;
 column-gap:clamp(18px,3vw,56px);
 padding:clamp(22px,3vw,42px) var(--cg-copy-inset);
 border-bottom:1px solid #36312c;
}
.collection-view .collection-client-intro > .collection-intro-kicker{
 grid-column:1;grid-row:1;margin-top:9px;
}
.collection-view .collection-client-intro > div:first-of-type{
 grid-column:2;grid-row:1;min-width:0;max-width:760px;
}
.collection-view .collection-client-intro h2{
 font:400 clamp(25px,2.6vw,36px)/1.12 Georgia,serif;
 letter-spacing:-.04em;
 max-width:760px;
 margin:0 0 9px;
}
.collection-view .collection-client-intro p{
 font:italic clamp(14px,1.2vw,17px)/1.45 Georgia,serif;
 margin:0 0 10px;max-width:680px;
}
.collection-view .collection-client-intro small{
 display:block;
}
.collection-view .collection-gallery-intro{
 display:grid;
 grid-template-columns:minmax(0,min(42vw,570px)) minmax(0,min(38vw,420px));
 align-items:end;
 justify-content:start;
 column-gap:clamp(26px,3vw,60px);
 row-gap:12px;
 padding:clamp(24px,2.4vw,34px) var(--cg-copy-inset) clamp(14px,1.4vw,20px);
 border-bottom:0;
}
.collection-view .cg-gallery-heading{
 max-width:760px;
 width:100%;
 min-width:0;
}
.collection-view .collection-gallery-intro h2{
 font:400 clamp(36px,4.2vw,60px)/1.05 Georgia,serif;
 letter-spacing:-.055em;
 margin:8px 0 8px;
}
.collection-view .collection-gallery-intro p{
 font:italic clamp(15px,1.35vw,18px)/1.45 Georgia,serif;
 max-width:640px;
 margin:0;
}
/* Photo count, album count and favorites stay a single visual unit. */
.collection-view .cg-gallery-stats{
 width:100%;
 max-width:420px;
 display:grid;
 grid-template-columns:repeat(3,minmax(0,1fr));
 align-items:start;
 align-self:end;
 column-gap:clamp(14px,2.6vw,38px);
 padding:12px 0 4px;
 border-top:1px solid #49413c;
}
.collection-view .cg-gallery-stat{
 display:flex;flex-direction:column;
 gap:6px;min-width:0;
}
.collection-view .cg-gallery-stat strong{
 font:400 clamp(27px,2.6vw,36px)/1 Georgia,serif;
 color:#f2eee7;
}
.collection-view .cg-gallery-stat span{
 font:9px/1.4 Arial,sans-serif;
 letter-spacing:.13em;
 color:#bdb2a5;
}
.collection-view .collection-client-toolbar{
 min-height:0;
 padding:12px var(--cg-copy-inset);
 margin:0 0 9px;
}
@media(min-width:701px) and (max-width:1020px){
 .collection-view .collection-client-intro{
  display:grid;
  grid-template-columns:minmax(110px,.3fr) minmax(0,1fr);
 }
 .collection-view .collection-client-intro > .collection-intro-kicker{
  grid-column:1;grid-row:1;
 }
}
@media(max-width:700px){
 .collection-view{--cg-shell-pad:10px;--cg-copy-edge:20px}
 .collection-view .collection-client-header{padding-inline:var(--cg-copy-edge)}
 .collection-view .collection-client-intro{
  display:block;min-height:0;
  padding:22px var(--cg-copy-inset) 20px;
 }
 .collection-view .collection-client-intro > .collection-intro-kicker{
  display:block;margin:0 0 10px;
 }
 .collection-view .collection-client-intro h2{
  font-size:clamp(24px,7vw,31px);
  margin:0 0 9px;
 }
 .collection-view .collection-client-intro p{
  font-size:14px;margin:0 0 8px;
 }
 .collection-view .collection-gallery-intro{
  display:flex;flex-direction:column;
  align-items:flex-start;
  gap:12px;
  padding:23px var(--cg-copy-inset) 14px;
 }
 .collection-view .collection-gallery-intro h2{
  font-size:clamp(36px,10vw,48px);
  margin:7px 0 9px;
 }
 .collection-view .collection-gallery-intro p{
  font-size:15px;
 }
 .collection-view .cg-gallery-stats{
  width:100%;max-width:none;
  gap:10px;padding-top:12px;
 }
 .collection-view .cg-gallery-stat strong{font-size:28px}
 .collection-view .cg-gallery-stat span{
  font-size:8px;letter-spacing:.07em;
 }
 .collection-view .collection-client-toolbar{
  margin:0 0 9px;
  padding:10px var(--cg-copy-inset);
 }
}


/* CLEAN CLIENT COVER — centered album, date, open action and official AchtarFoto brand. */
.collection-view .collection-client-header{display:none}
.collection-view .collection-client-hero.collection-client-hero--clean{
 position:relative;
 display:block;
 width:calc(100% + (2 * var(--cg-shell-pad)));
 height:100svh;
 min-height:600px;
 margin:0 calc(-1 * var(--cg-shell-pad));
 padding:0;
 overflow:hidden;
 background:#090807;
}
.collection-view .collection-client-hero--clean .collection-client-hero-cover{
 position:absolute;inset:0;z-index:-2;
}
.collection-view .collection-client-hero--clean .collection-client-hero-cover img{
 width:100%;height:100%;object-fit:cover;
 filter:brightness(.82) saturate(.92) contrast(1.02);
 animation:none;
}
.collection-view .collection-client-hero--clean::after{
 content:"";position:absolute;z-index:-1;inset:0;
 background:linear-gradient(180deg,rgba(4,4,4,.13),rgba(4,4,4,.18) 52%,rgba(4,4,4,.30));
 pointer-events:none;
}
.collection-view .collection-client-hero-copy--centered{
 position:absolute;z-index:2;
 top:50%;left:50%;right:auto;bottom:auto;
 width:min(900px,calc(100% - 48px));
 max-width:none;
 transform:translate(-50%,-50%);
 text-align:center;
 animation:none;
}
.collection-view .collection-client-hero-copy--centered h1{
 margin:0;
 font:700 clamp(38px,4.7vw,76px)/1.02 'Achtar Gothic',Arial,sans-serif;
 letter-spacing:.025em;
 text-transform:uppercase;
 text-wrap:balance;
 color:#fff;
 text-shadow:0 2px 24px rgba(0,0,0,.28);
}
.collection-view .collection-client-hero-date{
 margin:12px 0 23px;
 color:rgba(255,255,255,.88);
 font:500 10px/1.45 Arial,sans-serif;
 letter-spacing:.22em;
 text-transform:uppercase;
}
.collection-view .collection-client-open-link.collection-client-open-link--centered{
 display:inline-flex;
 flex-direction:column;
 align-items:center;
 justify-content:center;
 gap:6px;
 min-width:116px;
 min-height:54px;
 padding:8px 16px;
 border:1px solid rgba(255,255,255,.72);
 color:#fff;
 background:rgba(6,6,6,.08);
 font:600 9px/1.15 Arial,sans-serif;
 letter-spacing:.16em;
 text-decoration:none;
 transition:background .2s ease,border-color .2s ease,transform .2s ease;
}
.collection-view .collection-client-open-link--centered:hover,
.collection-view .collection-client-open-link--centered:focus-visible{
 color:#fff;
 border-color:#fff;
 background:rgba(0,0,0,.30);
 transform:translateY(-2px);
}
.collection-view .collection-client-open-icon{
 display:block;
 font:400 8.5px/1 Arial,sans-serif;
 letter-spacing:0;
}
.collection-view .collection-client-hero-brand{
 position:absolute;z-index:2;
 left:50%;bottom:max(24px,env(safe-area-inset-bottom));
 transform:translateX(-50%);
 display:flex;flex-direction:column;align-items:center;gap:7px;
 color:#fff;
 font:600 9px/1 Arial,sans-serif;
 letter-spacing:.18em;
 text-align:center;
 white-space:nowrap;
 text-shadow:0 1px 14px rgba(0,0,0,.4);
}
.collection-view .collection-client-hero-brand img{
 display:block;width:54px;height:auto;
 filter:drop-shadow(0 3px 14px rgba(0,0,0,.28));
}
.collection-view #coleccion{scroll-margin-top:18px}
@media(max-width:700px){
 .collection-view .collection-client-hero.collection-client-hero--clean{
  width:calc(100% + 20px);
  min-height:520px;height:100svh;
  margin:0 -10px;
 }
 .collection-view .collection-client-hero-copy--centered{
  top:48%;
  left:50%;right:auto;bottom:auto;
  width:calc(100% - 40px);
  transform:translate(-50%,-50%);
  text-align:center;
 }
 .collection-view .collection-client-hero-copy--centered h1{
  margin:0;
  font-size:clamp(34px,10vw,52px);
  line-height:1.03;
  letter-spacing:.02em;
 }
 .collection-view .collection-client-hero-date{
  margin:10px 0 20px;
  font-size:9px;
  letter-spacing:.16em;
 }
 .collection-view .collection-client-open-link.collection-client-open-link--centered{
  min-width:108px;min-height:52px;padding:8px 13px;
 }
 .collection-view .collection-client-hero-brand{
  bottom:max(20px,env(safe-area-inset-bottom));
  gap:6px;font-size:8px;
 }
 .collection-view .collection-client-hero-brand img{width:48px;height:auto}
}
@media(prefers-reduced-motion:reduce){
 .collection-view .collection-client-open-link--centered{transition:none}
}
