/* --- RESET BLOCK --- */
html { font-size: 16px !important; }
body { margin: 0 !important; padding: 0 !important; font-family: 'Montserrat', sans-serif; line-height: 1.5; background-color: #0a0a0a !important; height: 100%; overflow: hidden; }
body.bvgp-scroll-active { overflow-y: auto; height: auto; }
body.bvgp-scroll-active .bvg-content-layer { position: relative; height: auto; min-height: 100vh; }
*, *::before, *::after { box-sizing: border-box; }
/* --- END RESET --- */

/* --- BACKGROUND VIDEO PRELOADER --- */
.bvg-bg-preloader {
    position: fixed; inset: 0; z-index: 5;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
}
.bvg-bg-preloader__spinner {
    width: 36px; height: 36px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.15);
    border-top-color: rgba(255,255,255,0.9);
    animation: bvg-spin-ring 0.9s cubic-bezier(0.4,0,0.6,1) infinite;
}
@keyframes bvg-spin-ring {
    to { transform: rotate(360deg); }
}
/* --- END PRELOADER --- */

/* --- FONDO Y EFECTOS --- */
.bvg-background-layer {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    /* Dos animaciones en paralelo: el fade original intacto (1.2s) + un zoom
       out lento e independiente. El keyframe del fade lo comparte el film
       grain, por eso el zoom va aparte y no dentro de el. */
    opacity: 0;
    animation-name: bvg-fade-in-bg, bvgp-bg-zoom-out;
    animation-duration: 1.2s, 16s;
    animation-timing-function: ease-in, cubic-bezier(0.16, 0.6, 0.3, 1);
    animation-fill-mode: forwards, forwards;
    will-change: transform;
}
/* Fondo en video: solo el fade, sin zoom. Escalar la capa recortaria el
   iframe y ademas el video ya aporta movimiento propio.
   Misma especificidad que la regla base, asi que debe ir despues. */
.bvg-background-layer--video {
    animation-name: bvg-fade-in-bg;
    animation-duration: 1.2s;
    animation-timing-function: ease-in;
    animation-fill-mode: forwards;
    transform: none;
    will-change: auto;
}

.bvg-background-layer::after { content: ''; position: absolute; inset: 0; z-index: 1; background-color: var(--bvg-bg-overlay-color); pointer-events: none; }

/* Degradado inferior estilo streaming: sube desde el borde de abajo hasta la
   mitad de la pantalla. La forma de la rampa es fija; el slider del post solo
   controla la intensidad global via --bvgp-scrim-opacity (0 = apagado). */
.bvg-background-layer::before {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0;
    height: 66%; z-index: 2; pointer-events: none;
    opacity: var(--bvgp-scrim-opacity, 0.85);
    background: linear-gradient(to top,
        rgba(0,0,0,1)    0%,
        rgba(0,0,0,0.90) 10%,
        rgba(0,0,0,0.72) 25%,
        rgba(0,0,0,0.46) 45%,
        rgba(0,0,0,0.22) 66%,
        rgba(0,0,0,0.07) 85%,
        rgba(0,0,0,0)    100%);
}

.bvg-film-grain-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: 1; pointer-events: none;
    opacity: 0; animation-name: bvg-fade-in-bg; animation-duration: 1.2s; animation-timing-function: ease-in; animation-fill-mode: forwards;
}
.bvg-film-grain-overlay::after {
    content:""; position: absolute; width: 200vw; height: 300vh; left: -50%; top: -50%;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAOh0lEQVR4nO1dbVczNw69JCEvBJInEEIgEIb//6/6fbu73e77tt0P1o2vZQ3QPgRCmHsOJ8mMx5ZlWZJljQEynlBia58ncq3nykzs8wzApVy/ATAAMANwJdevACxdnbCyp/bHNhqpn/DP3aMdS/ucAri17xurQ/s6AnBhfbiQZzZSbgvgzuiE1Te0MgDwIO2RdsUaJR/0OvtwzYuPdsPjSgjcyOfICBjZNWXSBuXALIJ6WfejPctONkE5DkgPiWEed0YLvxNDa2OM1NELxBja81P7fenun9vnSK7N5ftUngXSAPo6psg84qDMXRkveNggd6yxB+5cmbl1wGOENCPY4K0RtXXlKQl9+xzb5zVEOgw9o8d3DqiFRwXi2ujnLCMDhsidvkItKMoQlfq+K0fhmSHNiBt3PxIaIA+ob3fsC0ZYSAXs2D1K5pKwaIBWSExaIxG9QGICpWIZPAMkBpAxQ6snk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rz2xpssDTtjHBlcF75o1QeWKaM+jy/H6jhwvVRfdv0I9ANe4W4W/3yr8NUcoFujWIB+8BgHaPYHW/+9tlSmjdYZQujilaRA5AN62qMt9KgTyiFamrJKZK5TRYjJHhSU63pX4NDaywfGfsvMZTqrrjnLFYb2f0h3x10Knx7u8R/N/zoJhKaqY2qsAAAAASUVORK5CYII=);
    animation: grain 1.5s steps(6) infinite;
}
@keyframes grain {
    0%, 100% {transform: translate(0,0);}
    10% {transform: translate(-5%,-10%);}
    30% {transform: translate(3%,-15%);}
    50% {transform: translate(12%,9%);}
    70% {transform: translate(9%,4%);}
    90% {transform: translate(-1%,7%);}
}

/* --- ESTRUCTURA PRINCIPAL --- */
.bvg-content-layer { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    z-index: 10; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
}

/* LOGO: Se adapta y mantiene centrado arriba */
.bvg-logo-area { 
    position: absolute; top: 4vh; left: 50%; transform: translateX(-50%); 
    z-index: 20; text-align: center; width: 100%;
}
.bvg-gallery-logo { 
    width: clamp(120px, 18vw, 400px);
    height: auto; 
}

