/* Photo gallery: scoped to the gallery and album pages. */
.gallery-page { --gallery-green: #08683b; --gallery-ink: #153c2c; --gallery-muted: #64766b; }
.gallery-page [hidden] { display: none !important; }
.gallery-page .gallery-hero { background: #eff6f0; border-bottom: 1px solid #e2ebe3; padding: 28px 0 54px; }
.gallery-breadcrumb { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; color: #61766a; font-size: 13px; margin-bottom: 28px; }
.gallery-page .gallery-breadcrumb a { color: #3e5b49; }
.gallery-hero-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: center; }
.gallery-eyebrow { color: var(--gallery-green); font-size: 11px; font-weight: 700; letter-spacing: 2px; display: block; margin-bottom: 14px; }
.gallery-page h1 { font-size: clamp(36px, 4.3vw, 62px); line-height: 1.1; letter-spacing: -2px; color: var(--gallery-ink); margin-bottom: 20px; overflow-wrap: anywhere; }
.gallery-title-dot { color: #1aa551; }
.gallery-hero-copy > p { color: #5b7162; font-size: 17px; line-height: 1.8; max-width: 460px; margin-bottom: 26px; }
.gallery-stats { display: flex; gap: 24px; color: #5b7162; font-size: 14px; }
.gallery-stats > span + span { border-left: 1px solid #cbdace; padding-left: 24px; }
.gallery-stats strong { color: var(--gallery-ink); font-size: 24px; margin-right: 7px; font-weight: 700; }
.gallery-hero-visual { position: relative; padding: 10px; background: #fff; border-radius: 20px; transform: rotate(2deg); box-shadow: 0 16px 38px rgba(17,70,39,.10); }
.gallery-hero-visual > img { display: block; width: 100%; height: 255px; object-fit: cover; border-radius: 13px; }
.gallery-hero-note { position: absolute; left: -20px; bottom: 23px; color: #fff; background: var(--gallery-green); padding: 11px 18px; border-radius: 8px; font-size: 12px; box-shadow: 0 5px 14px rgba(0,0,0,.13); transform: rotate(-2deg); }
.gallery-hero-note i { margin-right: 8px; }
.gallery-collection { padding: 55px 0 75px; background: #fff; min-height: 360px; }
.gallery-section-heading { display: flex; gap: 28px; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.gallery-section-heading .gallery-eyebrow { margin-bottom: 8px; }
.gallery-page .gallery-section-heading h2 { color: var(--gallery-ink); font-size: 29px; letter-spacing: -.7px; margin-bottom: 8px; }
.gallery-section-heading p { color: var(--gallery-muted); margin: 0; font-size: 14px; }
.gallery-search { position: relative; width: 280px; flex-shrink: 0; }
.gallery-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #708879; font-size: 14px; pointer-events: none; }
.gallery-page .gallery-search input { width: 100%; height: 46px; padding: 0 16px 0 42px; border: 1px solid #dbe6dc; background: #f8faf8; border-radius: 10px; color: var(--gallery-ink); font-size: 14px; }
.gallery-search input::placeholder { color: #718177; }
.gallery-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid #e9eeea; }
.gallery-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-filters button { border: 1px solid #e2e9e3; border-radius: 30px; padding: 8px 16px; font-size: 13px; font-weight: 600; background: #fff; color: #506858; cursor: pointer; transition: background .2s, color .2s; }
.gallery-filters button span { margin-left: 5px; opacity: .75; }
.gallery-filters button.is-active { color: #fff; background: var(--gallery-green); border-color: var(--gallery-green); }
.gallery-filters button:hover { border-color: var(--gallery-green); }
.gallery-toolbar > p, .gallery-album-summary { margin: 0; color: var(--gallery-muted); font-size: 13px; }
.gallery-album-grid, .gallery-photo-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
.gallery-album { border: 1px solid #e2ebe3; border-radius: 15px; overflow: hidden; background: #fff; transition: transform .25s, box-shadow .25s; }
.gallery-album:hover { transform: translateY(-5px); box-shadow: 0 12px 28px rgba(24,63,40,.10); }
.gallery-album-link { display: block; height: 100%; }
.gallery-album-image { position: relative; overflow: hidden; background: #edf3ee; }
.gallery-album-image img { width: 100%; height: 235px; object-fit: cover; display: block; transition: transform .4s; }
.gallery-album:hover img { transform: scale(1.035); }
.gallery-category-label, .gallery-photo-count { position: absolute; font-size: 11px; font-weight: 600; padding: 6px 11px; border-radius: 6px; }
.gallery-category-label { top: 15px; left: 15px; background: #fff; color: var(--gallery-green); }
.gallery-photo-count { bottom: 14px; right: 14px; background: rgba(12,38,23,.85); color: #fff; }
.gallery-photo-count i { margin-right: 5px; }
.gallery-album-body { padding: 23px; }
.gallery-page .gallery-album-body h3 { font-size: 20px; color: var(--gallery-ink); margin: 0 0 18px; line-height: 1.4; }
.gallery-album-body p { color: var(--gallery-muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 18px; }
.gallery-album-body time { display: block; font-size: 12px; color: var(--gallery-muted); margin-bottom: 8px; }
.gallery-album-action { display: flex; align-items: center; justify-content: space-between; color: var(--gallery-green); font-size: 13px; font-weight: 700; }
.gallery-album-action > span { display: grid; place-items: center; height: 32px; width: 32px; border-radius: 50%; background: #eff6f0; font-size: 20px; }
.gallery-empty { padding: 55px 20px; text-align: center; background: #f6faf6; border: 1px dashed #cbdace; border-radius: 14px; }
.gallery-empty > i { font-size: 32px; color: var(--gallery-green); margin-bottom: 16px; }
.gallery-page .gallery-empty h3 { font-size: 22px; color: var(--gallery-ink); }
.gallery-empty p { color: var(--gallery-muted); font-size: 14px; }
.gallery-empty button { background: var(--gallery-green); color: #fff; padding: 10px 20px; border-radius: 8px; border: 0; cursor: pointer; font-size: 13px; }
.gallery-page .gallery-back { display: inline-flex; gap: 10px; color: var(--gallery-green); font-size: 14px; font-weight: 600; align-items: center; }
.gallery-album-summary { margin-bottom: 24px; }
.gallery-photo { display: block; position: relative; overflow: hidden; border-radius: 13px; background: #eef4ef; }
.gallery-photo img { display: block; width: 100%; height: 280px; object-fit: cover; transition: transform .3s; }
.gallery-photo:hover img { transform: scale(1.04); }
.gallery-photo-overlay { position: absolute; inset: auto 0 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #fff; padding: 30px 18px 18px; font-size: 13px; background: linear-gradient(transparent,rgba(0,0,0,.7)); }
.gallery-page :is(.gallery-album-link,.gallery-photo,button,input,a):focus-visible { outline: 3px solid #b1841f; outline-offset: 4px; }
.gallery-lightbox { border: 0; background: #132119; color: #fff; width: min(1100px,95vw); max-width: 95vw; max-height: 94vh; padding: 55px 65px 24px; border-radius: 14px; overflow: auto; }
.gallery-lightbox::backdrop { background: rgba(5,16,10,.88); }
.gallery-lightbox figure { margin: 0; }
.gallery-lightbox figure img { display: block; max-width: 100%; max-height: 70vh; object-fit: contain; margin: 0 auto; }
.gallery-lightbox figcaption { display: flex; justify-content: space-between; gap: 20px; padding-top: 18px; font-size: 13px; color: #e6f0e9; }
.gallery-lightbox button { position: absolute; border: 1px solid #54705b; background: #243a2b; color: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 24px; cursor: pointer; }
.gallery-lightbox-close { top: 10px; right: 12px; }
.gallery-lightbox-prev { left: 12px; top: 50%; }
.gallery-lightbox-next { right: 12px; top: 50%; }
.gallery-page.gallery-lightbox-open { overflow: hidden; }
@media (max-width:991px) {
    .gallery-hero-layout { gap: 35px; }
    .gallery-album-grid, .gallery-photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .gallery-section-heading { align-items: flex-start; }
    .gallery-search { width: 230px; }
}
@media (max-width:575px) {
    .gallery-page .gallery-hero { padding: 22px 0 35px; }
    .gallery-breadcrumb { font-size: 12px; gap: 8px; margin-bottom: 25px; }
    .gallery-hero-layout { grid-template-columns: 1fr; gap: 28px; }
    .gallery-page h1 { font-size: 38px; letter-spacing: -1.4px; }
    .gallery-hero-copy > p { font-size: 15px; margin-bottom: 20px; }
    .gallery-eyebrow { font-size: 10px; letter-spacing: 1.6px; }
    .gallery-hero-visual { margin: 0 9px; }
    .gallery-hero-visual > img { height: 210px; }
    .gallery-hero-note { left: -10px; font-size: 11px; }
    .gallery-collection { padding: 35px 0 45px; }
    .gallery-section-heading { flex-direction: column; gap: 20px; }
    .gallery-page .gallery-section-heading h2 { font-size: 25px; }
    .gallery-search { width: 100%; }
    .gallery-toolbar { gap: 14px; align-items: flex-start; flex-direction: column; }
    .gallery-album-grid, .gallery-photo-grid { grid-template-columns: 1fr; gap: 22px; }
    .gallery-album-image img { height: 240px; }
    .gallery-photo img { height: 310px; }
    .gallery-lightbox { padding: 54px 14px 65px; }
    .gallery-lightbox figure img { max-height: 65vh; }
    .gallery-lightbox-prev, .gallery-lightbox-next { top: auto; bottom: 12px; }
}
@media (prefers-reduced-motion:reduce) {
    .gallery-album, .gallery-album img, .gallery-photo img { transition: none; }
}
