.gallery{
    background-color: #faffe4;
    padding-top: 12%;
    background-image: url(../img/gallery.png);
    background-size: 60%;
    background-repeat: no-repeat;
    background-blend-mode: multiply;
    background-position: 102% 6%;
}
.gallery .heading{
    color: black;
    text-align: left;
    font-size: calc(7vw + 0.1rem);
    margin-bottom: 4%;
}
.hamburger-container {
    right:7rem;
}
header .logo {
    text-align: left;
    width: 22%;
}
header .row {
    margin: 0px auto;
    width: 75%;
    height: 100px;
    display: flex
;
    align-items: center;
    justify-content: space-between;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 12 / 9; /* Maintain aspect ratio */
}

.gallery-item .media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 15px;
    cursor: pointer;
}

.gallery-item iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 15px;
    text-align: center;
    transition: bottom 0.3s ease;
    border-radius: 0 0 15px 15px;
}

.gallery-item:hover .overlay {
    bottom: 0;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
    text-align: center;
    position: relative;
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
}

.modal-description {
    margin-top: 10px;
    font-size: 16px;
    color: #333;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.close:hover {
    color: #000;
}
@media (max-width: 576px) {
    .gallery {
        background-color: #faffe4;
        padding-top: 36%;
        background-image: url(../img/gallery.png);
        background-size: 60%;
        background-repeat: no-repeat;
        background-blend-mode: multiply;
        background-position: 100% 2%;
    }
    header .row {
        margin: 0px auto;
        width: 88%;
        height: 100px;
        display: flex
    ;
        align-items: center;
        justify-content: space-between;
    }
    header .logo {
        text-align: left;
        width: 53%;
    }
    .hamburger-container {
        right: 1rem;
    }
    .gallery-container {
        display: grid
    ;
        grid-template-columns: repeat(auto-fit, minmax(224px, 1fr));
        gap: 20px;
    }
    .gallery .heading {
        color: black;
        text-align: left;
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 8%;
    }
}