/* CONTENIDO DE TEXTO (TITULOS) */
.bvg-cover-content {
    position: relative;
    padding: 0 5vw 30vh 5vw;
    text-align: left; color: #fff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
/* Photos page: fixed-height hero header */
body.bvgp-scroll-active .bvg-cover-content {
    min-height: 58vh;
    max-height: 58vh;
    padding: 0 5vw 1.5rem 5vw;
    justify-content: flex-end;
}
body.bvgp-scroll-active .bvg-cover-content h1 {
    font-size: clamp(1.8rem, 4vw, 4.5rem) !important;
}
/* Films view: el hero crece hasta el carrusel igual que en un delivery
   solo-video. Antes estaba topado a 58vh para igualar la cabecera de fotos,
   que conserva ese tope en su propia regla. */
body.bvgp-films-active .bvg-cover-content {
    min-height: 0;
    max-height: none;
    padding: 0 5vw 1.5rem 5vw;
    justify-content: flex-end;
}

/* Video-only: title block sits low, just above the film carousel (HBO-style hero).
   Photos-only and hybrid keep their own rules above. */
body:not(.bvgp-photos-only) .bvg-content-layer:not(.bvgp-is-hybrid) .bvg-cover-content,
body.bvgp-films-active .bvg-cover-content {
    justify-content: flex-end;
    padding-bottom: clamp(0.25rem, 1vh, 1rem);
}
/* El h1 en mayusculas arrastra ~14px de descendentes vacios en su caja.
   Se descuentan aqui para que el hueco optico iguale al del resto. */
body:not(.bvgp-photos-only) .bvg-content-layer:not(.bvgp-is-hybrid) .bvg-cover-content .subtitle,
body.bvgp-films-active .bvg-cover-content .subtitle {
    margin-top: 0.375rem;
}
/* Films hibrido: la etiqueta de seccion entra en el mismo ritmo de 1rem.
   La vista de fotos conserva su separacion propia. */
body.bvgp-films-active .bvgp-section-label {
    margin-top: 1rem;
}

/* FILA DE FORMATO (AD / Atmos / Vision / 4K UHD) */
.bvgp-format-row {
    display: flex;
    align-items: center;
    /* mismo ancho que .bvg-play-all-btn para que los bordes coincidan */
    width: clamp(200px, 21vw, 400px);
    justify-content: space-between;
    gap: clamp(6px, 0.7vw, 12px);
    margin-top: 1rem; /* igual que .subtitle, para gaps parejos */
}
.bvgp-format-mark {
    height: clamp(12.8px, 1.21vw, 19.7px);
    width: auto;
    display: block;
    opacity: 0.85;
}
/* Marca en caja: necesita ~1.5x de alto para que los numerales encerrados se lean */
.bvgp-format-mark--boxed {
    height: clamp(17.4px, 1.67vw, 26.6px);
}
.bvgp-format-text {
    font-family: var(--bvg-subtitle-font, 'Montserrat', sans-serif);
    font-size: clamp(0.69rem, 0.9vw, 0.98rem);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.52); /* ~ brillo efectivo de las marcas (0.43-0.51) */
    white-space: nowrap;
}

/* Hybrid cover: lower content so background shows above */
.bvgp-is-hybrid:not(.bvgp-in-view) .bvg-cover-content {
    padding-bottom: 8vh;
    /* Portada hibrida centrada. Solo en la landing: al entrar a Films o Photos
       se anade .bvgp-in-view y vuelve a alinearse a la izquierda. */
    text-align: center;
    align-items: center;
}
.bvgp-is-hybrid:not(.bvgp-in-view) .bvg-cover-content .subtitle {
    margin-left: auto;
    margin-right: auto;
}
.bvgp-is-hybrid:not(.bvgp-in-view) .bvgp-split-nav {
    justify-content: center;
}

/* Hybrid cover: big title only on the landing screen, not inside films/photos view */
.bvgp-is-hybrid:not(.bvgp-in-view) .bvg-cover-content h1 {
    font-size: clamp(2.2rem, 5.5vw, 6.2rem) !important;
}

/* TIPOGRAFIA */
.bvg-cover-content h1 {
    font-family: var(--bvg-title-font, 'Cinzel', serif) !important;
    font-size: clamp(1.8rem, 4vw, 4.5rem) !important;
    color: var(--bvg-title-color, #ffffff) !important;
    margin: 0;
    line-height: 1.1;
    letter-spacing: 0.04em;
}
.bvg-cover-content .subtitle { 
    font-family: var(--bvg-subtitle-font, inherit); 
    font-size: clamp(0.85rem, 1.4vw, 1.4rem) !important; 
    color: var(--bvg-subtitle-color, inherit); 
    margin: 1rem 0 0 0; 
    max-width: 60ch; 
}

/* BOTON PLAY ALL — CTA solido estilo streaming.
   Fondo = UI color (blanco por defecto), texto oscuro fijo. */
.bvg-play-all-btn {
    background-color: rgb(var(--bvg-ui-rgb));
    border: none;
    color: #0a0a0a;
    padding: clamp(12px, 1.6vh, 19px) clamp(20px, 2.2vw, 34px);
    border-radius: 6px; cursor: pointer;
    min-width: clamp(200px, 21vw, 400px);
    font-family: var(--bvg-subtitle-font, 'Montserrat', sans-serif);
    font-size: clamp(0.7rem, 0.95vw, 1rem); font-weight: bold; text-transform: uppercase; letter-spacing: 1.5px;
    margin-top: clamp(1rem, 2vh, 2.5rem); display: inline-flex; align-items: center; justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
    align-self: flex-start;
}
.bvg-play-all-btn .play-icon { width: clamp(10px, 1.1vw, 16px); height: clamp(10px, 1.1vw, 16px); margin-right: clamp(6px, 0.7vw, 12px); display: inline-block; }
.bvg-play-all-btn:hover { background-color: rgba(var(--bvg-ui-rgb), 0.82); }
.bvg-play-all-btn:active { transform: scale(0.96); }

/* --- CONTENEDOR DE VIDEOS (SCROLL HORIZONTAL) --- */
.bvg-carousel-wrapper {
    position: relative;
    width: 100%;
}
.bvg-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: clamp(36px, 4vw, 52px);
    height: clamp(36px, 4vw, 52px);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--bvg-ui-rgb), 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), background 0.2s ease;
}
.bvg-carousel-arrow:hover { background: rgba(var(--bvg-ui-rgb), 0.38); transform: translateY(-50%) scale(1.08); }
.bvg-carousel-arrow svg { width: 55%; height: 55%; }
.bvg-carousel-prev { left: clamp(4px, 1vw, 12px); }
.bvg-carousel-next { right: clamp(4px, 1vw, 12px); }
.bvg-carousel-arrow--hidden { opacity: 0; pointer-events: none; transform: translateY(-50%) scale(0.75); }

