/**
Theme Name: МЗ
Version: 1
 */

:root {
    --color-h1: #111827;
    --color-first: #011C40;
    --color-second: #0f5fa6;
    --color-third: #38BDF2;
    --color-fourth: #9CC8D9;
    --color-fifth: #04D99D;
    --color-light: #F7F9FC;
    --color-flagred: #BF281B;
    --color-flagred-hover: #e9392c;
    --color-footer: #999;
    /*--color-footer: #758795;*/
}

.gallery.gallery-columns-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 1280px) {
    .gallery.gallery-columns-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.gallery figure,
.gallery img,
.gallery a {
    padding: 0;
    margin: 0;
    aspect-ratio: 16/10;
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 1280px) {
    .gallery figure,
    .gallery img,
    .gallery a {
        border-radius: 8px;
    }
}

.form-captcha > p {
    display: flex;
    align-items: center;
}

.form-captcha img {
    margin: 0 5px 0 0;
    flex-shrink: 0;
}

.form-captcha span {
    display: block;
    flex-grow: 1;
}

.form-captcha input {
    max-width: 150px !important;
}

.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)) {
    font-weight: 600;
}

.search-panel {
    display: none;
}

.bvi-active .search-panel input {
    border-bottom: 2px solid #000;
    border-radius: 0;
}

.shortcode-post-title {
    margin: 0 !important;
}

@media(max-width: 1280px) {
    .shortcode-post-title {
        margin: 10px 0 !important;
    }
}

/**
 * front-page-images
 */

.fpi-wrapper {
    margin-bottom: 16px;
}

.fpi {
    gap: 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fpi a,
.fpi img {
    text-align: center;
    transition: .3s all linear;
    max-width: 100%;

}

@media(min-width: 1280px) {
    .fpi-wrapper {
        margin: 48px 0 16px;
    }

    .fpi {
        display: block;
        columns: 3;
    }

    .fpi a,
    .fpi img {
        float: left;
    }

    .fpi a,
    .fpi > img {
        margin-bottom: 32px
    }
}

.fpi a > img:hover {
    transform: scale(1.05);
}

.alert-panel {
    transition: .15s all linear;
    z-index: 9997;
    transform: translateY(100%);
}

.alert-panel.active {
    transform: translateY(0);
    z-index: 9997;
}

.wpcf7-form-control-wrap {
    flex-shrink: 0;
}

.aspect-\[5\/4\] {
    aspect-ratio: 5/4;
}

.aspect-\[16\/9\] {
    aspect-ratio: 16/9;
}

.aspect-\[16\/10\] {
    aspect-ratio: 16/10;
}

.aspect-\[21\/9\] {
    aspect-ratio: 21/9;
}

.wp-video {
    width: 100% !important;
}


/* content */

.screen-reader-text {
	visibility: hidden;
}


.top-panel .inner-container,
.top-panel,
.top-panel::before,
.top-panel::after,
.top-panel, .top-panel:after {
	background: #1A7018 !important
}

.top-panel-menu a.set-mode {
	background: #00000020!important
}

.top-panel-menu a.set-mode:hover {
	background: #00000040!important
}