/* Trip Gallery — multi-instance grid */
.trip-gallery-instance {
  margin-top: 14px;
}
.trip-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.trip-gallery-grid .trip-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  cursor: zoom-in;
  position: relative;
  background: #1a1a1a;
  user-select: none;
}
.trip-gallery-grid .trip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.4s ease, transform 0.3s ease;
}
.trip-gallery-grid .trip-thumb.swap img {
  opacity: 0;
}
.trip-gallery-grid .trip-thumb:hover img {
  transform: scale(1.06);
}
.trip-shuffle-bar {
  text-align: center;
  margin: 18px 0 4px;
}
.trip-shuffle-btn {
  background: #0a2744;
  color: #f5e6c8;
  border: none;
  padding: 10px 26px;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.4px;
  transition: background 0.2s;
}
.trip-shuffle-btn:hover {
  background: #1a5fa8;
}
.trip-photo-count {
  color: #777;
  font-size: 12px;
  margin-top: 6px;
  font-family: 'Lato', sans-serif;
}

@media (max-width: 900px) {
  .trip-gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 599px) {
  .trip-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }
}

/* Trip Lightbox — custom vanilla modal, no GLightbox dependency */
.trip-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
}
.trip-lightbox.open { display: flex; }
body.trip-lb-lock { overflow: hidden; }
.trip-lb-stage {
  max-width: 96vw;
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.trip-lb-img {
  max-width: 96vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  display: block;
  opacity: 0;
  transition: opacity 0.25s ease;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  border-radius: 4px;
}
.trip-lb-img.loaded { opacity: 1; }
.trip-lb-close,
.trip-lb-prev,
.trip-lb-next {
  position: fixed;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: none;
  font-size: 28px;
  line-height: 1;
  padding: 12px 18px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s;
  z-index: 10;
}
.trip-lb-close:hover,
.trip-lb-prev:hover,
.trip-lb-next:hover { background: rgba(255,255,255,0.2); }
.trip-lb-close { top: 18px; right: 18px; font-size: 32px; padding: 6px 16px; }
.trip-lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.trip-lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.trip-lb-counter {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: #ccc;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  background: rgba(0,0,0,0.6);
  padding: 4px 12px;
  border-radius: 12px;
}
@media (max-width: 599px) {
  .trip-lb-prev, .trip-lb-next { padding: 8px 12px; font-size: 22px; }
  .trip-lb-close { padding: 4px 12px; font-size: 26px; top: 12px; right: 12px; }
}
