/* Compatibility layer applied after the historical stylesheets. */
.kb-main-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.kb-visible-title {
    margin: 0 0 1.2rem;
    font-size: 2.6rem;
    line-height: 1.2;
}

#header {
    background-size: auto 177px;
    background-position: top center;
    background-color: transparent;
}

#header .top-header {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding: 2.2rem 0 0;
    color: #fff;
    background: #bf181c;
    background: linear-gradient(90deg, #be151b 0%, #c51b20 50%, #b8181c 100%);
    box-shadow: 0 -24px #be151b;
}

#header .top-header .logo {
    width: 39%;
    max-width: 375px;
    flex-shrink: 0;
    margin: 0;
}

#header .top-header .logo img {
    display: block;
}

#header .top-header .site-description {
    width: auto;
    margin: 0;
    padding: .5rem;
    color: #fff;
}

.kb-hero {
    display: flex;
    width: 100%;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-color: #b8181c #e6e6e6;
    scrollbar-width: thin;
}

.kb-hero img {
    display: block;
    flex: 0 0 100%;
    width: 100%;
    height: auto;
    object-fit: contain;
    scroll-snap-align: start;
}

#header .navigation {
    height: auto;
    min-height: 4rem;
    line-height: 1.2;
}

#header .navigation ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    gap: .3rem 1.4rem;
    margin: 0;
    padding: .55rem 0;
}

#header .navigation ul::after {
    display: none;
}

#header .navigation a {
    display: block;
    padding: .3rem 0;
}

.kb-gallery,
.photo-info-box .img-list,
.home .bxslider {
    display: grid !important;
    position: static !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr));
    gap: 1rem;
    max-width: 100%;
}

.kb-gallery img,
.photo-info-box .img-list img,
.home .bxslider img {
    width: 100%;
    display: block;
    border-radius: .45rem;
}

.kb-gallery img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.photo-info-box .img-list > li {
    float: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
}

.photo-info-box .img-list .overlay {
    position: static !important;
    background: none;
    color: #222;
    opacity: 1;
}

.photo-info-box .img-list .overlay span {
    color: inherit;
}

.kb-catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    text-align: center;
}

.kb-catalog-grid a {
    padding: .7rem;
    border: 1px solid #ddd;
    border-radius: .5rem;
}

.kb-catalog-grid img {
    display: block;
    margin: 0 auto .5rem;
    width: min(100%, 125px);
    height: 105px;
    object-fit: contain;
}

.kb-catalog-link {
    display: inline-block;
    margin: .9rem 0 1.4rem;
    color: #a21519;
    text-decoration: underline;
}

.home .slider-project h2 {
    margin-bottom: 1rem;
}

.home #slider ul li p {
    position: static;
    padding: .45rem 0;
}

.home #slider ul li {
    align-content: start;
}

.kb-catalog-grid,
.home .slider-video,
.home .calendar {
    min-width: 0;
}

.article-content {
    overflow-wrap: anywhere;
}

.article-content img,
.article-content video {
    max-width: 100% !important;
    height: auto !important;
}

.article-content table {
    max-width: 100%;
}

#footer {
    min-height: 0;
    padding: 2.4rem 0;
}

#footer .container {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

#footer .logo {
    display: block;
    width: min(100%, 190px);
}

#footer .footer-label {
    font-size: 1.45rem;
    color: #494949;
}

@media (max-width: 720px) {
    #header .container,
    #content.container {
        padding-inline: 1.15rem;
    }

    #header .top-header {
        padding-top: 1rem;
    }

    #header .top-header .site-description {
        display: block;
        text-transform: none;
        line-height: 1.15;
        font-size: 1.24rem;
    }

    #header .header-blocks {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: .55rem;
    }

    #header .header-block {
        float: none;
        width: auto;
        margin: 0;
    }

    #header .header-block a {
        display: block;
        background: #ae1419;
        border-radius: .55rem;
        height: 100%;
        overflow: hidden;
    }

    #header .header-block img {
        display: block;
        border-radius: 0;
    }

    #header .header-block-title {
        position: static;
        display: block;
        text-transform: none;
        font-size: 1.25rem;
        line-height: 1.1;
        padding: .65rem .2rem;
        border-radius: 0;
        background: transparent;
    }

    #header .navigation ul li a {
        font-size: 1.55rem;
    }

    .page .main-content .right-content,
    .page .main-content .left-content {
        float: none;
        width: auto;
    }

    .article-content table {
        display: block;
        overflow-x: auto;
    }

    .article-content [align="right"],
    .article-content [align="left"] {
        float: none;
        margin-inline: 0;
    }
}
