.myworksections {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    gap: 20px;
}

.video {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 85%;
    border-radius: 5px;
    transition: ease-in-out 0.2s all;
}

.video:hover {
    transform: scale(1.05);
    cursor: pointer;
}

.selectedvideo {
    position: fixed;
    display: none;
    width: 100vw;
    height: 100vh;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    filter: drop-shadow(0px 0px 50px rgba(0, 0, 0, 1));

    z-index: 10;
}

.selectedvideo iframe {
    aspect-ratio: 16 / 9;
    width: 70%;
    border-radius: 15px;
}

.videogallery {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    row-gap: 50px;
}

.projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    justify-items: center;
    row-gap: 50px;
}

.project {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    gap: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    border: #E84545 2px solid;
    width: 400px;
    border-radius: 10px;
}

.project img {
    width: 100%;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    object-fit: cover;
    height: 200px;
    border-bottom: #E84545 2px solid;
}

.projecttext {
    font-size: 20px;
    padding: 15px;
    text-align: justify;
}

.projectadditional {
    margin-top: 10px;
    text-align: center;
}

.active {
    display: flex;
}

@media (max-width: 1000px) {
    .project {
        width: 350px;
    }
}

@media (max-width: 768px) {
    .videogallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .projects {
        grid-template-columns: 1fr;
    }

    .project {
        width: 80%;
    }
}

@media (max-width: 425px) {
    .videogallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .project {
        width: 90%;
    }
}