/* =============================================
   PRO CAROUSEL — Frontend Styles
   ============================================= */

/* ---------- Reset & Container ---------- */
.pro-carousel-wrapper {
  position: relative;
  width: 100%;
  font-family: inherit;
  user-select: none;
  -webkit-user-select: none;
}

/* ---------- Stage: ratio padding trick ---------- */
.pro-carousel-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
  background: #0d0d0d;
}

/* ---------- Track ---------- */
.pro-carousel-track {
  position: absolute;
  inset: 0;
  display: flex;
  width: 100%;
  height: 100%;
  will-change: transform;
}

/* Slide transition: slide */
.pro-carousel-wrapper[data-transition="slide"] .pro-carousel-track {
  transition: transform 0.55s cubic-bezier(0.77, 0, 0.175, 1);
}

/* ---------- Slides ---------- */
.pro-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.pro-carousel-slide.is-active {
  opacity: 1;
  pointer-events: all;
}

/* Slide mode: position each slide */
.pro-carousel-wrapper[data-transition="slide"] .pro-carousel-slide {
  opacity: 1;
  pointer-events: all;
  transition: none;
}

/* ---------- Image Wrap ---------- */
.pro-carousel-image-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pro-carousel-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---------- Lightbox trigger ---------- */
.pro-carousel-lightbox-trigger {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  cursor: zoom-in;
}

.pro-carousel-lightbox-trigger:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}

/* Zoom hint icon */
.pro-carousel-zoom-hint {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}

.pro-carousel-zoom-hint svg {
  width: 16px;
  height: 16px;
}

.pro-carousel-image-wrap:hover .pro-carousel-zoom-hint {
  opacity: 1;
  transform: scale(1);
}

/* ---------- Caption ---------- */
.pro-carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 20px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.4;
  pointer-events: none;
}

/* ---------- Arrows ---------- */
.pro-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s, background 0.2s, transform 0.2s;
  z-index: 10;
  padding: 0;
  outline: none;
}

.pro-carousel-wrapper:hover .pro-carousel-arrow {
  opacity: 1;
}

.pro-carousel-arrow:hover {
  background: rgba(255,255,255,0.22);
  transform: translateY(-50%) scale(1.05);
}

.pro-carousel-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

.pro-carousel-arrow svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.pro-carousel-prev { left: 12px; }
.pro-carousel-next { right: 12px; }

/* Arrow styles variants */
.arrows-circle .pro-carousel-arrow {
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}

.arrows-square .pro-carousel-arrow {
  border-radius: 4px;
}

/* ---------- Dots ---------- */
.pro-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}

.pro-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c0c0c0;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, width 0.25s, border-radius 0.25s;
  outline: none;
}

.pro-carousel-dot.is-active {
  background: #1a1a1a;
  width: 20px;
  border-radius: 3px;
}

/* ---------- Counter ---------- */
.pro-carousel-counter {
  position: absolute;
  bottom: 12px;
  left: 14px;
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  letter-spacing: 0.08em;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}

/* =============================================
   LIGHTBOX
   ============================================= */
.pro-carousel-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.pro-carousel-lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

.pro-carousel-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pro-carousel-lightbox-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 16px 40px;
  box-sizing: border-box;
}

/* Close button */
.pro-carousel-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
  outline: none;
}

.pro-carousel-lightbox-close:hover {
  background: rgba(255,255,255,0.18);
  transform: rotate(90deg);
}

.pro-carousel-lightbox-close svg {
  width: 16px;
  height: 16px;
}

/* Content area */
.pro-carousel-lightbox-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1;
  gap: 16px;
  max-height: 100%;
}

/* Lightbox image */
.pro-carousel-lightbox-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100vw - 140px);
  max-height: calc(100vh - 140px);
}

.pro-carousel-lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.3s ease, transform 0.35s ease;
  display: block;
}

.pro-carousel-lightbox-img.is-loaded {
  opacity: 1;
  transform: scale(1);
}

/* Loader */
.pro-carousel-lightbox-loader {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255,255,255,0.15);
  border-top-color: rgba(255,255,255,0.8);
  border-radius: 50%;
  animation: pcl-spin 0.7s linear infinite;
}

.pro-carousel-lightbox-loader.is-hidden {
  display: none;
}

@keyframes pcl-spin {
  to { transform: rotate(360deg); }
}

/* Lightbox arrows */
.pro-carousel-lightbox-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 50%;
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  padding: 0;
  outline: none;
}

.pro-carousel-lightbox-arrow:hover {
  background: rgba(255,255,255,0.16);
  color: #fff;
}

.pro-carousel-lightbox-arrow:active {
  transform: scale(0.93);
}

.pro-carousel-lightbox-arrow svg {
  width: 20px;
  height: 20px;
}

/* Lightbox caption */
.pro-carousel-lightbox-caption {
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  text-align: center;
  margin: 14px 0 0;
  line-height: 1.5;
  max-width: 600px;
}

/* Lightbox counter */
.pro-carousel-lightbox-counter {
  color: rgba(255,255,255,0.35);
  font-size: 11px;
  letter-spacing: 0.1em;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}

/* ---------- Empty ---------- */
.pro-carousel-empty {
  padding: 24px;
  text-align: center;
  color: #888;
  font-style: italic;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .pro-carousel-arrow {
    width: 34px;
    height: 34px;
  }
  .pro-carousel-arrow svg {
    width: 16px;
    height: 16px;
  }
  .pro-carousel-lightbox-media {
    max-width: calc(100vw - 80px);
  }
  .pro-carousel-lightbox-arrow {
    width: 36px;
    height: 36px;
  }
  .pro-carousel-lightbox-arrow svg {
    width: 17px;
    height: 17px;
  }
}
