/*
 * Main Styles for provisional23
 */

:root {
    --color-background: #ffffff;
    --color-text: #111111;
    --color-accent: #777777;
    --font-primary: "acumin-pro", sans-serif;
    --transition-speed: 0.3s;
    --menu-bg: #ffffff;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Estilos para contenido del Editor --- */
.entry-content p,
.info-content p,
.exposicion-text-single p {
    line-height: 1.3;
    /* Ajusta este valor para el interlineado */
    letter-spacing: 0.001em;
    /* Ajusta este valor para el interletrado */
    margin-bottom: 1.5rem;
    /* Espacio entre párrafos */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 500;
    margin-top: 0;
    letter-spacing: -0.01em;
}

a {
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--color-accent);
}

.container {
    max-width: calc(1200px + 250px);
    margin: 0 auto;
    padding: 0 40px 0 290px;
}

.container-fluid {
    width: 100%;
    padding: 0 40px 0 290px;
    box-sizing: border-box;
}

.margin-top-1rem {
    margin-top: 1rem;
}

/* --- Header & Menu Toggle --- */
.header-fixed-elements {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    display: flex;
    align-items: flex-start;
    gap: 30px;
    color: var(--color-text);
    transition: color 0.4s ease;
}

.site-branding-fixed {
    font-size: 1.4rem;
    font-weight: 500;
    color: #000000;
    background-color: #ffffff;
    padding: 42px 10px 10px 19px;
    transition: color 0.4s ease, text-shadow 0.4s ease;
}

.menu-icon {
    display: block;
    width: 12px;
    height: 12px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform var(--transition-speed);
}

body.menu-open .menu-icon {
    transform: rotate(135deg);
}

/* Sidebar Branding */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background-color: var(--menu-bg);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 0px 40px 30px 40px;
    box-sizing: border-box;
    overflow-y: auto;
}

.site-branding {
    margin-bottom: 60px;
    display: none;
}

/* Menu Items */
.main-navigation {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.main-navigation::before {
    content: '';
    flex: 0 1 60vh;
    min-height: 100px;
}

.menu-container {
    flex-shrink: 0;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    margin-bottom: 10px;
    padding: 0;
}

.main-navigation li {
    margin-bottom: -6px;
}

.main-navigation a {
    font-size: 1rem;
    font-weight: 400;
    text-transform: lowercase;
    letter-spacing: 0.05em;
    color: #000000;
}

.main-navigation a:hover {
    color: var(--color-accent);
}

.menu-footer {
    position: relative;
    font-size: 0.85rem;
    color: var(--color-accent);
    margin-top: auto;
    flex-shrink: 0;
    /* También protegemos el 'es/en' de ser aplastado */
}

.language-switcher {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    text-transform: lowercase;
}

.language-switcher a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s;
}

.language-switcher a:hover,
.language-switcher a.active {
    color: var(--color-text);
    font-weight: 500;
}

.menu-contacto-link {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 5px;
}

/* Overlay removed */

/* Menu Toggle & Mobile Header */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-top: 0px;
    margin-left: 10px; 
    z-index: 1002;
    color: var(--color-text);
}

@media (max-width: 900px) {
    .header-fixed-elements {
        flex-direction: column;
        gap: 0;
        position: sticky;
        top: 0;
        width: 100%;
        background-color: #ffffff;
        padding-bottom: 15px;
    }
    
    .site-branding-fixed {
        background-color: transparent;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .site-header {
        height: 100dvh;
        overflow: hidden;
        padding-top: 140px;
        padding-bottom: 40px;
        transform: translateX(-100%);
        transition: transform var(--transition-speed) ease;
    }
    
    .menu-container {
        margin: auto 0;
    }
    
    .menu-footer {
        margin-top: auto;
    }
    
    body.menu-open .site-header {
        transform: translateX(0);
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }
    
    body.menu-open {
        overflow: hidden; /* Evitar scroll de fondo al abrir menú */
    }

    /* Remover el empuje vertical de navegación en móviles */
    .main-navigation::before {
        display: none;
    }

    /* Override hardcoded paddings en mobile */
    .container, 
    .container-fluid,
    .page-noticias, 
    .page-exposiciones,
    .page-info {
        padding: 40px 40px !important;
    }
    
    .news-section {
        margin-left: 0 !important;
        width: 100vw !important;
    }

    /* Reducir padding de footer que en desktop es 100px 40px 100px 290px */
    .site-footer {
        padding: 60px 40px !important;
    }
}

/* --- Specific Pages --- */

/* --- Info Page --- */
.page-info {
    padding: 160px 40px 60px 290px;
    max-width: 1450px;
    margin: 0 auto;
    box-sizing: border-box;
}

.info-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-text);
}

