/* VdT Experience — Galeria de fotografias dos eventos */
.vdt-event-gallery {
    --vdt-gallery-gap: 16px;
    --vdt-gallery-image-height: 260px;
    margin: 48px 0 32px;
    clear: both;
    width: 100%;
    min-width: 0;
}

.vdt-event-gallery__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.vdt-event-gallery__title {
    margin: 0;
    /* Alinhado com os títulos de secção do conteúdo do evento (ex.: Sinopse). */
    font-size: 18px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
}

.vdt-event-gallery__navigation {
    display: flex;
    flex-shrink: 0;
    gap: 8px;
}

.vdt-event-gallery__arrow {
    display: inline-flex;
    width: 42px;
    height: 42px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.vdt-event-gallery__arrow:hover,
.vdt-event-gallery__arrow:focus-visible {
    background: #11194d;
    color: #fff;
}

.vdt-event-gallery__track {
    display: flex;
    align-items: stretch;
    gap: var(--vdt-gallery-gap);
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    padding: 2px 1px 8px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.vdt-event-gallery__slide {
    flex: 0 0 calc((100% - (2 * var(--vdt-gallery-gap))) / 3);
    min-width: 0;
    height: var(--vdt-gallery-image-height);
    scroll-snap-align: start;
}

/* Todas as fotografias usam exatamente a mesma área, sem fundo cinzento. */
.vdt-event-gallery .vdt-event-gallery__link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: transparent !important;
    line-height: 0;
}

.vdt-event-gallery .vdt-event-gallery__image {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 100%;
    margin: 0 !important;
    object-fit: cover !important;
    object-position: center center;
    background: transparent !important;
    transition: transform .35s ease;
}

.vdt-event-gallery__link:hover .vdt-event-gallery__image,
.vdt-event-gallery__link:focus-visible .vdt-event-gallery__image {
    transform: scale(1.035);
}

.vdt-event-gallery-lightbox {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 2147483647 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    padding: 56px 70px !important;
    background: rgba(8, 10, 20, .94) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.vdt-event-gallery-lightbox[hidden] {
    display: none !important;
}

.vdt-event-gallery-lightbox .vdt-event-gallery-lightbox__image {
    display: block !important;
    position: relative !important;
    z-index: 1 !important;
    max-width: 100% !important;
    max-height: calc(100vh - 112px) !important;
    max-height: calc(100dvh - 112px) !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

/* Reforçar os controlos contra os estilos globais do tema/Elementor. */
.vdt-event-gallery-lightbox .vdt-event-gallery-lightbox__close,
.vdt-event-gallery-lightbox .vdt-event-gallery-lightbox__nav {
    position: fixed !important;
    z-index: 2147483647 !important;
    display: flex !important;
    visibility: visible !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 1px solid rgba(255, 255, 255, .9) !important;
    border-radius: 50% !important;
    background: rgba(8, 10, 20, .88) !important;
    color: #fff !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 0 !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    text-align: center !important;
    text-indent: 0 !important;
    text-decoration: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
    transform: none;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.vdt-event-gallery-lightbox .vdt-event-gallery-lightbox__close {
    top: 18px !important;
    right: 20px !important;
}

.vdt-event-gallery-lightbox .vdt-event-gallery-lightbox__nav {
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.vdt-event-gallery-lightbox .vdt-event-gallery-lightbox__nav--prev {
    left: 18px !important;
}

.vdt-event-gallery-lightbox .vdt-event-gallery-lightbox__nav--next {
    right: 18px !important;
}

.vdt-event-gallery-lightbox .vdt-event-gallery-lightbox__close::before,
.vdt-event-gallery-lightbox .vdt-event-gallery-lightbox__nav::before {
    display: block !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #fff !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    text-indent: 0 !important;
    text-shadow: none !important;
    opacity: 1 !important;
}

.vdt-event-gallery-lightbox .vdt-event-gallery-lightbox__close::before {
    content: "×" !important;
    font-size: 36px !important;
}

.vdt-event-gallery-lightbox .vdt-event-gallery-lightbox__nav--prev::before {
    content: "‹" !important;
    font-size: 44px !important;
}

.vdt-event-gallery-lightbox .vdt-event-gallery-lightbox__nav--next::before {
    content: "›" !important;
    font-size: 44px !important;
}

.vdt-event-gallery-lightbox .vdt-event-gallery-lightbox__close:hover,
.vdt-event-gallery-lightbox .vdt-event-gallery-lightbox__nav:hover,
.vdt-event-gallery-lightbox .vdt-event-gallery-lightbox__close:focus-visible,
.vdt-event-gallery-lightbox .vdt-event-gallery-lightbox__nav:focus-visible {
    background: #11194d !important;
    color: #fff !important;
    outline: 2px solid #fff !important;
    outline-offset: 3px !important;
}

body.vdt-event-gallery-lightbox-open {
    overflow: hidden;
}

@media (max-width: 1024px) {
    .vdt-event-gallery {
        --vdt-gallery-image-height: 240px;
    }

    .vdt-event-gallery__slide {
        flex-basis: calc((100% - var(--vdt-gallery-gap)) / 2);
    }
}

@media (max-width: 767px) {
    .vdt-event-gallery {
        --vdt-gallery-image-height: 220px;
        margin-top: 34px;
    }

    .vdt-event-gallery__header {
        gap: 10px;
    }

    .vdt-event-gallery__title {
        font-size: clamp(22px, 6vw, 28px);
    }

    .vdt-event-gallery__navigation {
        gap: 6px;
    }

    .vdt-event-gallery__arrow {
        width: 36px;
        height: 36px;
    }

    .vdt-event-gallery__slide {
        flex-basis: 82%;
    }

    .vdt-event-gallery-lightbox {
        padding: 56px 14px !important;
    }

    .vdt-event-gallery-lightbox .vdt-event-gallery-lightbox__nav--prev {
        left: 8px !important;
    }

    .vdt-event-gallery-lightbox .vdt-event-gallery-lightbox__nav--next {
        right: 8px !important;
    }
}
