/* =========================================================
   YOUTUBE FEED DINÁMICO — PHP
   ========================================================= */

.YTSection {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-top: 5%;
    background-image: url("../Assets/others/videoBG.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    -webkit-mask-image:
        linear-gradient(
            to right,
            transparent 0%,
            black 15%,
            black 85%,
            transparent 100%
        ),
        linear-gradient(
            to bottom,
            transparent 0%,
            black 15%,
            black 85%,
            transparent 100%
        );

    -webkit-mask-composite: source-in;

    mask-image:
        linear-gradient(
            to right,
            transparent 0%,
            black 15%,
            black 85%,
            transparent 100%
        ),
        linear-gradient(
            to bottom,
            transparent 0%,
            black 15%,
            black 85%,
            transparent 100%
        );

    mask-composite: intersect;
}

.vergangenesYT {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 60%;
    padding: 80px 0;
}

.youtube-section {
    width: 80%;
    color: #fff;
}

.youtube-section h2 {
    margin-bottom: 24px;
}

/* Video principal */

.youtube-main {
    width: 100%;
}

.youtube-card {
    min-width: 0;
}

/* Thumbnail / iframe */

.youtube-thumbnail,
.youtube-card iframe {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #111;
}

.youtube-thumbnail {
    cursor: pointer;
}

.youtube-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.youtube-thumbnail:hover img {
    transform: scale(1.04);
}

/* Botón play */

.youtube-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    width: 54px;
    height: 38px;
    border-radius: 10px;
    background: #ff4516;
    color: #fff;
    font-size: 19px;
}

/* Títulos */

.youtube-title {
    margin: 10px 0 0;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 500;
}

.youtube-card-main .youtube-title {
    margin-top: 14px;
    font-size: 20px;
}

/* Grid de vídeos secundarios */

.youtube-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}


/* =========================================================
   YOUTUBE MANUAL — VYTSection
   ========================================================= */

.VYTSection {
    position: relative;
    isolation: isolate;
    width: 100%;
    padding: 80px 0;
    background-image: url("../Assets/pictures/crowd_photo_lighter.png.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Oscurecimiento / degradado de los bordes */

.VYTSection::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(
            to right,
            #000 0%,
            transparent 20%,
            transparent 80%,
            #000 100%
        ),
        linear-gradient(
            to bottom,
            #000 0%,
            transparent 20%,
            transparent 80%,
            #000 100%
        );
}

/* Contenedor */

.manual-youtube-section {
    position: relative;
    z-index: 1;
    width: 50%;
    max-width: 1400px;
    margin: 0 auto;
    color: #fff;
}

.manual-youtube-section h2 {
    margin: 0 0 24px;
    text-align: center;
    color: #fff;
}


/* =========================================================
   2 VIDEOS PRINCIPALES
   ========================================================= */

.manual-youtube-main {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}


/* =========================================================
   5 VIDEOS SECUNDARIOS
   ========================================================= */

.manual-youtube-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}


/* =========================================================
   VIDEOS MANUALES
   ========================================================= */

.manual-youtube-card {
    min-width: 0;
}

.manual-youtube-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: #111;
}

.manual-youtube-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    /* Feed PHP */

    .youtube-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }


    /* Feed manual */

    .manual-youtube-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    /* Feed PHP */

    .youtube-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 12px;
    }

    .youtube-card-main .youtube-title {
        font-size: 17px;
    }

    .youtube-title {
        font-size: 13px;
    }


    /* Feed manual */

    .VYTSection {
        padding: 60px 0;
    }

    .manual-youtube-section {
        width: 80%;
    }

    .manual-youtube-main {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .manual-youtube-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-top: 20px;
    }

}