/* --- Core Slider & Layout --- */
[v-cloak] { display: none; }

.slider {
  width: 100%;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-color);
  cursor: grab;
  touch-action: pan-y;
  border-radius: var(--container-radius);

  /* The Gradient Mask for smooth edges */
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 15%,
    rgba(0, 0, 0, 1) 85%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 15%,
    rgba(0, 0, 0, 1) 85%,
    rgba(0, 0, 0, 0) 100%
  );
}

.slider:active { cursor: grabbing; }

.slider-track {
  display: flex;
  align-items: center;
}

.slider__item {
  aspect-ratio: var(--aspect-ratio);
  padding: var(--image-padding);
  display: flex;
  box-sizing: border-box;
  border-right: var(--separator-width) solid var(--separator-color);
  user-select: none;
  -webkit-user-drag: none;
}

.slider__image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: var(--image-radius);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
}

/* --- Lightbox Overlay --- */
.lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(0, 0, 0, 0.95); /* Slightly darker for boutique feel */
  z-index: 9999;
  display: flex;
  align-items: center; 
  justify-content: center;
}

/* Container that hugs the image and holds arrows */
.lightbox-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 95%;
  max-height: 95%;
}

.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 85vh; /* Prevents arrows from being too far apart */
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

/* --- Minimalist Arrows --- */
.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  color: rgba(255, 255, 255, 0.6);
  border: none;
  padding: 20px;
  cursor: pointer;
  font-size: 60px;
  z-index: 10000;
  transition: all 0.2s ease-in-out;
  text-shadow: 0px 0px 15px rgba(0,0,0,0.9);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.lightbox-nav-btn:hover {
  color: #fff;
  transform: translateY(-50%) scale(1.15);
}

.lightbox-nav-btn.prev { left: 0px; }
.lightbox-nav-btn.next { right: 0px; }

/* --- UI Controls --- */
.lightbox-close {
  position: absolute;
  top: 20px; 
  right: 30px;
  color: white; 
  font-size: 40px;
  cursor: pointer; 
  user-select: none;
  z-index: 10001;
  transition: color 0.2s;
}

.lightbox-close:hover { color: #ccc; }

/* --- Transitions --- */
.fade-enter-active, .fade-leave-active { transition: opacity 0.3s ease; }
.fade-enter, .fade-leave-to { opacity: 0; }

/* --- Mobile Refinements --- */
@media (max-width: 768px) {
  .lightbox-nav-btn {
    font-size: 45px;
    padding: 15px;
  }
  .lightbox-nav-btn.prev { left: -5px; }
  .lightbox-nav-btn.next { right: -5px; }
}
