/* teeparty.be – Galerie-Thumbnail-Grid (das Overlay liefert GLightbox, assets/vendor/glightbox/).
   Das Grid fuellt exakt die alte Flash-Box (528x615). */

.tp-gallery {
  width: 528px;
  height: 615px;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  padding: 12px;
  background: #f1d7a0;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  -webkit-overflow-scrolling: touch;
}
.tp-gallery a.tp-thumb {
  display: block;
  width: 76px;
  height: 76px;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.35);
  cursor: pointer;
  background: #000;
  line-height: 0;
  transition: transform .12s ease, box-shadow .12s ease;
}
.tp-gallery a.tp-thumb:hover {
  transform: scale(1.06);
  box-shadow: 0 2px 7px rgba(0,0,0,.5);
  position: relative;
  z-index: 1;
}
.tp-gallery a.tp-thumb img,
.tp-gallery a.tp-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Video-Kachel: Play-Badge mittig ueber dem Vorschau-Frame */
.tp-gallery a.tp-thumb.tp-video { position: relative; }
.tp-gallery a.tp-thumb .tp-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  color: #fff; font-size: 24px; line-height: 1; pointer-events: none; opacity: .92;
  text-shadow: 0 1px 5px rgba(0,0,0,.85);
}

/* Mobil: Grid fuellt verfuegbare Breite statt fixer 528px */
@media (max-width: 560px) {
  .tp-gallery { width: 100%; max-width: 100%; height: 70vh; }
}
