/*
 * gallery-fix.css
 * Restores gallery display without the uxfol.io app.js bundle.
 */

/* ── Tilted gallery: hide Glide clone/ghost elements ───────────────────────
   These were positioned absolutely by JS for infinite-scroll effect.
   Without the JS, they just overlap and break the layout. The real items
   in .tilted are already a beautiful CSS grid — let that show instead.
------------------------------------------------------------------------- */
.image-gallery.tilted .gallery-ghost {
  display: none !important;
}

/* ── Grid gallery: ensure images fill their cells ──────────────────────── */
.image-gallery.grid-gallery .gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Both types: make sure images are visible ─────────────────────────── */
.image-gallery img {
  max-width: 100%;
  height: auto;
}

/* ── Slider carousel: override Glide's inline transform / fixed widths ── */
.image-gallery.slider .carousel__slides--slider {
  transform: none !important;
  width: 100% !important;
  max-width: 100% !important;
  position: relative !important;
  display: block !important;
}

.image-gallery.slider .carousel__slide--slider {
  width: 100% !important;
  margin: 0 !important;
}

/* ── Slider carousel: arrow button styling ──────────────────────────── */
.carousel__arrows {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 4px;
}

.carousel__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.2s, background 0.2s;
  padding: 0;
  flex-shrink: 0;
}

.carousel__arrow:hover,
.carousel__arrow:focus-visible {
  opacity: 1;
  background: rgba(0, 0, 0, 0.08);
  outline: none;
}

.carousel__arrow svg {
  display: block;
  pointer-events: none;
}