.bvg-video-container {
    padding: clamp(1.6rem, 3vh, 3.2rem) 4vw clamp(2rem, 4vh, 5rem) 4vw;
    width: 100%; box-sizing: border-box;
    display: flex; gap: clamp(0.75rem, 1.5vw, 2rem);
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.3) transparent;
    flex-shrink: 0;
}

/* TARJETAS DE VIDEO FLUIDAS */
.bvg-video-trigger {
    width: clamp(220px, 25vw, 500px); 
    aspect-ratio: 16 / 9;
    height: auto; 

    background-color: #000; background-size: cover; background-position: center; 
    border-radius: clamp(6px, 0.8vw, 14px); cursor: pointer; position: relative; flex-shrink: 0; 
    transition: transform 0.32s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.32s ease;
    display: flex; align-items: center; justify-content: center; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.bvg-video-trigger:hover { transform: scale(1.08); box-shadow: 0 16px 48px rgba(0,0,0,0.62); z-index: 5; }
.bvg-video-trigger::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60%; 
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent); 
    border-radius: 0 0 12px 12px; transition: background 0.3s ease;
}
.bvg-video-trigger:hover::after { background: linear-gradient(to top, rgba(0,0,0,0.95), transparent); }

/* ELEMENTOS DENTRO DEL VIDEO */
.play-icon-center {
    width: clamp(34px, 4.2vw, 72px); height: clamp(34px, 4.2vw, 72px);
    color: rgba(var(--bvg-ui-rgb), 0.9); text-shadow: 0 0 15px rgba(0,0,0,0.8);
    z-index: 2; pointer-events: none;
    opacity: 0; transform: scale(0.85);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.bvg-video-trigger:hover .play-icon-center { opacity: 1; transform: scale(1); }

/* Video item wrapper — el titulo va superpuesto dentro de la miniatura */
.bvg-video-item {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}
.bvg-video-item-title {
    display: block;
    font-family: var(--bvg-title-font, 'Cinzel', serif);
    font-size: clamp(0.88rem, 1.35vw, 1.35rem);
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1.2;
    color: rgb(var(--bvg-ui-rgb));
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
    text-align: left;
    margin-bottom: 0.3rem;
}

.thumbnail-info { position: absolute; bottom: clamp(8px, 1.5vh, 18px); left: clamp(10px, 1.8vw, 24px); right: clamp(10px, 1.8vw, 24px); z-index: 3; color: rgb(var(--bvg-ui-rgb)); text-align: left; }
.thumbnail-info .play-text { font-size: clamp(0.55rem, 0.75vw, 0.85rem); text-transform: uppercase; letter-spacing: 1.5px; opacity: 0.8; color: rgba(var(--bvg-ui-rgb), 0.8); display: inline-flex; align-items: center; }
.thumbnail-info .play-text svg { width: 0.8em; height: 0.8em; margin-right: 8px; }

/* CONTROLES SUPERIORES (Share, Download) */
.bvg-top-right-controls { position: fixed; top: 30px; right: 3vw; z-index: 1000; display: flex; gap: 10px; }
.bvg-download-wrapper { position: relative; }
.bvg-action-btn {
    background-color: rgba(var(--bvg-ui-rgb), 0.15); border: 1px solid rgba(var(--bvg-ui-rgb), 0.3); 
    color: rgb(var(--bvg-ui-rgb)); padding: clamp(7px, 0.9vh, 14px) clamp(12px, 1.8vw, 26px); border-radius: 50px; cursor: pointer;
    font-family: var(--bvg-subtitle-font, 'Montserrat', sans-serif); font-size: clamp(0.6rem, 0.75vw, 0.8rem); font-weight: bold; text-transform: uppercase; letter-spacing: 1.5px; 
    transition: background-color 0.2s ease, transform 0.2s ease; display: flex; align-items: center; gap: clamp(5px, 0.5vw, 10px);
}
.bvg-action-btn:hover { background-color: rgba(var(--bvg-ui-rgb), 0.25); }
.bvg-action-btn:active { transform: scale(0.96); }
.bvg-download-menu { display: none; position: absolute; right: 0; top: 110%; background: #222; border-radius: 8px; padding: 0.5rem; width: 100%; min-width: 150px; z-index: 1001; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.bvg-download-menu a { display: block; color: #fff; text-decoration: none; padding: 10px; border-bottom: 1px solid #444; font-size: 0.8rem; }
.bvg-download-menu a:last-child { border-bottom: 0; }
.bvg-download-coming-soon { display: block; color: rgba(255,255,255,0.35); padding: 10px; border-bottom: 1px solid #444; font-size: 0.8rem; font-style: italic; cursor: default; }
.bvg-download-coming-soon:last-child { border-bottom: 0; }

/* WATCH ON TV MODAL */
.bvg-cast-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.75); display: flex; align-items: center; justify-content: center; z-index: 9998; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; backdrop-filter: blur(4px); }
.bvg-cast-modal--open { opacity: 1; pointer-events: all; }
.bvg-cast-modal-inner { position: relative; background: #1a1a1a; border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 2.5rem; max-width: 860px; width: 90%; max-height: 90vh; overflow-y: auto; box-shadow: 0 30px 80px rgba(0,0,0,0.7); }
.bvg-cast-modal-close { position: absolute; top: 1rem; right: 1.2rem; background: none; border: none; color: rgba(255,255,255,0.5); font-size: 1.8rem; cursor: pointer; line-height: 1; padding: 0; transition: color 0.2s; }
.bvg-cast-modal-close:hover { color: #fff; }
.bvg-cast-title, .bvg-cast-modal-inner h2 { color: #fff; font-size: 1.5rem; font-weight: 700; margin: 0 0 0.4rem; text-align: center; }
.bvg-cast-subtitle, .bvg-cast-modal-inner > p { color: rgba(255,255,255,0.5); font-size: 0.9rem; text-align: center; margin: 0 0 2rem; }
.bvg-cast-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 640px) { .bvg-cast-options { grid-template-columns: 1fr; } }
.bvg-cast-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.bvg-cast-card-icon { width: 40px; height: 40px; color: rgba(var(--bvg-ui-rgb), 0.9); margin-bottom: 0.25rem; }
.bvg-cast-card-icon svg { width: 100%; height: 100%; }
.bvg-cast-card h3 { color: #fff; font-size: 1rem; font-weight: 700; margin: 0; }
.bvg-cast-card-platforms { color: rgba(255,255,255,0.4); font-size: 0.75rem; margin: 0; }
.bvg-cast-steps { color: rgba(255,255,255,0.75); font-size: 0.82rem; line-height: 1.7; padding-left: 1.2rem; margin: 0.5rem 0 0; }
.bvg-cast-steps strong { color: #fff; }
.bvg-cast-url-row { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.25rem; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.15); border-radius: 6px; padding: 0.6rem 0.75rem; }
.bvg-cast-url-text { color: rgba(255,255,255,0.6); font-size: 0.68rem; font-family: monospace; word-break: break-all; line-height: 1.5; }
.bvg-cast-copy-btn { align-self: flex-start; background: rgba(var(--bvg-ui-rgb), 0.15); border: 1px solid rgba(var(--bvg-ui-rgb), 0.3); color: rgba(var(--bvg-ui-rgb), 1); font-size: 0.7rem; padding: 0.2rem 0.75rem; border-radius: 4px; cursor: pointer; white-space: nowrap; transition: background 0.2s; }
.bvg-cast-copy-btn:hover { background: rgba(var(--bvg-ui-rgb), 0.25); }

/* LIGHTBOX */
.bvg-lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); display: none; align-items: center; justify-content: center; z-index: 9999; }
.bvg-lightbox-content { position: relative; width: 90%; max-width: 1200px; }
.bvg-lightbox-close { position: absolute; top: -40px; right: 0; color: #fff; font-size: 40px; cursor: pointer; text-decoration: none; transition: transform 0.2s; }
.bvg-lightbox-close:hover { transform: scale(1.1); color: #ccc; }
.bvg-lightbox-player { position: relative; padding-bottom: 56.25%; height: 0; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.bvg-lightbox-player iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0; }

/* FOOTER REVIEW */
.bvg-review-footer { position: fixed; bottom: 2vh; right: 2vw; z-index: 1000; }
.bvg-review-btn { background-color: rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; padding: clamp(7px, 1vh, 12px) clamp(12px, 1.5vw, 22px); border-radius: 50px; text-decoration: none; font-size: clamp(0.6rem, 0.75vw, 0.75rem); font-weight: 500; transition: background-color 0.2s ease; backdrop-filter: blur(5px); }
.bvg-review-btn:hover { background-color: rgba(0, 0, 0, 0.9); }

.play-icon svg, .play-icon-center svg, .play-text svg { width: 100%; height: 100%; fill: currentColor; }

/* ANIMACIONES */
@keyframes bvg-logo-fade-in-up { from { opacity: 0; transform: translateX(-50%) translateY(20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
@keyframes bvg-fade-in-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bvg-fade-in-bg { from { opacity: 0; } to { opacity: 1; } }
@keyframes bvgp-bg-zoom-out { from { transform: scale(1.12); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
    .bvg-background-layer { animation-name: bvg-fade-in-bg; animation-duration: 1.2s; transform: none; }
}

.bvg-logo-area { opacity: 0; animation-name: bvg-logo-fade-in-up; animation-duration: 0.8s; animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); animation-fill-mode: forwards; animation-delay: 0.2s; }
.bvg-cover-content h1 { opacity: 0; animation-name: bvg-fade-in-up; animation-duration: 0.8s; animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); animation-fill-mode: forwards; animation-delay: 0.4s; }
.bvg-cover-content .subtitle { opacity: 0; animation-name: bvg-fade-in-up; animation-duration: 0.8s; animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); animation-fill-mode: forwards; animation-delay: 0.5s; }
.bvgp-format-row { opacity: 0; animation-name: bvg-fade-in-up; animation-duration: 0.8s; animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); animation-fill-mode: forwards; animation-delay: 0.55s; }
.bvg-play-all-btn { opacity: 0; animation-name: bvg-fade-in-up; animation-duration: 0.8s; animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); animation-fill-mode: forwards; animation-delay: 0.6s; }
.bvg-top-right-controls { opacity: 0; animation-name: bvg-fade-in-up; animation-duration: 0.8s; animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); animation-fill-mode: forwards; animation-delay: 0.7s; }
.bvg-video-container { opacity: 0; animation-name: bvg-fade-in-up; animation-duration: 0.8s; animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); animation-fill-mode: forwards; animation-delay: 0.9s; }
.bvg-review-footer { opacity: 0; animation-name: bvg-fade-in-up; animation-duration: 0.8s; animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); animation-fill-mode: forwards; animation-delay: 1.1s; }


