/* Gallery-only image lightbox - v1.0.59 */

.gallery-force-card__image {
  cursor: zoom-in;
}

.gallery-lightbox-modal,
.gallery-lightbox-modal * {
  box-sizing: border-box;
}

.gallery-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.gallery-lightbox-modal.is-open {
  display: flex;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, .84);
  backdrop-filter: blur(12px);
}

.gallery-lightbox-dialog {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  max-height: 92vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: 30px;
  background:
    radial-gradient(circle at 92% 0%, rgba(245, 158, 11, .22), transparent 32%),
    linear-gradient(180deg, #0f172a, #111827);
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 34px 90px rgba(0,0,0,.48);
}

.gallery-lightbox-top {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 18px 15px 22px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.gallery-lightbox-top > div {
  min-width: 0;
}

.gallery-lightbox-top span {
  display: block;
  margin-bottom: 4px;
  color: #fbbf24;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.gallery-lightbox-top h2 {
  max-width: 820px;
  margin: 0;
  color: #fff;
  font-size: clamp(18px, 2.4vw, 28px);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-lightbox-close {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: .2s ease;
}

.gallery-lightbox-close:hover {
  background: rgba(245, 158, 11, .22);
  border-color: rgba(245, 158, 11, .45);
}

.gallery-lightbox-image-wrap {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 18px 70px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 180, 0, .82) rgba(255, 255, 255, .055);
}

.gallery-lightbox-image-wrap::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.gallery-lightbox-image-wrap::-webkit-scrollbar-track {
  background: rgba(255,255,255,.06);
  border-radius: 999px;
}

.gallery-lightbox-image-wrap::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ffd24a, #f5a700, #d97706);
  border-radius: 999px;
  border: 2px solid rgba(15,23,42,.92);
}

.gallery-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: calc(92vh - 160px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 20px;
  background: #020617;
  box-shadow:
    0 24px 70px rgba(0,0,0,.35),
    0 0 0 1px rgba(255,255,255,.08);
}

.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 64px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  background: rgba(15,23,42,.74);
  color: #fff;
  font-size: 46px;
  line-height: 1;
  cursor: pointer;
  transition: .2s ease;
  backdrop-filter: blur(10px);
}

.gallery-lightbox-nav:hover {
  background: rgba(245,158,11,.30);
  border-color: rgba(245,158,11,.45);
}

.gallery-lightbox-prev {
  left: 16px;
}

.gallery-lightbox-next {
  right: 16px;
}

.gallery-lightbox-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-top: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.68);
  font-size: 13px;
}

.gallery-lightbox-bottom span {
  color: #fbbf24;
  font-weight: 900;
}

.gallery-lightbox-bottom a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 16px;
  background: linear-gradient(180deg, #ffc61a, #f5a700);
  color: #111827;
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 767px) {
  .gallery-lightbox-modal {
    padding: 8px;
  }

  .gallery-lightbox-dialog {
    max-height: 94vh;
    border-radius: 22px;
  }

  .gallery-lightbox-top {
    min-height: 58px;
    padding: 12px 12px 10px 14px;
  }

  .gallery-lightbox-top span {
    font-size: 10px;
  }

  .gallery-lightbox-top h2 {
    font-size: 16px;
    max-width: 220px;
  }

  .gallery-lightbox-close {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }

  .gallery-lightbox-image-wrap {
    padding: 10px 46px;
  }

  .gallery-lightbox-image {
    max-height: calc(94vh - 136px);
    border-radius: 16px;
  }

  .gallery-lightbox-nav {
    width: 36px;
    height: 54px;
    border-radius: 14px;
    font-size: 36px;
  }

  .gallery-lightbox-prev {
    left: 6px;
  }

  .gallery-lightbox-next {
    right: 6px;
  }

  .gallery-lightbox-bottom {
    display: grid;
    gap: 10px;
    padding: 12px;
  }

  .gallery-lightbox-bottom a {
    width: 100%;
  }
}
