/* gallery.css */

/* .gallery-container {
    column-count: 3;
    column-gap: 15px;
  } */
  
  .gallery-item {
    break-inside: avoid;
    margin-bottom: 15px;
    position: relative;
  }
  
  .gallery-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
  }
  
  .gallery-img:hover {
    transform: scale(1.05);
  }
  
  .lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
  }
  
  .lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    max-height: 100vh; /* Limit the height of the image */
    object-fit: contain; /* Ensure the image fits within the container */
  }
  
  .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 30px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 1001;
    cursor: pointer; /* Ensure the close button is clickable */
  }
  
  .close:hover,
  .close:focus {
    color: #bbb;
    text-decoration: none;
  }
  
  #caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 50px; /* Adjust the height of the caption */
  }
  
  /* Hide the navbar when the lightbox is open */
  body.lightbox-open .navbar {
    display: none;
  }
  @media (max-width: 480px) {
    .gallery-item img  {
        width: 300px;
        height: 300px;
        object-fit: cover;
        border-radius: 8px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
}