.statusdeck-carousel {
  max-width: 1050px;
  margin-inline: auto;
  touch-action: pan-y;
}

.statusdeck-carousel-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 26px;
  background: #eef3f9;
  box-shadow: var(--shadow-medium);
}

.carousel-slide-button {
  display: block;
  width: 100%;
  min-height: 540px;
  padding: 28px 72px;
  overflow: hidden;
  border: 0;
  background:
    radial-gradient(
      circle at top right,
      rgba(23, 104, 229, 0.08),
      transparent 40%
    ),
    #f4f7fb;
  cursor: zoom-in;
}

.carousel-main-image {
  width: 100%;
  height: 500px;
  object-fit: contain;
  object-position: center;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(12, 31, 58, 0.13);
  opacity: 1;
  transform: translateX(0);
  transition:
    transform 320ms ease,
    opacity 260ms ease;
  will-change: transform, opacity;
}

.carousel-main-image.slide-out-left {
  opacity: 0;
  transform: translateX(-110%);
}

.carousel-main-image.slide-out-right {
  opacity: 0;
  transform: translateX(110%);
}

.carousel-main-image.slide-enter-right {
  opacity: 0;
  transform: translateX(110%);
  transition: none;
}

.carousel-main-image.slide-enter-left {
  opacity: 0;
  transform: translateX(-110%);
  transition: none;
}

.carousel-main-image.slide-active {
  opacity: 1;
  transform: translateX(0);
  transition:
    transform 320ms ease,
    opacity 260ms ease;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(7, 17, 31, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #122033;
  box-shadow: 0 12px 30px rgba(12, 31, 58, 0.18);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
  background: var(--color-primary);
  color: #ffffff;
  transform: translateY(-50%) scale(1.06);
}

.carousel-arrow-previous {
  left: 18px;
}

.carousel-arrow-next {
  right: 18px;
}

.carousel-counter {
  position: absolute;
  right: 22px;
  bottom: 20px;
  z-index: 4;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.82);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 750;
  backdrop-filter: blur(10px);
}

.carousel-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 120px;
  padding: 28px 8px 22px;
}

.carousel-caption h3 {
  margin-bottom: 8px;
  font-size: 1.55rem;
}

.carousel-caption p {
  max-width: 760px;
  margin-bottom: 0;
}

.carousel-autoplay-button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #ffffff;
  color: var(--color-text);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
}

.carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-bottom: 25px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #b8c4d2;
  cursor: pointer;
  transition:
    width 220ms ease,
    background 220ms ease;
}

.carousel-dot.is-active {
  width: 28px;
  background: var(--color-primary);
}

.carousel-thumbnails {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 4px 12px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
}

.carousel-thumbnail {
  flex: 0 0 112px;
  width: 112px;
  padding: 7px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  opacity: 0.7;
  transition:
    border-color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.carousel-thumbnail:hover,
.carousel-thumbnail:focus-visible {
  opacity: 1;
  transform: translateY(-2px);
}

.carousel-thumbnail.is-active {
  border-color: var(--color-primary);
  opacity: 1;
}

.carousel-thumbnail img {
  width: 100%;
  height: 64px;
  object-fit: contain;
  border-radius: 7px;
  background: #f4f7fb;
}

.statusdeck-lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
}

.statusdeck-lightbox.is-open {
  display: block;
}

.statusdeck-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 18, 0.94);
  backdrop-filter: blur(10px);
}

.statusdeck-lightbox-dialog {
  position: relative;
  z-index: 2;
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: 80px minmax(0, 1fr) 80px;
  align-items: center;
  gap: 18px;
  padding: 30px;
}

.statusdeck-lightbox-figure {
  display: flex;
  width: min(1250px, 100%);
  max-height: calc(100vh - 60px);
  margin: 0 auto;
  flex-direction: column;
  align-items: center;
}

.statusdeck-lightbox-figure img {
  width: 100%;
  max-height: calc(100vh - 170px);
  object-fit: contain;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
}

.statusdeck-lightbox-figure figcaption {
  width: min(900px, 100%);
  padding: 18px 20px 0;
  color: #ffffff;
  text-align: center;
}

.statusdeck-lightbox-figure strong,
.statusdeck-lightbox-figure span,
.statusdeck-lightbox-figure small {
  display: block;
}

.statusdeck-lightbox-figure strong {
  font-size: 1.1rem;
}

.statusdeck-lightbox-figure span {
  margin-top: 5px;
  color: #c0ccda;
  font-size: 0.9rem;
}

.statusdeck-lightbox-figure small {
  margin-top: 8px;
  color: #8798ab;
}

.statusdeck-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 10;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
  font-size: 1.75rem;
}

.statusdeck-lightbox-arrow {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
  font-size: 2.4rem;
  line-height: 1;
}

.statusdeck-lightbox-arrow:hover,
.statusdeck-lightbox-arrow:focus-visible {
  background: var(--color-primary);
}

.statusdeck-lightbox-previous {
  justify-self: end;
}

.statusdeck-lightbox-next {
  justify-self: start;
}

body.statusdeck-lightbox-open {
  overflow: hidden;
}

.carousel-arrow:focus-visible,
.carousel-autoplay-button:focus-visible,
.carousel-thumbnail:focus-visible,
.carousel-dot:focus-visible,
.statusdeck-lightbox-close:focus-visible,
.statusdeck-lightbox-arrow:focus-visible,
.carousel-slide-button:focus-visible {
  outline: 3px solid rgba(47, 208, 255, 0.55);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .carousel-slide-button {
    min-height: 440px;
    padding: 24px 62px;
  }

  .carousel-main-image {
    height: 400px;
  }

  .statusdeck-lightbox-dialog {
    grid-template-columns: 60px minmax(0, 1fr) 60px;
    padding: 24px 15px;
  }

  .statusdeck-lightbox-arrow {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 640px) {
  .carousel-slide-button {
    min-height: 310px;
    padding: 18px 14px 54px;
  }

  .carousel-main-image {
    height: 260px;
  }

  .carousel-arrow {
    top: auto;
    bottom: 12px;
    width: 42px;
    height: 42px;
    transform: none;
  }

  .carousel-arrow:hover,
  .carousel-arrow:focus-visible {
    transform: scale(1.05);
  }

  .carousel-arrow-previous {
    left: 14px;
  }

  .carousel-arrow-next {
    right: 14px;
  }

  .carousel-counter {
    right: 50%;
    bottom: 20px;
    transform: translateX(50%);
  }

  .carousel-caption {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    padding-inline: 2px;
  }

  .carousel-autoplay-button {
    width: 100%;
  }

  .carousel-thumbnail {
    flex-basis: 105px;
    width: 105px;
  }

  .carousel-thumbnail img {
    height: 56px;
  }

  .statusdeck-lightbox-dialog {
    display: block;
    padding: 72px 12px 88px;
  }

  .statusdeck-lightbox-figure {
    height: 100%;
    justify-content: center;
  }

  .statusdeck-lightbox-figure img {
    max-height: calc(100vh - 230px);
  }

  .statusdeck-lightbox-arrow {
    position: absolute;
    bottom: 22px;
    width: 50px;
    height: 50px;
  }

  .statusdeck-lightbox-previous {
    left: 24px;
  }

  .statusdeck-lightbox-next {
    right: 24px;
  }

  .statusdeck-lightbox-close {
    top: 14px;
    right: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-main-image,
  .carousel-arrow,
  .carousel-dot,
  .carousel-thumbnail {
    transition: none;
  }
}