.pro-gallery-shell {
  position: relative;
  height: clamp(360px, 52vw, 640px);
  border-radius: 1.5rem;
  overflow: hidden;
  background: radial-gradient(
    circle at 50% 30%,
    rgba(56, 189, 248, 0.24),
    rgba(2, 6, 23, 0.96) 58%
  );
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.45);
  isolation: isolate;
}

.pro-gallery-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(2, 6, 23, 0.32),
    rgba(2, 6, 23, 0.78)
  );
  pointer-events: none;
  z-index: 1;
}

.pro-gallery-swiper {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.pro-gallery-swiper .swiper-slide {
  display: grid;
  place-items: center;
  background: transparent;
}

.pro-gallery-card {
  width: min(50vw, 430px);
  height: clamp(310px, 46vw, 520px);
  border-radius: 1rem;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.66);
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.5);
  background: rgba(15, 23, 42, 0.5);
  cursor: zoom-in;
}

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

.pro-gallery-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(15, 23, 42, 0.52);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
  transition:
    background 180ms ease,
    transform 180ms ease;
  will-change: transform;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.pro-gallery-control:hover {
  background: rgba(2, 132, 199, 0.8);
  transform: translateY(-50%) scale(1.05);
}

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

.pro-gallery-control.prev {
  left: 0.85rem;
}

.pro-gallery-control.next {
  right: 0.85rem;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  background: rgba(2, 6, 23, 0.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  padding: 1rem;
}

.gallery-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.gallery-lightbox-image {
  max-width: min(96vw, 1280px);
  max-height: 90vh;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.45);
  object-fit: contain;
  background: #020617;
}

.gallery-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition:
    background 160ms ease,
    transform 160ms ease;
  touch-action: manipulation;
}

.gallery-lightbox-close:hover {
  background: rgba(2, 132, 199, 0.85);
  transform: scale(1.04);
}

@media (max-width: 768px) {
  .pro-gallery-shell {
    height: clamp(390px, 118vw, 560px);
    border-radius: 1rem;
  }

  .pro-gallery-swiper .swiper-slide {
    box-sizing: border-box;
    padding: 0.75rem 0 3.3rem;
  }

  .pro-gallery-card {
    width: min(90vw, 390px);
    aspect-ratio: 4 / 5;
    height: auto;
    max-height: 100%;
    border-radius: 0.9rem;
  }

  .pro-gallery-control {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1.18rem;
    top: auto;
    bottom: 0.6rem;
    transform: none;
  }

  .pro-gallery-control:hover,
  .pro-gallery-control:active {
    transform: none;
  }

  .pro-gallery-control.prev {
    left: calc(50% - 2.75rem);
  }

  .pro-gallery-control.next {
    right: calc(50% - 2.75rem);
  }

  .gallery-lightbox {
    padding: 0.75rem;
  }

  .gallery-lightbox-image {
    max-height: 84vh;
  }
}

.feature-card-swiper-wrap {
  position: relative;
  overflow: hidden;
}

.feature-card-swiper {
  --swiper-pagination-color: #4f46e5;
  --swiper-pagination-bullet-size: 6px;
}

.feature-card-swiper .swiper-slide img {
  display: block;
  width: 100%;
  height: 12rem;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .feature-card-swiper .swiper-slide img {
    height: 15rem;
  }
}

.feature-card-pagination.swiper-pagination-bullets {
  bottom: 0.5rem !important;
}
