/* ===== Project Gallery Lightbox (projects page) ===== */
.project-block .image-box a,
.project-block .content-box a { cursor: zoom-in; }

.pg-lightbox {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 12, 16, .94);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.pg-lightbox.is-open { opacity: 1; visibility: visible; }
body.pg-lightbox-open { overflow: hidden; }

.pg-lightbox__stage {
  position: relative; max-width: 88vw; max-height: 82vh;
  display: flex; align-items: center; justify-content: center;
}
.pg-lightbox__img {
  max-width: 88vw; max-height: 82vh; width: auto; height: auto;
  border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5);
  opacity: 1; transition: opacity .25s ease; user-select: none; -webkit-user-drag: none;
}
.pg-lightbox__img.is-loading { opacity: 0; }

.pg-lightbox__close,
.pg-lightbox__arrow {
  position: absolute; border: 0; cursor: pointer; color: #fff;
  background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.pg-lightbox__close:hover,
.pg-lightbox__arrow:hover { background: #c8102e; }

.pg-lightbox__close {
  top: 20px; right: 20px; width: 48px; height: 48px; border-radius: 50%;
  font-size: 30px; line-height: 1; z-index: 3;
}
.pg-lightbox__close:hover { transform: rotate(90deg); }

.pg-lightbox__arrow {
  top: 50%; width: 54px; height: 54px; margin-top: -27px; border-radius: 50%;
  font-size: 22px; z-index: 2;
}
.pg-lightbox__arrow--prev { left: 24px; }
.pg-lightbox__arrow--next { right: 24px; }
.pg-lightbox__arrow svg { width: 22px; height: 22px; }

.pg-lightbox__caption {
  position: absolute; left: 0; right: 0; bottom: 22px; text-align: center;
  color: #fff; font-size: 16px; letter-spacing: .3px;
}
.pg-lightbox__caption strong { font-weight: 600; margin-right: 10px; color: #fff !important; }
.pg-lightbox__caption span { color: rgba(255,255,255,.75) !important; }

.pg-lightbox.is-single .pg-lightbox__arrow { display: none; }

@media (max-width: 767px) {
  .pg-lightbox__stage, .pg-lightbox__img { max-width: 96vw; max-height: 72vh; }
  .pg-lightbox__arrow { width: 42px; height: 42px; margin-top: -21px; top: auto; bottom: 64px; }
  .pg-lightbox__arrow--prev { left: calc(50% - 56px); }
  .pg-lightbox__arrow--next { right: calc(50% - 56px); }
  .pg-lightbox__close { top: 12px; right: 12px; width: 42px; height: 42px; font-size: 26px; }
  .pg-lightbox__caption { bottom: 18px; font-size: 14px; }
}