/* --- MEDIA QUERIES ESPECÍFICOS --- */

/* 1. REGLA DE ALTURA (Pantallas bajitas/iframes): CORRECCIÓN CRÍTICA */
@media (max-height: 650px) {
    .bvg-cover-content {
        justify-content: flex-end;
        padding-bottom: 8vh;
    }
    .bvg-logo-area {
        top: 15px;
    }
    .bvg-gallery-logo {
        width: clamp(80px, 12vw, 160px);
        height: auto;
    }
    .bvg-cover-content h1 {
        font-size: clamp(1.4rem, 3vw, 2.5rem) !important;
    }
    .bvg-cover-content .subtitle {
        margin-top: 0.5rem;
    }
    .bvg-play-all-btn {
        margin-top: 1rem;
        padding: 8px 16px;
    }
}

/* 2. MÓVILES ÚNICAMENTE (hasta 480px — teléfonos; iPads y tablets ven escritorio) */
@media (max-width: 480px) {
    .bvg-cover-content {
        text-align: center;
        align-items: center;
        padding-left: 6vw;
        padding-right: 6vw;
    }
    .bvg-cover-content h1 { font-size: clamp(1.6rem, 7vw, 2.8rem) !important; }
    .bvg-cover-content .subtitle { font-size: clamp(0.8rem, 3vw, 1.1rem) !important; max-width: 100%; }
    .bvgp-split-nav { justify-content: center; }
    .bvg-play-all-btn { align-self: center; }
    .bvgp-format-row { justify-content: center; flex-wrap: wrap; width: auto; gap: clamp(8px, 2vw, 14px); }

    .bvg-video-container { 
        padding: 2rem 5vw 3rem 5vw; 
        scroll-snap-type: x mandatory; 
    }
    .bvg-video-item { scroll-snap-align: center; }
    .bvg-video-trigger {
        width: 85vw;
        max-width: none;
    }
    .bvg-video-item-title { font-size: clamp(0.9rem, 4vw, 1.25rem); }
    .bvg-logo-area { top: 10vh; }
    .bvg-gallery-logo { width: clamp(100px, 40vw, 220px); height: auto; }
    
    .bvg-top-right-controls {
        top: 20px; 
        bottom: auto; 
        right: 20px;
        transform: none;
        width: auto;
        justify-content: flex-end;
    }
    
    .bvg-action-btn {
        padding: clamp(6px, 1.5vw, 10px) clamp(10px, 3vw, 18px); 
        font-size: clamp(0.55rem, 2vw, 0.7rem); 
    }
    
    #bvg-share-button .btn-text {
        display: none;
    }
    
    .bvg-review-footer { 
        display: block;
        bottom: 1.5vh;
        right: 2vw;
        transform: none;
    }
    .bvg-review-btn {
        font-size: clamp(0.55rem, 2.5vw, 0.7rem);
        padding: clamp(6px, 1.5vw, 9px) clamp(12px, 4vw, 18px);
    }
}

