.featured-gallery-section {
  padding: 48px 0 72px;
  background: linear-gradient(180deg, #fbfaff 0%, #fff 55%);
}

.featured-gallery {
  max-width: 1120px;
  margin: 0 auto;
}

.featured-gallery-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 8.5;
  min-height: 360px;
  border-radius: 18px;
  background: #332542;
  box-shadow: 0 20px 45px rgba(73, 51, 111, .15);
}

.featured-gallery-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity .55s ease, visibility .55s ease;
}

.featured-gallery-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.featured-gallery-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.015);
  transition: transform .8s ease;
}

.featured-gallery-slide.is-active img {
  transform: scale(1);
}

.featured-gallery-slide::after {
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, rgba(25, 15, 37, .78));
  content: "";
  pointer-events: none;
}

.featured-gallery-caption {
  position: absolute;
  z-index: 1;
  right: 32px;
  bottom: 28px;
  left: 32px;
  color: #fff;
}

.featured-gallery-caption small {
  color: #e6d9ef;
  font-size: .7rem;
}

.featured-gallery-caption h2 {
  max-width: 700px;
  margin: 7px 0 0;
  font-size: clamp(1.2rem, 2.5vw, 2.05rem);
  font-weight: 800;
  line-height: 1.2;
}

.featured-gallery-nav,
.featured-gallery-thumb-nav {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  color: #fff;
  background: rgba(40, 25, 55, .45);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.featured-gallery-nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
}

.featured-gallery-nav:hover,
.featured-gallery-thumb-nav:hover {
  color: #49336f;
  background: #fff;
}

.featured-gallery-nav.prev { left: 20px; }
.featured-gallery-nav.next { right: 20px; }

.featured-gallery-thumbs-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.featured-gallery-thumb-nav {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-color: #d9cce6;
  color: #6f5590;
  background: #fff;
}

.featured-gallery-thumbs {
  display: flex;
  flex: 1 1 auto;
  gap: 10px;
  overflow-x: auto;
  padding: 3px 2px 9px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.featured-gallery-thumbs::-webkit-scrollbar { display: none; }

.featured-gallery-thumb {
  position: relative;
  flex: 0 0 124px;
  height: 78px;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #eee7f5;
  cursor: pointer;
  opacity: .68;
  scroll-snap-align: start;
  transition: border-color .25s ease, opacity .25s ease, transform .25s ease;
}

.featured-gallery-thumb:hover,
.featured-gallery-thumb.is-active {
  border-color: #7963a7;
  opacity: 1;
  transform: translateY(-2px);
}

.featured-gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-gallery-empty {
  padding: 70px 20px;
  border: 1px dashed #d9cde4;
  border-radius: 16px;
  color: #8d8199;
  background: #fff;
  text-align: center;
}

@media (max-width: 767px) {
  .featured-gallery-section { padding: 34px 0 52px; }
  .featured-gallery-stage { min-height: 275px; border-radius: 14px; }
  .featured-gallery-caption { right: 20px; bottom: 20px; left: 20px; }
  .featured-gallery-caption h2 { font-size: 1.12rem; }
  .featured-gallery-nav { width: 36px; height: 36px; }
  .featured-gallery-nav.prev { left: 12px; }
  .featured-gallery-nav.next { right: 12px; }
  .featured-gallery-thumb { flex-basis: 100px; height: 66px; }
}
