/* MODX overrides for Themify Ultra mirror */
[data-tf-src] { opacity: 1 !important; }
.tf_svg_lazy, .tf_svg_lazy_loaded { filter: none !important; opacity: 1 !important; }
.module[data-lazy], .module[data-lazy] .ui, .module_row[data-lazy], .module_row[data-lazy] > .row_inner,
.module_row:not(.tb_first) .module_column[data-lazy], .module_subrow[data-lazy] > .subrow_inner { background-image: inherit !important; }
.themify_builder .wow, .wow .tf_lazy { visibility: visible !important; }
.search-highlight { background: #fff3a0; }

/* Fixed header: sticky + compact mode on scroll */
.fixed-header-enabled #headerwrap {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0;
    z-index: 999;
}

.fixed-header-enabled #headerwrap.fixed-header {
    background-color: rgba(255, 255, 255, .9);
}

.fixed-header-enabled #headerwrap.fixed-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    pointer-events: none;
    z-index: 0;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.fixed-header-enabled [data-anchor] {
    scroll-margin-top: var(--header-offset, 0px);
}

#sidebar #searchform .icon-search {
    pointer-events: none;
}
#sidebar #searchform #s {
    position: relative;
    z-index: 1;
    cursor: text;
}
#sidebar #searchform #s:focus {
    outline: none;
    box-shadow: inset 0 -1px 0 currentColor;
}

body:not(.page-loaded), body:not(.page-loaded) #header, body:not(.page-loaded) a,
body:not(.page-loaded) img, body:not(.page-loaded) figure, body:not(.page-loaded) div,
body:not(.page-loaded) i, body:not(.page-loaded) li, body:not(.page-loaded) span,
body:not(.page-loaded) ul { animation: none !important; transition: none !important; }
body:not(.page-loaded) #main-nav li .sub-menu { display: none; }
img { max-width: 100%; height: auto; }

.tb_animation_on { overflow-x: hidden; }

@media screen and (min-width: 1025px) {
    .hide-desktop { width: 0 !important; height: 0 !important; padding: 0 !important; visibility: hidden !important; margin: 0 !important; display: table-column !important; }
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .hide-tablet_landscape { width: 0 !important; height: 0 !important; padding: 0 !important; visibility: hidden !important; margin: 0 !important; display: table-column !important; }
}
@media screen and (min-width: 601px) and (max-width: 768px) {
    .hide-tablet { width: 0 !important; height: 0 !important; padding: 0 !important; visibility: hidden !important; margin: 0 !important; display: table-column !important; }
}
@media screen and (max-width: 600px) {
    .hide-mobile { width: 0 !important; height: 0 !important; padding: 0 !important; visibility: hidden !important; margin: 0 !important; display: table-column !important; }
}

.sidemenu-active .header-icons.tf_hide {
    display: block !important;
}

/* Archive / news list: show Load More (Themify hides it until infinite-scroll JS) */
.archive #load-more {
    padding: 50px 0;
    text-align: center;
}
.archive a.load-more-button {
    display: inline-block;
    padding: 10px 28px;
    text-decoration: none;
    box-sizing: border-box;
    background: rgba(183, 183, 183, .16);
    border-radius: 30px;
    color: inherit;
}
.archive a.load-more-button:hover {
    text-decoration: none;
    background: rgba(183, 183, 183, .28);
}

@media screen and (min-width: 901px) {
    .sidemenu-active .header-icons.tf_hide {
        display: none !important;
    }

    .sidemenu-active #mobile-menu.sidemenu {
        position: static;
        width: auto;
        height: auto;
        padding: 0;
        overflow: visible;
        background: transparent;
        box-shadow: none;
        right: auto;
        left: auto;
        transform: none;
    }

    .sidemenu-active #main-nav {
        display: block;
        text-align: center;
    }

    .sidemenu-active #main-nav .menu-item {
        display: inline-block;
        margin: 0 .6em;
    }
}
