/* Gallery additions for elements created by JavaScript */

.gallery-item-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.3s ease;
  display: block;
}

.gallery-video-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #9b59b6;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: bold;
  z-index: 10;
  pointer-events: none;
}

/* Gallery item needs proper structure */
.gallery-item {
  position: relative;
  display: block;
  width: 100%;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item .image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f4ff 0%, #f0f8f0 100%);
}

@media (max-width: 768px) {
  .gallery-video-badge {
    font-size: 0.65rem;
    padding: 4px 8px;
    top: 8px;
    right: 8px;
  }
  
  .gallery-item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
  }
}

