/* Gallery CSS */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-auto-rows: 200px;
  grid-gap: 1rem;
  grid-auto-flow: dense;
}

.gallery-area {
  margin: 1.5rem 0;
}

@media (min-width: 768px) {
  .gallery-area {
    margin: 2.5rem 0;
  }
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.gallery-item video {
  background: #000;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

/* Fancybox Customization */
.fancybox__container {
  --fancybox-bg: rgba(0, 0, 0, 0.95);
}

.fancybox__toolbar {
  background: rgba(0, 0, 0, 0.6);
  padding: 10px;
}

.fancybox__nav {
  --fancybox_nav-color: #fff;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-item:nth-child(3n + 1) {
    grid-row: span 2;
  }

  .gallery-item:nth-child(5n + 2) {
    grid-column: span 2;
  }
}
