/* Loovl Restyling - own styles of the theme.
 * Visibility by screen size: fusion-no-small/medium/large-visibility (<=640, 641-1024, >=1025),
 * same breakpoints and rules Avada prints inline as #css-fb-visibility.
 * Lightbox (.loovl-lb) - own window instead of iLightbox, looks like its metro-black skin:
 * black overlay .9, close / fullscreen / slideshow top left, tall arrow panels at the sides,
 * caption over the bottom left of the picture, thumbnail strip at the bottom.
 */
.loovl-lb{position:fixed;top:0;right:0;bottom:0;left:0;z-index:99999}
.loovl-lb[hidden],.loovl-lb [hidden]{display:none !important}
html.loovl-lb-otkryto{overflow:hidden}
.loovl-lb .loovl-lb__fon{position:absolute;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,.9)}
.loovl-lb .loovl-lb__kadr{position:absolute;top:45px;left:120px;right:120px;bottom:45px;margin:0;display:flex;align-items:center;justify-content:center;pointer-events:none}
.loovl-lb.loovl-lb--lenta .loovl-lb__kadr{bottom:150px}
.loovl-lb .loovl-lb__media{position:relative;display:flex;align-items:center;justify-content:center;max-width:100%;max-height:100%;pointer-events:auto}
.loovl-lb .loovl-lb__kartinka{display:block;width:auto;height:auto;max-width:calc(100vw - 240px);max-height:calc(100vh - 90px);opacity:0;transition:opacity .3s}
.loovl-lb.loovl-lb--lenta .loovl-lb__kartinka{max-height:calc(100vh - 195px)}
.loovl-lb .loovl-lb__kartinka--gotovo{opacity:1}
.loovl-lb .loovl-lb__video{display:block;width:min(1280px,calc(100vw - 240px));height:auto;aspect-ratio:16/9;max-height:calc(100vh - 195px);border:0;background:#000}
.loovl-lb .loovl-lb__zaslonka{position:relative;display:block;margin:0;padding:0;border:0;background:#000;cursor:pointer}
.loovl-lb .loovl-lb__zaslonka img{display:block;width:min(1280px,calc(100vw - 240px));height:auto;max-height:calc(100vh - 195px);object-fit:cover;opacity:.7}
.loovl-lb .loovl-lb__igrat{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:14px 26px;background:#c7081b;color:#fff;font:600 15px/1 Montserrat,Arial,sans-serif;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap}
.loovl-lb .loovl-lb__podpis{position:absolute;left:0;bottom:0;margin:0;padding:10px 12px;max-width:100%;color:#fff;font:12px/1.4 Montserrat,Arial,sans-serif;text-align:left;text-shadow:0 0 3px rgba(0,0,0,.8);pointer-events:auto}
.loovl-lb .loovl-lb__panel{position:absolute;top:8px;left:8px;display:flex;gap:4px;z-index:2}
.loovl-lb .loovl-lb__panel button{display:flex;align-items:center;justify-content:center;width:28px;height:28px;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:#fff;font:700 17px/1 Arial,sans-serif;cursor:pointer;opacity:.9}
.loovl-lb .loovl-lb__panel button:hover{color:#c7081b;opacity:1}
.loovl-lb .loovl-lb__nazad,.loovl-lb .loovl-lb__vpered{position:absolute;top:50%;display:flex;align-items:center;justify-content:center;width:100px;height:270px;margin:-135px 0 0;padding:0;border:0;border-radius:0;background:rgba(255,255,255,.04);color:#fff;cursor:pointer;z-index:2;transition:background-color .2s}
.loovl-lb .loovl-lb__nazad svg,.loovl-lb .loovl-lb__vpered svg{display:block;width:30px;height:60px}
.loovl-lb .loovl-lb__nazad{left:0}
.loovl-lb .loovl-lb__vpered{right:0}
.loovl-lb .loovl-lb__nazad:hover,.loovl-lb .loovl-lb__vpered:hover{background:rgba(255,255,255,.1)}
.loovl-lb .loovl-lb__lenta{position:absolute;left:120px;right:120px;bottom:10px;display:flex;gap:6px;height:120px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;z-index:2}
.loovl-lb .loovl-lb__lenta::-webkit-scrollbar{display:none}
.loovl-lb .loovl-lb__mini{position:relative;flex:0 0 190px;height:120px;margin:0;padding:0;border:0;border-radius:0;background:#111;cursor:pointer;opacity:.25;transition:opacity .2s}
.loovl-lb .loovl-lb__mini img{display:block;width:100%;height:100%;object-fit:cover}
.loovl-lb .loovl-lb__mini--video::after{content:"\25B6";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);color:#fff;font-size:22px;text-shadow:0 0 6px rgba(0,0,0,.8)}
.loovl-lb .loovl-lb__mini:hover,.loovl-lb .loovl-lb__mini--tek{opacity:1}
.loovl-lb button:focus-visible{outline:2px solid #fff;outline-offset:-3px}
@media screen and (max-width:800px){
.loovl-lb .loovl-lb__kadr{left:0;right:0}
.loovl-lb .loovl-lb__kartinka,.loovl-lb .loovl-lb__video,.loovl-lb .loovl-lb__zaslonka img{max-width:100vw;width:auto}
.loovl-lb .loovl-lb__video,.loovl-lb .loovl-lb__zaslonka img{width:100vw}
.loovl-lb .loovl-lb__nazad,.loovl-lb .loovl-lb__vpered{width:44px;height:120px;margin-top:-60px;background:rgba(0,0,0,.35)}
.loovl-lb .loovl-lb__nazad svg,.loovl-lb .loovl-lb__vpered svg{width:20px;height:40px}
.loovl-lb .loovl-lb__lenta{left:0;right:0;height:70px}
.loovl-lb.loovl-lb--lenta .loovl-lb__kadr{bottom:90px}
.loovl-lb.loovl-lb--lenta .loovl-lb__kartinka{max-height:calc(100vh - 135px)}
.loovl-lb .loovl-lb__mini{flex-basis:110px;height:70px}
}
@media screen and (max-width: 640px){body:not(.fusion-builder-ui-wireframe) .fusion-no-small-visibility{display:none !important;}body:not(.fusion-builder-ui-wireframe) .sm-text-align-center{text-align:center !important;}body:not(.fusion-builder-ui-wireframe) .sm-text-align-left{text-align:left !important;}body:not(.fusion-builder-ui-wireframe) .sm-text-align-right{text-align:right !important;}body:not(.fusion-builder-ui-wireframe) .sm-mx-auto{margin-left:auto !important;margin-right:auto !important;}body:not(.fusion-builder-ui-wireframe) .sm-ml-auto{margin-left:auto !important;}body:not(.fusion-builder-ui-wireframe) .sm-mr-auto{margin-right:auto !important;}body:not(.fusion-builder-ui-wireframe) .fusion-absolute-position-small{position:absolute;top:auto;width:100%;}}@media screen and (min-width: 641px) and (max-width: 1024px){body:not(.fusion-builder-ui-wireframe) .fusion-no-medium-visibility{display:none !important;}body:not(.fusion-builder-ui-wireframe) .md-text-align-center{text-align:center !important;}body:not(.fusion-builder-ui-wireframe) .md-text-align-left{text-align:left !important;}body:not(.fusion-builder-ui-wireframe) .md-text-align-right{text-align:right !important;}body:not(.fusion-builder-ui-wireframe) .md-mx-auto{margin-left:auto !important;margin-right:auto !important;}body:not(.fusion-builder-ui-wireframe) .md-ml-auto{margin-left:auto !important;}body:not(.fusion-builder-ui-wireframe) .md-mr-auto{margin-right:auto !important;}body:not(.fusion-builder-ui-wireframe) .fusion-absolute-position-medium{position:absolute;top:auto;width:100%;}}@media screen and (min-width: 1025px){body:not(.fusion-builder-ui-wireframe) .fusion-no-large-visibility{display:none !important;}body:not(.fusion-builder-ui-wireframe) .lg-text-align-center{text-align:center !important;}body:not(.fusion-builder-ui-wireframe) .lg-text-align-left{text-align:left !important;}body:not(.fusion-builder-ui-wireframe) .lg-text-align-right{text-align:right !important;}body:not(.fusion-builder-ui-wireframe) .lg-mx-auto{margin-left:auto !important;margin-right:auto !important;}body:not(.fusion-builder-ui-wireframe) .lg-ml-auto{margin-left:auto !important;}body:not(.fusion-builder-ui-wireframe) .lg-mr-auto{margin-right:auto !important;}body:not(.fusion-builder-ui-wireframe) .fusion-absolute-position-large{position:absolute;top:auto;width:100%;}}

/* Post navigation (15.10.2026): "< Edellinen · reading time · Seuraava >" in one row,
 * reading time centred between the links. On phones the time takes its own row above. */
.single-navigation.loovl-zapis-nav{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;column-gap:20px;margin-top:30px;text-align:left}
.loovl-zapis-nav .loovl-zapis-nav__prev{justify-self:start;padding-left:1em}
.loovl-zapis-nav .loovl-zapis-nav__next{justify-self:end}
.loovl-zapis-nav .loovl-zapis-nav__prev:empty,.loovl-zapis-nav .loovl-zapis-nav__next:empty{padding:0}
.loovl-zapis-nav .loovl-chtenie{display:inline-flex;align-items:center;gap:7px;color:#747474;white-space:nowrap}
.loovl-zapis-nav .loovl-chtenie__znak{flex:none;width:1em;height:1em}
@media screen and (max-width:640px){
.single-navigation.loovl-zapis-nav{grid-template-columns:1fr 1fr;margin-top:20px}
.loovl-zapis-nav .loovl-chtenie{grid-column:1/-1;grid-row:1;justify-self:center;border-bottom:1px solid #e0dede;width:100%;justify-content:center}
.loovl-zapis-nav .loovl-zapis-nav__prev,.loovl-zapis-nav .loovl-zapis-nav__next{grid-row:2}
.loovl-zapis-nav .loovl-zapis-nav__next{grid-column:2}
}

/* Phone menu open (20.10.2026): a sheet over the page. The page under it does not scroll
 * (html.loovl-menyu-auki, set by tema.js), the menu itself scrolls down to the bottom of the screen
 * (--loovl-menyu-vys is measured by tema.js), the dimmed page closes the menu on tap.
 * Avada limited the list in the sticky header to 200 px and dop-stili.css to the screen height:
 * now the whole holder scrolls (list, AUTOMALLIT panel, dark block), the list itself does not. */
@media screen and (max-width:800px){
html.loovl-menyu-auki,html.loovl-menyu-auki body{overflow:hidden !important}
.fusion-header .fusion-mobile-nav-holder.fusion-mobile-menu-expanded{max-height:var(--loovl-menyu-vys,calc(100vh - 70px));overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.fusion-is-sticky .fusion-mobile-menu-design-modern .fusion-mobile-nav-holder>ul{max-height:none;overflow:visible}
/* z-index 9995: above the PPF bar (.loovl-cta-bar, 9990), under the header wrapper - 10011, but on the
 * home pages with the transparent header Avada sets 10000 (avada-header-color-not-opaque). */
.loovl-menyu-fon{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9995;background:rgba(0,0,0,.5);touch-action:none;animation:loovl-menyu-fon .2s ease-out}
}
.loovl-menyu-fon[hidden]{display:none !important}
@keyframes loovl-menyu-fon{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.loovl-menyu-fon{animation:none}}
