/* Gallery specific styles */

/* Gallery grid layout */
.gallery-grid .col {
  min-width: 250px;
  width: 250px;
  margin: 0 10px 20px;
  flex-grow: 0;
}

/* Gallery item card styling */
.gallery-item {
  height: 100%;
  transition: transform 0.2s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Gallery preview area */
.gallery-preview {
  height: 180px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f1f1f1;
}

.gallery-preview img,
.gallery-preview video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Video indicator and controls */
.video-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2rem;
  opacity: 0.8;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.gallery-preview:hover .video-indicator {
  opacity: 1;
}

/* Video controls */
.video-controls {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  padding: 5px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-preview:hover .video-controls {
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .gallery-grid {
    justify-content: center;
  }
}
