/* Gallery: real weddings, one per screen. Each wedding is a full-bleed cover with the couple's name,
   then its photos in an editorial rhythm (two large, four small, repeating), so photos Victoria adds,
   moves or hides in Studio › Editar web keep the layout. Numbers come from a CSS counter: a hidden
   wedding is not counted and a moved one renumbers itself. */
main{counter-reset:gw}
.gal-intro{padding:calc(var(--nav) + 96px) 0 72px !important}
.gal-intro h1{max-width:16ch; margin-top:4px}
.gal-intro .lead{max-width:56ch; margin-top:28px}

main > section.gw{padding:0 0 var(--padt)}
.gw{counter-increment:gw}
.gw__cover{position:relative; height:88svh; min-height:520px; color:#fff; background:var(--night); overflow:hidden}
.gw__cover > .ph{position:absolute; inset:0; margin:0; background:var(--night)}
.gw__cover > .ph img{object-position:center 40%}
.gw__shade{position:absolute; inset:0; background:linear-gradient(to top, rgba(12,18,15,.72) 0%, rgba(12,18,15,.32) 32%, rgba(12,18,15,0) 58%); pointer-events:none}
.gw__head{position:absolute; left:0; right:0; bottom:0; padding-bottom:56px; pointer-events:none}
.gw__head > *{pointer-events:auto; max-width:640px}
.gw__kick{font-size:14px; font-weight:600; letter-spacing:.02em; color:rgba(255,255,255,.88); display:flex; align-items:center; gap:12px; margin-bottom:14px}
.gw__kick::before{content:counter(gw, decimal-leading-zero); font-family:var(--display); font-weight:400; font-size:15px; padding-right:12px; border-right:1px solid rgba(255,255,255,.5)}
.gw__head h2{color:#fff; font-size:var(--t-h1); line-height:1.02}
.gw__desc{font-size:var(--t-lead); line-height:1.55; color:rgba(255,255,255,.92); margin-top:14px; font-family:var(--display); font-style:italic}

.gw__photos{display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:24px; margin-top:24px}
.gw__ph{grid-column:span 3; aspect-ratio:1/1; margin:0}
.gw__ph:nth-child(6n+1),.gw__ph:nth-child(6n+2){grid-column:span 6; aspect-ratio:4/5}
.gw__ph:nth-child(6n+2){margin-top:72px}
[data-zoom]{cursor:zoom-in}
@media (max-width:1023px){
  .gw__photos{gap:12px}
  .gw__ph{grid-column:span 6}
  .gw__ph:nth-child(6n+2){margin-top:0}
}
@media (max-width:639px){
  .gw__cover{height:78svh; min-height:460px}
  .gw__head{padding-bottom:32px}
  .gw__photos{gap:8px; margin-top:8px}
  .gw__photos{width:100%}
  .gw__ph:nth-child(6n+1){grid-column:span 12; aspect-ratio:4/5}
  .gw__ph:nth-child(6n+2){grid-column:span 12; aspect-ratio:4/5}
  main > section.gw{padding-bottom:64px}
}
@media (max-width:639px){ .gw > .wrap{width:min(100% - 16px, var(--wrap))} }

main > section.gal-cta{padding:var(--padt) 0}
.gal-cta h2{max-width:14ch}
.gal-cta .lead{max-width:52ch; margin:24px 0 36px}

/* photo viewer */
.lbx{border:0; padding:0; margin:0; width:100vw; height:100dvh; max-width:none; max-height:none; background:rgba(12,18,15,.96); color:#fff}
.lbx::backdrop{background:rgba(12,18,15,.96)}
.lbx[open]{display:grid; place-items:center}
.lbx img{max-width:calc(100vw - 160px); max-height:calc(100dvh - 120px); width:auto; height:auto; object-fit:contain}
.lbx button{position:absolute; width:48px; height:48px; border-radius:50%; border:1px solid rgba(255,255,255,.35); background:transparent; color:#fff; cursor:pointer; display:grid; place-items:center}
.lbx button:hover{background:rgba(255,255,255,.1)}
.lbx button svg{width:22px; height:22px}
.lbx__x{top:20px; right:20px}
.lbx__p{left:24px; top:50%; translate:0 -50%}
.lbx__n{right:24px; top:50%; translate:0 -50%}
.lbx__c{position:absolute; bottom:20px; left:0; right:0; text-align:center; font-size:14px; color:rgba(255,255,255,.8)}
@media (max-width:639px){
  .lbx img{max-width:100vw; max-height:calc(100dvh - 140px)}
  .lbx__p,.lbx__n{top:auto; bottom:12px; translate:none}
  .lbx__c{bottom:28px}
}
