
/* ---------------------------------------------------------- */

.video-info-grid    {
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   max-inline-size: 100%;
   max-width: 100%;
   margin: auto;
   padding-bottom: 1em;
   border: 2px solid rgb(0, 119, 255);
}

.video-info-grid .video-info {
    display: flex;
    max-inline-size: 100%;
    border: 2px solid red;
    width: 50%;
}

.video-info-grid .video-info p {
    /* width: clamp(13ch, 35vw, 42ch); */
    display: block;
    /* max-inline-size: 100%; */
    line-height: 1.2;
    padding: 1em 0 0.2em 0;
    margin: 0;
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: "----"; 
    text-align: left;
}

.video-info-grid .video-title  {
    /* max-inline-size: 100%; */
    margin-top: 0;
    font-size: 14px;
    font-weight: 500;
    font-style: normal;
    line-height: 20px;
    margin-bottom: 9px;
}

.video-info-grid .video-info {
    padding: 0.5em 0 0.5em 0;
    max-width: 50%;
    max-inline-size: 100%;
}

.video-info-grid .video-info a.video-url {
    font-size: clamp(1.2rem , 1.5vw, 1.8rem);
    text-decoration: none;
    color: #222;
    /* max-inline-size: 100%; */
}

.video-info-grid .video-info p.video-author  {
    font-size: clamp(1rem , 1.5vw, 1.4rem);
    color: rgb(0, 0, 0);
    padding-top: 0.5em 0 0.5em 0;
    line-height: 1.2;
}

/* ---------------------------------------------------------- */

/* .thumbnail-row  {
    margin-bottom: 8px;
    position: relative;
} */

.youtube-link {
    max-inline-size: 100%;
    height: auto;
    padding: 0;
    cursor: pointer;
    /* position: relative; */
}

/* .youtube-time p {
    display: flex;
    font-size: clamp(1.1em, 2.5vw, 1.5em);
    font-family: "Roboto", sans-serif;
    color: white;
    background-color: rgba(17, 17, 17, 0.8);
    max-height: 20px;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    padding: 3px 6px;
    pointer-events: none;
    position: absolute;
    right: min(1em, 50%);
    bottom: 10px;
} */

/* .thumbnail-logo img {
    display: flex;
    width: max(0.5rem, 3rem, 5vw);
    max-width: 90%;
    border: none;
    border-radius: 4px;
    pointer-events: none;
    position: absolute;
    left: clamp(1rem, 10vw, 5rem);
    top: 0px;
} */

/* @media(max-width: 750px)    {
    .thumbnail-logo img {
        width: 40px;
        height: auto;
    }
}
@media (min-width: 751px) and (max-width: 1200px)    {
    .thumbnail-logo img {
        width: 60px;
        height: auto;
    }
} */

/* .youtube-details {
    width: max(300px, 2.5rem, 2vw);
    font-size: 14px;
    font-weight: 500;
    font-family: "Roboto", sans-serif;
    word-spacing: 2px;
    color: #222;

    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.8;
    padding: 0;
    border: 1px solid black;
} */

/* @media(max-width: 750px)    {
    .youtube-details {   
        display: block;
        width: 240px;
        height: auto;
        gap: 0;
    }
} */

/* @media (min-width: 751px) and (max-width: 1199px)    {
    .youtube-details {
        display: block;
        width: 350px;
        height: auto;
        gap: 0;
    }
} */

/* @media (min-width: 1200px)  {
    .youtube-details {
        display: block;
        width: 500px;
        height: auto;
        gap: 0;
    }
} */

.youtube-player-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;   /* to be a able to click the link */
    transition: all 400ms ease;
}

.youtube-player-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.youtube-player-popup {
    position: fixed;
    width: 75%;
   /*  max-width: 800px; */
    /* aspect-ratio: 16 / 9; */
    padding-top: 10em;
    left: 50%;
    transform: translate(-50%, -100%);
    transition: all 400ms ease;
}

.youtube-player-overlay.active .youtube-player-popup {
    transform: translate(-50%, 0%);
}

.youtube-player-popup iframe {
    width: 100%;
    border: none;
    aspect-ratio: 16 / 9;
}