/* --- PASSWORD GATE --- */
.bvg-password-gate {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 50;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px) saturate(0.7);
    -webkit-backdrop-filter: blur(14px) saturate(0.7);
}
.bvg-password-box {
    background: rgba(8, 8, 8, 0.7);
    border: 1px solid rgba(var(--bvg-ui-rgb), 0.25);
    border-radius: 20px; padding: 3rem 2.5rem; text-align: center;
    max-width: 420px; width: 90%;
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}
.bvg-password-lock-icon {
    width: 44px; height: 44px; color: rgba(var(--bvg-ui-rgb), 0.6);
    margin: 0 auto 1.5rem;
}
.bvg-password-lock-icon svg { width: 100%; height: 100%; }
.bvg-password-box h2 {
    font-family: var(--bvg-title-font, inherit);
    color: rgb(var(--bvg-ui-rgb)); font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin: 0 0 0.4rem; line-height: 1.2;
}
.bvg-password-box .bvg-pw-subtitle {
    font-family: var(--bvg-subtitle-font, inherit);
    color: rgba(var(--bvg-ui-rgb), 0.6); font-size: 0.8rem;
    margin: 0 0 2rem; letter-spacing: 0.5px;
}
.bvg-password-error {
    background: rgba(220, 50, 50, 0.2); border: 1px solid rgba(220, 50, 50, 0.4);
    color: #ff8080; font-size: 0.78rem; border-radius: 8px;
    padding: 0.5rem 1rem; margin-bottom: 1rem;
}
.bvg-password-input {
    width: 100%; background: rgba(255,255,255,0.06);
    border: 1px solid rgba(var(--bvg-ui-rgb), 0.3); border-radius: 50px;
    color: #ffffff; -webkit-text-fill-color: #ffffff; font-size: 0.9rem;
    padding: 0.75rem 1.25rem; outline: none; box-sizing: border-box;
    transition: border-color 0.2s; letter-spacing: 2px; text-align: center;
}
.bvg-password-input:focus { border-color: rgba(var(--bvg-ui-rgb), 0.7); }
.bvg-password-input::placeholder { letter-spacing: 0.5px; opacity: 0.5; }
.bvg-password-submit {
    width: 100%; margin-top: 0.75rem;
    background: rgba(var(--bvg-ui-rgb), 0.15);
    border: 1px solid rgba(var(--bvg-ui-rgb), 0.4);
    color: rgb(var(--bvg-ui-rgb)); border-radius: 50px; cursor: pointer;
    font-family: var(--bvg-subtitle-font, 'Montserrat', sans-serif);
    font-size: 0.75rem; font-weight: bold; text-transform: uppercase;
    letter-spacing: 2px; padding: 0.75rem 1.5rem;
    transition: background-color 0.2s ease, transform 0.15s ease;
}
.bvg-password-submit:hover { background: rgba(var(--bvg-ui-rgb), 0.28); }
.bvg-password-submit:active { transform: scale(0.97); }

