.gallery-hero .section-title {
  margin-bottom: 0.5rem;
}

.gallery-grid .gallery-item {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.gallery-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gallery-caption {
  font-size: 0.9rem;
  color: #2b2b2b;
  text-align: center;
}

.gallery-grid .gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-video-thumb {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 12px;
}

.gallery-video-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 2rem;
  background: rgba(0, 0, 0, 0.35);
}

.gallery-grid .gallery-item:hover img {
  transform: scale(1.04);
}

@media (max-width: 768px) {
  .gallery-grid .gallery-item img {
    height: 180px;
  }

  .gallery-video-thumb {
    height: 180px;
  }
}

@media (max-width: 576px) {
  .gallery-grid .gallery-item img {
    height: 160px;
  }

  .gallery-video-thumb {
    height: 160px;
  }
}

.gallery-modal {
  background: #0b0b0b;
  border: none;
}

.gallery-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
}

.gallery-modal-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 2rem;
  height: 100vh;
}

.gallery-modal-figure {
  margin: 0;
  max-width: 85vw;
  max-height: 80vh;
  text-align: center;
}

.gallery-modal-image {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 12px;
}

.gallery-modal-video {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 12px;
  display: none;
}

.gallery-modal-caption {
  margin-top: 12px;
  color: #f5f5f5;
  font-size: 1rem;
}

.gallery-nav-btn {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  font-size: 2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.gallery-nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
  .gallery-modal-body {
    padding: 1.5rem;
  }

  .gallery-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.6rem;
  }

  .gallery-modal-image {
    max-height: 60vh;
  }
}
