/* Lightbox styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.lightbox-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  font-size: 40px;
  cursor: pointer;
  padding: 3px;
  width: 60px;
  height: 60px;
  aspect-ratio: 1;
  z-index: 10; /* Ensure buttons are above other elements */
}

.lightbox-prev {
  left: 10px;
  border-radius: 50%;
}

.lightbox-next {
  right: 10px;
  border-radius: 50%; 
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  font-size: 30px;
  cursor: pointer;
  padding: 3px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  aspect-ratio: 1;
  z-index: 10; /* Ensure buttons are above other elements */
}

/* Update the gallery image container and image styles */
.gallery-image[data-type="video"] {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden; /* Prevent image from spilling out */
}

.gallery-image[data-type="video"] img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; /* This will ensure the image covers the container without distortion */
}

/* Keep existing play button styles */
.gallery-image[data-type="video"]::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  border: 4px solid rgb(212, 217, 255);
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: rgba(57, 57, 136, 0.6);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  background-size: 50%;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  z-index: 1;
}
