.grid-gallery {
    display: grid;
    grid-gap: 10px;
    margin-bottom: 30px;
}

.grid-item img {
    width: 100%;
    height: auto;
}
.grid-item:hover {
   cursor: pointer;
}

.gallery-pagination {
    text-align: center;
}

.page-numbers {
    display: inline-block;
    margin: 0 5px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    cursor: pointer;
}

.page-numbers.current {
    background-color: #0073aa;
    color: white;
}

/* Modal styles */
.image-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Modal content box */
.modal-content {
    position: relative;
    width: 50%;  
    max-width: 700px; 
    height: auto;
    max-height: 500px; 
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Image inside modal */
.modal-content img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    border-radius: 5px;
}

/* Close button */
.close-modal {
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 18px;
    color: white;
    cursor: pointer;
    background: black;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: none;
}

/* Styling for Next & Previous buttons */
.prev-img,
.next-img {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 3px;
}

.prev-img {
    left: 5px;
}

.next-img {
    right: 5px;
}

.prev-img:hover,
.next-img:hover {
    background: rgba(0, 0, 0, 1);
}

.grid-text {
    text-align: center;
    margin-top: 5px;
    font-size: 14px;
    color: #333;
}

.modal-text {
    margin-top: 10px;
    font-size: 16px;
    color: #333;
    text-align: center;
}


