/* Polaroids: a dark frame drawn in a thin white line, a thick bottom edge with the name written on it, tilted a little. */
.polaroid {
  display: grid; gap: 10px; margin: 0; padding: 10px 10px 14px; border-radius: 3px;
  background: #111215; color: var(--strong); box-shadow: inset 0 0 0 1.5px #e6e7eacc, 0 14px 30px -14px #000;
  transform: rotate(var(--tilt, 0deg)); transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}
.polaroid-photo { display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; background: #08090b; box-shadow: inset 0 0 0 1px #e6e7ea40; color: #e6e7ea; }
.polaroid-photo svg { inline-size: 62%; block-size: 62%; }
.polaroid-photo img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.polaroid-name { font-family: "Marker Felt", "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive; font-size: 17px; line-height: 1.2; text-align: center; color: var(--strong); }

.polaroids { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 28px 22px; }
.polaroid-link { display: block; border-radius: 4px; }
.polaroid-link:focus-visible { outline: 2px solid var(--faint); outline-offset: 8px; }
@media (hover: hover) and (pointer: fine) {
  .polaroid-link:hover .polaroid { transform: rotate(0deg) translateY(-4px) scale(1.03); box-shadow: inset 0 0 0 1.5px #ffffff, 0 22px 40px -16px #000; }
}
@media (prefers-reduced-motion: reduce) { .polaroid { transition: none; } }
