/* Real photographs, framed as a quiet material study. */
.product-gallery {
  min-width: 0;
  position: sticky;
  top: 0;
}
.gallery-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #cdd1c1;
}
.content-dialog .gallery-heading .eyebrow { margin: 0; font-size: 10px; }
.gallery-heading > span {
  font-size: 10px;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
  color: #626b57;
}
.gallery-stage {
  --zoom-x: 50%;
  --zoom-y: 50%;
  position: relative;
  margin-top: 14px;
  border: 1px solid #dce0d2;
  background: #f0eee5;
  overflow: hidden;
}
.gallery-photo-button {
  display: block;
  width: 100%;
  padding: 0;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: zoom-in;
  background: #fff;
}
.gallery-photo-button img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  padding: 20px;
  object-fit: contain;
  transform-origin: var(--zoom-x) var(--zoom-y);
  transition: transform .4s cubic-bezier(.2,.6,.2,1);
}
.gallery-stage.is-zoomed .gallery-photo-button { cursor: zoom-out; }
.gallery-stage.is-zoomed .gallery-photo-button img { transform: scale(2.1); }
.gallery-stage .product-badge { top: 15px; left: 15px; pointer-events: none; }
.gallery-zoom-label {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 1;
  padding: 8px 12px;
  color: #354d3e;
  background: #faf8f1ed;
  border: 1px solid #b9c1ad;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .25px;
  pointer-events: none;
}
.gallery-photo-button:focus-visible { outline-offset: -4px; }
.gallery-views {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.gallery-view {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 66px;
  padding: 7px 11px 7px 7px;
  border: 1px solid #cdd2bf;
  background: transparent;
  text-align: left;
  font-size: 12px;
  transition: background .2s, border-color .2s;
}
.gallery-view img { width: 48px; height: 48px; object-fit: contain; background: white; }
.gallery-view:hover { background: #eeede2; }
.gallery-view[aria-pressed=true] { border-color: #7b6249; background: #eee8db; box-shadow: inset 0 -2px 0 #9c744e; }
.content-dialog .gallery-caption { margin: 13px 0 10px; font-size: 11px; line-height: 1.7; }
.gallery-footnote {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding-top: 11px;
  border-top: 1px solid #d9ddce;
  color: #626b57;
  font-size: 10px;
  line-height: 1.7;
}
.gallery-footnote > span { max-width: 240px; }
.gallery-footnote > a { flex-shrink: 0; padding-bottom: 6px; }
.content-dialog .gallery-credit { margin: 10px 0 0; font-size: 10px; line-height: 1.7; }
.content-dialog .gallery-error {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  padding: 36px;
  margin: 0;
  background: #f0eee5;
  color: #46553d;
  text-align: center;
  font-size: 12px;
}
@media (max-width: 680px) {
  .product-gallery { position: static; }
  .gallery-photo-button { aspect-ratio: 1.2; max-height: 330px; }
  .gallery-photo-button img { padding: 15px; }
  .gallery-view { gap: 8px; padding-right: 8px; font-size: 11px; }
  .gallery-footnote { font-size: 11px; gap: 13px; }
  .gallery-footnote > span { max-width: 190px; }
  .content-dialog .gallery-credit { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-photo-button img, .gallery-view { transition: none; }
}
