.gallery {
    display: flex;
    gap: 10px;
}

.gallery img {
    width: 150px;
    cursor: pointer;
    /* border-radius: 5px; */
    transition: 0.3s;
   
}

.gallery img:hover {
    transform: scale(1.05);
}

#lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    /* background: rgba(0,0,0,0.9); */
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.4s;
    z-index: 9999;
    
}

#lightbox img {
    /* max-width: 80%;
    max-height: 80%; */
    /* border-radius: 10px; */
    transform: scale(0.6);
    animation: zoomIn 0.3s forwards;
    
}


/* Fade-in background */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* Zoom effect for image */
@keyframes zoomIn {
    from {transform: scale(0.6);}
    to {transform: scale(1);}
}

/* Buttons */
 .close {
    position: absolute;
    top: 0px;
    right: 0px;
    background: #474747;
    color: #fff;
    padding: 3px 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    z-index: 9999 !important;
 }
 .prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #474747;
    color: #fff;
    padding: 3px 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    z-index: 9999 !important;
}
.prev {
    left: 0px;
}
.next {
    right: 0px;
}

.prev:hover, .next:hover, .close:hover {
    color: #ccc;
}
.lightbox-img {
	text-align:center;
}

.lightbox-label {
	font-family: "Space Grotesk", sans-serif;
    font-weight: 400;
	font-size:32px;
	color:#fff;
}


@media (max-width: 350px) {
    #lightbox img {
        max-width: 50%;
        max-height: 50%; 
    }
    .lightbox-label {
        font-family: "Space Grotesk", sans-serif;
        font-weight: 400;
        font-size:16px;
        color:#fff;
        width: 50%;
        margin: auto;
    }
}

@media (min-width: 351px) and (max-width: 450px) {
    #lightbox img {
        max-width: 55%;
        max-height: 55%; 
    }
    .lightbox-label {
        font-family: "Space Grotesk", sans-serif;
        font-weight: 400;
        font-size:22px;
        color:#fff;
        width: 55%;
        margin: auto;
    }
}

@media (min-width: 451px) and (max-width: 991px) {
    #lightbox img {
        max-width: 65%;
        max-height: 65%; 
    }
    .lightbox-label {
        font-family: "Space Grotesk", sans-serif;
        font-weight: 400;
        font-size:24px;
        color:#fff;
        width: 65%;
        margin: auto;
    }
}

.modal-box {
    position: relative;
    background: #fff;
    /* width: 80%; */
    max-width: 780px;
    /* padding: 40px 20px; */
    border-radius: 8px;
    text-align: center;
    border: 10px solid #fff;
    box-shadow: 1px 1px 10px 5px rgba(0, 0, 0, 0.5);
}
