/* ==========================================================================
   ACM Lightbox (Theme)

   A “smaller modal window” image viewer with:
   - Close (X)
   - Resolution readout
   - Zoom slider + +/- buttons

   Design note:
   This is like a centered “overlay panel” in a design tool, not a full-screen takeover.
   ========================================================================== */

.acm-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.acm-lightbox.is-open {
  display: flex;
}

.acm-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.75);
  backdrop-filter: blur(3px);
}

.acm-lightbox__window {
  position: relative;
  width: min(920px, 92vw);
  height: min(680px, 82vh);
  background: var(--color-white, #fff);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  flex-direction: column;
  transform: translateY(10px) scale(0.98);
  opacity: 0;
  transition: transform 200ms ease, opacity 200ms ease;
}

.acm-lightbox.is-open .acm-lightbox__window {
  transform: translateY(0) scale(1);
  opacity: 1;
}

@media (max-width: 600px) {
  .acm-lightbox {
    padding: 14px;
  }

  .acm-lightbox__window {
    width: 96vw;
    height: 86vh;
    border-radius: 14px;
  }
}

/* Prevent background page scroll when the lightbox is open */
body.acm-lightbox-open {
  overflow: hidden;
}

.acm-lightbox__toolbar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.acm-lightbox__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.acm-lightbox__title {
  font-family: var(--font-heading, 'Josefin Sans', sans-serif);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-dark-gray, #1a1a1a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acm-lightbox__resolution {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 12px;
  letter-spacing: 1px;
  color: rgba(26, 26, 26, 0.7);
}

.acm-lightbox__zoom {
  display: flex;
  align-items: center;
  gap: 10px;
}

.acm-lightbox__zoom-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 2px solid var(--color-purple, #9333ea);
  background: transparent;
  color: var(--color-dark-gray, #1a1a1a);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.acm-lightbox__zoom-btn:hover {
  background: linear-gradient(135deg, var(--color-purple, #9333ea), var(--color-purple-light, #a855f7));
  color: var(--color-white, #fff);
  transform: translateY(-1px);
}

.acm-lightbox__zoom-range {
  width: 160px;
}

@media (max-width: 600px) {
  .acm-lightbox__zoom-range {
    width: 120px;
  }
}

.acm-lightbox__zoom-value {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 12px;
  letter-spacing: 1px;
  color: rgba(26, 26, 26, 0.75);
  min-width: 52px;
  text-align: right;
}

.acm-lightbox__close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(0, 0, 0, 0.02);
  color: var(--color-dark-gray, #1a1a1a);
  cursor: pointer;
  transition: all 0.2s ease;
}

.acm-lightbox__close:hover {
  border-color: rgba(147, 51, 234, 0.35);
  box-shadow: 0 10px 30px rgba(147, 51, 234, 0.15);
  transform: translateY(-1px);
}

.acm-lightbox__close:focus-visible,
.acm-lightbox__zoom-btn:focus-visible,
.acm-lightbox__zoom-range:focus-visible {
  outline: 3px solid rgba(147, 51, 234, 0.25);
  outline-offset: 2px;
}

.acm-lightbox__stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--color-off-white, #fafafa);
  overflow: hidden;
}

.acm-lightbox__image {
  max-width: 100%;
  max-height: 100%;
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}




