.gallery { background: var(--cream); scroll-margin-top: 90px; }
.gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 36px; }
.gallery-heading p { max-width: 380px; }
.gallery-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.gallery-filters button { border: 1px solid var(--border); border-radius: 30px; padding: 11px 21px; background: transparent; color: var(--green); font-size: 13px; cursor: pointer; min-height: 44px; }
.gallery-filters button[aria-pressed="true"], .gallery-filters button:hover { background: var(--green); border-color: var(--green); color: white; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.gallery-card { position: relative; overflow: hidden; border-radius: 12px; background: var(--cream-dark); aspect-ratio: 3 / 4; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-card:hover img { transform: scale(1.045); }
.gallery-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 44px 18px 18px; display: flex; align-items: end; justify-content: space-between; gap: 10px; color: white; background: linear-gradient(transparent, rgba(21,26,19,.8)); font-size: 13px; line-height: 1.4; }
.gallery-caption > span { font-size: 23px; }
.gallery-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 30px; }
.gallery-bottom p { font-size: 13px; }
.gallery-more { border: 0; cursor: pointer; }
.gallery [hidden] { display: none !important; }
.gallery :focus-visible, .gallery-lightbox button:focus-visible { outline: 3px solid #ad8856; outline-offset: 5px; }
.gallery-lightbox { width: 100%; max-width: none; height: 100%; max-height: none; border: 0; padding: 70px 80px 30px; background: rgba(16,22,16,.97); color: white; }
.gallery-lightbox::backdrop { background: rgba(16,22,16,.95); }
.gallery-lightbox[open] { display: grid; place-items: center; }
.gallery-lightbox figure { width: 100%; min-width: 0; pointer-events: none; }
.lightbox-image { height: calc(100dvh - 160px); width: 100%; object-fit: contain; pointer-events: auto; touch-action: pan-y; }
.gallery-lightbox figcaption { text-align: center; margin-top: 18px; font-size: 14px; }
.gallery-lightbox button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; background: rgba(255,255,255,.1); color: white; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; cursor: pointer; font-size: 26px; }
.gallery-lightbox button:hover { background: rgba(255,255,255,.22); }
.lightbox-close { top: 18px; right: 22px; }
.lightbox-prev { top: calc(50% - 24px); left: 18px; }
.lightbox-next { top: calc(50% - 24px); right: 18px; }
@media (max-width: 800px) {
    .gallery-heading { display: block; }
    .gallery-heading p { margin-top: 22px; }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .gallery-caption { font-size: 12px; padding: 35px 12px 12px; }
    .gallery-bottom { flex-direction: column; }
    .gallery-filters button { padding: 10px 16px; font-size: 12px; }
    .gallery-lightbox { padding: 75px 12px 90px; }
    .lightbox-image { height: calc(100dvh - 220px); }
    .lightbox-prev, .lightbox-next { top: auto; bottom: 20px; }
    .lightbox-prev { left: calc(50% - 60px); }
    .lightbox-next { right: calc(50% - 60px); }
}
@media (prefers-reduced-motion: reduce) { .gallery-card img { transition: none; } }