/* --- COUNTDOWN EN MINIATURAS --- */
.bvg-countdown-badge {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 4;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, 0.55); border-radius: inherit; pointer-events: none;
}
.bvg-video-trigger.bvg-has-countdown { cursor: default; }
.bvg-video-trigger.bvg-has-countdown:hover { transform: none; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.bvg-premiere-label {
    font-size: clamp(0.5rem, 0.7vw, 0.65rem); text-transform: uppercase;
    letter-spacing: 3px; color: rgba(var(--bvg-ui-rgb), 0.7); margin-bottom: 0.6rem;
}
.bvg-countdown-timer { display: flex; gap: clamp(0.5rem, 1.2vw, 1.2rem); }
.bvg-countdown-unit { text-align: center; }
.bvg-countdown-number {
    display: block; font-size: clamp(1.1rem, 2.2vw, 2rem); font-weight: bold;
    color: rgb(var(--bvg-ui-rgb)); line-height: 1; font-variant-numeric: tabular-nums;
    font-family: var(--bvg-title-font, 'Cinzel', serif);
}
.bvg-countdown-unit-label {
    display: block; font-size: clamp(0.4rem, 0.55vw, 0.55rem); text-transform: uppercase;
    letter-spacing: 1.5px; color: rgba(var(--bvg-ui-rgb), 0.55); margin-top: 0.25rem;
}
.bvg-countdown-now {
    font-size: clamp(0.7rem, 1vw, 0.9rem); text-transform: uppercase;
    letter-spacing: 2px; color: rgba(var(--bvg-ui-rgb), 0.8);
}

/* --- VIDEO DE FONDO --- */
.bvg-background-video-wrapper,
.bvg-background-layer {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bvg-background-video-wrapper iframe,
.bvg-background-layer iframe {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: max(100vw, 177.78vh);
    height: max(100vh, 56.25vw);
    border: none;
    pointer-events: none;
}
/* ═══════════════════════════════════════════════════════════════
   VIDEO DELIVERY PRO — HYBRID GALLERY ADDITIONS
═══════════════════════════════════════════════════════════════ */

/* ── Section label (Film Delivery / Photo Delivery) ── */
.bvgp-section-label {
    font-family: var(--bvg-subtitle-font, 'Montserrat', sans-serif);
    font-size: clamp(0.6rem, 0.85vw, 0.8rem);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: rgba(var(--bvg-ui-rgb), 0.55);
    margin: 0.6rem 0 0 0;
    border-left: 2px solid rgba(var(--bvg-ui-rgb), 0.3);
    padding-left: 0.75rem;
}

/* ── Views ── */
.bvgp-view { width: 100%; }
.bvgp-view--hidden { display: none !important; }

/* ── Page transition keyframes (applied via inline style.animation in JS) ── */
@keyframes bvgp-fade-out {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-16px); }
}
@keyframes bvgp-fade-in {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Back button — fixed so it never moves with view animations ── */
.bvgp-back-btn {
    position: fixed;
    top: clamp(20px, 3.5vh, 36px);
    left: clamp(16px, 3vw, 40px);
    z-index: 200;
    background: rgba(var(--bvg-ui-rgb), 0.12);
    border: 1px solid rgba(var(--bvg-ui-rgb), 0.25);
    color: rgba(var(--bvg-ui-rgb), 1);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    padding: 7px 16px;
    border-radius: 30px;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background 0.2s;
}
.bvgp-back-btn:hover { background: rgba(var(--bvg-ui-rgb), 0.24); }

/* ── Split nav initial page-load animation (last element to appear) ── */
.bvgp-split-nav {
    opacity: 0;
    animation-name: bvg-fade-in-up;
    animation-duration: 0.8s;
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation-fill-mode: forwards;
    animation-delay: 0.9s;
}

/* ── Split nav (Films | Photos) ── */
.bvgp-split-nav {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-start;
    margin-top: clamp(1.5rem, 2.5vh, 2.5rem);
    flex-wrap: wrap;
}
.bvgp-split-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    /* Mismo lenguaje que .bvg-play-all-btn: solido, texto oscuro, radio 6px */
    border-radius: 6px;
    min-width: clamp(150px, 14.5vw, 250px);
    padding: clamp(12px, 1.6vh, 19px) clamp(20px, 2.2vw, 34px);
    font-family: var(--bvg-subtitle-font, 'Montserrat', sans-serif);
    font-size: clamp(0.7rem, 0.95vw, 1rem);
    font-weight: bold;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.bvgp-split-btn:active { transform: scale(0.96); }
.bvgp-split-btn--primary {
    background: rgba(var(--bvg-ui-rgb), 0.85);
    border: 1px solid rgba(var(--bvg-ui-rgb), 1);
    color: #000;
    backdrop-filter: blur(8px);
}
.bvgp-split-btn--primary:hover { background: rgba(var(--bvg-ui-rgb), 1); }
.bvgp-split-btn--ghost {
    background-color: rgb(var(--bvg-ui-rgb));
    border: none;
    color: #0a0a0a;
}
.bvgp-split-btn--ghost:hover { background-color: rgba(var(--bvg-ui-rgb), 0.82); }

/* ── Album tabs ── */
.bvgp-album-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: clamp(0.5rem, 1.5vh, 1.5rem) 4vw 0;
    z-index: 20;
    position: relative;
}
.bvgp-tab-btn {
    background: rgba(var(--bvg-ui-rgb), 0.08);
    border: 1px solid rgba(var(--bvg-ui-rgb), 0.2);
    color: rgba(var(--bvg-ui-rgb), 0.7);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 7px 18px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s;
}
.bvgp-tab-btn:hover { background: rgba(var(--bvg-ui-rgb), 0.18); color: rgba(var(--bvg-ui-rgb), 1); }
.bvgp-tab-btn--active {
    background: rgba(var(--bvg-ui-rgb), 0.22);
    border-color: rgba(var(--bvg-ui-rgb), 0.6);
    color: rgba(var(--bvg-ui-rgb), 1);
}
.bvgp-tab-count {
    margin-left: 6px;
    font-size: 0.65rem;
    opacity: 0.6;
}

