.photo-gallery{padding:80px 0 88px;background:var(--paper)}
.gallery-heading{margin-bottom:36px}
.gallery-heading h2{display:flex;align-items:center;gap:clamp(24px,5vw,70px);font-size:clamp(76px,8vw,104px)}
.gallery-heading h2 small{margin:0;font-size:18px;font-weight:500;letter-spacing:0;line-height:1.7}
.gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.gallery-photo{display:block;position:relative;overflow:hidden;min-width:0;background:var(--green);aspect-ratio:16/9;text-decoration:none;cursor:zoom-in}
.gallery-photo img{width:100%;height:100%;object-fit:cover;transition:opacity .2s}
.gallery-photo:hover img{opacity:.86}
.gallery-photo:focus-visible{outline-offset:2px;z-index:1}
.gallery-open{overflow:hidden}
.gallery-dialog{width:min(1200px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:20px;border:0;background:var(--deep);color:var(--paper);overflow:auto}
.gallery-dialog::backdrop{background:#272d27ed}
.gallery-dialog-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}
.gallery-dialog-header h2{font:18px/1.4 var(--display);letter-spacing:.07em}
.gallery-dialog button{border:1px solid #F4F1EB66;background:transparent;color:var(--paper);min-height:44px;padding:8px 16px;font-size:14px}
.gallery-dialog button:hover{background:var(--green)}
.gallery-dialog figure{margin:0}
.gallery-full-image{width:100%;height:auto;max-height:calc(100dvh - 190px);object-fit:contain;aspect-ratio:16/9;background:var(--deep)}
.gallery-dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px}
.gallery-counter{font:14px/1.5 var(--sans);text-align:center;font-variant-numeric:tabular-nums}
@media(max-width:760px){.photo-gallery{padding:54px 0 58px}.gallery-heading{margin-bottom:26px}.gallery-heading h2{font-size:76px;gap:20px;flex-wrap:wrap}.gallery-heading h2 small{font-size:14px}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.gallery-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:12px}.gallery-dialog-header h2{font-size:16px}.gallery-dialog button{padding:8px 12px}.gallery-full-image{max-height:calc(100dvh - 175px)}}
@media(prefers-reduced-motion:reduce){.gallery-photo img{transition:none}}
