/* GOALKIT — Image zoom lightbox */

html.gk-zoom-locked, html.gk-zoom-locked body { overflow: hidden; }

.gk-zoom {
  position: fixed; inset: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.gk-zoom.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0s linear 0s;
}

.gk-zoom-scrim {
  position: absolute; inset: 0;
  background: rgba(8, 10, 14, 0.94);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: zoom-out;
}

.gk-zoom-stage {
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 60px;
  pointer-events: none;
}

.gk-zoom-img {
  max-width: min(96vw, 1100px);
  max-height: 88vh;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.18s cubic-bezier(.2, 1, .3, 1);
  transform-origin: center center;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  pointer-events: auto;
  border-radius: 6px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6);
  will-change: transform;
}
.gk-zoom.is-zoomed .gk-zoom-img { transition: none; }

.gk-zoom-close {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 4;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(20, 24, 31, 0.8);
  color: #fff;
  border: 1.5px solid var(--charcoal-3, #2a3140);
  font-size: 28px;
  line-height: 1;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 3px 0;
  backdrop-filter: blur(6px);
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.gk-zoom-close:hover {
  border-color: var(--lime, #D9FE06);
  color: var(--lime, #D9FE06);
  transform: scale(1.06);
}

.gk-zoom-toggle {
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 4;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(20, 24, 31, 0.8);
  color: #fff;
  border: 1.5px solid var(--charcoal-3, #2a3140);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  backdrop-filter: blur(6px);
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.gk-zoom-toggle:hover {
  border-color: var(--lime, #D9FE06);
  color: var(--lime, #D9FE06);
  transform: scale(1.06);
}

.gk-zoom-caption {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  text-align: center;
  font-size: 13.5px;
  color: var(--text, #e8eaee);
  background: rgba(20, 24, 31, 0.75);
  border: 1px solid var(--charcoal-3, #2a3140);
  padding: 7px 14px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  pointer-events: none;
  z-index: 3;
}
.gk-zoom-caption:empty { display: none; }

.gk-zoom-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.3px;
  color: var(--text-muted, #9ba3b0);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0.7;
}

@media (max-width: 600px) {
  .gk-zoom-stage { padding: 48px 8px 80px; }
  .gk-zoom-img { max-width: 100vw; max-height: 75vh; }
  .gk-zoom-caption { bottom: 60px; font-size: 12.5px; padding: 6px 12px; }
  .gk-zoom-hint { font-size: 10.5px; padding: 0 12px; white-space: normal; text-align: center; width: 90vw; }
  .gk-zoom-close, .gk-zoom-toggle { width: 38px; height: 38px; top: 12px; }
  .gk-zoom-close { right: 12px; }
  .gk-zoom-toggle { left: 12px; }
}
