.ratio-16x9 video {
    object-fit: cover; 
}

.joinChar {
    font-size: 14px;
}



/* Desktop / tablet powyżej 576px */
.video-title h2 {
    font-size: 2.5rem;
    /* duży tytuł na komputerze */
    margin-bottom: -1.5rem;
    /* zbliża do caption */
}

.video-title h6 {
    margin-top: 0;
    font-size: 14px;
}

/* Telefony: poniżej 576px */
@media (max-width: 576px) {
    .video-title h2 {
        font-size: 1.8rem;
        /* mniejszy tytuł na telefonach */
        margin-bottom: 0;
        /* minimalny odstęp od caption */
    }

    .video-title h6 {
        font-size: 0.9rem;
        /* podpis dopasowany do telefonu */
        margin-top: -0.3rem;
        /* blisko tytułu */
    }
}



.fade-in h2.khmerFont {
    margin-bottom: -0.5rem;
}

/* .play-icon {
    width: 15vw;     
    max-width: 120px;
    min-width: 50px;
    cursor: pointer;
}

.video-thumbnail {
    filter: brightness(1);
    transition: filter 0.3s;
}

.video-thumbnail:hover {
    filter: brightness(0.8);
    transition: filter 0.3s;
    cursor: pointer;
}*/ 




.video-thumbnail {
    position: relative;
    display: block;
    width: 100%;
    filter: brightness(1);
    transition: filter 0.6s ease;
    /* tylko tutaj */
    will-change: filter;
    /* hint dla GPU */
}

.video-thumbnail:hover {
    filter: brightness(0.8);
    /* tylko zmiana wartości */
}

@media (min-width: 1432px) {
    .play-icon {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);

        width: 15vw;
        max-width: 360px;
        min-width: 115px;

        cursor: pointer;
        transition: transform 0.6s ease;
    }

    .video-thumbnail:hover .play-icon {
        transform: translate(-50%, -50%) scale(1.2);
        /* powiększenie na hover */
    }
}


/* Tablet: 769px – 991px */
@media (min-width: 769px) and (max-width: 1431px) {
    .play-icon {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        
        width: 12vw;        /* trochę mniejsza niż desktop */
        max-width: 220px;
        min-width: 80px;
        
        cursor: pointer;
        transition: transform 0.6s ease;
    }

    .video-thumbnail:hover .play-icon {
        transform: translate(-50%, -50%) scale(1.1);
    }
}


@media (max-width: 768px) {
    .play-icon {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);

        width: 9vw;
        /* zmniejszona o ~40% względem desktop */
        max-width: 160px;
        min-width: 60px;

        cursor: pointer;
        transition: transform 0.6s ease;
    }

    .video-thumbnail:hover .play-icon {
        transform: translate(-50%, -50%) scale(1.1);
    }
}








.video-row {
    justify-content: center;
    /* wyśrodkowanie całego rzędu */
}

.video-col-left,
.video-col-right {
    max-width: 550px;
    /* maksymalna szerokość kolumny */
    padding-left: 15px;
    padding-right: 15px;
}

.video-thumbnail img {
    max-width: 100%;
    /* zdjęcie dostosowuje się do kolumny */
    height: auto;
}







.video-col-right p {
    font-size: 0.9rem;
    /* zmniejszenie tekstu opisu */
}

/* Dodatkowo centrowanie całego kontenera na stronie */
.row.video-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: auto;
    margin-right: auto;
}

/* Tylko na małych ekranach dodajemy odstęp między kolumnami */
@media (max-width: 767.98px) {
    .video-row {
        display: flex;
        flex-direction: column;
        /* kolumny jedna pod drugą */
    }

    .video-col-left {
        margin-bottom: 1.5rem;
        /* odstęp między zdjęciem a opisem */
    }
}

.video-title h2 {
    margin-bottom: 0.2rem;
    /* zmniejszamy odstęp od caption */
}

.video-title h2 {
    margin-bottom: 0;
    /* usuwa margines pod tytułem */
}

.video-title h6 {
    margin-top: -0.5rem;
    /* minimalny odstęp do tytułu */
    margin-bottom: 0.8rem;
    /* opcjonalnie, żeby nie przyklejał się do kolejnego elementu */
}










.video-row {
    display: flex;
    flex-wrap: nowrap;
    /* domyślnie kolumny nie przełamują się w pionie */
    justify-content: center;
    gap: 4rem;
    /* odstęp poziomy */
}

/* Średnie ekrany / małe laptopy – wymuszone przełamanie */
@media (max-width: 1200px) {
    .video-row {
        flex-wrap: wrap;
        /* dopiero tutaj kolumny mogą iść jedna pod drugą */
        gap: 0;
        /* zerowy gap pionowy */
    }

    .video-col-left {
        margin-bottom: 4.0rem;
        /* minimalny odstęp pionowy */
    }
}

/* Telefony: poniżej 768px – kolumny jedna pod drugą */
@media (max-width: 768px) {
    .video-row {
        flex-direction: column;
        gap: 0;
    }

    .video-col-left {
        margin-bottom: 0.9rem;
    }
}


@media (min-width: 768px) {
    .video-col-right {
        display: flex;
        align-items: center;
        /* centrowanie w pionie */
    }

    .video-col-right p {
        margin-bottom: 0;
        /* żeby nie spychał w dół */
    }
}


.intro {
    font-size: 2rem;
    /* ≈ 24px */
    line-height: 1.4;
}