/* Photo gallery: Kilimanjaro-style hero, album chips, an editorial photo grid per album (viewer: photo-lightbox.css). No rules or frames.
   The shared page theme forces heading sizes with !important, so this page answers in kind. */
.gl-page { overflow-x: clip; background: #FFFFFF; color: #231F20; font-family: 'Poppins', sans-serif; }
.gl-shell { box-sizing: border-box; width: min(1440px, 100%); margin: 0 auto; padding-inline: clamp(20px, 5vw, 80px); }
.gl-page a:focus-visible, .gl-page button:focus-visible { outline: 3px solid #6B9A40; outline-offset: 4px; }

.gl-page .gl-kicker { margin: 0; color: #3E6423; font-size: .78rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; }
.gl-page .gl-title { margin: 1.1rem 0 0; color: #231F20; font-family: 'Poppins', sans-serif; font-size: clamp(2.2rem, 3.8vw, 3.5rem) !important; font-weight: 700 !important; letter-spacing: -.035em; line-height: 1.06 !important; text-transform: none; }
.gl-page .gl-title em { display: block; color: #755431; font-style: normal; }
.gl-page .gl-text { max-width: 540px; margin: 0; color: rgba(35, 31, 32, .72); font-size: .97rem; line-height: 1.85; }

.gl-button { display: inline-flex; align-items: center; gap: 1rem; padding: .45rem .45rem .45rem 1.6rem; border-radius: 999px; background: #755431; color: #FFFFFF !important; font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-decoration: none; text-transform: uppercase; box-shadow: 0 18px 34px -18px rgba(117, 84, 49, .85); transition: background .4s ease; }
.gl-button__icon { display: grid; width: 2.5rem; height: 2.5rem; place-items: center; border-radius: 50%; background: #FFFFFF; color: #755431; transition: color .4s ease, transform .45s cubic-bezier(.2, .8, .2, 1); }
.gl-button__icon svg { width: 1rem; height: 1rem; }
.gl-button:hover { background: #3E6423; }
.gl-button:hover .gl-button__icon { color: #3E6423; transform: rotate(-45deg); }

/* Albums */
.gl-main { padding-block: clamp(5rem, 9vw, 8rem); background: #F7F4ED; scroll-margin-top: var(--home-header-height, 88px); }
.gl-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 1.5rem 4rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.gl-filters { position: sticky; z-index: 20; top: calc(var(--home-header-height, 88px) + .75rem); display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: clamp(2.5rem, 4.5vw, 3.5rem); padding: .55rem; border-radius: 26px; background: rgba(255, 255, 255, .9); box-shadow: 0 24px 50px -36px rgba(35, 31, 32, .45); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.gl-chip { display: inline-flex; align-items: center; gap: .6rem; padding: .65rem .75rem .65rem 1.15rem; border: 0; border-radius: 999px; background: transparent; color: rgba(35, 31, 32, .78); font-family: 'Poppins', sans-serif; font-size: .84rem; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background .35s ease, color .35s ease; }
.gl-chip span { display: grid; min-width: 1.7rem; height: 1.7rem; padding: 0 .45rem; place-items: center; border-radius: 999px; background: #F7F4ED; color: #755431; font-size: .72rem; box-sizing: border-box; transition: background .35s ease, color .35s ease; }
.gl-chip:hover { background: #F7F4ED; color: #231F20; }
.gl-chip.is-active { background: #755431; color: #FFFFFF; }
.gl-chip.is-active span { background: rgba(255, 255, 255, .2); color: #FFFFFF; }

.gl-album { scroll-margin-top: calc(var(--home-header-height, 88px) + 6rem); }
.gl-album + .gl-album { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.gl-album[hidden] { display: none; }
.gl-album__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; margin-bottom: 1.4rem; }
.gl-page .gl-album__title { margin: 0; color: #231F20; font-size: clamp(1.5rem, 2.4vw, 2.1rem) !important; font-weight: 700 !important; letter-spacing: -.03em; line-height: 1.15 !important; text-transform: none; }
.gl-album__count { padding: .5rem 1rem; border-radius: 999px; background: #FFFFFF; color: #755431; font-size: .78rem; font-weight: 600; }

/* Editorial grid: every seventh photo takes a larger tile, and dense packing fills the gaps. */
.gl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 15vw, 230px); grid-auto-flow: dense; gap: clamp(.6rem, 1.1vw, 1rem); margin: 0; padding: 0; list-style: none; }
.gl-item:nth-child(7n + 1) { grid-column: span 2; grid-row: span 2; }
.gl-item:nth-child(7n + 5) { grid-row: span 2; }
.gl-photo { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 22px; background: #E7E2D8; }
.gl-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.gl-photo__overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding: 1rem; background: linear-gradient(180deg, rgba(35, 31, 32, 0) 45%, rgba(35, 31, 32, .78) 100%); opacity: 0; transition: opacity .45s ease; }
.gl-photo__caption { overflow: hidden; display: -webkit-box; color: #FFFFFF; font-size: .84rem; font-weight: 600; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; transform: translateY(8px); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.gl-photo__zoom { display: grid; flex: 0 0 auto; width: 2.4rem; height: 2.4rem; place-items: center; border-radius: 50%; background: #FFFFFF; color: #755431; transform: scale(.7); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.gl-photo__zoom svg { width: 1rem; height: 1rem; }
.gl-photo:hover img, .gl-photo:focus-visible img { transform: scale(1.07); }
.gl-photo:hover .gl-photo__overlay, .gl-photo:focus-visible .gl-photo__overlay { opacity: 1; }
.gl-photo:hover .gl-photo__caption, .gl-photo:focus-visible .gl-photo__caption { transform: none; }
.gl-photo:hover .gl-photo__zoom, .gl-photo:focus-visible .gl-photo__zoom { transform: none; }

.gl-empty { display: grid; justify-items: center; gap: .8rem; max-width: 620px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4rem); border-radius: 32px; background: #FFFFFF; text-align: center; }
.gl-empty__icon { display: grid; width: 4rem; height: 4rem; place-items: center; border-radius: 50%; background: #F7F4ED; color: #755431; }
.gl-empty__icon svg { width: 1.8rem; height: 1.8rem; }
.gl-page .gl-empty h3 { margin: .4rem 0 0; color: #231F20; font-size: 1.5rem !important; font-weight: 700 !important; text-transform: none; }
.gl-page .gl-empty p { margin: 0 0 .8rem; color: rgba(35, 31, 32, .7); line-height: 1.75; }

/* Scroll reveal. Hidden states apply only once the script arms the page, so content stays visible without JS. */
[data-gl-reveal] { transition: opacity 1s ease, transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.gl-page.is-armed [data-gl-reveal]:not(.is-inview) { opacity: 0; transform: translateY(36px); }
.gl-page.is-armed .gl-grid:not(.is-inview) { opacity: 1; transform: none; }
.gl-page.is-armed .gl-grid:not(.is-inview) > * { opacity: 0; }
.gl-page.is-armed .gl-grid.is-inview > * { animation: gl-rise .9s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i, 0) * .06s); }
@keyframes gl-rise { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }

@media (max-width: 1023px) {
    .gl-head { grid-template-columns: minmax(0, 1fr); }
    .gl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(140px, 24vw, 220px); }
}
@media (max-width: 639px) {
    .gl-filters { position: static; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .gl-filters::-webkit-scrollbar { display: none; }
    .gl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 42vw; }
    .gl-item:nth-child(7n + 5) { grid-row: auto; }
    .gl-photo { border-radius: 16px; }
    .gl-photo__overlay { opacity: 1; padding: .7rem; background: linear-gradient(180deg, rgba(35, 31, 32, 0) 60%, rgba(35, 31, 32, .6) 100%); }
    .gl-photo__caption { display: none; }
    .gl-photo__zoom { width: 2rem; height: 2rem; margin-left: auto; transform: none; }
}
@media (hover: none) {
    .gl-photo__overlay { opacity: 1; background: linear-gradient(180deg, rgba(35, 31, 32, 0) 60%, rgba(35, 31, 32, .55) 100%); }
    .gl-photo__caption { display: none; }
    .gl-photo__zoom { margin-left: auto; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    [data-gl-reveal], .gl-chip, .gl-chip span, .gl-photo img, .gl-photo__overlay, .gl-photo__caption, .gl-photo__zoom, .gl-button, .gl-button__icon { transition: none; }
}