/* ── Selection toolbar ── */
.bvgp-select-toolbar {
    display: flex;
    justify-content: flex-end;
    padding: 0.6rem 4vw 0;
}
.bvgp-select-toggle-btn {
    display: flex; align-items: center; gap: 7px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.75);
    font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
    padding: 7px 16px; border-radius: 20px; cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    font-family: 'Montserrat', sans-serif;
}
.bvgp-select-toggle-btn:hover { background: rgba(255,255,255,0.14); color: #fff; }
.bvgp-select-toggle-btn--active {
    background: rgba(var(--bvg-ui-rgb), 0.15);
    border-color: rgba(var(--bvg-ui-rgb), 0.5);
    color: rgb(var(--bvg-ui-rgb));
}

/* ── Selection checkbox on each photo ── */
.bvgp-select-check {
    position: absolute; top: 8px; left: 8px; z-index: 5;
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(0,0,0,0.45);
    border: 2px solid rgba(255,255,255,0.5);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: scale(0.7);
    transition: opacity 0.2s, transform 0.2s, background 0.2s, border-color 0.2s;
    pointer-events: none;
}
.bvgp-selecting .bvgp-select-check { opacity: 1; transform: scale(1); }
.bvgp-photo-item--selected .bvgp-select-check {
    background: rgb(var(--bvg-ui-rgb));
    border-color: rgb(var(--bvg-ui-rgb));
}
.bvgp-selecting .bvgp-photo-item { cursor: pointer; }
.bvgp-selecting .bvgp-photo-item:hover .bvgp-photo-overlay { opacity: 0; }
.bvgp-photo-item--selected::after {
    content: '';
    position: absolute; inset: 0;
    background: rgba(var(--bvg-ui-rgb), 0.18);
    border: 2.5px solid rgba(var(--bvg-ui-rgb), 0.7);
    pointer-events: none;
    z-index: 4;
}

/* ── Floating selection action bar ── */
.bvgp-select-bar {
    position: fixed; bottom: -90px; left: 50%; transform: translateX(-50%);
    z-index: 9000;
    background: rgba(18,18,18,0.95);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 12px 20px;
    display: flex; align-items: center; gap: 14px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    backdrop-filter: blur(14px);
    transition: bottom 0.35s cubic-bezier(0.16,1,0.3,1);
    white-space: nowrap;
    font-family: 'Montserrat', sans-serif;
}
.bvgp-select-bar--visible { bottom: 28px; }
.bvgp-select-count {
    color: rgba(255,255,255,0.55); font-size: 0.72rem; min-width: 110px;
}
.bvgp-select-actions { display: flex; align-items: center; gap: 8px; }
.bvgp-sel-btn {
    border: none; cursor: pointer; border-radius: 8px;
    font-size: 0.7rem; letter-spacing: 0.07em; text-transform: uppercase;
    padding: 8px 16px; font-family: 'Montserrat', sans-serif;
    transition: background 0.2s, opacity 0.2s;
}
.bvgp-sel-btn--secondary {
    background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.75);
}
.bvgp-sel-btn--secondary:hover { background: rgba(255,255,255,0.18); }
.bvgp-sel-btn--primary {
    background: rgb(var(--bvg-ui-rgb)); color: #000;
    display: flex; align-items: center; gap: 7px;
    font-weight: 600;
}
.bvgp-sel-btn--primary:hover { opacity: 0.85; }
.bvgp-sel-btn--primary:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Photo sections (subfolder groups) ── */
/* ── Section tabs (subfolder nav within an album) ── */
.bvgp-section-tabs {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    padding: clamp(1rem, 2vh, 2rem) 4vw 0;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.bvgp-section-tab-btn {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: rgba(255,255,255,0.4);
    font-family: 'Cinzel', serif;
    font-size: clamp(0.85rem, 1.4vw, 1.15rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    padding: 0.5rem 2rem 0.75rem;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    margin-bottom: -1px;
}
.bvgp-section-tab-btn:hover { color: rgba(255,255,255,0.75); }
.bvgp-section-tab-btn--active {
    color: rgba(255,255,255,0.95);
    border-bottom-color: rgba(255,255,255,0.7);
}
.bvgp-section-tab-btn .bvgp-tab-count {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    margin-left: 8px;
    opacity: 0.5;
}
/* The delivered photos sit on a white sheet, so the space between them reads as
   white margin and nothing on the page competes with the pictures. */
.bvgp-section-content {
    padding-top: clamp(0.5rem, 1vh, 1rem);
    background: #fff;
}

/* ── Photo grid — masonry columns ──
   Columns rather than CSS grid, so each photo is shown at its own proportions:
   a portrait stays tall, a landscape stays wide, and nothing is cropped into a
   square. Tiles carry their real aspect ratio inline (see fullscreen.php), which
   is what lets the columns balance before the thumbnails load. */
.bvgp-photo-grid {
    column-count: 4;
    column-gap: clamp(3px, 0.3vw, 6px);
    padding: clamp(0.5rem, 1.5vh, 1.5rem) clamp(10px, 1.2vw, 22px) clamp(2rem, 4vh, 4rem);
    background: #fff;
}
.bvgp-photo-item {
    position: relative;
    display: block;
    width: 100%;
    margin: 0 0 clamp(3px, 0.3vw, 6px);
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    overflow: hidden;
    cursor: pointer;
    background: #f1efed;
}
.bvgp-photo-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.bvgp-photo-item:hover img { transform: scale(1.04); }
.bvgp-photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.25s;
}
.bvgp-photo-item:hover .bvgp-photo-overlay { opacity: 1; }
.bvgp-photo-view-btn,
.bvgp-photo-dl-btn {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}
.bvgp-photo-view-btn:hover,
.bvgp-photo-dl-btn:hover { background: rgba(255,255,255,0.3); }

/* ── Photo lightbox ── */
.bvgp-photo-lightbox {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(255,255,255,0.98);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s;
}
.bvgp-photo-lightbox.bvgp-plb--open { opacity: 1; pointer-events: all; }
.bvgp-plb-inner {
    max-width: 90vw; max-height: 90vh;
    display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
}
.bvgp-plb-img-wrap {
    position: relative;
    max-width: 90vw; max-height: 82vh;
    line-height: 0;
}
/* Both images are absolutely stacked and always fill the same wrap box (sized by
   JS to match the current photo's aspect ratio) so a crossfade between a landscape
   and a portrait photo never squishes the incoming image into the outgoing one's shape. */
.bvgp-plb-main-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    max-width: 90vw; max-height: 82vh;
    object-fit: contain;
    display: block;
}
.bvgp-plb-next-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    max-width: 90vw; max-height: 82vh;
    object-fit: contain;
    display: block; opacity: 0;
    pointer-events: none;
}
.bvgp-plb-footer {
    display: flex; align-items: center; gap: 1.5rem;
    color: rgba(0,0,0,0.55); font-size: 0.75rem;
    font-family: 'Montserrat', sans-serif;
}
.bvgp-plb-dl-link {
    color: rgba(0,0,0,0.75);
    font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
    border: 1px solid rgba(0,0,0,0.25); border-radius: 3px;
    padding: 4px 14px; text-decoration: none;
    transition: background 0.2s;
}
.bvgp-plb-dl-link:hover { background: rgba(0,0,0,0.07); }
/* ── Lightbox top bar ── */
.bvgp-plb-topbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100001;
    display: flex; align-items: center; justify-content: flex-end;
    gap: 0.5rem; padding: 1rem 1.5rem;
    background: linear-gradient(to bottom, rgba(255,255,255,0.92) 0%, transparent 100%);
}
.bvgp-plb-counter {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem; letter-spacing: 0.12em;
    color: rgba(0,0,0,0.45);
    margin-right: auto;
}
.bvgp-plb-slideshow-btn {
    background: rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.14);
    color: rgba(0,0,0,0.6);
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background 0.2s, color 0.2s;
}
.bvgp-plb-slideshow-btn:hover { background: rgba(0,0,0,0.1); color: #111; }

.bvgp-plb-fs-btn {
    background: rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.14);
    color: rgba(0,0,0,0.6);
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background 0.2s, color 0.2s;
}
.bvgp-plb-fs-btn:hover { background: rgba(0,0,0,0.1); color: #111; }

/* En fullscreen: la imagen puede crecer hasta el 100% de la pantalla */
.bvgp-photo-lightbox:fullscreen .bvgp-plb-img-wrap,
.bvgp-photo-lightbox:-webkit-full-screen .bvgp-plb-img-wrap {
    max-width: 100vw; max-height: 100vh;
}
.bvgp-photo-lightbox:fullscreen .bvgp-plb-main-img,
.bvgp-photo-lightbox:-webkit-full-screen .bvgp-plb-main-img,
.bvgp-photo-lightbox:fullscreen .bvgp-plb-next-img,
.bvgp-photo-lightbox:-webkit-full-screen .bvgp-plb-next-img {
    max-width: 100vw; max-height: 100vh;
}
.bvgp-photo-lightbox:fullscreen,
.bvgp-photo-lightbox:-webkit-full-screen {
    background: #fff;
}

/* ── Slideshow progress bar ── */
.bvgp-plb-progress-track {
    position: fixed; top: 0; left: 0; right: 0; height: 2px;
    background: rgba(0,0,0,0.1); z-index: 100002;
}
.bvgp-plb-progress-bar {
    height: 100%; width: 0%;
    background: rgba(0,0,0,0.55);
}

.bvgp-plb-loader {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 1rem; pointer-events: none;
}
.bvgp-plb-spinner {
    width: 36px; height: 36px; border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.1);
    border-top-color: rgba(0,0,0,0.5);
    animation: bvgp-spin 0.8s linear infinite;
}
@keyframes bvgp-spin { to { transform: rotate(360deg); } }

