/* TAMSIC — lightbox.css  (extracted from base.css; tokens defined in base.css) */
/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox-overlay.open {
  display: flex;
}
.lightbox-box {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius-xl);
}
.lightbox-box img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  display: block;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-panel);
}
.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--bone-dim);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  border-radius: var(--radius-md);
}
.lightbox-close:hover {
  color: var(--crimson-text);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(140, 0, 15, 0.6);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: var(--radius-md);
}
.lightbox-nav:hover {
  background: var(--crimson);
}
.lightbox-prev {
  left: -60px;
}
.lightbox-next {
  right: -60px;
}
.lightbox-caption {
  text-align: center;
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
@media (max-width: 768px) {
  .lightbox-prev {
    left: -44px;
  }
  .lightbox-next {
    right: -44px;
  }
}

@media (max-width: 480px) {
  .lightbox-prev {
    left: 4px;
  }
  .lightbox-next {
    right: 4px;
  }
  .lightbox-box {
    max-width: 98vw;
  }
}
