/* ========================================
   CONTENT EXHIBITIONS INTERIOR
   Single Exhibition Page (Vista Interior)
   ======================================== */

.ex-interior-single {
    background: #fff;
    padding: 0;
    margin: 0;
    font-family: 'RST Thermal', sans-serif;
    color: #000;
}

/* ========================================
   FILTROS DE NAVEGACIÓN (STICKY)
   ======================================== */

.ex-interior-filters-single {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding-top: 23px;
    padding-bottom: 5px;
    margin-bottom: 50px;
    position: -webkit-sticky;
    position: sticky;
    top: 82px;
    background: #fff;
    z-index: 1000;
    width: 100%;
    border-bottom: 1px solid black;
}

.ex-filter-link {
    font-size: 18px;
    font-weight: 400;
    color: #000;
    text-decoration: none;
    font-family: 'RST Thermal', sans-serif;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.ex-filter-link:hover {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.ex-filter-link.active {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ========================================
   CONTENIDO PRINCIPAL - DOS COLUMNAS
   ======================================== */

.ex-interior-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 40px 50px 40px;
    align-items: start;
}

/* ========================================
   COLUMNA IZQUIERDA - INFO (Con Scroll)
   ======================================== */

/* Wrapper para los indicadores */
.ex-interior-info-col-wrapper {
    position: sticky;
    top: 200px;
    padding-right: 40px;
    max-height: calc(100vh - 220px);
}

.ex-interior-info-col {
    max-height: calc(100vh - 220px);
    overflow-y: auto;
    
    /* Ocultar barra de scroll */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Ocultar barra en Webkit */
.ex-interior-info-col::-webkit-scrollbar {
    display: none;
}

/* ========================================
   INDICADORES DE SCROLL (FLECHAS)
   ======================================== */

.scroll-indicator {
    position: absolute;
    right: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.scroll-indicator-top {
    top: 0;
}

.scroll-indicator-bottom {
    bottom: 0;
}

.scroll-indicator.visible {
    opacity: 1;
}

/* ========================================
   ESTILOS DE TEXTO INFO
   ======================================== */

.ex-interior-cat {
    display: block;
    font-size: 25.5px;
    font-weight: 400;
    color: #000;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    font-family: 'RST Thermal', sans-serif;
}

.ex-interior-main-title {
    font-size: 51px;
    font-weight: 400;
    line-height: 1.05;
    margin: 0 0 15px 0;
    color: #000;
    font-family: 'RST Thermal', sans-serif;
    font-style: normal;
}

.ex-interior-main-date {
    display: block;
    font-size: 17px;
    font-weight: 400;
    color: #000;
    margin-bottom: 70px;
    font-family: 'RST Thermal', sans-serif;
}

.ex-interior-description {
    font-size: 25.5px;
    line-height: 1.7;
    color: #222222;
    margin-bottom: 40px;
    font-family: 'RST Thermal', sans-serif;
}

.ex-interior-description p {
    margin-bottom: 20px;
}

/* ========================================
   SECCIÓN DEL ARTISTA
   ======================================== */

.ex-interior-artist-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.ex-interior-artist-title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0 0 20px 0;
    font-family: 'RST Thermal', sans-serif;
}

.ex-interior-artist-bio {
    font-size: 16px;
    line-height: 1.7;
    color: #000;
    font-family: 'RST Thermal', sans-serif;
}

.ex-interior-artist-bio p {
    margin-bottom: 15px;
}

/* ========================================
   COLUMNA DERECHA - GALERÍA
   ======================================== */

.ex-interior-gallery-col {
    position: relative;
}

.ex-interior-gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ex-interior-gallery-item {
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.ex-interior-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ========================================
   SECCIÓN DE VIDEOS
   ======================================== */

.ex-interior-videos {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 60px 40px 80px 40px;
    overflow: hidden;
    box-sizing: border-box;
}

.ex-interior-videos-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.ex-interior-videos-wrapper::-webkit-scrollbar {
    height: 6px;
}

.ex-interior-videos-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.ex-interior-videos-wrapper::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.ex-interior-videos-grid {
    display: flex;
    gap: 20px;
    width: 100%;
}

.ex-interior-videos-grid.videos-fit {
    justify-content: space-between;
}

.ex-interior-videos-grid.videos-scroll {
    min-width: min-content;
}

.ex-interior-video-item {
    flex: 1 1 calc(33.333% - 14px);
    min-width: 280px;
    max-width: none;
    cursor: pointer;
}

.ex-interior-videos-grid.videos-scroll .ex-interior-video-item {
    flex: 0 0 calc(33.333% - 14px);
    max-width: 400px;
}

.ex-interior-video-thumb {
    position: relative;
    width: 100%;
    padding-bottom: 66%;
    overflow: hidden;
    background: #000;
}

.ex-interior-video-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ex-interior-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.ex-interior-video-item:hover .ex-interior-video-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.ex-interior-video-overlay span {
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    font-family: 'RST Thermal', sans-serif;
}

.ex-interior-video-title {
    font-size: 14px;
    color: #000;
    text-align: center;
    margin-top: 15px;
    font-weight: 400;
    font-family: 'RST Thermal', sans-serif;
    line-height: 1.4;
}

/* ========================================
   MODAL DE VIDEO
   ======================================== */

.ex-video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.ex-video-modal.active {
    display: flex;
}

.ex-video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
}

.ex-video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    padding: 5px 10px;
    z-index: 10;
}

.ex-video-modal-close:hover {
    color: #F57E98;
}

.ex-video-modal-iframe {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
}

.ex-video-modal-iframe iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ========================================
   RESPONSIVE VIDEOS
   ======================================== */

@media (max-width: 1200px) {
    .ex-interior-video-item {
        min-width: 250px;
    }
}

@media (max-width: 900px) {
    .ex-interior-videos {
        padding: 40px 20px 60px 20px;
    }
    
    .ex-interior-video-item {
        flex: 0 0 calc(50% - 10px);
        min-width: 220px;
    }
}

@media (max-width: 600px) {
    .ex-interior-video-item {
        flex: 0 0 80%;
        min-width: 200px;
    }
    
    .ex-interior-video-title {
        font-size: 13px;
    }
}

.site-logo {
    display: none !important;
}

/* ========================================
   ESTILOS RESPONSIVE (MÓVIL / CELULAR)
   ======================================== */

@media (max-width: 768px) {

    .ex-interior-main-title {
        font-size: 51px;
        font-weight: 400;
        line-height: 1.05;
        margin: 0 0 15px 0;
        color: #000;
        font-family: 'RST Thermal';
        font-style: normal;
        margin-bottom: 10px;
    }

    .ex-interior-description {
        font-size: 18.7px;
        line-height: 1.7;
        color: #222222;
        margin-bottom: 0px;
        font-family: 'RST Thermal';
    }

    .ex-interior-cat {
        font-size: 18.7px;
    }

    /* Ocultar indicadores en móvil */
    .scroll-indicator {
        display: none;
    }

    /* 1. MENÚ DE FILTROS */
    .ex-interior-filters-single {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        padding: 0;
        top: 35px;
        border-bottom: 1px solid #000;
        background: #fff;
        z-index: 900;
    }

    .ex-filter-link {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 4px 0;
        font-size: 14px;
        border: none;
    }

    .ex-filter-link:first-child {
        border-right: 1px solid #000;
    }

    /* 2. ESTRUCTURA PRINCIPAL */
    .ex-interior-main {
        display: flex;
        flex-direction: column;
        padding: 0;
        gap: 0;
        
        margin-top:-38px;
    }

    /* Wrapper en móvil */
    .ex-interior-info-col-wrapper {
        position: static;
        max-height: none;
        padding-right: 0;
        order: 2;
    }

    .ex-interior-info-col {
        position: static;
        max-height: none;
        overflow-y: visible;
        padding: 30px 25px;
        width: 100%;
        box-sizing: border-box;
        font-size: 18px;
    }

    /* 3. GALERÍA DE FOTOS */
    .ex-interior-gallery-col {
        width: 100%;
        order: 1;
    }

    .ex-interior-gallery-grid {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        padding: 0;
        padding-top: 0px;
        box-sizing: border-box;
        gap: 0;
    }

    .ex-interior-gallery-item {
        min-width: 75vw;
        width: 75vw;
        flex: 0 0 75vw;
        height: auto;
        scroll-snap-align: start;
        margin: 0;
    }

    .ex-interior-gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* 4. VIDEOS */
    .ex-interior-videos {
        order: 3;
        padding: 50px 0;
        width: 100%;
    }

    .ex-interior-videos-wrapper {
        width: 100%;
    }

    .ex-interior-videos-grid,
    .ex-interior-videos-grid.videos-fit,
    .ex-interior-videos-grid.videos-scroll {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 0 15vw;
        box-sizing: border-box;
    }

    .ex-interior-video-item {
        flex: 0 0 70vw;
        min-width: 70vw;
        max-width: 70vw;
        padding: 0;
        box-sizing: border-box;
        scroll-snap-align: center;
    }

    .ex-interior-video-thumb {
        padding-bottom: 56.25%;
    }

    .ex-interior-video-title {
        padding-top: 15px;
        text-align: center;
        font-size: 14px;
    }
}

