/* Collection layout uses the site's shared typography, palette and viewer. */
.gallery-collection { padding:0 var(--gutter) 40px; }
.gallery-filters { margin:0; border-block:1px solid var(--line); }
.gallery-filters>summary { display:none; }
.gallery-filters>summary small { margin-left:auto; font-size:15px; font-weight:400; color:var(--muted); }
.gallery-filter-note { margin:0 0 16px; font-size:15px; color:var(--muted); }
.gallery-tools { display:grid; grid-template-columns:minmax(180px,1.5fr) minmax(160px,1fr) minmax(150px,1fr); gap:14px; align-items:end; padding:20px 0; }
.gallery-tools label { display:flex; flex-direction:column; gap:7px; font-size:16px; font-weight:600; min-width:0; }
.gallery-tools input,.gallery-tools select,.gallery-clear { width:100%; min-height:48px; border:1px solid #9da995; border-radius:4px; background:var(--paper); color:var(--ink); padding:9px 11px; font:17px var(--sans); }
.gallery-clear { width:auto; min-width:60px; background:transparent; }
.gallery-result-line { display:flex; align-items:center; flex-wrap:wrap; gap:8px 20px; margin:14px 0 20px; }
.gallery-result-line .gallery-clear { margin-left:auto; min-height:44px; padding:5px 12px; }
.gallery-result-line p { font-size:16px; color:var(--muted); margin:0; }
#gallery-count { font-weight:600; color:var(--green); white-space:nowrap; }
.gallery-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:34px 24px; }
.gallery-card { display:flex; flex-direction:column; min-width:0; background:transparent; }
.gallery-image { display:flex; align-items:center; justify-content:center; height:250px; background:#e9e5d9; padding:12px; cursor:zoom-in; }
.gallery-image img { width:100%; height:100%; object-fit:contain; }
.gallery-copy { padding:17px 0 0; display:flex; flex:1; flex-direction:column; align-items:flex-start; }
.gallery-label { font-size:11px; letter-spacing:1px; text-transform:uppercase; color:var(--muted); line-height:1.65; margin:0 0 8px; }
.gallery-copy h2 { font:27px/1.22 var(--serif); margin:0 0 12px; }
.gallery-copy h2 a { text-decoration:none; }
.gallery-copy h2 a { display:inline-block; min-height:44px; }
.gallery-caption { font-size:17px; line-height:1.75; margin:0 0 10px; color:var(--muted); }
.gallery-context,.gallery-open { display:inline-flex; align-items:center; min-height:44px; font-size:16px; line-height:1.6; }
.gallery-open { font-weight:600; gap:6px; margin-top:auto; }
.gallery-copy a:hover { text-decoration:underline; }
#gallery-empty { padding:36px 0; font-size:19px; }
@media (max-width:950px) {
  .gallery-tools { grid-template-columns:1fr 1fr; }
  .gallery-search { grid-column:1/-1; }
  .gallery-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .gallery-image { height:230px; }
}
@media (max-width:800px) {
  .gallery-filters>summary { display:flex; }
}
@media (max-width:560px) {
  .gallery-tools { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:14px 12px; padding:16px 0; }
  .gallery-tools label { font-size:16px; }
  .gallery-tools select { font-size:16px; }
  .gallery-clear { grid-column:1/-1; justify-self:start; }
  .gallery-result-line { margin:12px 0 22px; }
  .gallery-grid { grid-template-columns:1fr; gap:30px; }
  .gallery-image { height:270px; padding:12px; }
  .gallery-copy h2 { font-size:27px; }
  .gallery-caption { font-size:18px; }
}
