.gallery-sec{
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.gallery{
    max-width: 100%;
    display: flex !important;
    margin: 25px 62px;
    height: 90vh;
}

.section1{
    width: 50%;
    margin-right: 5%;
    margin-top: 2%;
}

.img-sec{
    width: 50%;
    display: flex;
}

.imgslider {
    width: 100%;
    /*height: 100vh;*/
    display: flex;
    align-content: flex-start;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 3%;
}

.slider-component__button--next, .slider-component__button--prev{
    height: 4vh;
    width: 6%;
    margin-top: auto;
    margin-bottom: auto;
}

.slider-component__button--prev {
    margin-right: 1%;
}

.slider-component__button--next {
    margin-left: 1%;
}

.imgslider img{
    width: 100%;
    height: 85vh;
    object-fit: cover;
    border-radius: 9px; /* Rounded corners for a softer look */
}


/*   MODEL    */
.modal-content {
    max-width: 90%; /* Maximum width of the image to the viewport width */
    max-height: 80vh; /* Maximum height of the image to the viewport height */
    margin: auto; /* Center the image horizontally */
    display: block; /* Ensure the image is block level to receive margin auto for centering */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optional: adds a shadow for depth */
    border-radius: 4px; /* Optional: rounds the corners of the image */
}

/* Style for the modal background */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
    padding-top: 60px; /* Location of the box */
}



/* Responsive Design Adjustments for Tablets */
@media (max-width: 768px) {
    .gallery {
        flex-direction: column;
        height: fit-content;
    }

    .section1, .img-sec {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .imgslider img {
        height: auto; /* Maintain aspect ratio */
    }

    .modal-content {
        max-width: 95%; /* Full width on smaller screens */
        max-height: 75vh;
    }

    .modal-nav-prev, .modal-nav-next {
        font-size: 1.5em;
    }
}


/* Responsive Design Adjustments for Mobile Phones */
@media (max-width: 480px) {
    .gallery {
        margin: 25px 10px;
    }
    /*.section1, .img-sec {*/
    /*    margin-bottom: 10px;*/
    /*}*/

    .slider-component__button--next, .slider-component__button--prev {
        width: 8%; /* Larger buttons for easier interaction */
    }

    .modal-nav-prev, .modal-nav-next {
        font-size: 1.2em;
    }

    .modal-nav {
        padding: 5px;
    }

    .modal-content {
        max-width: 100%;
        max-height: 60vh;
    }

    .close {
        font-size: 30px; /* Smaller close button */
        top: 10px;
        right: 15px;
    }

    /* Additional Styling for Small Screens */
    /*.gallery-sec {*/
    /*    margin: 15px; !* Reduce margin for smaller screens *!*/
    /*}*/

    .section1 header {
        font-size: 1.2em; /* Adjust header font size for readability */
    }

    .section1 article {
        font-size: 0.9em; /* Adjust article font size */
    }

    .imgslider {
        margin-top: 5%; /* Adjust image slider margin */
    }

    /* Ensure buttons are not too large */
    .slider-component__button--next, .slider-component__button--prev {
        height: 6vh;
        font-size: 1em;
    }

    /* Adjust modal navigation button size and position */
    .modal-nav-prev, .modal-nav-next {
        font-size: 1em;
        top: 45%;
    }
}


