/*********************************************
 * Styling of the popup video gallery
 * 
 * @author (Anyanwu Benedict Chukwuemeka)
 * @version (v0.01)
 *******************************************/

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--bcg-handle) var(--bcg-trpnt);
}

html:root
{
    --bcg-base: #c5deef;
    --bcg-btn: #3d6cbd;
    --bcg-dark: #000000;
    --bcg-handle: #8ab4c9;
    --bcg-shade: #000000c3;
    --bcg-trpnt: #00000000;
    --bcg-white: #dbe8ed;
    --font-clr: #346fad;
    --font-shadow: #304a5ecc;
    --transition-flow: 250ms;
    --transition-delay: 500ms;
    --vid_static_card_w: 15.625rem;
    --vid_static_card_h: 9.375rem;
    --vid_static_card_icon_size: 1.5rem;
    --vid_static_card_box_h: 4rem;
}

html
{
    background-color: var(--bcg-base);
    -moz-user-select: -moz-none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    scroll-behavior: smooth;
}

body
{
    font-family: 'Poppins', sans-serif;
    min-height: 100svh;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1rem;
    background-color: var(--bcg-base);
}

@supports(-webkit-tap-highlight-color: var(--bcg-trpnt))
{
    body
    {
        -webkit-tap-highlight-color: var(--bcg-trpnt);
    }
}

button
{
    font-family: 'Poppins', sans-serif;
    background-color: var(--bcg-trpnt);
    outline: none;
    border: none;
}

.vid_static_bdr
{
    width: 100%;
}

.vid_static_bdr .vid_static_box
{
    width: 100%;
    display: flex;
    flex-direction: column;
}

.vid_static_box .vid_static_title_box
{
    width: 100%;
    margin-bottom: 1rem;
}

.vid_static_title_box .vid_static_title_text
{
    width: 100%;
    color: var(--font-clr);
    font-size: 1.875rem;
}

.vid_static_box .vid_static_grid
{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--vid_static_card_w), 1fr));
    grid-template-rows: auto;
    gap: 0.5rem;
}

.vid_static_grid .vid_static_card_base
{
    width: 100%;
    height: var(--vid_static_card_h);
    aspect-ratio: 16/9;
}

.vid_static_card_base .vid_static_card_bdr
{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: end;
    border-radius: 0.625rem;
    border: 0.125rem dotted var(--bcg-btn);
    background-image: linear-gradient(to bottom, var(--bcg-white),  var(--bcg-base));
    overflow: hidden;
    transition: all var(--transition-flow) ease-in-out;
    transform-origin: top left;
    cursor: pointer;
}

.vid_static_card_bdr.active
{
    width: 100vw;
    height: 100vh;
    transform: translate(
        calc(-1 * var(--offset-left)),
        calc(-1 * var(--offset-top))
    );
    border-radius: 0rem;
    border: none;
    z-index: 2;
}

.vid_static_card_bdr.fixed
{
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 0rem;
    border: none;
    transition: none;
    z-index: 2;
}

.vid_static_card_bdr.rough
{
    transition: none;
}

html:has(.vid_static_card_bdr.active) body,
html:has(.vid_static_card_bdr.fixed) body
{
    overflow: hidden;
}

.vid_static_grid:has(.vid_static_card_bdr.active)
.vid_static_card_base:not(:has(.vid_static_card_bdr.active)) .vid_static_card_bdr,
.vid_static_grid:has(.vid_static_card_bdr.fixed)
.vid_static_card_base:not(:has(.vid_static_card_bdr.fixed)) .vid_static_card_bdr
{
    pointer-events: none;
}

.vid_static_card_bdr .vid_static_card_box
{
    width: 100%;
    height: -moz-fit-content;
    height: fit-content;
    max-height: var(--vid_static_card_box_h);
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0.5rem;
}

.vid_static_card_bdr.fixed .vid_static_card_box
{
    height: var(--vid_static_card_box_h);
}

.vid_static_card_box .vid_static_card_icon
{
    width: var(--vid_static_card_icon_size);
    height: var(--vid_static_card_icon_size);
}

.vid_static_card_icon .vid_static_card_svg
{
    width: 100%;
    height: 100%;
    fill: var(--font-clr);
}

.vid_static_card_icon .vid_static_card_svg:last-child
{
    display: none;
}


.vid_static_card_base:has(.vid_static_card_bdr.fixed)
.vid_static_card_svg:first-child
{
    display: none;
}

.vid_static_card_base:has(.vid_static_card_bdr.fixed) 
.vid_static_card_svg:last-child
{
    display: block;
}

.vid_static_card_box .vid_static_card_text
{
    width: calc(100% - (--vid_static_card_icon_size));
    padding-left: 0.5rem;
    color: var(--font-clr);
    font-size: 1rem;
    font-weight: 500;
}

.vid_static_card_bdr .vid_static_card_vid
{
    width: 100%;
    height: 100%;
    max-height: calc((100% - var(--vid_static_card_box_h)));
    aspect-ratio: 16/9;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all var(--transition-flow) ease-in-out;
    background-color: var(--bcg-trpnt);
}

.vid_static_card_bdr.fixed .vid_static_card_vid
{
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    background-color: var(--bcg-dark);
}



@media(hover: hover)
{
    .vid_static_card_base:not(:has(.vid_static_card_bdr.fixed)) 
    .vid_static_card_bdr:hover
    {
        border-style: solid;
    }
}
