.gallery-card {
  overflow: hidden;
  border-radius: 0.75rem;
  background-color: var(--bs-body-bg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card:hover {
  transform: translateY(-2px);
}

.gallery-link {
  display: block;
  text-decoration: none;
}

.gallery-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-card .card-body {
  padding: 1rem;
}

.glightbox-clean .gslide-description {
  background: rgba(255, 255, 255, 0.96);
}

[data-bs-theme="dark"] .gallery-card {
  background-color: var(--bs-tertiary-bg);
  color: var(--bs-body-color);
}

[data-bs-theme="dark"] .gallery-card .card-title,
[data-bs-theme="dark"] .gallery-card .card-text,
[data-bs-theme="dark"] .gallery-card small {
  color: var(--bs-body-color);
}

[data-bs-theme="dark"] .gallery-plugin .border-bottom {
  border-color: var(--bs-border-color) !important;
}