#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 9, 8, 0.96);
  align-items: center;
  justify-content: center;
  animation: fadeDown 0.25s ease;
  padding: 20px;
  box-sizing: border-box;
  overflow: auto;
}

#lightbox.open {
  display: flex;
}

#lb-inner {
  position: relative;
  width: min(1100px, calc(100vw - 40px));
  max-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

#lb-img {
  width: 100%;
  max-width: 100%;
  max-height: calc(100vh - 180px);
  object-fit: contain;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.8);
  animation: lbZoom 0.3s ease;
}

#lb-caption {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #C8A97E;
  text-align: center;
  max-width: 90vw;
}

#lb-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #F0EBE3;
  font-size: 28px;
  cursor: pointer;
  z-index: 201;
  opacity: 0.7;
  transition: opacity 0.2s;
  line-height: 1;
  padding: 8px;
}

#lb-close:hover {
  opacity: 1;
}

#lb-prev,
#lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #F0EBE3;
  font-size: 56px;
  cursor: pointer;
  z-index: 201;
  opacity: 0.5;
  transition: opacity 0.2s;
  padding: 0 16px;
  line-height: 1;
  user-select: none;
}

#lb-prev {
  left: 4px;
}

#lb-next {
  right: 4px;
}

#lb-prev:hover,
#lb-next:hover {
  opacity: 1;
}
