.gallery {
    max-width: 800px; /* Adjust as needed */
    margin: auto;
    position: relative;
}

.main-image {
    position: relative;
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 24px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

.thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 10px;
}

.thumbnails img {
    width: 12.5%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    cursor: pointer;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.lightbox img {
    max-width: 80%;
    max-height: 80%;
}

.close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

.caption {
    color: white;
    margin-top: 20px;
}


.lightbox {
  display: none;
  flex-direction: column;
}


.lightbox img {

    width: auto;
}

.lightbox-left-arrow, .lightbox-right-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 24px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
}

.lightbox-left-arrow {
    left: 10px;
}

.lightbox-right-arrow {
    right: 10px;
}

.lightbox-thumbnails {
    display: flex;
    overflow-x: auto;
    padding: 10px;
    justify-content: center;
}

.lightbox-thumbnails img {
    width: auto;
    max-height: 80px; /* Adjust as needed */
    margin-right: 5px;
    cursor: pointer;
}
