/* MURAL */

.galeria-mural h2 {
    text-align: center;
    color: #990011;
    font-size: 38px;
    margin-bottom: 40px;
}


/* reutiliza o mural anterior */

.mural {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.mural-item {
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    box-shadow: 0 5px 18px rgba(0,0,0,0.08);
}

.mural-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.mural-item img:hover {
    transform: scale(1.05);
    cursor: pointer;
}


/* =========================
   LIGHTBOX
========================= */

.lightbox {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.92);

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    pointer-events: none;

    transition: 0.3s;
    z-index: 9999;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 15px;

    transform: scale(0.8);
    transition: 0.3s;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;

    color: white;
    font-size: 50px;
    cursor: pointer;
}

/* =========================
   VÍDEO FULL WIDTH
========================= */

.video-destaque {
    width: 80%;
    margin-top: 40px;
}

.video-destaque video {
    width: 95vw;        /* ocupa largura total do ecrã */
    height: 80vh;        /* altura grande (quase ecrã inteiro) */
    object-fit: cover;   /* mantém estética tipo imagem */
    display: block;
}


/* =========================
   VÍDEO
========================= */

.video-destaque {
    position: relative;
    width: 95vw;
    margin-top: 80px;
}

.video-destaque video {
    width: 95vw;
    height: 100vh;
    object-fit: cover;
    display: block;
}

/* CONTROLOS */

.video-controls {
    position: absolute;
    bottom: 20px;
    left: 20px;

    display: flex;
    gap: 10px;
}

.video-controls button {
    background-color: rgba(153, 0, 17, 0.85);
    color: white;

    border: none;
    padding: 12px 16px;
    border-radius: 10px;

    font-size: 18px;
    cursor: pointer;

    transition: 0.2s;
}

.video-controls button:hover {
    background-color: rgba(119, 0, 13, 0.95);
}


/* MOBILE */

@media (max-width: 768px) {

    .galeria-topo h1 {
        font-size: 38px;
    }

    .preview-container iframe {
        height: 400px;
    }

}

/*BLOOPERS*/
.bloopers {
    width: 100%;
    height: 100vh;
    text-align: center;
    overflow: hidden;
    position: relative;
}
.bloopers .slider {
    position: absolute;
    width: 200px;
    height: 250px;
    top: 10%;
    left: calc(50% - 100px);
    transform-style: preserve-3d;
    transform: perspective(1000px);
}
.bloopers .slider .item{
    position: absolute;
    inset: 0 0 0 0;
    transform: 
      rotateY(calc ( (var(--position) - 1) * (360/var(--quantity)) * 1deg))
      translateZ(550px);
}
.bloopers .slider .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}