/* Front Page (Landing) Carousel */
.front-page-main {
    padding: 0;
}

.carousel-container {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #ffffff;
    /* Fondo base blanco absoluto */
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease-in-out, visibility 1.5s;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}



.fullscreen-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-slide:has(.exhibition-info-overlay:hover) .fullscreen-image {
    opacity: 1;
}

.exhibition-info-overlay {
    position: absolute;
    bottom: 50%;
    left: calc(50% + 125px);
    /* Desplaza el centro exacto sumando la mitad del ancho del menú lateral (250px / 2) */
    transform: translateX(-50%);
    text-align: left;
    color: #000000;
    /* Negro por defecto sobre el fondo blanco */
    z-index: 10;
    transition: color 0.5s ease, text-shadow 0.5s ease;
    text-decoration: none;
    /* Como es un enlace, quitamos decoraciones */
}

@media (max-width: 900px) {
    .exhibition-info-overlay {
        left: 50%;
    }
}

/* El texto se vuelve blanco SOLO cuando se hace hover directo sobre él */
.exhibition-info-overlay:hover {
    color: #ffffff;
    /* Texto pasa a blanco al descubrir la imagen */
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 0, 0, 0.4);
}

.exhibition-title,
.exhibition-artist,
.exhibition-dates {
    font-weight: 400;
    margin: 0 0 2px 0;
    letter-spacing: 0.05em;
    font-style: normal;
    line-height: 1.0;
}

.exhibition-artist {
    font-size: clamp(1rem, 2vw, 1.2rem);
    /* Fluye automáticamente entre un tamaño mínimo para móvil y un máximo */
    margin-bottom: 0px;
}

.exhibition-title {
    font-size: 1rem;
    font-weight: 500;
    font-style: italic;
}

.exhibition-dates {
    font-size: clamp(1rem, 2vw, 1.2rem);
}

/* Front Page: News Section */
.news-section {
    padding: 100px 0;
    background: #fff;
    width: calc(100vw - 250px);
    margin-left: 250px;
    box-sizing: border-box;
    border-top: 1px solid #eaeaea;
}

.news-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding-bottom: 20px;
    /* Hide scrollbar for a cleaner look */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.news-carousel::-webkit-scrollbar {
    display: none;
}

.news-card {
    flex: 0 0 calc(25% - 22.5px);
    min-width: 320px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

.news-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    margin-bottom: 25px;
    background: #f4f4f4;
}

