/* =============================================
   ABOUT PAGE — SLIDESHOW STYLES
   ============================================= */

.about-hero-img {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  /* Must have explicit height so absolute children fill it */
  min-height: 460px;
  height: 100%;
}

/* Each slide stacks absolutely inside the container */
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.05);
  transition:
    opacity 1.2s cubic-bezier(0.45, 0, 0.25, 1),
    transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
  /* Make sure slides don't block each other's events while invisible */
  pointer-events: none;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) brightness(0.88);
  transition: filter 0.6s ease;
}

/* Active slide: fully visible, normal scale */
.slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.slide.active img {
  filter: grayscale(0) brightness(0.92);
}

/* Leaving slide: fades out and shrinks slightly */
.slide.prev {
  opacity: 0;
  transform: scale(0.97);
  transition:
    opacity 1.0s cubic-bezier(0.45, 0, 0.25, 1),
    transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- SLIDE COUNTER ---- */
.slide-counter {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 10;
  font-family: 'Inter', sans-serif;
  font-size: 0.52rem;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.15);
  pointer-events: none;
  transition: opacity 0.3s;
}

/* ---- SLIDE DOTS ---- */
.slide-dots {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 6px;
  align-items: center;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
  transition: background 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.35s ease;
}

.dot.active {
  background: rgba(255, 255, 255, 0.95);
  width: 20px; /* pill shape when active */
  transform: scale(1);
}

.dot:hover:not(.active) {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.2);
}
