/* Limited corrections on restored first version. */
.fv-one-mosaic .fv-lead{grid-row:span 3}.fv-one-mosaic{grid-template-rows:repeat(3,175px)}
.fv-photo{position:relative}.fv-one-mosaic .fv-photo>span,.fv-rail .fv-photo>span{position:absolute;left:0;right:0;bottom:0;margin:0;padding:23px 13px 11px;background:linear-gradient(transparent,rgba(0,0,0,.48));color:white;border-radius:0 0 12px 12px;line-height:1.4;font-size:13px;min-height:0;pointer-events:none;box-sizing:border-box}.fv-photo>span .fv-icon{display:none!important}
.fv-films .fv-video-list button>span{justify-content:flex-start;text-align:left;align-items:center;gap:9px;padding:12px;box-sizing:border-box}.fv-films .fv-video-list button>span>.fv-icon{flex-shrink:0;width:14px!important;height:14px!important}.fv-films .fv-video-list button{width:100%}
#cs-real-viewer{width:min(1120px,94vw);height:min(820px,92dvh);max-width:94vw;max-height:92dvh;padding:0;border:1px solid #ffffff24;border-radius:14px;background:#181e1b;color:white;overflow:hidden}#cs-real-viewer[open]{display:flex;flex-direction:column}#cs-real-viewer::backdrop{background:#070c0be0;backdrop-filter:blur(4px)}#cs-real-viewer .cs-real-viewerbar{padding:12px 18px;min-height:64px;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-shrink:0}#cs-real-viewer .cs-real-close{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:white;border:0;cursor:pointer;flex-shrink:0}#cs-real-viewer .cs-real-close:hover{background:#ffbd00}#cs-real-viewer .cs-real-viewerbody{display:flex;align-items:center;justify-content:center;min-height:0;flex:1;width:100%;box-sizing:border-box;padding:0 18px}#cs-real-viewer-image,#cs-real-viewer-video{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;margin:0;display:block}#cs-real-viewer [hidden]{display:none!important}#cs-real-viewer .cs-real-viewernav{display:flex;align-items:center;justify-content:center;padding:12px;gap:20px;flex-shrink:0}#cs-real-viewer .cs-real-viewernav button{width:44px;height:44px;border-radius:50%;border:1px solid #69756d;background:white;cursor:pointer}
@media(max-width:600px){.fv-one-mosaic .fv-lead{grid-row:auto;grid-column:span 2}.fv-one-mosaic{grid-template-rows:250px repeat(3,175px)}.fv-one-mosaic .fv-teaser{grid-column:auto;min-height:0}.fv-one-mosaic .fv-photo>span,.fv-rail .fv-photo>span{font-size:11px;padding:20px 9px 8px}#cs-real-viewer{height:90dvh}#cs-real-viewer .cs-real-viewerbar{font-size:13px}}

/* Quiet captions and media-sized viewer. */
.fv-one-mosaic .fv-photo>span,.fv-rail .fv-photo>span{text-shadow:none;box-shadow:none}
#cs-real-viewer{width:fit-content;min-width:min(420px,94vw);height:auto;max-height:92dvh}
#cs-real-viewer .cs-real-viewerbar{min-height:54px;padding:7px 14px;font-size:13px}
#cs-real-viewer .cs-real-viewerbody{flex:0 1 auto;padding:0;min-height:0}
#cs-real-viewer-image,#cs-real-viewer-video{width:auto;height:auto;max-width:calc(94vw - 2px);max-height:calc(92dvh - 124px)}
#cs-real-viewer .cs-real-viewernav{padding:8px}
@media(max-width:600px){#cs-real-viewer{height:auto;min-width:0}#cs-real-viewer-image,#cs-real-viewer-video{max-height:calc(90dvh - 124px)}}

/* Final compact, stable gallery: changing photo never shifts the controls. */
#cs-real-viewer{width:min(900px,90vw);min-width:0;height:min(720px,80dvh);max-height:80dvh;box-sizing:border-box}
#cs-real-viewer .cs-real-viewerbody{flex:1;min-height:0;padding:0 10px}
#cs-real-viewer-image,#cs-real-viewer-video{max-width:100%;max-height:100%;object-fit:contain}
#cs-real-viewer .cs-real-viewernav{display:grid;grid-template-columns:44px 76px 44px;justify-content:center;align-items:center;gap:14px;min-height:60px;box-sizing:border-box}
#cs-real-viewer [data-cs-position]{width:76px;text-align:center;font-variant-numeric:tabular-nums;white-space:nowrap}
#cs-real-viewer-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#cs-real-viewer button:focus-visible,.cs-real button:focus-visible{outline:2px solid #ffbd00;outline-offset:3px}
#cs-real-viewer .cs-real-viewernav button:hover{background:#ffbd00;border-color:#ffbd00}
#cs-real-viewer .cs-real-close img{width:18px;height:18px;display:block}
@media(max-width:600px){#cs-real-viewer{width:94vw;height:80dvh;max-height:80dvh}#cs-real-viewer-image,#cs-real-viewer-video{max-height:100%}#cs-real-viewer .cs-real-viewerbar{gap:10px}}
@media(max-height:500px) and (orientation:landscape){#cs-real-viewer{height:92dvh;max-height:92dvh}#cs-real-viewer .cs-real-viewerbar{min-height:44px;padding:3px 10px}#cs-real-viewer .cs-real-viewernav{min-height:48px;padding:2px}}

/* Stable explicit rows: media intrinsic dimensions cannot move the footer. */
#cs-real-viewer{width:min(1040px,92vw);height:min(800px,82dvh);max-height:82dvh}
#cs-real-viewer[open]{display:grid;grid-template-rows:54px minmax(0,1fr) 60px;gap:0}
#cs-real-viewer .cs-real-viewerbar{height:54px;min-height:0}
#cs-real-viewer .cs-real-viewerbody{height:100%;width:100%;min-width:0;min-height:0;overflow:hidden;padding:0 8px}
#cs-real-viewer-image,#cs-real-viewer-video{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
#cs-real-viewer .cs-real-viewernav{height:60px;min-height:60px;margin:0;grid-template-columns:44px 80px 44px;gap:16px;flex-shrink:0}
#cs-real-viewer [data-cs-position]{display:block;width:80px;height:24px;line-height:24px;font:14px/24px ui-monospace,Consolas,monospace;font-variant-numeric:tabular-nums;transform:none;transition:none}
@media(max-width:600px){#cs-real-viewer{width:94vw;height:82dvh;max-height:82dvh}}
@media(max-height:500px) and (orientation:landscape){#cs-real-viewer{height:92dvh;max-height:92dvh}#cs-real-viewer[open]{grid-template-rows:44px minmax(0,1fr) 48px}#cs-real-viewer .cs-real-viewerbar{height:44px}#cs-real-viewer .cs-real-viewernav{height:48px;min-height:48px}}
