.gallery {
  min-width: 0;
  border: 0;
  padding: 0;
  padding-top: 0.6rem;
  margin-inline: auto;
  width: min(92%, 31.5rem);
  scroll-margin-block: 3rem;
  animation: arrive 0.85s ease-out both;
}
.prints {
  position: relative;
  isolation: isolate;
}
.prints::before,
.prints::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 0.65rem solid #fbf6e9;
  box-shadow: 0 0.3rem 1rem #412c1c1c;
}
.prints::before {
  background: #c8af90 url("./assets/watch.webp") center / cover;
  transform: translate(0.05rem, 0.1rem) rotate(-6deg);
}
.prints::after {
  background: #bd8d69 url("./assets/bag.webp") center / cover;
  transform: translate(0.38rem, 0.18rem) rotate(5.5deg);
}
.print {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 0.68rem 0.68rem 0;
  background: #fffcf4;
  box-shadow:
    0 0.45rem 1.5rem #51351e2d,
    0 0 0 1px #46301d0d;
  transform: rotate(-0.8deg) translateY(0.5rem);
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.38s,
    transform 0.45s,
    visibility 0.38s;
}
.print-camera {
  position: relative;
}
.gallery:has([value="camera"]:checked) .print-camera,
.gallery:has([value="bag"]:checked) .print-bag,
.gallery:has([value="watch"]:checked) .print-watch {
  visibility: visible;
  opacity: 1;
  z-index: 1;
  transform: rotate(-2deg);
}
.print img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.print figcaption {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 0.55rem 0.95rem;
}
.item-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--rust);
  border: 1px solid #decbb6;
  border-radius: 50%;
}
.item-icon svg {
  width: 1.3rem;
  height: 1.3rem;
}
.item-label {
  display: grid;
  gap: 0.04rem;
}
.item-label small {
  font-size: 0.69rem;
  color: var(--quiet);
}
.item-label strong {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.15;
}
.folio {
  margin-left: auto;
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  font-variant-numeric: tabular-nums;
}
.folio i {
  font-style: normal;
  color: #99866d;
  margin: 0 0.15rem;
}
.seal {
  position: absolute;
  z-index: 2;
  top: -1.85rem;
  right: -1.8rem;
  transform: rotate(13deg);
  display: grid;
  place-items: center;
  width: 4.2rem;
  aspect-ratio: 1;
  color: #fbecd1;
  background: var(--rust);
  clip-path: polygon(
    50% 0,
    56% 9%,
    66% 3%,
    69% 14%,
    80% 10%,
    81% 22%,
    92% 21%,
    90% 33%,
    99% 36%,
    94% 46%,
    100% 53%,
    92% 61%,
    97% 69%,
    86% 73%,
    88% 84%,
    76% 83%,
    73% 95%,
    63% 91%,
    56% 100%,
    49% 93%,
    40% 100%,
    35% 90%,
    24% 94%,
    22% 83%,
    10% 83%,
    13% 71%,
    3% 68%,
    8% 58%,
    0 51%,
    8% 44%,
    2% 34%,
    13% 31%,
    11% 20%,
    23% 21%,
    24% 9%,
    35% 14%,
    40% 3%,
    46% 10%
  );
}
.seal svg {
  width: 52%;
  height: 52%;
}
.choices {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.55rem;
  min-height: 2.75rem;
}
.choices-label {
  color: var(--quiet);
  font-size: 0.7rem;
  margin-right: 0.6rem;
}
.choice {
  position: relative;
  display: grid;
  place-items: center;
  height: 2.75rem;
  width: 2rem;
  cursor: pointer;
}
.choice span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 1rem;
  background: #9d8978;
  transition:
    width 0.25s,
    background 0.25s;
}
.choice input:checked + span {
  width: 1.5rem;
  background: var(--rust);
}
.choice input:focus-visible + span {
  outline: 2px solid var(--rust);
  outline-offset: 4px;
}
@supports not selector(:has(:checked)) {
  .print-camera {
    visibility: visible;
    opacity: 1;
    transform: rotate(-2deg);
  }
  .choices {
    display: none;
  }
}
