/* ===== SLIDER & LIGHTBOX ===== */

.slider {
  position: relative;
  width: 80%;
  max-width: 700px;
  aspect-ratio: 4/3;
  margin: 0 auto;
}

.slider-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.slider-container {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.slide {
  min-width: 100%;
  aspect-ratio: 4/3;
  margin: 0 150px 0 0;
  box-sizing: border-box;
  transform: scale(0.8);
  opacity: 0.6;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.4s ease;
}

.slide.active {
  transform: scale(1.05);
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  border-radius: 0 0 0 3rem;
  object-fit: cover;
}

.slide.active img {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  border-radius: 0 0 0 3rem;
}

/* Slider Buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 3.5rem;
  height: 3.5rem;
  font-size: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  padding: 0 !important;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.slider-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 4px 16px rgba(0, 78, 203, 0.3);
}

.slider-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.slider-btn:focus {
  outline: none;
}

.slider-btn.prev {
  left: -6rem;
}

.slider-btn.next {
  right: -6rem;
}

.slider-btn img {
  width: 4rem;
}

/* Dot Indicators */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-light);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.slider-dot:hover {
  background: var(--gray);
}

.slider-dot.active {
  background: var(--primary-color);
  transform: scale(1.25);
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1;
}

.lightbox-content {
  position: relative;
  z-index: 2;
  width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  z-index: 3;
  background: none;
  border: none;
  color: white;
  font-size: 48px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.lightbox-close:hover {
  color: var(--accent-color);
  transform: scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav svg {
  width: 28px;
  height: 28px;
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

.lightbox-counter {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: white;
  font-size: 16px;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 20px;
  border-radius: 20px;
}

/* Image Lightbox Modal (legacy) */
.modal.image-lightbox {
  background-color: rgba(0, 0, 0, 0.8);
}

.modal.image-lightbox .modal-content {
  max-width: 80%;
  max-height: 80%;
  border-radius: var(--radius-sm);
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}
