/* ============================================
   LIGHTBOX STYLES
   ============================================ */

/* Lightbox overlay */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .lightbox.active {
    display: flex;
    opacity: 1;
    justify-content: center;
    align-items: center;
  }
  
  /* Lightbox content container */
  .lightbox__content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* Lightbox image */
  .lightbox__image {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
  }
  
  /* Close button */
  .lightbox__close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 10000;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease;
    padding: 0;
    line-height: 1;
  }
  
  .lightbox__close:hover {
    transform: scale(1.1);
  }
  
  /* Navigation buttons */
  .lightbox__prev,
  .lightbox__next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    padding: 16px;
    z-index: 10000;
    transition: background 0.3s ease;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .lightbox__prev:hover,
  .lightbox__next:hover {
    background: rgba(255, 255, 255, 0.2);
  }
  
  .lightbox__prev {
    left: 20px;
  }
  
  .lightbox__next {
    right: 20px;
  }
  
  /* Hide navigation buttons when there's only one image */
  .lightbox__prev.hidden,
  .lightbox__next.hidden {
    display: none;
  }
  
  /* Make images in gallery clickable */
  .image-gallery__grid img {
    cursor: pointer;
    transition: opacity 0.2s ease;
  }
  
  .image-gallery__grid img:hover {
    opacity: 0.85;
  }
  
  /* Mobile styles */
  @media screen and (max-width: 768px) {
    .lightbox__content {
      max-width: 100%;
      max-height: 100%;
    }
  
    .lightbox__image {
      max-width: 100vw;
      max-height: 100vh;
      width: 100%;
      height: 100%;
      object-fit: contain;
    }
  
    .lightbox__close {
      top: 10px;
      right: 10px;
      font-size: 35px;
      width: 45px;
      height: 45px;
    }
  
    .lightbox__prev,
    .lightbox__next {
      width: 50px;
      height: 50px;
      font-size: 24px;
      padding: 12px;
    }
  
    .lightbox__prev {
      left: 10px;
    }
  
    .lightbox__next {
      right: 10px;
    }
  }
  