/* Projects banner */
.samples-headline-banner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.samples-headline-banner .spacer-vertical {
    height: 2.5vw;
    min-height: 20px;
    max-height: 50px;
}

/* ^Flexbox for variable spacing on sides */
.spacer-side-flexbox {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.spacer-sides {
    flex: 1;
}

.video-section {
    flex-direction: row;
    margin-bottom: 2rem;
}

.samples .project-videos-wrapper {
    flex: 7;
    display: grid;
    grid-template-columns:  1fr 1fr; 
    grid-gap: 1rem;
}

.samples .thumbnail-container {
    width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 9;
    background-position: center;
    background-size: cover;
    /* position: relative; */
    cursor: pointer;
    display: flex;
}

.thumbnail-overlay-container {
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0;
    position: relative;  
    display: flex;  
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    transition: opacity 0.25s;
}
.thumbnail-overlay-container:hover {
    opacity: 0.75;
}

.thumbnail-overlay-container p {
    color: #eaeaea;
    padding: 1rem 0;
    margin: 0 1rem;
    letter-spacing: 2px;
    text-align: center;
}

.thumbnail-overlay-container .overlay-title {
    font-size: 1.6rem;
}

.thumbnail-overlay-container .overlay-prompt {
    font-size: 0.8rem;
    font-weight: 300;
}

.samples .iframe-container {
    width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 9; 
    border: none;
}

.samples-container-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
    row-gap: 16px;
    flex: 7;
    max-width: 2000px;
    margin-bottom: 60px;
}

.sample-tile-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative; 
}

.thumbnail-container {
    width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 9;
    background-position: center;
    background-size: cover;
    position: relative;
    cursor: pointer;
}

.iframe-container {
    width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 9; 
    border: none;
}



.sample-title-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.4s; 
}

.overlay-spacer {
    flex: 1;
    width: 100%;
}

.sample-tile-container:hover .sample-title-overlay{
    opacity: 1;
}

.sample-title {
    flex: 1;
    width: 100%;
    display: flex;
    color: #eaeaea;
    font-size: 1.4rem;
    font-family: Roboto, Arial;
    justify-content: center;
    align-items: center;
    text-align: center;
}


.sample-video-prompt {
    flex: 1;
    width: 100%;
    display: flex;
    color: #eaeaea;
    font-size: 0.75rem;
    font-family: Roboto, Arial;
    justify-content: center;
    align-items: center;
}


/* Tablet */
@media (max-width: 69em) {

    .samples .project-videos-wrapper {
        flex: 20;
    }

    .samples .video-description p {
        font-size: 0.85rem;
    }
}

/* Smaller Tablet / samples */
@media (max-width: 50em) {

    .samples .project-videos-wrapper {
        display: flex;
        flex-direction: column;
        grid-gap: 2rem;
    }

    .samples .video-description {
        margin: 0 0;
    }
}

/* Phone */
@media (max-width: 38em) {

    .samples.grey-background .project-videos-wrapper {
        margin: 2rem 0 0 0;
    }

    .samples  .spacer-sides {
        flex: 0;
    }

    .samples .video-description {
        margin: 0 4vw;
    }
}

.samples.awards-section-container {
    margin-bottom: 0;
}