.gallery-wrap { max-width: 1440px; margin: 0 auto; padding-inline: clamp(20px, 4.3vw, 70px); }
main.gallery-wrap { min-height: 60vh; padding-bottom: 6rem; }
.gallery-crumb { display:flex; flex-wrap:wrap; align-items:center; gap:.6rem; padding:26px 0; color:#52615a; font-size:13px; }
.gallery-crumb a,.gallery-text-link { text-decoration:underline; text-underline-offset:4px; }
.gallery-title { max-width: 18ch; margin: 1.5rem 0 1rem; font: 400 clamp(2.5rem, 4.8vw, 5rem)/1.05 Georgia,serif; letter-spacing:-.035em; overflow-wrap:anywhere; }
.gallery-lede { max-width: 60ch; margin-bottom: 2rem; color:#52615a; line-height:1.7; }
.gallery-actions { display:flex; flex-wrap:wrap; gap:1rem 1.5rem; align-items:center; margin:2rem 0; }
.gallery-button { background:#163a35; color:white; display:inline-flex; align-items:center; justify-content:center; min-height:50px; padding:.8rem 1.2rem; font-weight:700; font-size:14px; }
.gallery-button:hover { background:#285b50; }
.gallery-text-link { font-weight:700; font-size:14px; }
.gallery-filter { border-top:1px solid #c7cec5; border-bottom:1px solid #c7cec5; padding:1.4rem 0; margin:2rem 0 1rem; }
.gallery-filter label { display:block; font-size:13px; font-weight:700; margin-bottom:.5rem; }
.gallery-filter input { width:min(100%, 34rem); min-height:50px; padding:.7rem 1rem; border:1px solid #718179; background:#fffdf7; color:#20312e; font:inherit; }
.gallery-count { color:#52615a; margin:1.4rem 0; }
.gallery-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:2rem 1.4rem; }
.gallery-card { min-width:0; border-bottom:1px solid #c7cec5; padding-bottom:1.2rem; }
.gallery-cover, .gallery-photo-link { display:block; background:#e2e6dd; overflow:hidden; }
.gallery-cover { aspect-ratio:1.5; }
.gallery-cover img,.gallery-photo { width:100%; height:100%; object-fit:cover; }
.gallery-card h2 { font:400 clamp(1.4rem,2vw,2rem)/1.15 Georgia,serif; margin:1rem 0; overflow-wrap:anywhere; }
.gallery-card h2 a:hover { text-decoration:underline; text-underline-offset:4px; }
.gallery-images { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.2rem; margin-top:3rem; }
.gallery-figure { margin:0; min-width:0; }
.gallery-photo-link { aspect-ratio:1.5; }
.gallery-caption { font-size:14px; line-height:1.6; margin:.6rem 0 0; color:#52615a; }
.gallery-missing { display:grid; place-items:center; height:100%; padding:1rem; text-align:center; color:#52615a; }
.gallery-pager { display:flex; flex-wrap:wrap; justify-content:center; gap:1rem; align-items:center; margin-top:3rem; }
.gallery-pager button { min-height:44px; padding:.6rem 1rem; border:1px solid #718179; background:transparent; color:#20312e; }
.gallery-pager button:disabled { opacity:.5; cursor:default; }
.gallery-note { border-top:1px solid #c7cec5; margin:3rem 0 0; padding-top:1rem; color:#52615a; font-size:13px; line-height:1.6; }
.gallery-footer { background:#163a35; color:#fff; padding:3rem 0; }
.gallery-footer .gallery-wrap { display:flex; justify-content:space-between; align-items:start; gap:2rem; flex-wrap:wrap; }
.gallery-footer strong { font:400 2rem Georgia,serif; }
.gallery-footer p { color:#d8e5da; font-size:14px; }
.gallery-footer nav { display:flex; flex-wrap:wrap; gap:1.2rem; font-size:14px; }
.gallery-wrap :focus-visible { outline:3px solid #995037; outline-offset:3px; }
@media(max-width:900px) { .gallery-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:550px) { .gallery-grid,.gallery-images { grid-template-columns:minmax(0,1fr); } .gallery-actions a { min-height:44px; } }
