.gallery-page .site-header nav a[aria-current="page"] { color: var(--clay); }
.gallery-hero { display: grid; grid-template-columns: 1fr .92fr; align-items: center; gap: 8%; width: min(var(--content), calc(100% - 64px)); min-height: 515px; margin: auto; padding: 56px 0 74px; }
.gallery-hero-copy { position: relative; z-index: 1; }
.gallery-hero-copy .eyebrow { margin-bottom: 18px; }
.gallery-hero h1 { margin: 0 0 19px; font-size: clamp(62px, 8vw, 92px); line-height: .93; }
.gallery-hero h1 em { color: var(--clay); }
.gallery-hero-copy > p:not(.eyebrow) { max-width: 460px; margin: 0 0 23px; color: var(--ink-soft); font-size: 15px; line-height: 1.8; }
.gallery-scroll-link { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-decoration: none; }
.gallery-scroll-link span { color: var(--clay); transition: transform .2s ease; }
.gallery-scroll-link:hover span { transform: translateY(3px); }
.gallery-hero-image { position: relative; min-height: 390px; margin: 0; padding: 9px; background: #fffaf0; border-radius: 46% 46% 5px 5px; box-shadow: 0 18px 42px rgba(37,62,49,.12); transform: rotate(1.5deg); }
.gallery-hero-image img { display: block; width: 100%; height: 390px; object-fit: cover; object-position: center 26%; border-radius: 45% 45% 3px 3px; }
.gallery-hero-image figcaption { position: absolute; right: -16px; bottom: 23px; padding: 11px 14px; color: var(--ink); background: var(--sun); font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.gallery-spark { position: absolute; top: 10%; right: -10px; color: var(--clay); font-size: 38px; }
.gallery-wall { padding: 78px max(32px, calc((100vw - var(--content)) / 2)) 94px; background: var(--paper-deep); }
.gallery-wall-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 33px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.gallery-wall-heading .eyebrow { margin: 0; }
.gallery-wall-heading > p:last-child { margin: 0; font-family: var(--serif); font-size: clamp(22px, 3vw, 31px); line-height: 1.15; text-align: right; }
.gallery-wall-heading em { color: var(--clay); font-weight: 400; }
.gallery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 20px; }
.gallery-status { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.5; }
.gallery-filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.gallery-filter { min-height: 34px; padding: 0 12px; color: var(--ink); background: transparent; border: 1px solid rgba(37,62,49,.22); border-radius: 999px; cursor: pointer; font: 600 11px var(--sans); transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
.gallery-filter:hover, .gallery-filter.is-active { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.gallery-filter:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; }
.gallery-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 155px; gap: 17px; }
.gallery-card[hidden] { display: none; }
.gallery-card { position: relative; min-width: 0; margin: 0; overflow: hidden; background: #d9d0bd; box-shadow: 0 9px 24px rgba(37,62,49,.1); }
.gallery-card img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.gallery-card:hover img { transform: scale(1.035); }
.gallery-card figcaption { position: absolute; right: 0; bottom: 0; left: 0; display: grid; gap: 4px; padding: 37px 16px 15px; color: white; background: linear-gradient(transparent, rgba(18,34,26,.78)); }
.gallery-card figcaption span { font-family: var(--serif); font-size: 21px; }
.gallery-card figcaption small { color: rgba(255,255,255,.88); font-size: 12px; font-weight: 400; letter-spacing: .01em; line-height: 1.4; }
.gallery-card-tags { position: absolute; top: 13px; left: 13px; display: flex; flex-wrap: wrap; gap: 5px; }
.gallery-card-tags span { padding: 5px 8px; color: var(--ink); background: rgba(248,243,232,.9); border-radius: 999px; font-size: 9px; font-weight: 700; letter-spacing: .04em; }
.gallery-card-home { grid-column: span 7; grid-row: span 2; }
.gallery-card-home img { object-position: center 58%; }
.gallery-card-puppy { grid-column: span 5; grid-row: span 2; }
.gallery-card-puppy img { object-position: center 36%; }
.gallery-card-cat, .gallery-card-shepherd, .gallery-card-door { grid-column: span 4; grid-row: span 2; }
.gallery-card-cat img { object-position: center 47%; }
.gallery-card-shepherd img { object-position: center 33%; }
.gallery-card-door img { object-position: center 55%; }
.gallery-card-dynamic { grid-column: span 4; grid-row: span 2; }
.gallery-cta { position: relative; isolation: isolate; overflow: hidden; padding: 70px 20px 78px; background: var(--sun); text-align: center; }
.gallery-cta-paws { position: absolute; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; }
.gallery-cta-paw { position: absolute; fill: rgba(37,62,49,.1); }
.gallery-paw-one { top: 10%; left: 8%; width: 66px; height: 66px; transform: rotate(-17deg); }
.gallery-paw-two { top: 58%; left: 20%; width: 46px; height: 46px; transform: rotate(15deg); }
.gallery-paw-three { top: 12%; left: 37%; width: 52px; height: 52px; transform: rotate(9deg); }
.gallery-paw-four { top: 17%; right: 10%; width: 82px; height: 82px; transform: rotate(23deg); }
.gallery-paw-five { top: 61%; right: 23%; width: 58px; height: 58px; transform: rotate(-13deg); }
.gallery-paw-six { top: 47%; right: 4%; width: 43px; height: 43px; transform: rotate(18deg); }
.gallery-cta > :not(.gallery-cta-paws) { position: relative; z-index: 1; }
.gallery-cta .eyebrow { margin-bottom: 13px; }
.gallery-cta h2 { margin: 0 auto 16px; font-size: clamp(48px, 6vw, 70px); line-height: .97; }
.gallery-cta h2 em { color: var(--clay); }
.gallery-cta > p:not(.eyebrow) { max-width: 400px; margin: 0 auto 22px; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
@media (max-width: 760px) {
  .gallery-hero { grid-template-columns: 1fr; gap: 30px; width: calc(100% - 40px); min-height: 0; padding: 46px 0 61px; }
  .gallery-hero-copy .eyebrow { margin-bottom: 14px; font-size: 9px; }
  .gallery-hero h1 { font-size: clamp(59px, 15vw, 80px); }
  .gallery-hero-copy > p:not(.eyebrow) { max-width: 430px; font-size: 14px; }
  .gallery-hero-image { width: min(calc(100% - 14px), 440px); min-height: 0; margin: 0 auto; }
  .gallery-hero-image img { height: auto; aspect-ratio: 1 / 1.08; object-position: center 26%; }
  .gallery-hero-image figcaption { right: -8px; bottom: 18px; padding: 9px 11px; font-size: 8px; }
  .gallery-wall { padding: 58px 20px 66px; }
  .gallery-wall-heading { display: block; margin-bottom: 23px; }
  .gallery-wall-heading .eyebrow { margin-bottom: 12px; font-size: 9px; }
  .gallery-wall-heading > p:last-child { font-size: 26px; text-align: left; }
  .gallery-toolbar { display: block; margin-bottom: 18px; }
  .gallery-status { margin-bottom: 11px; font-size: 11px; }
  .gallery-filters { justify-content: flex-start; gap: 6px; }
  .gallery-filter { min-height: 32px; padding: 0 10px; font-size: 10px; }
  .gallery-grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 145px; gap: 14px; }
  .gallery-card-home, .gallery-card-door, .gallery-card-puppy, .gallery-card-cat, .gallery-card-shepherd, .gallery-card-dynamic { grid-column: 1; grid-row: span 2; }
  .gallery-card figcaption { padding: 30px 10px 11px; }
  .gallery-card figcaption span { font-size: 17px; }
  .gallery-card figcaption small { font-size: 10px; line-height: 1.4; }
  .gallery-card-tags { top: 9px; left: 8px; gap: 4px; }
  .gallery-card-tags span { padding: 4px 7px; font-size: 8px; }
  .gallery-card-dynamic { grid-column: span 1; grid-row: span 2; }
  .gallery-cta { padding: 57px 20px 65px; }
  .gallery-paw-one { top: 7%; left: 1%; width: 48px; height: 48px; }
  .gallery-paw-two { top: 55%; left: 0; width: 39px; height: 39px; }
  .gallery-paw-three { top: 27%; left: 2%; width: 42px; height: 42px; }
  .gallery-paw-four { top: 12%; right: 1%; width: 60px; height: 60px; }
  .gallery-paw-five { top: 63%; right: 1%; width: 48px; height: 48px; }
  .gallery-paw-six { top: 40%; right: 0; width: 36px; height: 36px; }
  .gallery-cta .eyebrow { font-size: 9px; }
  .gallery-cta h2 { font-size: clamp(47px, 12vw, 64px); }
  .gallery-cta > p:not(.eyebrow) { font-size: 14px; }
}
@media (max-width: 390px) {
  .gallery-grid { grid-auto-rows: 155px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-card img, .gallery-scroll-link span { transition: none; }
}
