.gallery-grid{
    max-width: 1032px;
    width: 100%;
    border-top: 1px solid #000;
    padding-bottom: 37px;
    padding-top: 43px;
    margin-top: 40px;
}

.gallery-grid h2{
    color: #000;
    font-family: Flaviotte;
    font-size: 36px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-align: left;
    margin-bottom: 46px;
}

.gallery-grid .content{
    display: flex;
    gap: 19px;
    flex-wrap: wrap;
    row-gap: 23px;
}

.gallery-grid .asset-image{
    height: 242px;
}

.gallery-grid .file-image{
    width: 146px;
}

.gallery-grid .gallery-card{
    position: relative;
    height: 242px;
    overflow-y: hidden;
    background: #eee;
}

.gallery-grid .gallery-card-video{
    min-width: 200px;
}

.gallery-grid .gallery-card-audio{
    width: 196px;
    padding: 28px 0 17px;
}

.gallery-grid .gallery-card-document{
    width: 196px;
    padding: 28px 0 17px;
}

.gallery-grid .gallery-card-link{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.gallery-grid .video-overlay{
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.50);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 13px;
}

.gallery-grid .video-overlay img{
    width: 36px;
}

.gallery-grid .video-overlay .video-play-control{
    background: #fff;
    color: var(--Black, #0D0B0B);

    font-family: Gotham;
    font-size: 12px;
    font-style: normal;
    font-weight: 325;
    line-height: normal;

    padding: 8px 12px;
    border-radius: 20px;
}

.gallery-grid .file-asset-control{
    background: #000;
    color: #fff;

    font-family: Gotham;
    font-size: 12px;
    font-style: normal;
    font-weight: 325;
    line-height: normal;

    padding: 8px 12px;
    border-radius: 20px;
}


/* Overlay */
.gallery-overlay{
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .75);
    top: 0;
    display: none;
    z-index: 99;
}

.gallery-overlay.visible{
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-overlay .gallery-content{
    background: #fff;
    height: 719px;
    max-height: calc(100vh - 40px);
    width: calc(100vw - 40px);
    max-width: 884px;
    position: relative;
    border-radius: 5px;
}

.gallery-overlay .gallery-content-inner{
    width: 100%; 
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.gallery-overlay .arrow{
    position: absolute;
    top: calc(50% - 16px);
    width: 32px;
    height: 32px;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.gallery-overlay .arrow-prev{
    left: 17px;
}

.gallery-overlay .arrow-next{
    right: 17px;
}

.gallery-content .close{
    position: absolute;
    top: 23px;
    right: 23px;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.gallery-content .close img{
    width: 21px;
    height: 21px;
}

.gallery-content .gallery-content-main{
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(100% - 200px);
}

.gallery-content .gallery-content-main img{
    height: 100%;
    width: 100%;
}

.gallery-content .gallery-content-footer{
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gallery-content .gallery-content-title{
    color: #000;
    text-align: center;
    font-family: Gotham;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 18.8px; /* 156.667% */
    text-transform: uppercase;
}

.gallery-content .gallery-content-description{
    color: #000;
    text-align: center;
    font-family: Gotham;
    font-size: 16px;
    font-style: normal;
    font-weight: 325;
    line-height: 18.8px; /* 134.286% */
}

.gallery-content .gallery-content-document{
    width: 196px;
    padding: 28px 0 17px;
    text-decoration: none;
}
.gallery-content .gallery-content-main img.file-image{
    width: 146px;
}

.gallery-content .file-asset-control{
    background: #000;
    color: #fff;
    font-family: Gotham;
    font-size: 12px;
    font-style: normal;
    font-weight: 325;
    line-height: normal;
    padding: 8px 12px;
    border-radius: 20px;
}

body.gallery-visible{
    overflow-y: hidden;
}

@media screen and (max-width: 768px) {
    .gallery-grid h2{
        padding: 0 20px;
    }

    .gallery-overlay.visible{
        z-index: 99;
    }

    .gallery-grid .content{
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0 80px;
        /* hide scrollbar */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* Internet Explorer and Edge */
    }

    .gallery-grid .gallery-card{
        overflow: unset;
    }

    .gallery-overlay .gallery-content{
        height: 100%;
        width: 100%;
        max-height: unset;
        border-radius: unset;
    }

    .gallery-content .gallery-content-main img{
        width: calc(100% - 140px);
        height: auto;
    }
}