/* Shared photo tiles for the post pages (New post in Circle, New meetup); see js/photos/photo-kit.js.
   Row: one sliding line of photos in their own shapes, edge to edge (--pk-bleed is the page's side
   padding). Grid: square tiles, three across. ✕ on each, + at the end. */
.pk-tiles { --pk-bleed: 18px; }
.pk-row {
  display: flex;
  gap: 8px;
  margin: 0 calc(var(--pk-bleed) * -1);
  padding: 2px var(--pk-bleed) 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.pk-row::-webkit-scrollbar { display: none; }
.pk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pk-tile, .pk-add {
  position: relative;
  padding: 0;
  border: 0;
  overflow: hidden;
  cursor: pointer;
  background: #ecebe6;
}
.pk-tile { -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; transition: box-shadow .15s, scale .15s, opacity .15s; }
.pk-tile img { display: block; pointer-events: none; object-fit: cover; }
.pk-tile.is-busy { opacity: .55; }
.pk-tile.is-lifted { z-index: 2; scale: 1.04; box-shadow: 0 10px 24px rgb(0 0 0 / .22); }
.pk-add { display: grid; place-items: center; color: #6c6d67; }
.pk-row .pk-tile, .pk-row .pk-add { flex: none; height: 150px; border-radius: 14px; }
.pk-row .pk-tile img { width: auto; min-width: 84px; max-width: 260px; height: 150px; }
.pk-row .pk-add { width: 96px; }
.pk-grid .pk-tile, .pk-grid .pk-add { aspect-ratio: 1; border-radius: 10px; }
.pk-grid .pk-tile img { width: 100%; height: 100%; }
.pk-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(32 33 31 / .6);
  color: #fff;
  font-size: 12px;
  line-height: 24px;
  cursor: pointer;
}
