@font-face {
  font-family: Caveat;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/caveat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.tvr-pin-track {
  position: relative;
  width: 100%;
}

.tvr-polaroids {
  pointer-events: none;
}

.tvr-polaroids__stack {
  aspect-ratio: 17.5 / 25;
  container-type: inline-size;
  height: auto;
  isolation: isolate;
  margin: 0 0 var(--space-l, 2rem);
  position: relative;
  width: min(17.5rem, 100%);
}

@media (max-width: 478px) {
  .tvr-polaroids__stack {
    margin-left: auto;
    margin-right: auto;
  }
}

.tvr-polaroid,
.tvr-polaroid-card {
  background: #fff;
  box-shadow: 0 14px 30px rgb(0 0 0 / 28%), 0 2px 6px rgb(0 0 0 / 12%);
  box-sizing: border-box;
  margin: 0;
  padding: 1.1rem 1.1rem 0;
}

.tvr-polaroid {
  --p: 1;
  left: 50%;
  position: absolute;
  top: 46%;
  transform:
    translate(
      calc(-50% + var(--x) * var(--p)),
      calc(-50% + var(--y) * var(--p) + (1 - var(--p)) * -115%)
    )
    rotate(calc(var(--rot) * var(--p) + (1 - var(--p)) * -16deg))
    scale(calc(0.96 + var(--p) * 0.04));
  width: 88%;
  z-index: var(--i);
}

.tvr-polaroid-card {
  --tvr-pos-x: 50%;
  --tvr-pos-y: 50%;
  --tvr-zoom: 1;
  container-type: inline-size;
  max-width: 100%;
  width: min(15.4rem, 100%);
}

.tvr-polaroid__photo {
  aspect-ratio: 1;
  background: #d7d7d7;
  overflow: hidden;
}

.tvr-polaroid__photo img {
  display: block;
  height: 100%;
  max-width: none;
  object-fit: cover;
  width: 100%;
}

.tvr-polaroid-card .tvr-polaroid__photo img {
  object-position: var(--tvr-pos-x) var(--tvr-pos-y);
  transform: scale(var(--tvr-zoom));
  transform-origin: var(--tvr-pos-x) var(--tvr-pos-y);
}

.tvr-polaroid figcaption,
.tvr-polaroid-card figcaption {
  align-content: center;
  box-sizing: border-box;
  color: var(--oranje, #ed6b17);
  display: grid;
  font-family: Caveat, cursive;
  font-size: 1.45rem;
  font-size: clamp(1.15rem, 12cqi, 1.7rem);
  font-weight: 600;
  justify-content: center;
  line-height: 1.05;
  margin: 0;
  min-height: 4.6rem;
  overflow-wrap: anywhere;
  padding: 0.7rem 0.45rem;
  text-align: center;
}

@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .tvr-polaroids:not(.is-stacked) .tvr-polaroid {
    --p: 0;
    opacity: 0;
  }
}

.tvr-polaroids.is-stacked .tvr-polaroid,
.tvr-polaroids.is-ready .tvr-polaroid {
  opacity: clamp(0, calc(var(--p) * 4), 1);
}
