.videos {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    margin-bottom: 30px;

    gap: 15px;
    padding: 40px 0;
}

.videos-title {
    align-self: stretch;
    padding: 0 200px;

    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 15px;
}

.down-arrow {
    height: 11px;
    width: 11px;
    border-bottom: 1.5px solid #98A4BF;
    border-right: 1.5px solid #98A4BF;
    transform-origin: center center;
    transform: rotate(45deg);
}

.videos-wrapper {
    ;
    padding: 0 200px;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 15px 20px;
}

.video-card {
    width: 300px;
    height: 225px;
    position: relative;

    overflow: hidden;
    border-radius: 15px;

    transition: transform .1s ease;
}

.video-card:hover {
    cursor: pointer;
    filter: brightness(110%) contrast(90%);
    transform-origin: center center;
    transform: scale(1.05);
    transition: transform .1s ease;
}


.video-card-thumbnail {
    height: 100%;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);


}

.video-card::after {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(360deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 50%);
}

.video-card-header {
    position: absolute;
    z-index: 2;
    bottom: 25px;
    left: 25px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.video-overlay {
    padding: 20px 0;
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.25);
    overflow: scroll;
    z-index: 6;
}

.video-overlay-card {

    position: relative;
    background: white;


    width: 74%;
    margin: 0 auto;

    border-radius: 15px;

    overflow-y: scroll;

    padding: 45px 115px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;

    scrollbar-width: none;
}

.video-overlay ::-webkit-scrollbar {
    display: none;
}

.video-frame {
    width: 100%;
    aspect-ratio: 1.7799;

    align-self: center;

    border-radius: 15px;
}

.video-overlay-description {
    display: flex;
    flex-direction: column;
}

.close {
    border: none;
    background: none;

    width: 40px;
    height: 40px;

    position: absolute;
    top: 15px;
    right: 15px;

    cursor: pointer;

    }

    .close:hover {
        filter: drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.5));
    }

:disabled, :disabled~label {
    filter: contrast(50%) brightness(150%);
}

@media screen and (max-width: 810px) {
    .videos-title {
        padding: 0 35px;
    }

    .videos-wrapper {
        padding: 0 35px;
    }

    .video-overlay-card {
        padding-left: 35px;
        padding-right: 35px;
        width: 95%;
        height: 100%;

        justify-content: space-evenly;
    }

    .video-frame {
        width: 100%;

    }
}