.zoomable-image {
  cursor: zoom-in;
  transform: scale(1);
  transform-origin: center;
  contain: paint;
  clip-path: inset(0 round inherit);
  will-change: transform;
  transition:
    filter 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.zoomable-image:hover {
  transform: scale(1.02);
  filter: brightness(1.04);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.zoomable-image:focus-visible {
  outline: 2px solid rgba(25, 102, 255, 0.9);
  outline-offset: 2px;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 40px);
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  /* Above #project-modal-overlay (10000) so zoom works inside Other Projects modal */
  z-index: 10050;
}

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

.lightbox-panel {
  position: relative;
  max-width: min(92vw, 1800px);
  max-height: 92vh;
}

.lightbox-image-wrap {
  max-width: min(92vw, 1800px);
  max-height: 88vh;
  overflow: hidden;
  border-radius: 14px;
  cursor: zoom-out;
}

.lightbox-image {
  display: block;
  width: auto;
  max-width: min(92vw, 1800px);
  height: auto;
  max-height: 88vh;
  border-radius: 14px;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.45);
  transform: none;
}
