/* DDC_IMAGE_LIGHTBOX_1_0_0 */
.hero-panel-carousel .hero-panel-slide {
  position: relative;
}

.hero-panel-carousel .hero-panel-slide img {
  cursor: zoom-in;
}

.ddc-image-fullscreen {
  position: absolute;
  z-index: 4;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 7px;
  color: #fff;
  background: rgba(5, 8, 13, 0.82);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  opacity: 0.8;
  cursor: pointer;
  transition: opacity 160ms ease, border-color 160ms ease, background 160ms ease,
    transform 160ms ease;
}

.ddc-image-fullscreen::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: #ef3348;
  box-shadow: 0 0 10px rgba(239, 51, 72, 0.75);
}

.hero-panel-slide:hover .ddc-image-fullscreen,
.ddc-image-fullscreen:focus-visible {
  opacity: 1;
  border-color: rgba(239, 51, 72, 0.75);
  background: rgba(12, 15, 21, 0.96);
}

.ddc-image-fullscreen:hover {
  transform: translateY(-1px);
}

.ddc-image-fullscreen:focus-visible {
  outline: 2px solid #ef3348;
  outline-offset: 3px;
}

.ddc-image-fullscreen svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: square;
}

.hero-panel-slide.ddc-hover-arming .ddc-image-fullscreen::after {
  animation: ddc-image-hover-delay 2s linear forwards;
}

@keyframes ddc-image-hover-delay {
  to {
    width: 100%;
  }
}

body.ddc-lightbox-open {
  overflow: hidden;
}

.ddc-image-lightbox[hidden] {
  display: none !important;
}

.ddc-image-lightbox {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(2, 4, 8, 0.94);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 160ms ease;
}

.ddc-image-lightbox.open {
  opacity: 1;
}

.ddc-image-lightbox-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: min(96vw, 1900px);
  max-height: 94vh;
}

.ddc-image-lightbox img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(94vh - 50px);
  object-fit: contain;
  border: 1px solid rgba(239, 51, 72, 0.42);
  border-radius: 9px;
  background: #080b10;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 30px 90px rgba(0, 0, 0, 0.72), 0 0 55px rgba(239, 51, 72, 0.12);
}

.ddc-image-lightbox p {
  margin: 12px 56px 0;
  color: #9aa4b2;
  font-size: 12px;
  letter-spacing: 0.035em;
  text-align: center;
}

.ddc-image-lightbox-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0 0 3px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 7px;
  color: #fff;
  background: rgba(5, 8, 13, 0.9);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  font: 300 29px/1 sans-serif;
  cursor: pointer;
}

.ddc-image-lightbox-close:hover,
.ddc-image-lightbox-close:focus-visible {
  border-color: #ef3348;
  background: #171017;
}

.ddc-image-lightbox-close:focus-visible {
  outline: 2px solid #ef3348;
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .ddc-image-fullscreen {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    opacity: 1;
  }

  .ddc-image-lightbox {
    padding: 12px;
  }

  .ddc-image-lightbox-stage {
    width: 100%;
  }

  .ddc-image-lightbox-close {
    top: 8px;
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ddc-image-fullscreen,
  .ddc-image-lightbox {
    transition: none;
  }

  .hero-panel-slide.ddc-hover-arming .ddc-image-fullscreen::after {
    animation: none;
    width: 100%;
  }
}
