.page-shell.gallery-page { width: 100vw; max-width: none; margin: 0; padding: 0; }
.gallery-index, .gallery-album { width: 100%; max-width: none; padding: clamp(76px, 9vw, 138px) 0; background: #fbfaf6; }
.gallery-album { background: #fff; }
.gallery-index > .container, .gallery-album > .container { width: 100%; max-width: none; padding-inline: clamp(18px, 3.2vw, 64px); }
.gallery-heading { max-width: 760px; margin: 0 auto clamp(48px, 6vw, 82px); text-align: center; }
.gallery-heading h2 { margin: 0; color: var(--green-950); font-family: 'Playfair Display', Georgia, serif; font-size: clamp(2.5rem, 5vw, 4.6rem); line-height: 1.04; }
.gallery-heading > p:last-child, .gallery-heading__intro { margin: 22px auto 0; color: #5d6e68; font-size: 1.04rem; line-height: 1.75; }
.gallery-kicker { margin: 0 0 15px; color: #99731f; font-size: .74rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.gallery-heading--album { display: grid; max-width: 1120px; grid-template-columns: 1fr auto; gap: 18px 40px; text-align: left; }
.gallery-heading--album h2 { font-size: clamp(2.35rem, 4vw, 4rem); }
.gallery-heading--album time { align-self: end; padding-bottom: 10px; color: #6f7e79; font-weight: 700; }
.gallery-heading--album .gallery-heading__intro { grid-column: 1 / -1; margin: 4px 0 0; max-width: 760px; }
.album-masonry { columns: 3 320px; column-gap: 26px; }
.album-card { display: inline-block; width: 100%; margin: 0 0 26px; break-inside: avoid; overflow: hidden; border: 1px solid rgb(12 57 45 / 10%); border-radius: 2px; background: #fff; box-shadow: 0 16px 45px rgb(18 54 44 / 8%); }
.album-card__image { position: relative; display: block; min-height: 290px; overflow: hidden; background: var(--green-900); }
.album-card:nth-child(3n + 2) .album-card__image { min-height: 390px; }
.album-card__image img { display: block; width: 100%; height: 100%; min-height: inherit; object-fit: cover; transition: transform .6s ease; }
.album-card:hover .album-card__image img { transform: scale(1.045); }
.album-card__placeholder { position: absolute; inset: 0; background: linear-gradient(145deg, var(--green-800), var(--green-950)); }
.album-card__count { position: absolute; right: 16px; bottom: 16px; padding: 8px 12px; background: rgb(7 37 29 / 84%); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(5px); }
.album-card__body { padding: 27px 28px 30px; }
.album-card__meta { margin: 0 0 9px !important; color: #a07820 !important; font-size: .7rem !important; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.album-card h3 { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-size: 1.65rem; line-height: 1.18; }
.album-card h3 a { color: var(--green-950); text-decoration: none; }
.album-card__body > p { color: #65736e; line-height: 1.65; }
.album-card__link { display: inline-flex; gap: 10px; margin-top: 8px; color: var(--green-800); font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.album-card__link span { transition: transform .2s ease; }
.album-card__link:hover span { transform: translateX(4px); }
.photo-masonry { display: grid; grid-auto-flow: dense; grid-auto-rows: clamp(175px, 18vw, 310px); grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(6px, .65vw, 12px); }
.photo-tile { position: relative; min-width: 0; margin: 0; overflow: hidden; grid-column: span 4; }
.photo-tile:nth-child(6n + 2), .photo-tile:nth-child(6n + 4) { grid-column: span 5; }
.photo-tile:nth-child(6n + 3), .photo-tile:nth-child(6n + 5) { grid-column: span 3; }
.photo-tile:nth-child(8n + 6) { grid-row: span 2; }
.photo-tile__button { position: relative; display: block; width: 100%; height: 100%; padding: 0; overflow: hidden; border: 0; background: var(--green-950); cursor: zoom-in; }
.photo-tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .3s ease, transform .55s ease; }
.photo-tile__button:hover img { opacity: .78; transform: scale(1.025); }
.photo-tile__zoom { position: absolute; top: 50%; left: 50%; display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid rgb(255 255 255 / 65%); border-radius: 50%; background: rgb(9 45 35 / 65%); color: #fff; font-size: 1.7rem; opacity: 0; transform: translate(-50%, -40%); transition: opacity .25s ease, transform .25s ease; }
.photo-tile__button:hover .photo-tile__zoom, .photo-tile__button:focus-visible .photo-tile__zoom { opacity: 1; transform: translate(-50%, -50%); }
.photo-tile figcaption { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; padding: 35px 13px 11px; background: linear-gradient(transparent, rgb(2 24 18 / 76%)); color: #fff; font-size: .76rem; line-height: 1.4; pointer-events: none; }
.gallery-empty { padding: 70px 25px; border: 1px dashed rgb(13 65 50 / 25%); text-align: center; }
.gallery-lightbox[hidden] { display: none; }
.gallery-lightbox { position: fixed; z-index: 1000; inset: 0; display: grid; padding: 70px 85px 45px; place-items: center; background: rgb(2 18 14 / 94%); }
.gallery-lightbox figure { display: grid; max-width: min(1200px, 100%); max-height: 100%; margin: 0; place-items: center; }
.gallery-lightbox img { max-width: 100%; max-height: calc(100vh - 145px); object-fit: contain; }
.gallery-lightbox figcaption { min-height: 28px; padding-top: 11px; color: rgb(255 255 255 / 75%); text-align: center; }
.gallery-lightbox__close, .gallery-lightbox__nav { position: absolute; border: 0; background: transparent; color: #fff; cursor: pointer; }
.gallery-lightbox__close { top: 20px; right: 28px; font-size: 2.7rem; }
.gallery-lightbox__nav { top: 50%; font-size: 4rem; transform: translateY(-50%); }
.gallery-lightbox__nav--previous { left: 25px; }
.gallery-lightbox__nav--next { right: 25px; }
body.gallery-open { overflow: hidden; }
@media (max-width: 760px) {
	.gallery-index > .container, .gallery-album > .container { padding-inline: 14px; }
	.gallery-heading--album { grid-template-columns: 1fr; }
	.gallery-heading--album time { padding: 0; }
	.album-masonry { columns: 1; }
	.photo-masonry { grid-auto-rows: 210px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
	.photo-tile:nth-child(n) { grid-column: span 1; grid-row: span 1; }
	.photo-tile:nth-child(5n + 1) { grid-column: 1 / -1; }
	.album-card:nth-child(n) .album-card__image { min-height: 290px; }
	.gallery-lightbox { padding: 65px 16px 35px; }
	.gallery-lightbox__nav { top: auto; bottom: 14px; font-size: 3.3rem; }
}
@media (max-width: 440px) {
	.photo-masonry { display: grid; grid-auto-rows: 245px; grid-template-columns: 1fr; }
	.photo-tile:nth-child(n) { grid-column: 1; }
}
