/* ── Lightbox shared styles ── */

.zoomable {
  cursor: zoom-in;
  position: relative;
}

.zoomable::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(4, 13, 33, 0);
  border-radius: inherit;
  transition: background 0.2s ease;
  pointer-events: none;
}

.zoomable:hover::after {
  background: rgba(4, 13, 33, 0.12);
}

.zoom-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(4, 13, 33, 0.6);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 1;
}

.zoomable:hover .zoom-icon { opacity: 1; }

.zoom-icon svg { color: #fff; display: block; }

/* About photo on index */
.about-photo.zoomable { border-radius: 16px; }

/* Lightbox overlay */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 13, 33, 0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  cursor: zoom-out;
}

.lightbox-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-overlay img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  transform: scale(0.96);
  transition: transform 0.25s ease;
  cursor: default;
}

.lightbox-overlay.is-open img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  line-height: 1;
}

.lightbox-close:hover { background: rgba(255,255,255,0.2); }
