/* Container for each item */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 30px;
  transition: all 0.3s ease-in-out;
}

/* Image or video thumbnail */
.gallery-thumb {
  width: 100%;
  height: 250px;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 3px solid #d4af37;
  border-radius: 8px;
  display: block;
  transition: transform 0.3s ease;
}

/* Hover effect for thumbnail */
.gallery-thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Golden border on hover */
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid #b47b00;
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Play icon for video thumbnails */
.play-icon-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  color: white;
  pointer-events: none;
}

/* Popup for image or video view */
.popup {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
}

/* Image/video in popup */
.popup-content {
  max-width: 90%;
  max-height: 90%;
  border: 4px solid #d4af37;
  border-radius: 10px;
}

/* Close button in popup */
.close-btn {
  position: absolute;
  top: 15px;
  right: 30px;
  font-size: 35px;
  color: white;
  cursor: pointer;
}
