/*
  Lightbox gallery styles for Sunset View Patios.
  Defines a modal overlay that displays a fullscreen image with
  navigation controls and a caption. The lightbox is hidden by default
  and toggled via JavaScript. The style aims to be minimal and
  accessible.
*/

.gallery-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 5000;
  overflow: hidden;
}

.gallery-lightbox.open {
  display: flex;
}

.gallery-lightbox img {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.gallery-lightbox .caption {
  margin-top: 0.75rem;
  color: #ffffff;
  font-size: 0.9rem;
  text-align: center;
  max-width: 90%;
}

.gallery-lightbox button {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s ease;
}

.gallery-lightbox button:hover,
.gallery-lightbox button:focus {
  color: #fe5d14;
  outline: none;
}

.gallery-lightbox .prev,
.gallery-lightbox .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.gallery-lightbox .prev {
  left: 20px;
}

.gallery-lightbox .next {
  right: 20px;
}

.gallery-lightbox .close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2.2rem;
}