/* ==============================
   Imported Fonts
============================== */
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cardo:ital,wght@0,400;0,700;1,400&display=swap');

/* ==============================
   Root Variables
============================== */
:root{
    --primary-font: "Josefin Sans", serif;
    --secondary-font: "Cardo", serif;
}

/* hide desktop filter */
.desktop-filter{
    display: none;
}

/* mobile filter */
.mobile-filter{
    float: left;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-filter select{
    margin: 90px 0 0 0;
    font-family: var(--primary-font);
    font-size: 14pt;
    border: none;
    border-bottom: 1px solid #000;
    padding: 0 10px;
    background: #fff;
}

.mobile-filter select-selected{
    background: #fff;
    color: #000;
}

.mobile-filter option{
    font-family: var(--primary-font);
    background: #fff;
    color: #000;
}

.mobile-filter option-selected{
    background: #fff;
    color: #000;
}

/* videos */
.videos-container{
    float: left;
    width: 100%;
    margin: 25px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; 
    gap: 25px;  
}

.videos-container-inner{
    width: 90%;
}

.project-container{
    float: left;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
    opacity: 1;
    margin: 20px 0;
    transition: opacity .2s ease-in-out;
}

.hide{
    opacity: 0;
    transition: opacity .2s ease-in-out;
}

.project-preview{
    float: left;
    width: 100%;
    overflow: hidden;
    object-fit: contain;
}

.project-preview video{
    float: left;
    width: 100%;
}

.project-details{
    float: left;
    width: 100%;
}

.project-details h1{
    float: left;
    width: 100%;
    padding: 0 0 0 5px;
    font-family: var(--secondary-font);
    font-size: 16pt;
    color: #000;
    text-decoration: underline;
    font-style: italic;
    font-weight: 300;
}

.project-details p{
    float: left;
    width: 100%;
    padding: 0 0 0 5px;
    font-family: var(--secondary-font);
    font-size: 12pt;
    color: #000;
    font-style: italic;
}

@media (min-width: 769px){
    
    /* hide mobile filter */
    .mobile-filter{
        display: none;
    }

    /* show desktop filter */
    .desktop-filter{
        display: block;
        float: left;
        width: 100%;
        margin: 80px 0 0 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .desktop-filter ul{
        width: 90%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        list-style: none;
    }

    .desktop-filter h1{
        font-family: var(--secondary-font);
        font-size: 14pt;
        font-weight: 300;
        cursor: pointer;
    }

    .desktop-filter h1:hover{
        text-decoration: underline;
    }

    .videos-container{
        float: left;
        width: 100%;
        margin: 50px 0 0;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .videos-container-inner{
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 25px;
    }
    
    .project-container{
        float: left;
        width: 300px;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        overflow: hidden;
        margin: 0;
    }

    .footer{
        float: left;
        width: 100%;
        margin: 50px 0 0 0;
    }
}

@media (min-width: 1200px){

    .videos-container-inner{
        width: 1300px;
    }

    .project-container {
        width: 400px; /* Ensures each item has a consistent size */
    }
}