/* To stack multiple div elements directly on top of each other using CSS Grid */
.hero-video {
    position: relative;
    display: grid;
    /* Automatically defines a 1x1 grid track */
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    /* Centers items both vertically and horizontally */
    place-items: start center;
    /* height: 100dvh; */
}

.hero-video>* {
    /* Forces all items to start at row 1, column 1 */
    grid-area: 1 / 1;
}

.video_wrap {
    position: relative;
    min-width: 100%;
    width: 100%;
    height: var(--hero-video-height);
    /* aspect-ratio: 16 / 9; */
    /* inset: 0; */
    /* aspect-ratio: 1; */

    background-color: rgb(0, 0, 0);
    overflow: hidden;
    z-index: -1;

}

iframe {
    /* width: 100%;
            height: 100%;*/

    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    /* Mimic object-fit: cover by calculating min widths/heights against aspect ratios */
    height: 56.25vw;
    /* Given 16:9 ratio (9/16 = 0.5625) */
    min-height: 100vh;
    min-width: 177.77vh;
    /* Given 16:9 ratio (16/9 = 1.7777) */
    transform: translate(-50%, -50%);
    z-index: -1;

}

.video_overlay {

    position: relative;
    display: flex;
    place-items: center;
    place-content: center;
    min-width: 100%;
    width: 100%;
    height: var(--hero-video-height);
    /* inset: 0; */
    background-color: rgb(0, 0, 0);
    opacity: var(--op);
    will-change: opacity;
    transition: opacity 0.5s linear;
}

.video_content {
    position: relative;
    display: flex;
    place-items: center;
    place-content: center;
    min-width: 100%;
    width: 100%;
    height: var(--hero-video-height);
    /* inset: 0; */
    background-color: transparent;

}

.content_box {
    /* --primary: rgba(73, 172, 199, 1); */
    /* --primary: #3BD671;
            --primary-low: rgba(59, 214, 113, 0.5); */
    /* --primary: #FFF;
            --primary-low: rgba(255, 255, 255, 0.5); */
    position: relative;
    width: 125px;
    aspect-ratio: 1;

    background-color: var(--surface-container-lowest);
    /* border: 1px solid beige; */
    border-radius: 16px;
    z-index: 1;
    border-color: color-mix(in oklab, var(--surface-container-lowest) 55%, transparent);
    box-shadow: 0 0 32px -8px var(--surface-container-lowest);
    /* background: rgba(207, 189, 255, 0.1); */
    color: var(--surface-container-lowest);
    /* border: 10px solid var(--primary-low); 
            display: flex;
            place-items: center;
            place-content: center;*/
    opacity: var(--op);
    visibility: visible;
    will-change: opacity;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 900;
    /* padding: 1.25rem; */
    display: grid;
    /* Automatically defines a 1x1 grid track */
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    /* Centers items both vertically and horizontally */
    place-items: center center;
    /* height: 100dvh; */

}

.content_box>* {
    /* Forces all items to start at row 1, column 1 */
    grid-area: 1 / 1;
}

.company_logo {
    display: flex;
    background-image: url('../images/Cantwell_logo.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    width: 80%;
    aspect-ratio: 1;
    background-color: transparent;
}

@media (min-width: 768px) {
    .content_box {
        width: 265px;
    }
}

/* 
        .content_box:hover {
            opacity: 0;
        } */

.fadeout {
    opacity: 0;
    transition: opacity 5s ease;
}

.video_status {
    position: absolute;
    left: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.65);
    color: #3BD671;
    line-height: 1.25;
    min-width: 5ch;
    width: fit-content;
    height: auto;
    z-index: 1;
    padding: 0.25rem 0.5rem;
    text-align: right;
    visibility: hidden;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 0.7;
    }
}