/* ================= WRAPPER ================= */

.webror-gallery-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* ================= MARQUEE ================= */

.webror-gallery-track {
  display: inline-flex;
  gap: 20px;
  animation: webror-marquee var(--webror-speed, 20s) linear infinite;
  will-change: transform;
}

@keyframes webror-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* ================= GALLERY ITEM ================= */

.wbrgallery-single-image {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #222;
  aspect-ratio: var(--webror-ratio, 3 / 4);
}
/* Prevent layout flash before JS initializes */
.webror-mode-carousel{
  opacity:0;
  transition:opacity .25s ease;
}

/* Show gallery when ready */
.webror-mode-carousel.webror-ready{
  opacity:1;
}
/* Marquee specific width */
.webror-gallery-track .wbrgallery-single-image {
  flex: 0 0 auto;
  width: 300px;
}

/* Image */
.webror-gallery-wrapper .wbrgallery-single-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease, filter 0.8s ease;
}

.wbrgallery-single-image img:hover {
  transform: scale(1.15);
  filter: sepia(1);
}

/* Kenburn effect on slider */


.webror-mode-carousel[data-kenburns="true"] .swiper-slide img {
    transform: scale(1);
    transition: transform 6s ease-in-out;
}

/* Animate only active slide */
.webror-mode-carousel[data-kenburns="true"] .swiper-slide-active img {
    transform: scale(1.15);
}

/* ================= GRID MODE ================= */

.webror-gallery-wrapper[data-columns] {
  display: grid;
  grid-template-columns: repeat(var(--webror-cols, 3), 1fr);
  gap: 20px;
  overflow: visible;
}

.webror-gallery-wrapper[data-columns] .webror-gallery-track {
  display: contents;
  animation: none;
}

/* ================= META ================= */

.webror-gallery-meta {
  text-align: center;
}

/* ================= LIGHTBOX ================= */

.webror-lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 9999;
}

.webror-lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.webror-lightbox-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 95vw;
  max-height: 95vh;
}

.webror-lightbox img {
  max-width: min(90vw, 1200px);
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.webror-lightbox button {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
}

.webror-lightbox .close { top: 20px; right: 20px; }
.webror-lightbox .prev  { left: 20px; top: 50%; transform: translateY(-50%); }
.webror-lightbox .next  { right: 20px; top: 50%; transform: translateY(-50%); }

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {
  .webror-gallery-wrapper[data-columns] {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .webror-gallery-wrapper[data-columns] {
    grid-template-columns: 1fr;
  }
}

