/*
 * WP Foto Vote - Pro lightbox: shared base (reset, tokens, controls, loader, thumbnails, vote button).
 * Common Pro viewer styles and the Cinematic layout.
 * Every colour and size is a custom property with a fallback, so it works without Design Studio.
 */

html.fvpro-lock { overflow: hidden; padding-right: var(--fvpro-sbw, 0px); }

.fvpro-lb {
    --fvpro-accent: #ff3366;
    --fvpro-accent-2: #ff5e3a;
    --fvpro-accent-glow: rgba(255, 51, 102, .38);
    --fvpro-glass: rgba(18, 19, 24, .74);
    --fvpro-glass-hi: rgba(255, 255, 255, .14);
    --fvpro-line: rgba(255, 255, 255, .13);
    --fvpro-text: #f8fafc;
    --fvpro-muted: #9aa7bb;
    --fvpro-gold: #fbbf24;
    --fvpro-radius: 14px;
    --fvpro-ease: cubic-bezier(.22, 1, .36, 1);
    --fvpro-spring: cubic-bezier(.34, 1.56, .64, 1);
    --fvpro-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    position: fixed;
    inset: 0;
    z-index: 9980;
    display: none;
    color: var(--fvpro-text);
    font-family: var(--fvpro-font);
    font-size: 15px;
    line-height: 1.45;
    text-align: left;
    letter-spacing: normal;
    text-transform: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: opacity .3s var(--fvpro-ease), visibility .3s;
}
.fvpro-lb.is-visible { display: block; }
.fvpro-lb.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.fvpro-lb:focus { outline: none; }

.fvpro-lb *, .fvpro-lb *::before, .fvpro-lb *::after { box-sizing: border-box; }
.fvpro-lb [hidden] { display: none !important; }
.fvpro-lb :where(h2, p, div, span, aside, header, footer) {
    font-family: inherit;
    letter-spacing: normal;
    text-transform: none;
}
.fvpro-lb :where(h2, p) { margin: 0; padding: 0; border: 0; background: none; color: inherit; }
.fvpro-lb :where(img) { max-width: none; height: auto; border: 0; box-shadow: none; margin: 0; padding: 0; }
.fvpro-lb :where(a) { color: inherit; text-decoration: none; box-shadow: none; border: 0; }
.fvpro-lb :where(a):hover { text-decoration: underline; }

/* Reset theme button styles, then restyle. */
.fvpro-lb :where(button) {
    all: unset;
    box-sizing: border-box;
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}
.fvpro-lb :where(button):disabled { cursor: default; }
.fvpro-lb :focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 5px rgba(99, 102, 241, .65);
}

