/* Site-wide image / video lightbox */

.aks-lb {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 24, 38, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.aks-lb.is-open {
  display: flex;
}

.aks-lb__dialog {
  position: relative;
  width: min(1100px, 100%);
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.aks-lb__media {
  position: relative;
  width: 100%;
  max-height: calc(100vh - 96px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.aks-lb__media img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 96px);
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  background: #0a2a3d;
}

.aks-lb__media iframe {
  width: min(960px, 100%);
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: calc(100vh - 96px);
  border: 0;
  border-radius: 10px;
  background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.aks-lb__close,
.aks-lb__prev,
.aks-lb__next {
  position: absolute;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: rgba(0, 101, 155, 0.92);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  box-sizing: border-box;
  transition: background 0.2s ease, transform 0.2s ease;
}

.aks-lb__close:hover,
.aks-lb__prev:hover,
.aks-lb__next:hover {
  background: #FF5151;
}

.aks-lb__close svg,
.aks-lb__prev svg,
.aks-lb__next svg {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}

/* Optical balance for chevron shapes inside circles */
.aks-lb__prev svg {
  transform: translateX(-1px);
}

.aks-lb__next svg {
  transform: translateX(1px);
}

.aks-lb__close {
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  z-index: 2;
}

.aks-lb__prev,
.aks-lb__next {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  z-index: 2;
}

.aks-lb__prev {
  left: 18px;
}

.aks-lb__next {
  right: 18px;
}

.aks-lb__prev:hover,
.aks-lb__next:hover {
  transform: translateY(-50%) scale(1.05);
}

.aks-lb__counter {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.aks-lb.is-single .aks-lb__prev,
.aks-lb.is-single .aks-lb__next,
.aks-lb.is-single .aks-lb__counter {
  display: none;
}

body.aks-lb-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .aks-lb {
    padding: 12px;
  }

  .aks-lb__prev,
  .aks-lb__next {
    width: 40px;
    height: 40px;
  }

  .aks-lb__prev {
    left: 8px;
  }

  .aks-lb__next {
    right: 8px;
  }

  .aks-lb__close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }

  .aks-lb__close svg,
  .aks-lb__prev svg,
  .aks-lb__next svg {
    width: 18px;
    height: 18px;
  }
}
