﻿.text-clamped {
    display: -webkit-box;
    -webkit-line-clamp: var(--lines, 4);
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.text-expanded {
    display: block;
    overflow: visible;
}

.video-card {
    width: 320px;
}

.video-img-sm {
    width: 160px;
    height: 90px;
}

.author-icon {
    width: 36px;
    height: 36px;
}

.video-card-image {
    object-fit: cover;
}

.modal-almostfullscreen {
    width: 95vw;
    max-width: none;
    height: 95%;
    margin-right: auto !important;
    margin-left: auto !important;
    margin: 0;
}

.logo {
    content: var(--logo);
    height: 40px;
}

.big-logo {
    content: var(--big-logo);
    width: 100%; /* mobile  */
    max-width: 100vw; /* desktop */     
    height: auto; /* keep aspect ratio */
    display: block;
    margin: 0 auto; /* center */
}

.logo-symbol {
    content: var(--logo);
    display: block;
    max-height: 100%;
    width: 55%;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.8;
}

.card-bg-image {
    position: relative;
    overflow: hidden;
}

    .card-bg-image::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: var(--logo);
        background-size: auto 90%;
        background-position: center;
        background-repeat: no-repeat;
        opacity: 0.05;
        pointer-events: none;
        border-radius: inherit;
    }

    .card-bg-image > * {
        position: relative; /* content above pseudo-element */
    }

.card-bg-image-tall::before {
    background-size: 90% auto;
}

.card-bg-image-rb::before {
    background-position: right 7px bottom 5px;    
}

.my-center {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}