.epc-lb-lock {
  overflow: hidden;
}

.epc-lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 10, 0.96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 0ms linear 220ms;
  z-index: 99999;
}

.epc-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 220ms ease;
}

.epc-lb-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.epc-lb-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 360ms ease;
  position: relative;
  z-index: 1;
}

.epc-lb-slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6vh 8vw;
  box-sizing: border-box;
}

.epc-lb-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  border-radius: 6px;
}

.epc-lb-close,
.epc-lb-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 160ms ease, transform 160ms ease;
  z-index: 2;
}

.epc-lb-close:hover,
.epc-lb-nav:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.05);
}

.epc-lb-close {
  top: 24px;
  right: 24px;
}

.epc-lb-close::before,
.epc-lb-close::after {
  content: '';
  width: 18px;
  height: 2px;
  background: #fff;
  position: absolute;
}

.epc-lb-close::before {
  transform: rotate(45deg);
}

.epc-lb-close::after {
  transform: rotate(-45deg);
}

.epc-lb-prev {
  left: 24px;
}

.epc-lb-next {
  right: 24px;
}

.epc-lb-nav::before {
  content: '';
  width: 10px;
  height: 10px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  display: block;
}

.epc-lb-prev::before {
  transform: rotate(-135deg);
  margin-left: 2px;
}

.epc-lb-next::before {
  transform: rotate(45deg);
  margin-right: 2px;
}

.epc-lb-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #f5f5f5;
  font-size: 14px;
  max-width: min(720px, 90vw);
  text-align: center;
  line-height: 1.4;
  padding: 6px 16px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 999px;
}

.epc-lb-counter {
  position: absolute;
  top: 24px;
  left: 24px;
  color: #f5f5f5;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .epc-lb-slide {
    padding: 12vh 6vw 10vh;
  }

  .epc-lb-close,
  .epc-lb-nav {
    width: 40px;
    height: 40px;
  }

  .epc-lb-prev {
    left: 16px;
  }

  .epc-lb-next {
    right: 16px;
  }

  .epc-lb-close {
    top: 16px;
    right: 16px;
  }

  .epc-lb-counter {
    top: 18px;
    left: 18px;
  }
}
