/* Gallery: page-specific layout; shared site styles stay unchanged. */
.gallery-intro { padding: 56px 0 46px; background: var(--brand-tint); }
.gallery-intro h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 900; line-height: 1.15; margin: 0 0 18px; }
.gallery-intro p:last-child { max-width: 650px; margin: 0 auto; color: var(--ink-muted); font-size: 17px; line-height: 1.7; }
.gallery-section { padding: 38px 0 64px; }
.gallery-toolbar { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.gallery-toolbar h2 { font-size: 22px; font-weight: 700; margin: 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
.gallery-card { display: flex; flex-direction: column; min-width: 0; scroll-margin-top: 100px; }
.gallery-photo { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: #f6f6f6; cursor: pointer; touch-action: manipulation; }
.gallery-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .28s ease; }
.gallery-photo .gallery-photo-secondary { position: absolute; inset: 0; opacity: 0; }
.gallery-photo.is-alternate .gallery-photo-secondary { opacity: 1; }
.gallery-photo:focus-visible,
.gallery-card h3 a:focus-visible,
.gallery-inquiry:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.gallery-photo-count { position: absolute; right: 10px; bottom: 10px; z-index: 1; background: rgba(255,255,255,.94); color: var(--ink); border: 1px solid var(--line); border-radius: 20px; padding: 5px 9px; font-size: 11px; font-weight: 600; line-height: 1; pointer-events: none; }
.gallery-card-info { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 16px 0 0; }
.gallery-category { margin: 0 0 6px; color: var(--ink-muted); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.gallery-card h3 { font-size: 18px; font-weight: 700; line-height: 1.4; margin: 0 0 10px; }
.gallery-card h3 a { color: inherit; text-decoration: none; }
.gallery-card h3 a:hover,
.gallery-card h3 a:focus-visible { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }
.gallery-inquiry { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 7px; max-width: 100%; min-height: 44px; margin-top: auto; padding: 10px 12px; border: 1px solid var(--brand); border-radius: 7px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.35; text-align: center; white-space: normal; overflow-wrap: anywhere; text-decoration: none; }
.gallery-inquiry svg { flex: 0 0 17px; width: 17px; height: 17px; }
.gallery-inquiry span { min-width: 0; }
.gallery-inquiry:hover,
.gallery-inquiry:focus-visible { background: var(--brand-tint); color: var(--brand); text-decoration: none; }
@media (max-width: 1199.98px) { .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767.98px) {
  .gallery-intro { padding: 36px 0 32px; }
  .gallery-intro p:last-child { font-size: 15px; }
  .gallery-section { padding: 28px 0 44px; }
  .gallery-toolbar { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 20px; }
  .gallery-toolbar h2 { font-size: 20px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
  .gallery-card h3 { font-size: 15px; }
  .gallery-photo-count { bottom: 7px; right: 7px; }
  .gallery-inquiry { padding: 9px 8px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) { .gallery-photo img { transition: none; } }
