.gallery-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, 300px);
    justify-content: center;
    gap: 1rem;
}
.img-thumbnail-container{
    position: relative;
    display: inline-block;
    width: 300px;
    height: 300px;
}
.img-thumbnail-container img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 5px;
}
.img-thumbnail-container span{
    position: absolute;
    inset: 0;
    background-color: #000000aa;
    border-radius: 5px;
    color: var(--white, #fff);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-transform: capitalize;
    display: flex;
    opacity: 0;
    transition: opacity .3s ease-in-out;
}
.img-thumbnail-container:hover span{
    opacity: 1;
}
.video-container{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    gap: 1rem;
}
.video-thumbnail-container{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 0 10px #000000ef;
}
.video-thumbnail-container iframe{
    width: 560px;
    max-width: 100%;
    border-radius: 5px;
    aspect-ratio: 16/9;
}
.gallery-model{
    position: fixed;
    inset: 0;
    background-color: #000000ef;
    z-index: 1000;
    color: var(--white, #fff);
    display: none;
    padding: 1rem;
    overflow: scroll;
}
.close-gallery-model-btn{
    position: absolute;
    right: 20px;
    top: 20px;
    background-color: transparent;
    border: none;
    color: var(--white, #fff);
    font-size: 1.5rem;
    cursor: pointer;
}
.gallery-model-content{
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    text-align: justify;
}
.gallery-model-img-wrapper{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.gallery-model-img-wrapper button{
    width: 30px;
    height: 30px;
    background-color: transparent;
    border: none;
    color: var(--white, #fff);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border-radius: 50%;
    transition: all .3s ease-in-out;
}
.gallery-model-img-wrapper button:hover{
    background-color: var(--primary, #ee2c3c); 
}
.gallery-model-img-wrapper button[disabled="true"]{
    color: #aaa;
    cursor: not-allowed;
}
.gallery-model-img-wrapper button[disabled="true"]:hover{
    background-color: transparent;
}
.gallery-model-content img{
    width: 100%;
    height: 100%;
    max-height: 90vh;
    max-width: 90vw;
}
.gallery-pagination{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
}
.gallery-pagination>*{
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-light);
    transition: all .3s ease-in-out;
    font-size: 1.2rem;
}
.gallery-pagination>*:hover{
    background-color: var(--primary, #ee2c3c);
    color: var(--white, #fff);
}
.gallery-pagination .active{
    background-color: var(--primary, #ee2c3c);
    color: var(--white, #fff);
    border-radius: var(--border-radius, 0px);
}
@media screen and (max-width:768px) {
    section{
        padding: 1rem;
    }
    .first-section h1{
        font-size: 1.5rem;
        text-align: center;
    }
    .gallery-model-img-wrapper button{
        position: absolute;
        bottom: 50px;
        left: 50%;
        transform: translateX(-50%);
    }
    .gallery-model-img-wrapper button.left{
        left: calc(50% - 2rem);
    }
    .gallery-model-img-wrapper button.right{
        left: calc(50% + 2rem);
    }
    .gallery-model-img-wrapper button:hover{
        background-color: unset;
    }
    .gallery-model-img-wrapper{
        justify-content: center;
    }
}
@media screen and (min-width:1500px) {
    section{
        max-width: 1500px;
        margin: auto;
    }
}