/* CookieShift Screenshot Lightbox — overlay only; does not alter page image layout */

.cs-lightbox-eligible {
  cursor: zoom-in;
}

body.cs-lb-open {
  overflow: hidden;
}

.cs-lb {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.cs-lb.cs-lb--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cs-lb__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 11, 24, 0.93);
}

.cs-lb__stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(100%, 1200px);
  max-height: 100%;
  gap: 12px;
}

.cs-lb__frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-height: min(82vh, 900px);
  overflow: hidden;
  border-radius: 14px;
  touch-action: none;
}

.cs-lb__img {
  display: block;
  max-width: 100%;
  max-height: min(82vh, 900px);
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: center center;
  will-change: transform, opacity;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.cs-lb--zoomed .cs-lb__img {
  cursor: grab;
}

.cs-lb--zoomed .cs-lb__img:active {
  cursor: grabbing;
}

.cs-lb__close,
.cs-lb__nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  color: #f8fafc;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.cs-lb__close:hover,
.cs-lb__nav:hover,
.cs-lb__close:focus-visible,
.cs-lb__nav:focus-visible {
  background: rgba(37, 98, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.35);
  outline: none;
  transform: translateY(-1px);
}

.cs-lb__close {
  top: 0;
  right: 0;
}

.cs-lb__nav--prev {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.cs-lb__nav--next {
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.cs-lb__nav--prev:hover,
.cs-lb__nav--next:hover,
.cs-lb__nav--prev:focus-visible,
.cs-lb__nav--next:focus-visible {
  transform: translateY(calc(-50% - 1px));
}

.cs-lb__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 8px 14px;
  max-width: 100%;
  color: rgba(248, 250, 252, 0.86);
  text-align: center;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  z-index: 2;
}

.cs-lb__counter {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

.cs-lb__caption {
  opacity: 0.78;
  max-width: 52ch;
}

@media (max-width: 767px) {
  .cs-lb__stage {
    width: 100%;
  }

  .cs-lb__frame,
  .cs-lb__img {
    max-height: min(74vh, 720px);
  }

  .cs-lb__nav {
    width: 40px;
    height: 40px;
  }

  .cs-lb__nav--prev {
    left: 4px;
  }

  .cs-lb__nav--next {
    right: 4px;
  }

  .cs-lb__close {
    top: -2px;
    right: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-lb,
  .cs-lb__img,
  .cs-lb__close,
  .cs-lb__nav {
    transition: none !important;
  }
}
