/* Sample gallery. These rules are scoped to the index page. */
.theme--gallery {
  --ink: #202622;
  --muted: #666e67;
  --paper: #fff;
  --accent: #32664e;
  background: var(--paper);
  font-size: 16px;
  line-height: 1.7;
}
.gallery-wrap {
  width: min(1180px, calc(100% - 80px));
  margin-inline: auto;
}
.gallery-header {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #e2e6e2;
}
.gallery-brand {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .06em;
}
.gallery-nav { padding-block: 12px; font-size: 14px; }
.gallery-title {
  margin: 62px 0 36px;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.35;
}
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 26px;
}
.gallery-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.gallery-industry {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}
.gallery-industry select {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #c9c6b6;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
}
.gallery-filters button {
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid #dce1dc;
  border-radius: 24px;
  background: #fff;
  color: #505a52;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
  touch-action: manipulation;
}
.gallery-filters button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 32px;
}
.gallery-card {
  display: block;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  transition: none;
}
.gallery-card:hover { transform: none; box-shadow: none; }
.gallery-card__link { display: block; height: 100%; }
.gallery-card__image {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #f1f3f1;
  border: 1px solid #e6e9e5;
  border-radius: 6px;
}
.gallery-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform .25s ease;
}
.gallery-card__caption { padding-top: 18px; }
.gallery-card__caption h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.gallery-card__caption p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.gallery-card__genre {
  display: inline-block;
  margin-inline-end: .65em;
  padding-inline-end: .65em;
  border-inline-end: 1px solid #c6bfae;
  color: var(--ink);
  font-weight: 650;
}
.gallery-note {
  margin-top: 64px;
  padding-block: 24px;
  border-top: 1px solid #e2e6e2;
  color: var(--muted);
  font-size: 13px;
}
.gallery-note p { margin: 0 0 4px; }
.gallery-footer {
  padding-block: 18px 32px;
  color: var(--muted);
}
.gallery-footer small { font-size: 12px; letter-spacing: .04em; }
@media (hover: hover) {
  .gallery-nav:hover { color: var(--accent); }
  .gallery-filters button:hover:not([aria-pressed="true"]) { background: #f1f3f1; }
  .gallery-card__link:hover .gallery-card__image img { transform: scale(1.025); }
}
@media (max-width: 650px) {
  .gallery-wrap { width: calc(100% - 40px); }
  .gallery-header { min-height: 76px; gap: 12px; }
  .gallery-brand { font-size: 15px; letter-spacing: .03em; }
  .gallery-nav { font-size: 13px; }
  .gallery-title { margin-block: 38px 24px; }
  .gallery-filters { margin-bottom: 24px; }
  .gallery-genres { gap: 8px; }
  .gallery-filters button { padding-inline: 13px; }
  .gallery-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .gallery-card__caption { padding-top: 12px; }
  .gallery-card__caption h2 { font-size: 18px; }
  .gallery-note { margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-card__image img { transition: none; }
}

/* An editorial index. */
.theme--gallery {--paper:#f8f6ef;--ink:#282b23;--muted:#53594e;--accent:#5d4f2c}
.gallery-header {min-height:77px;border-color:#c7c4b7}
.gallery-brand {font:700 14px/1.4 system-ui,sans-serif;letter-spacing:.19em}
.gallery-intro {position:relative;border-bottom:1px solid #b1ac9b;margin:0 0 24px;padding:clamp(42px,7.8vw,110px) 0 clamp(26px,4.5vw,64px)}
.gallery-kicker {margin:0 0 13px;color:#675135;font:700 12px/1.2 Georgia,serif;letter-spacing:.19em}
.gallery-title {margin:0;color:#2a2a22;font:700 clamp(41px,8.5vw,102px)/1.15 "Hiragino Sans","Yu Gothic",system-ui,sans-serif;letter-spacing:-.025em}
.gallery-deck {margin:16px 0 0;max-width:48ch;color:var(--muted);font-size:clamp(14px,1.5vw,17px);line-height:1.8}
.gallery-index-mark {position:absolute;right:0;bottom:24%;color:#7a6351;border-block:1px solid #b1ac9b;padding:9px 0;font:700 15px/1.3 Georgia,serif;letter-spacing:.13em}
#samples {scroll-margin-top:14px}
.gallery-filters button {border-color:#c9c6b6;background:transparent;color:#464338}
.gallery-grid {counter-reset:case-index;gap:39px 24px}
.gallery-grid .gallery-card {counter-increment:case-index;border-top:1px solid #c6bfae;padding-top:13px}
.gallery-card__image {border:0;border-radius:2px;background:#e8e1d3}
.gallery-card__image img {object-position:center;transition:transform .45s cubic-bezier(.2,.65,.29,1)}
.gallery-card__caption {position:relative;padding:12px 40px 0 0}
.gallery-card__caption::after {content:counter(case-index,decimal-leading-zero);font:600 14px/1 Georgia,serif;letter-spacing:.1em;color:#726047;position:absolute;right:0;top:17px}
.gallery-card__caption h2 {font-size:clamp(18px,2vw,24px);font-weight:750}
.gallery-card__caption p {font-size:13px}
.theme--gallery a:focus-visible,.theme--gallery button:focus-visible,.theme--gallery select:focus-visible {outline:2px solid #796039;outline-offset:4px}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.gallery-card__link:hover .gallery-card__image img{transform:scale(1.045)}}
@media(max-width:650px){.gallery-index-mark,.gallery-wide-break{display:none}.gallery-grid{gap:28px}.gallery-header{min-height:65px}.gallery-title{font-size:clamp(39px,10vw,65px)}}
@media(prefers-reduced-motion:reduce){.gallery-card__image img{transition:none}.gallery-card__link:hover .gallery-card__image img{transform:none}}
