@charset "utf-8";
@import url(https://fonts.googleapis.com/css?family=Asap:400,400i,500,500i,700,700i);
@import url(https://fonts.googleapis.com/css?family=Ubuntu:300,300i,400,400i,500,500i,700,700i);

body {
    margin: 0;
    font-family: 'Ubuntu', sans-serif;
    background-color: #F7F1EA;
}

/* Header and Footer */
#header, #footer {
    width: 100%;
}

/* Image Section */
.image-container {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-title {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    font-size: 30px;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 25px 30px;
}

.image-gallery img {
    width: 24%;                   /* Each image takes up roughly 23% of the container's width */
    height: auto;                 /* Maintain aspect ratio */
    border: 2px solid #ddd;      /* Optional: Add border around images */
    transition: transform 0.3s ease, border-color 0.3s ease; /* Smooth transitions */
}

.image-gallery img:hover {
    border-color: #999999;
    filter: brightness(70%);
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}

.modal-content {
    max-width: 100%;
    max-height: 90%;
}

.close {
    position: absolute;
    top: 1%;
    right: 2%;
    font-size: 50px;
    color: white;
    cursor: pointer;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    /* background: rgba(255, 255, 255, 0.5); */
    border: none;
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
    /* border-radius: 5px; */
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

@media screen and (max-width: 1024px){
    .image-gallery {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        margin: 25px 30px;
    }

    .image-gallery img {
        width: 23%;
    }
}

@media screen and (max-width: 768px){
    .image-gallery {
        display: flex;
        flex-wrap: wrap;
        gap: 29px;
        margin: 25px 30px;
    }

    .image-gallery img{
        width: 30%;
    }
}

@media screen and (max-width: 480px) {
    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .image-gallery img {
        width: 44%;
    }

    .image-gallery{
        gap: 28px;
    }

}

@media screen and (max-width: 380px) {
    .image-gallery{
        gap: 23px;
    }

}

@media screen and (max-width: 320px) {

    .close{
        top: 5%;
        right: 7%;
        color: black;
    }

    .image-gallery{
        gap: 18px;
    }
}