.bvgp-plb-close {
    background: rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.14);
    color: rgba(0,0,0,0.6);
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; line-height: 1; cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.bvgp-plb-close:hover { background: rgba(0,0,0,0.1); color: #111; }
.bvgp-plb-arrow {
    position: fixed; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.05); border: none;
    color: rgba(0,0,0,0.6); font-size: 3rem; cursor: pointer;
    padding: 0.5rem 1rem; z-index: 100000;
    transition: background 0.2s; border-radius: 4px;
}
.bvgp-plb-prev { left: 1rem; }
.bvgp-plb-next { right: 1rem; }
.bvgp-plb-arrow:hover { background: rgba(0,0,0,0.12); color: #111; }

/* ── Responsive ── */
@media (min-width: 1600px) { .bvgp-photo-grid { column-count: 5; } }
@media (max-width: 1100px) { .bvgp-photo-grid { column-count: 3; } }
@media (max-width: 700px) {
    .bvgp-photo-grid { column-count: 2; }
    .bvgp-split-nav { flex-direction: row; align-items: center; justify-content: flex-start; }
    .bvgp-split-btn { padding: 12px 20px; font-size: 0.68rem; min-width: 140px; }
    .bvgp-plb-arrow { font-size: 2rem; padding: 0.3rem 0.6rem; }
}
@media (max-width: 340px) { .bvgp-photo-grid { column-count: 1; } }