.news-card h3 {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-card p {
    font-size: 0.95rem;
    color: var(--color-accent);
    margin: 0;
    line-height: 1.6;
}

/* Global Footer / Contact block */
.site-footer {
    padding: 100px 40px 100px 290px;
    background: #fff;
    border-top: 1px solid #eaeaea;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-col p,
.footer-col a {
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: 10px;
    display: block;
    line-height: 1.4;
}

.footer-col strong {
    font-weight: 600;
}

.footer-branding a {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Form */
.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 250px;
}

.subscribe-form .form-title {
    font-size: 0.95rem;
    color: var(--color-text);
}

.subscribe-form input {
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 8px 0;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    background: transparent;
    transition: border-color var(--transition-speed);
}

.subscribe-form input:focus {
    outline: none;
    border-bottom-color: var(--color-text);
}

.subscribe-form .submit-arrow {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    text-align: left;
    padding: 0;
    margin-top: 5px;
    color: var(--color-text);
    transition: opacity 0.3s;
}

.subscribe-form .submit-arrow:hover {
    opacity: 0.6;
}

/* MailPoet Override Styles */
.mailpoet-custom-wrapper form.mailpoet_form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 250px;
    padding: 0 !important;
}

.mailpoet-custom-wrapper .mailpoet_paragraph {
    margin: 0 !important;
    line-height: 1;
}

.mailpoet-custom-wrapper input[type="text"],
.mailpoet-custom-wrapper input[type="email"] {
    border: none !important;
    border-bottom: 1px solid #ccc !important;
    padding: 8px 0 !important;
    font-family: var(--font-primary) !important;
    font-size: 0.95rem !important;
    background: transparent !important;
    transition: border-color var(--transition-speed) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
}

.mailpoet-custom-wrapper input[type="text"]:focus,
.mailpoet-custom-wrapper input[type="email"]:focus {
    outline: none !important;
    border-bottom-color: var(--color-text) !important;
}

.mailpoet-custom-wrapper input[type="submit"],
.mailpoet-custom-wrapper .mailpoet_submit {
    background: none !important;
    border: none !important;
    font-size: 1.5rem !important;
    cursor: pointer !important;
    text-align: left !important;
    padding: 0 !important;
    margin-top: 5px !important;
    color: var(--color-text) !important;
    transition: opacity 0.3s !important;
    box-shadow: none !important;
    font-family: sans-serif !important;
    font-weight: 300 !important;
    line-height: 1 !important;
}

.mailpoet-custom-wrapper input[type="submit"]:hover,
.mailpoet-custom-wrapper .mailpoet_submit:hover {
    opacity: 0.6 !important;
}


/* Media Queries */
@media (max-width: 1024px) {
    .news-card {
        flex: 0 0 calc(33.333% - 20px);
    }
}

@media (max-width: 768px) {
    .news-card {
        flex: 0 0 calc(85vw - 40px);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

/* --- Artistas Split Layout --- */
.page-artistas-split {
    padding: 0;
    margin: 0;
}

.artistas-split-container {
    display: block;
    width: 100vw;
}

.artistas-list-col {
    width: 50%;
    margin-left: 50vw;
    padding: 160px 40px 60px 0;
    box-sizing: border-box;
    min-height: 100vh;
    background-color: transparent;
}

.exhib-section-wrapper {
    position: relative;
    margin-bottom: 60px;
}

.exhib-section-title {
    position: absolute;
    right: calc(100% + 40px);
    top: 0;
    margin: 0;
    font-size: 1rem;
    text-transform: lowercase;
    font-weight: normal;
    text-align: right;
    white-space: nowrap;
}

.artistas-tabs {
    display: flex;
    gap: 30px;
    margin-bottom: 2rem;
}

.artistas-tab {
    font-family: var(--font-primary);
    font-size: 1rem;
    text-transform: lowercase;
    font-weight: normal;
    cursor: pointer;
    opacity: 0.5;
    margin: 0;
    transition: opacity 0.3s;
}

.artistas-tab.active {
    opacity: 1;
    text-decoration: underline;
}

.artistas-tab:hover {
    opacity: 1;
}

.artistas-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.artistas-list li {
    margin-bottom: 0.5rem;
}

.artista-link {
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--color-text);
    transition: opacity var(--transition-speed);
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
}

.artista-link:hover,
.artista-link.active {
    opacity: 0.6;
}

.artistas-image-col {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 300px;
    /* Ancho máximo permitido */
    height: 300px;
    /* Alto máximo permitido */
    background-color: transparent;
    pointer-events: none;
    z-index: 100;
}

.artista-image-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}

.artista-image-slide.active {
    opacity: 1;
    visibility: visible;
}

.artista-image-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom right;
}

.artista-image.cpt-list-col {
    width: 30%;
    position: sticky;
    top: 140px;
    align-self: flex-start;
}

@media (max-width: 768px) {
    .cpt-image-col {
        display: none;
    }

    .cpt-list-col {
        width: 100%;
        position: static;
    }
}

/* --- Core --- */
/* Custom Scrollbar for Webkit based browsers */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f9f9f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #d4d4d4;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}

