body.sgggu-lightbox-open { overflow: hidden !important; }

.sgg-gallery-item.sgggu-lightbox-trigger { cursor: zoom-in; outline: none; }
.sgg-gallery-item.sgggu-lightbox-trigger:focus-visible { box-shadow: 0 0 0 4px rgba(59,173,120,.34); }
.sgg-gallery-item.sgggu-lightbox-trigger::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  pointer-events: none;
  opacity: 0;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  background: rgba(10,18,29,.58) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='5.5'/%3E%3Cpath d='m15 15 4.2 4.2M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E") center/18px no-repeat;
  transform: translateY(-5px);
  transition: opacity .18s ease, transform .18s ease;
}
.sgg-gallery-item.sgggu-lightbox-trigger:hover::after,
.sgg-gallery-item.sgggu-lightbox-trigger:focus-visible::after { opacity: 1; transform: translateY(0); }

.sgggu-lightbox[hidden] { display: none !important; }
.sgggu-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity .18s ease;
}
.sgggu-lightbox.is-open { opacity: 1; }
.sgggu-lightbox-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  cursor: zoom-out;
  border: 0;
  background: rgba(4,9,16,.92);
  backdrop-filter: blur(8px);
}
.sgggu-lightbox-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 64px minmax(0,1fr) 64px;
  align-items: center;
  width: min(1500px, 100%);
  height: 100%;
  padding: 72px 24px 30px;
  pointer-events: none;
}
.sgggu-lightbox-figure {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0,1fr) auto;
  align-items: center;
  justify-items: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  margin: 0;
  pointer-events: auto;
}
.sgggu-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 155px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 25px 75px rgba(0,0,0,.55);
  opacity: 1;
  transform: scale(1);
  transition: opacity .18s ease, transform .22s ease;
}
.sgggu-lightbox.is-loading .sgggu-lightbox-image { opacity: .15; transform: scale(.985); }
.sgggu-lightbox-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  margin: -34px 0 0 -23px;
  opacity: 0;
  border: 3px solid rgba(255,255,255,.24);
  border-top-color: #60c597;
  border-radius: 50%;
  animation: sgggu-lightbox-spin .75s linear infinite;
  transition: opacity .14s;
}
.sgggu-lightbox.is-loading .sgggu-lightbox-loader { opacity: 1; }
@keyframes sgggu-lightbox-spin { to { transform: rotate(360deg); } }

.sgggu-lightbox-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(900px, 100%);
  min-height: 48px;
  padding: 14px 4px 0;
  color: rgba(255,255,255,.92);
  font-size: 14px;
  line-height: 1.35;
}
.sgggu-lightbox-caption small { flex: none; color: rgba(255,255,255,.52); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.sgggu-lightbox-close,
.sgggu-lightbox-nav {
  display: grid;
  place-items: center;
  padding: 0;
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  transition: background .16s, border-color .16s, transform .16s;
}
.sgggu-lightbox-close:hover,
.sgggu-lightbox-nav:hover { background: rgba(59,173,120,.88); border-color: rgba(59,173,120,1); }
.sgggu-lightbox-close:focus-visible,
.sgggu-lightbox-nav:focus-visible { outline: 3px solid rgba(93,208,151,.45); outline-offset: 3px; }
.sgggu-lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
}
.sgggu-lightbox-nav { width: 48px; height: 64px; border-radius: 12px; }
.sgggu-lightbox-prev { justify-self: start; }
.sgggu-lightbox-next { justify-self: end; }
.sgggu-lightbox-close svg { width: 23px; }
.sgggu-lightbox-nav svg { width: 28px; }
.sgggu-lightbox-close svg,
.sgggu-lightbox-nav svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 720px) {
  .sgggu-lightbox-stage { grid-template-columns: 1fr; padding: 68px 12px 18px; }
  .sgggu-lightbox-figure { grid-column: 1; }
  .sgggu-lightbox-image { max-height: calc(100vh - 145px); border-radius: 5px; }
  .sgggu-lightbox-nav { position: absolute; top: 50%; z-index: 3; width: 43px; height: 54px; transform: translateY(-50%); background: rgba(5,12,21,.55); }
  .sgggu-lightbox-prev { left: 8px; }
  .sgggu-lightbox-next { right: 8px; }
  .sgggu-lightbox-close { top: 12px; right: 12px; width: 44px; height: 44px; }
  .sgggu-lightbox-caption { padding: 12px 4px 0; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .sgggu-lightbox, .sgggu-lightbox-image, .sgg-gallery-item.sgggu-lightbox-trigger::after { transition: none; }
  .sgggu-lightbox-loader { animation-duration: 1.5s; }
}

