.prime-gallery {
  --gallery-ink: #312a23;
  --gallery-muted: #5d544a;
  --gallery-border: #e1d8ca;
  color: var(--gallery-ink);
  margin-block: 2.75rem;
}
.prime-gallery--editorial {
  background: #f5efe5;
  border-block: 1px solid var(--gallery-border);
  margin: 0;
  padding-block: clamp(2.75rem, 6vw, 5.25rem);
}
.prime-gallery--editorial .prime-gallery__inner {
  width: min(1240px, calc(100% - clamp(32px, 8vw, 104px)));
  margin-inline: auto;
}
.prime-gallery .prime-gallery__intro { margin-bottom: clamp(1.2rem, 3vw, 2.15rem); }
.prime-gallery .prime-gallery__intro h2 {
  margin: 0;
  color: var(--gallery-ink);
  font-size: clamp(1.5rem, 3.1vw, 2.45rem);
  line-height: 1.13;
  letter-spacing: -.035em;
}
.prime-gallery .prime-gallery__intro p {
  max-width: 62ch;
  margin: .65rem 0 0;
  color: var(--gallery-muted);
  font-size: 1rem;
  line-height: 1.55;
}
.prime-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.65rem, 1.6vw, 1.3rem);
}
.prime-gallery .prime-gallery__item {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--gallery-border);
  border-radius: 8px;
  background: #fff;
}
.prime-gallery .prime-gallery__photo {
  position: relative;
  display: block;
  border-radius: 7px 7px 0 0;
  background: #eee7db;
  color: var(--gallery-ink);
}
.prime-gallery .prime-gallery__photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}
.prime-gallery .prime-gallery__zoom {
  position: absolute;
  inset: auto .55rem .55rem auto;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: #fff;
  color: var(--gallery-ink);
  box-shadow: 0 2px 8px #312a2335;
}
.prime-gallery .prime-gallery__photo:hover .prime-gallery__zoom {
  background: var(--gallery-ink);
  color: #fff;
}
.prime-gallery .prime-gallery__item figcaption {
  padding: .65rem .75rem .75rem;
  color: var(--gallery-ink);
  font-family: inherit;
  font-size: clamp(.86rem, 1.25vw, 1rem);
  font-style: normal;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.prime-gallery__jump {
  display: block;
  width: fit-content;
  margin-top: .75rem;
  color: #71491f;
  font-weight: 800;
  text-underline-offset: .24em;
  text-decoration: underline;
}
.prime-gallery__jump span { margin-inline-start: .25em; }
.prime-gallery__photo:focus-visible,
.prime-gallery__jump:focus-visible,
.prime-gallery-view button:focus-visible { outline: 3px solid #a46b27; outline-offset: 3px; }
.prime-gallery .prime-gallery__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.prime-gallery-view {
  width: min(700px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: clamp(.75rem, 2vw, 1.2rem);
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #312a23;
}
.prime-gallery-view::backdrop { background: #211b17d9; }
body:has(.prime-gallery-view[open]) { overflow: hidden; }
.prime-gallery-view header,
.prime-gallery-view footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
}
.prime-gallery-view header p,
.prime-gallery-view footer p {
  margin: 0;
  color: inherit;
  font-size: .95rem;
  font-weight: 750;
  line-height: 1.3;
}
.prime-gallery-view img {
  display: block;
  width: 100%;
  height: min(64dvh, 620px);
  margin: .6rem 0;
  border-radius: 6px;
  background: #f5efe5;
  object-fit: contain;
}
.prime-gallery-view button {
  min-height: 44px;
  min-width: 44px;
  margin: 0;
  padding: .45rem .65rem;
  border: 1px solid #b5a795;
  border-radius: 6px;
  background: #fff;
  color: #312a23;
  font: inherit;
  font-size: .85rem;
  font-weight: 750;
  line-height: 1.1;
  cursor: pointer;
}
.prime-gallery-view button:hover { background: #f5efe5; color: #312a23; }
@media (max-width: 960px) { .prime-gallery__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 660px) { .prime-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 339px) { .prime-gallery__grid { grid-template-columns: minmax(0, 1fr); } }
