/* PageSpeed: skip preloader delay — show content immediately */
#preloader {
  display: none !important;
}

.fixed-bottom-right-actions {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Reserve space for images without explicit dimensions in theme */
img.img-fullwidth,
img.card-image {
  height: auto;
}

/* Responsive gallery grid (single markup — no duplicate mobile/desktop galleries) */
.gallery-responsive {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

@media (max-width: 991px) {
  .gallery-responsive {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .gallery-responsive {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .gallery-responsive {
    grid-template-columns: 1fr 1fr;
  }
}

.gallery-responsive .gallery-item .thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