/* Firefox Custom Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #d4d4d4 #f9f9f9;
}

/* --- Ferias --- */
.ferias-archivo {
    padding-bottom: 80px;
}

.ferias-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.feria-item {
    display: flex;
    flex-direction: column;
}

.feria-image-link {
    display: block;
    margin-bottom: 15px;
}

.feria-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.feria-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feria-title {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
}

.feria-title a {
    text-decoration: none;
    color: var(--color-text);
}

.feria-dates,
.feria-artists {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
    color: var(--color-text);
    opacity: 0.9;
}

@media (max-width: 768px) {
    .ferias-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* --- Noticias --- */
.page-noticias {
    padding: 160px 40px 80px 290px;
    box-sizing: border-box;
}

.noticias-container {
    width: 50%;
}

.noticias-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.noticia-row {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 40px;
    align-items: flex-start;
    border-bottom: 1px solid #eee;
    padding-bottom: 40px;
}

.noticia-row:last-child {
    border-bottom: none;
}

.noticia-image-wrapper {
    display: block;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.noticia-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-image-placeholder {
    width: 100%;
    aspect-ratio: 16/10;
    background: #f5f5f5;
}

.news-title {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.news-title a,
.news-read-more {
    color: inherit;
    text-decoration: none;
}

.news-read-more {
    display: inline-block;
    margin-top: 15px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    text-decoration: underline;
}

.news-date {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.news-excerpt {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
}

@media(max-width: 768px) {
    .page-noticias {
        padding: 120px 20px 60px 20px;
    }
    .noticias-container {
        width: 100%;
    }
    .noticia-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .artistas-split-container {
        display: block;
    }

    .artistas-list-col {
        width: 100%;
        margin-left: 0;
        padding-left: 40px;
        padding-top: 100px;
        min-height: auto;
    }

    .exhib-section-title {
        position: static;
        text-align: left;
        margin-bottom: 20px;
    }

    .artistas-image-col {
        display: none;
    }

    .page-artistas-split {
        overflow: auto;
    }
}

/* --- Exposiciones Layout --- */
.page-exposiciones {
    padding: 160px 40px 60px 290px;
    /* Adjust left padding for fixed header */
}

.exposiciones-container {
    max-width: 1400px;
    margin: 0 auto;
}

.exhibitions-section {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 80px;
}

.section-label {
    width: 20%;
    flex-shrink: 0;
}

.section-label h2 {
    font-size: 1.2rem;
    font-weight: 400;
    text-decoration: underline;
    margin: 0;
}

.exhibitions-grid {
    width: 80%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.exhibition-item {
    display: flex;
    flex-direction: column;
}

.exhib-image-link {
    display: block;
    margin-bottom: 15px;
    overflow: hidden;
}

.exhib-image-link img,
.placeholder-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/10;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.placeholder-img {
    background-color: #eaeaea;
}

.exhib-image-link:hover img {
    transform: scale(1.02);
}

.exhib-details {
    display: flex;
    flex-direction: column;
    /* keep details stacked based on design */
}

.exhib-title {
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0 0 0px 0;
}

.exhib-title a {
    text-decoration: underline;
    color: var(--color-text);
}

.exhib-title a:hover {
    color: var(--color-accent);
}

.exhib-artist {
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0 0 0px 0;
}

.exhib-dates {
    font-size: 0.95rem;
    color: var(--color-text);
    margin: 0;
}

.no-exhibitions {
    grid-column: 1 / -1;
    color: var(--color-accent);
}

@media (max-width: 900px) {
    .exhibitions-section {
        flex-direction: column;
        gap: 20px;
    }

    .section-label {
        width: 100%;
    }

    .exhibitions-grid {
        width: 100%;
        grid-template-columns: 1fr;
    }
}

/* --- Back link on single CPT pages --- */

/* The back link is hidden everywhere by default */
.nav-back-link {
    display: none;
    position: absolute;
    top: 25vh;
    left: 40px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 400;
    text-transform: lowercase;
    letter-spacing: 0.05em;
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.nav-back-link:hover {
    color: var(--color-accent);
}

/* On single artistas / exposiciones / ferias pages:
   – hide the nav menu list
   – show the back link */
.single-artistas .main-navigation .menu-container,
.single-exposiciones .main-navigation .menu-container,
.single-ferias .main-navigation .menu-container {
    display: none;
}

.single-artistas .nav-back-link,
.single-exposiciones .nav-back-link,
.single-ferias .nav-back-link {
    display: block;
}

/* ============================================================
   EXPOSICIÓN SINGLE — two-column layout
   ============================================================ */

.exposicion-single-main {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
}

.exposicion-single-layout {
    min-height: 100vh;
}

/* Cover image + dates: fixed overlay within the white 250px sidebar strip, below "atrás" */
.exposicion-sidebar-info {
    position: fixed;
    top: calc(25vh + 2.2rem);
    /* right below the "atrás" link (which is at top:25vh) */
    left: 0;
    width: 250px;
    padding: 20px 40px 0 40px;
    box-sizing: border-box;
    z-index: 1001;
    /* above sidebar (z-index:1000) */
    pointer-events: none;
    /* let clicks pass through to the nav-back-link */
    overflow: hidden;
}

.exposicion-cover img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 25vh;
    object-fit: cover;
    pointer-events: auto;
}

.exposicion-dates-single {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    text-transform: lowercase;
    color: var(--color-text);
    margin: 8px 0 0 0;
    line-height: 1.5;
    pointer-events: auto;
}

/* RIGHT COLUMN: starts at 50vw */
.exposicion-right-col {
    margin-left: 50vw;
    width: 50vw;
    padding: 160px 40px 80px 0;
    box-sizing: border-box;
    min-height: 100vh;
}

/* Artist + Title header */
.exposicion-header-single {
    margin-bottom: 30px;
}

.exposicion-artist-single {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 4px;
}

.exposicion-title-single {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-style: italic;
    font-weight: 400;
    margin: 0;
}

/* Gallery viewer */
.exposicion-gallery {
    margin-bottom: 30px;
}

.exposicion-gallery-track {
    position: relative;
    width: 100%;
    cursor: pointer;
    overflow: hidden;
    background: transparent;
}

.exposicion-gallery-slide {
    display: none;
}

.exposicion-gallery-slide.active {
    display: block;
}

.exposicion-gallery-slide img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 70vh;
    object-fit: contain;
    background: transparent;
    transition: opacity 0.3s ease;
}

/* Counter + arrows bar */
.exposicion-gallery-ui {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    margin-top: 0;
}

.exposicion-gallery-counter {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    color: var(--color-text);
}

.exposicion-gallery-arrows {
    display: flex;
    gap: 12px;
}

.gallery-arrow {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    color: var(--color-text);
    padding: 0 4px;
    line-height: 1;
    transition: opacity 0.2s;
    font-family: var(--font-primary);
}

.gallery-arrow:hover {
    opacity: 0.5;
}

/* Text block below gallery */
.exposicion-text-single {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-top: 30px;
}

.exposicion-text-single p {
    margin-top: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .exposicion-sidebar-info {
        position: static;
        width: 100%;
        padding: 100px 40px 10px 40px;
        z-index: auto;
    }

    .exposicion-right-col {
        margin-left: 0;
        width: 100%;
        padding: 20px 40px 60px 40px;
    }
}

/* ============================================================
   LIGHTBOX — Ferias single
   ============================================================ */
.feria-lightbox-trigger {
    cursor: zoom-in;
    transition: opacity 0.2s ease;
}

.feria-lightbox-trigger:hover {
    opacity: 0.9;
}

#feria-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.88);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    animation: lightboxFadeIn 0.2s ease;
}

#feria-lightbox.active {
    display: flex;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#feria-lightbox img {
    max-width: 88vw;
    max-height: 88vh;
    object-fit: contain;
    display: block;
    animation: lightboxZoomIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: default;
}

@keyframes lightboxZoomIn {
    from {
        transform: scale(0.92);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

#feria-lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    font-size: 2rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    opacity: 0.75;
    transition: opacity 0.2s;
    font-family: var(--font-primary);
}

#feria-lightbox-close:hover {
    opacity: 1;
}