.fvpro-lb :where(svg) { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fvpro-lb svg .fvpro-solid { fill: currentColor; stroke: none; }

.fvpro-sr {
    position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- round control buttons (zoom, fullscreen, close, play) ---- */
.fvpro-ctl, .fvpro-nav {
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--fvpro-glass);
    border: 1px solid var(--fvpro-line);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    color: var(--fvpro-text);
    transition: background .2s, transform .25s var(--fvpro-spring), border-color .2s;
}
.fvpro-ctl:hover, .fvpro-nav:hover { background: var(--fvpro-glass-hi); transform: scale(1.07); }
.fvpro-ctl:active, .fvpro-nav:active { transform: scale(.94); }
.fvpro-ctl[aria-pressed="true"] { background: var(--fvpro-accent); border-color: transparent; }

.fvpro-nav { position: absolute; top: 50%; z-index: 15; width: 50px; height: 50px; margin-top: -25px; }
.fvpro-nav svg { width: 24px; height: 24px; stroke-width: 2.2; }
.fvpro-nav:hover { transform: scale(1.08); }
.fvpro-prev { left: 18px; }
.fvpro-next { right: 18px; }

.fvpro-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 999px;
    background: var(--fvpro-glass);
    border: 1px solid var(--fvpro-line);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    font-size: 13px; font-weight: 600; line-height: 1.3; color: #e2e8f0;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.fvpro-pill svg { width: 15px; height: 15px; }

/* ---- stage, figure, image ---- */
.fvpro-stage { position: relative; touch-action: none; overflow: hidden; min-height: 0; }
.fvpro-figure {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    padding: var(--fvpro-stage-pad, 0);
    transition: opacity .3s ease;
}
.fvpro-lb.is-loading .fvpro-figure { opacity: .35; }
.fvpro-media {
    display: grid; place-items: center;
    width: 100%; height: 100%; min-width: 0; min-height: 0;
    transition: transform .4s var(--fvpro-ease);
    will-change: transform;
}
.fvpro-lb.is-panning .fvpro-media { transition: none; }
.fvpro-img {
    display: block;
    max-width: 100%; max-height: 100%; min-width: 0; min-height: 0;
    width: auto; height: auto;
    object-fit: contain;
    border-radius: var(--fvpro-img-radius, 10px);
    box-shadow: 0 28px 70px -18px rgba(0, 0, 0, .85);
    background: rgba(255, 255, 255, .03);
    -webkit-user-drag: none;
}
video.fvpro-img { background: #000; }

.fvpro-in-next .fvpro-media { animation: fvpro-in-next .45s var(--fvpro-ease) both; }
.fvpro-in-prev .fvpro-media { animation: fvpro-in-prev .45s var(--fvpro-ease) both; }
@keyframes fvpro-in-next { from { opacity: 0; transform: translateX(46px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fvpro-in-prev { from { opacity: 0; transform: translateX(-46px) scale(.97); } to { opacity: 1; transform: none; } }
.fvpro-lb.is-zoomed .fvpro-img { cursor: grab; }
.fvpro-lb.is-zoomed.is-panning .fvpro-img { cursor: grabbing; }
.fvpro-lb:not(.is-zoomed) .fvpro-img { cursor: default; }

.fvpro-error {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    padding: 12px 18px; border-radius: 12px;
    background: var(--fvpro-glass); border: 1px solid var(--fvpro-line);
    color: var(--fvpro-muted); font-size: 14px; text-align: center; z-index: 8;
}

/* ---- loader ---- */
.fvpro-loader {
    position: absolute; left: 50%; top: 50%; z-index: 9; width: 54px; height: 54px; margin: -27px 0 0 -27px;
    opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.fvpro-lb.is-loading .fvpro-loader { opacity: 1; }
.fvpro-loader svg { width: 54px; height: 54px; stroke-width: 4; animation: fvpro-spin 2.2s linear infinite; }
.fvpro-loader-track { stroke: rgba(255, 255, 255, .14); }
.fvpro-loader-ring { stroke: var(--fvpro-accent); animation: fvpro-dash 1.5s ease-in-out infinite; }
@keyframes fvpro-spin { to { transform: rotate(360deg); } }
@keyframes fvpro-dash {
    0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
    100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

/* ---- avatar ---- */
.fvpro-avatar {
    display: flex; flex: 0 0 auto; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, #ff3366, #7c3aed);
    border: 2px solid rgba(255, 255, 255, .22);
    color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .02em; line-height: 1;
}

/* ---- vote button (shared look, layouts refine it) ---- */
.fvpro-vote {
    position: relative;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 20px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .09);
    color: #fff; font-size: 15px; font-weight: 700; line-height: 1.2;
    transition: background .25s, transform .3s var(--fvpro-spring), box-shadow .25s, border-color .25s;
}
.fvpro-vote:not(:disabled):hover { background: rgba(255, 255, 255, .16); transform: translateY(-2px); }
.fvpro-vote:not(:disabled):active { transform: scale(.95); }
.fvpro-vote svg { width: 20px; height: 20px; transition: fill .2s ease; }
.fvpro-vote-count { font-variant-numeric: tabular-nums; }
.fvpro-vote.is-voted {
    background: linear-gradient(135deg, var(--fvpro-accent), var(--fvpro-accent-2));
    border-color: rgba(255, 255, 255, .35);
    box-shadow: 0 8px 26px var(--fvpro-accent-glow);
}
.fvpro-vote.is-voted svg { fill: #fff; stroke: #fff; }
.fvpro-vote.is-pop svg { animation: fvpro-beat .55s var(--fvpro-spring); }
@keyframes fvpro-beat { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 70% { transform: scale(.9); } 100% { transform: scale(1); } }
.fvpro-vote.is-static { background: rgba(255, 255, 255, .06); border-color: var(--fvpro-line); }
.fvpro-vote.is-static svg { fill: currentColor; opacity: .9; }
.fvpro-vote.is-static:hover { transform: none; }

/* ---- thumbnails (button + dot); sizes come from the layouts ---- */
.fvpro-thumb {
    position: relative; display: block; flex: 0 0 auto; overflow: hidden;
    border: 2px solid transparent;
    opacity: .5;
    transition: opacity .25s, transform .3s var(--fvpro-ease), border-color .2s, box-shadow .25s;
}
.fvpro-thumb:hover { opacity: .85; }
.fvpro-thumb.is-active { opacity: 1; }
.fvpro-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fvpro-thumb-dot {
    position: absolute; top: 5px; right: 5px; width: 9px; height: 9px; border-radius: 50%;
    background: var(--fvpro-accent); box-shadow: 0 0 0 2px rgba(0, 0, 0, .55);
    opacity: 0; transform: scale(0); transition: opacity .25s, transform .3s var(--fvpro-spring);
}
.fvpro-thumb.is-voted .fvpro-thumb-dot { opacity: 1; transform: scale(1); }

/* ---- bottom-sheet handle (mobile only) ---- */
.fvpro-handle { display: none; }

/* ---- toast ---- */
.fvpro-toast {
    position: absolute; left: 50%; top: 22px; z-index: 40;
    padding: 10px 18px; border-radius: 999px;
    background: rgba(15, 23, 42, .94); border: 1px solid rgba(255, 255, 255, .18);
    color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
    opacity: 0; transform: translate(-50%, -16px); pointer-events: none;
    transition: opacity .28s var(--fvpro-ease), transform .28s var(--fvpro-ease);
}
.fvpro-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
/* Voting from inside the viewer: the shared lightbox engine renders its inline vote result with the same toast look. */
.fvpro-lb .fotov-lightbox-toast {
    position: absolute; left: 50%; top: 22px; z-index: 40; max-width: min(520px, calc(100% - 120px));
    padding: 10px 18px; border-radius: 16px; text-align: center;
    background: rgba(15, 23, 42, .94); border: 1px solid rgba(255, 255, 255, .18);
    color: #fff; font-size: 13px; font-weight: 600; line-height: 1.4;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
    opacity: 0; visibility: hidden; transform: translate(-50%, -16px); pointer-events: none;
    transition: opacity .28s var(--fvpro-ease), transform .28s var(--fvpro-ease), visibility 0s .28s;
}
.fvpro-lb .fotov-lightbox-toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.fvpro-lb .fotov-lightbox-toast.is-error { border-color: rgba(251, 113, 133, .7); }
@media (max-width: 640px) { .fvpro-lb .fotov-lightbox-toast { top: 76px; } }
.fvpro-vote.is-loading { cursor: progress; }
.fvpro-vote.is-loading > * { visibility: hidden; }
.fvpro-vote.is-loading::after {
    content: ""; position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; box-sizing: border-box;
    border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; animation: fvpro-vote-spin .7s linear infinite;
}
@keyframes fvpro-vote-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    .fvpro-lb, .fvpro-lb * { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
    .fvpro-loader svg, .fvpro-loader-ring { animation: none !important; }
}

/*
 * WP Foto Vote - Pro lightbox, layout "Cinematic":
 * blurred photo backdrop, top bar (counter, place, zoom, fullscreen, close),
 * glass dock (title, author, vote, share) and a filmstrip. Under 769px the dock is a bottom sheet.
 */

.fvpro-lb--cinematic { flex-direction: column; --fvpro-stage-pad: 6px 78px; }
.fvpro-lb--cinematic {
    --fvpro-accent: var(--fotov-lightbox-accent, #ff3366);
    --fvpro-text: var(--fotov-lightbox-text, #f8fafc);
    --fvpro-muted: var(--fotov-lightbox-muted, #9aa7bb);
    --fvpro-glass: var(--fotov-lightbox-panel, rgba(18, 19, 24, .74));
    --fvpro-backdrop: var(--fotov-lightbox-backdrop, rgba(8, 9, 13, .94));
}
.fvpro-lb--cinematic.is-visible { display: flex; }

/* ---- backdrop ---- */
.fvpro-lb--cinematic .fvpro-backdrop {
    position: absolute; inset: 0; z-index: 0; overflow: hidden;
    background: var(--fvpro-backdrop, rgba(8, 9, 13, .94));
    -webkit-backdrop-filter: blur(26px); backdrop-filter: blur(26px);
}
.fvpro-lb--cinematic .fvpro-ambient {
    position: absolute; left: -15%; top: -15%; width: 130%; height: 130%; object-fit: cover;
    filter: blur(70px) saturate(190%) brightness(.38);
    opacity: .8; transform: scale(1.05);
    transition: opacity .5s ease;
    pointer-events: none;
}

/* ---- top bar ---- */
.fvpro-lb--cinematic .fvpro-top {
    position: relative; z-index: 10;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 22px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .6), transparent);
    opacity: 0; transform: translateY(-10px);
    transition: opacity .4s ease .08s, transform .45s var(--fvpro-ease) .08s;
}
.fvpro-lb--cinematic .fvpro-top-l, .fvpro-lb--cinematic .fvpro-top-r { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fvpro-lb--cinematic .fvpro-place { color: var(--fvpro-gold); border-color: rgba(251, 191, 36, .32); }
.fvpro-lb--cinematic .fvpro-place.is-first {
    color: #fff;
    background: linear-gradient(135deg, rgba(245, 158, 11, .92), rgba(217, 119, 6, .92));
    border-color: rgba(253, 224, 71, .55);
}

/* ---- stage ---- */
.fvpro-lb--cinematic .fvpro-stage { position: relative; z-index: 5; flex: 1 1 auto; }

/* ---- footer: dock + filmstrip ---- */
.fvpro-lb--cinematic .fvpro-foot {
    position: relative; z-index: 10;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    padding: 10px 24px calc(18px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to top, rgba(0, 0, 0, .82) 25%, transparent);
}
.fvpro-lb--cinematic .fvpro-dock {
    width: 100%; max-width: 900px;
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "meta actions" "more actions";
    align-items: center; column-gap: 22px; row-gap: 6px;
    padding: 14px 20px;
    background: var(--fvpro-glass);
    border: 1px solid var(--fvpro-line);
    border-radius: var(--fotov-lightbox-radius, 22px);
    -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%);
    box-shadow: 0 22px 44px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06);
    opacity: 0; transform: translateY(18px);
    transition: opacity .45s ease .1s, transform .55s var(--fvpro-ease) .1s;
}
.fvpro-lb--cinematic.is-open .fvpro-top, .fvpro-lb--cinematic.is-open .fvpro-dock { opacity: 1; transform: none; }
.fvpro-lb--cinematic.has-no-more .fvpro-dock { grid-template-areas: "meta actions"; }

.fvpro-lb--cinematic .fvpro-meta { grid-area: meta; display: flex; align-items: center; gap: 14px; min-width: 0; }
.fvpro-lb--cinematic .fvpro-text { min-width: 0; }
.fvpro-lb--cinematic .fvpro-title {
    font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: -.005em; color: var(--fvpro-text, #fff);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fvpro-lb--cinematic .fvpro-by {
    margin-top: 1px; font-size: 13px; color: var(--fvpro-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fvpro-lb--cinematic .fvpro-dot { margin: 0 7px; opacity: .7; }
.fvpro-lb--cinematic .fvpro-author-link:hover { color: #fff; }

.fvpro-lb--cinematic .fvpro-more { grid-area: more; min-width: 0; }
.fvpro-lb--cinematic .fvpro-more-in { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; min-width: 0; }
.fvpro-lb--cinematic .fvpro-more-in > * { max-width: 100%; }
.fvpro-lb--cinematic .fvpro-desc {
    font-size: 13.5px; line-height: 1.5; color: #c4cede;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fvpro-lb--cinematic .fvpro-exif {
    padding: 3px 10px; border-radius: 8px; font-size: 12px; color: #cbd5e1; font-variant-numeric: tabular-nums;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .06);
}

.fvpro-lb--cinematic .fvpro-actions { grid-area: actions; display: flex; align-items: center; gap: 10px; }
.fvpro-lb--cinematic .fvpro-share {
    display: inline-flex; align-items: center; gap: 8px;
    height: 44px; padding: 0 18px; border-radius: 999px;
    border: 1px solid var(--fvpro-line); background: rgba(255, 255, 255, .06);
    color: #e2e8f0; font-size: 13.5px; font-weight: 600;
    transition: background .2s, color .2s, transform .25s var(--fvpro-spring);
}
.fvpro-lb--cinematic .fvpro-share:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.fvpro-lb--cinematic .fvpro-share:active { transform: scale(.95); }
.fvpro-lb--cinematic .fvpro-share svg { width: 17px; height: 17px; }

/* ---- filmstrip ---- */
.fvpro-lb--cinematic .fvpro-thumbs {
    display: flex; align-items: center; gap: 10px;
    max-width: 100%; padding: 6px 10px;
    overflow-x: auto; overflow-y: hidden; overscroll-behavior: contain; scrollbar-width: none;
}
.fvpro-lb--cinematic .fvpro-thumbs::-webkit-scrollbar { display: none; }
.fvpro-lb--cinematic .fvpro-thumb { width: 68px; height: 48px; border-radius: 10px; transform: scale(.94); }
.fvpro-lb--cinematic .fvpro-thumb.is-active { border-color: #fff; transform: scale(1.07); box-shadow: 0 8px 20px rgba(0, 0, 0, .55); }

/* ---- zoomed: let the picture breathe ---- */
.fvpro-lb--cinematic.is-zoomed .fvpro-nav { opacity: .0; pointer-events: none; }

/* ---- fullscreen ---- */
.fvpro-lb--cinematic.is-fullscreen { background: #05060a; }

/* ================= mobile bottom sheet ================= */
@media (max-width: 768px) {
    .fvpro-lb--cinematic { --fvpro-stage-pad: 4px 10px; }
    .fvpro-lb--cinematic .fvpro-top { padding: 10px 14px; }
    .fvpro-lb--cinematic .fvpro-ctl { width: 40px; height: 40px; }
    .fvpro-lb--cinematic .fvpro-zoom { display: none; }
    .fvpro-lb--cinematic .fvpro-nav { display: none; }

    .fvpro-lb--cinematic .fvpro-foot { padding: 0 0 0; gap: 0; background: none; }
    .fvpro-lb--cinematic .fvpro-thumbs { order: -1; padding: 8px 12px; gap: 8px; width: 100%; }
    .fvpro-lb--cinematic .fvpro-thumb { width: 54px; height: 40px; border-radius: 8px; }

    .fvpro-lb--cinematic .fvpro-dock {
        max-width: none; border-radius: 22px 22px 0 0; border-width: 1px 0 0;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "handle" "meta" "actions" "more";
        row-gap: 10px;
        padding: 0 16px calc(14px + env(safe-area-inset-bottom, 0px));
        background: rgba(14, 15, 20, .86);
    }
    .fvpro-lb--cinematic .fvpro-handle {
        grid-area: handle; display: flex; align-items: center; justify-content: center;
        width: calc(100% + 32px); height: 26px; margin: 0 -16px;
    }
    .fvpro-lb--cinematic.has-no-more .fvpro-dock { grid-template-areas: "meta" "actions"; padding-top: 12px; }
    .fvpro-handle-bar { display: block; width: 40px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .3); transition: background .2s, width .25s var(--fvpro-ease); }
    .fvpro-handle:hover .fvpro-handle-bar { background: rgba(255, 255, 255, .5); }
    .fvpro-lb--cinematic.is-sheet-open .fvpro-handle-bar { width: 52px; background: rgba(255, 255, 255, .5); }

    .fvpro-lb--cinematic .fvpro-title { font-size: 16px; }
    .fvpro-lb--cinematic .fvpro-actions { gap: 8px; }
    .fvpro-lb--cinematic .fvpro-vote { flex: 1 1 auto; justify-content: center; padding: 12px 18px; }
    .fvpro-lb--cinematic .fvpro-share { width: 48px; height: 48px; padding: 0; justify-content: center; flex: 0 0 auto; }
    .fvpro-lb--cinematic .fvpro-share-label { display: none; }

    .fvpro-lb--cinematic .fvpro-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--fvpro-ease); }
    .fvpro-lb--cinematic .fvpro-more-in { overflow: hidden; min-height: 0; align-items: stretch; }
    .fvpro-lb--cinematic.is-sheet-open .fvpro-more { grid-template-rows: 1fr; }
    .fvpro-lb--cinematic.is-sheet-open .fvpro-more-in { max-height: 34vh; overflow-y: auto; }
    .fvpro-lb--cinematic .fvpro-desc { display: block; -webkit-line-clamp: unset; overflow: visible; }
}

/* short viewports (phones in landscape): drop the filmstrip, tighten everything */
@media (max-height: 520px) {
    .fvpro-lb--cinematic .fvpro-thumbs { display: none; }
    .fvpro-lb--cinematic .fvpro-top { padding: 8px 14px; }
    .fvpro-lb--cinematic .fvpro-dock { padding-top: 8px; padding-bottom: 8px; }
}

@media (max-width: 380px) {
    .fvpro-lb--cinematic .fvpro-top-l { gap: 6px; }
    .fvpro-lb--cinematic .fvpro-pill { padding: 5px 10px; font-size: 12px; }
}
