.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.5rem;
}

.gallery-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.gallery-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.gallery-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111827;
}

.gallery-card__media iframe,
.gallery-card__media video {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #000;
}

.gallery-card__media video {
  object-fit: cover;
}

.gallery-card__body {
  padding: 1rem 1.1rem 1.25rem;
}

.gallery-card__title {
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  font-size: 0.95rem;
}

.gallery-home-section {
  background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 40%, #fce7f3 100%);
}

.gallery-home-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 174, 239, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 768px) {
  .gallery-preview-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.gallery-preview-card {
  position: relative;
  display: block;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #111827;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-preview-card:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.gallery-preview-card img,
.gallery-preview-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.gallery-preview-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.15));
  color: #fff;
}

.gallery-preview-card__play {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  color: #00aeef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.gallery-preview-card__label {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
