/* GALLERY BLOCK */
.gallery {
  padding: 6rem 1rem;
  background-color: white;
}

/* Dark mode support */
:is(.dark, .dark-mode) .gallery {
  background-color: #0f172a;
}

.gallery__container {
  max-width: 80rem;
  margin: 0 auto;
}

.gallery__header {
  text-align: center;
  margin-bottom: 4rem;
}

.gallery__badge {
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  display: inline-block;
}

/* Dark mode support for badge */
:is(.dark, .dark-mode) .gallery__badge {
  color: #94a3b8;
}

.gallery__title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-top: 0.5rem;
  color: #0f172a;
}

/* Dark mode support for title */
:is(.dark, .dark-mode) .gallery__title {
  color: white;
}

@media (min-width: 768px) {
  .gallery__title {
    font-size: 2.5rem;
  }
}

.gallery__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* IMAGE-CARD BLOCK */
.image-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  aspect-ratio: 4 / 5;
}

.image-card__image-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.image-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.image-card:hover .image-card__image {
  transform: scale(1.1);
}

.image-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.image-card__overlay--gradient {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent, transparent);
}

.image-card__description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.image-card__link {
  color: white;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.image-card__link:hover {
  gap: 0.75rem;
}

.image-card__link-icon {
  font-size: 0.875rem;
}