.gallery {
  --paper: #f4f4ef;
  --ink: #292f2c;
  --muted: #858c84;
  --accent: #46624c;
  --line: #d9ded4;
  background: var(--paper);
}
.gallery-header {
  width: min(1320px, calc(100% - 80px));
  margin: auto;
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #d4dacf;
}
.gallery-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}
.gallery-brand .mark {
  background: #344a37;
  color: #f0f5e9;
  padding: 4px 10px;
  font:
    27px Georgia,
    serif;
  line-height: 1.25;
}
.gallery-brand strong {
  font-size: 14px;
  letter-spacing: 0.08em;
}
.gallery-brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 0.19em;
  color: #89917e;
}
.gallery-header-right {
  display: flex;
  gap: 30px;
  align-items: center;
  font-size: 11px;
  color: #7c8577;
}
.gallery-hero {
  padding: 56px 0 43px;
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 55px;
  align-items: end;
}
.gallery-hero .eyebrow {
  color: #7c8c6a;
  font-size: 9px;
}
.gallery h1 {
  font-size: 54px;
  letter-spacing: -0.045em;
  line-height: 1.3;
  font-weight: 550;
  margin-top: 20px;
}
.gallery h1 em {
  font-style: normal;
  color: #839279;
}
.gallery-intro p {
  font-size: 13px;
  line-height: 1.9;
}
.gallery-intro .edition-tag {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #829170;
}
.gallery-intro .edition-tag:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #96ab78;
}
.gallery-toolbar {
  border-block: 1px solid #d4dacf;
  padding: 17px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}
.filter-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-list button {
  font-size: 11px;
  padding: 7px 14px;
  border-radius: 50px;
  background: transparent;
  color: #8a9285;
}
.filter-list button[aria-pressed="true"] {
  background: #354b39;
  color: #f0f4ec;
}
.gallery-count {
  font:
    10px Consolas,
    monospace;
  letter-spacing: 0.08em;
  color: #7f8977;
  white-space: nowrap;
}
.style-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 33px 25px;
  padding-bottom: 55px;
}
.style-card {
  min-width: 0;
}
.style-card > a {
  display: block;
}
.card-preview {
  overflow: hidden;
  background: var(--preview, #e9ede5);
  aspect-ratio: 1280/850;
  position: relative;
  border: 1px solid #d2d8cf;
  border-radius: 5px;
  transition:
    box-shadow 0.25s,
    transform 0.25s;
}
.card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.35s;
}
.style-card:hover .card-preview {
  transform: translateY(-4px);
  box-shadow: 0 13px 25px #30412617;
}
.style-card:hover .card-preview img {
  transform: scale(1.025);
}
.preview-open {
  position: absolute;
  bottom: 13px;
  right: 13px;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffffffe6;
  box-shadow: 0 2px 10px #0001;
  color: #26382a;
  font-size: 15px;
  opacity: 0;
  transform: translateY(7px);
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.style-card:hover .preview-open,
.style-card:focus-within .preview-open {
  opacity: 1;
  transform: none;
}
.style-caption {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 15px;
}
.style-number {
  font:
    10px Consolas,
    monospace;
  color: #959d8d;
  align-self: start;
  padding-top: 3px;
}
.style-caption h2 {
  font-size: 16px;
  letter-spacing: 0;
  font-weight: 550;
}
.style-caption small {
  font-size: 8px;
  letter-spacing: 0.12em;
  color: #929c89;
  margin-top: 2px;
  display: block;
}
.palette {
  display: flex;
  margin-left: auto;
  gap: 3px;
}
.palette i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--swatch);
  border: 1px solid #0001;
}
.style-card p {
  margin: 10px 0 0 27px;
  font-size: 11px;
  color: #939a8c;
  line-height: 1.7;
}
.gallery-guide {
  border-top: 1px solid #d4dacf;
  padding: 30px 0 40px;
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 55px;
}
.gallery-guide h2 {
  font-size: 20px;
}
.gallery-guide p {
  font-size: 12px;
  line-height: 1.9;
  max-width: 625px;
}
.gallery-footer {
  border-top: 1px solid #d4dacf;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 24px 0 35px;
  color: #96a08c;
  font-size: 9px;
  letter-spacing: 0.03em;
}
.gallery-footer a {
  color: #64765b;
}
.gallery-page-note {
  font-size: 10px;
  color: #909a84;
  margin-top: 12px;
}
@media (min-width: 1600px) {
  .gallery-header {
    width: 1440px;
  }
}
@media (max-width: 960px) {
  .gallery-hero {
    gap: 30px;
  }
  .gallery h1 {
    font-size: 44px;
  }
  .style-grid {
    gap: 25px 18px;
  }
  .style-caption h2 {
    font-size: 14px;
  }
  .gallery-guide {
    gap: 30px;
  }
}
@media (max-width: 760px) {
  .style-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery-hero {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-top: 35px;
  }
  .gallery h1 {
    font-size: 42px;
  }
  .gallery-intro {
    max-width: 480px;
  }
  .gallery-toolbar {
    align-items: start;
  }
  .gallery-header {
    width: calc(100% - 40px);
    height: 78px;
  }
  .gallery-header-right > span {
    display: none;
  }
}
@media (max-width: 480px) {
  .style-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .gallery h1 {
    font-size: 36px;
  }
  .gallery-toolbar {
    flex-direction: column;
    gap: 10px;
  }
  .filter-list {
    gap: 3px;
  }
  .filter-list button {
    padding: 6px 10px;
    font-size: 10px;
  }
  .gallery-guide {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .gallery-footer {
    flex-direction: column;
    gap: 12px;
  }
  .style-caption h2 {
    font-size: 17px;
  }
  .style-caption small {
    font-size: 9px;
  }
  .style-card p {
    font-size: 12px;
  }
  .gallery-count {
    font-size: 9px;
  }
  .gallery-header-right {
    gap: 15px;
  }
}
/* Quiet supporting text still needs contrast against the warm paper. */
.gallery {
  --muted: #64715d;
}
.gallery-brand small,
.gallery-header-right,
.gallery-hero .eyebrow,
.gallery-intro .edition-tag,
.gallery-count,
.style-caption small,
.style-number,
.gallery-footer,
.gallery-page-note {
  color: #66745f;
}
.filter-list button {
  color: #67725e;
}
.style-card p {
  color: #68745f;
}
