body.home
{
    font-size: var(--md);
    font-weight: 300;
    line-height: 1.45em;
    letter-spacing: 0.01em;
}

.maincontent {
    background-color: #fff;
    position: relative;
}

body.archive.tax-lesson_materials .maincontent,
body.archive.tax-lesson_materials .slideout-panel {
    background-color: #f7f7f7;
}

u {
    text-decoration: underline;
}

body.admin-bar .parallax.banner-area.heading-padding
{
    margin-top: 141px;
}

.materials-inner .materials-item
{
    color: #2b2e33;
    outline: none !important;
    text-decoration: none;
}

.materials-inner .materials-card .materials-item.dark .bg-elem,
.materials-inner .materials-card .materials-item.dark .bg-elem,
.materials-inner .materials-card .materials-item.dark .bg-elem,
.materials-inner .materials-card .materials-item.dark .bg-elem,
.materials-inner .materials-card .materials-item.dark .bg-elem,
.materials-inner .materials-card .materials-item.dark .bg-elem
{
    background: rgba(57, 57, 57, 0.3) !important;
    mix-blend-mode: normal !important;
}

.materials-inner .materials-card .materials-item.dark .title,
.materials-inner .materials-card .materials-item.dark .title,
.materials-inner .materials-card .materials-item.dark .title,
.materials-inner .materials-card .materials-item.dark .title,
.materials-inner .materials-card .materials-item.dark .title,
.materials-inner .materials-card .materials-item.dark .title
{
    color: #fff;
}

.format
{
    text-transform: uppercase;
}

.employee-item
{
    margin: 0 0 48px;
}

.employee-item .name
{
    position: relative;
    font-weight: 600;
    font-size: var(--md1);
    line-height: 1.2em;
    color: #282828;
    padding-left: 45px;
}

.employee-item .name:before
{
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    height: 2px;
    width: 30px;
    background: var(--blue);
}

.employee-item p:nth-of-type(2)
{
    min-height: 64px;
}

.vc_empty_space
{
    width: 164px;
    margin-right: auto;
    margin-left: auto;
}

body.single .heading-padding
{
    margin-top: 142px;
}

body.single.admin-bar .heading-padding {
    margin-top: 174px;
}

body.single .item
{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

body.single .item .img-box
{
    position: relative;
    display: block;
    padding-bottom: 32.793%;
    max-width: calc(50% - 50px);
    width: 100%;
    min-height: 300px;
    background: #00ffc8;
}

body.single .item .img-box .img
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: 50% 50% !important;
    z-index: 10;
}

body.single .item .text-box
{
    max-width: calc(50% - 50px);
    width: 100%;
}

body.single .item .text-box .top-box span
{
    display: inline-block;
    font-weight: 700;
    font-size: var(--xs1);
    line-height: 1.2em;
    letter-spacing: 0.01em;
    color: #393939;
    padding: 2px 16px 2px 0;
    border-right: 1px solid #393939;
    margin-right: 12px;
}

body.single .item .text-box .top-box span:last-child
{
    margin: 0;
    padding: 0;
    border: 0;
}

body.single .item .text-box .title
{
    margin: 25px 0;
}

body.single .item .text-box .title span
{
    display: inline-block;
    padding: 8px;
    font-weight: 600;
    font-size: var(--md1);
    line-height: 1.2em;
    letter-spacing: 0.01em;
    color: var(--blue);
    background: #393939;
}

body.single .item .text-box .text
{
    font-size: var(--xs1);
    line-height: 1.7em;
    letter-spacing: 0.01em;
    color: #282828;
    margin-bottom: 20px;
}

body.single .item .text-box ul
{
    margin-bottom: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 17px 0;
}

body.single .item .text-box ul li
{
    list-style: none;
    margin: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

body.single .item .text-box ul li a
{
    color: #2b2e33;
    outline: none !important;
    text-decoration: none;
    font-weight: 700;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    position: relative;
    max-width: calc(100% - 100px);
    width: 100%;
}

body.single .item .text-box ul li span
{
    max-width: 100px;
    display: inline-block;
    width: 100%;
}

body.single .item .text-box ul li a img
{
    margin-left: 8px;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: opacity 0.3s ease, visibility 0.3s ease,
        margin 0.3s ease;
    -o-transition: opacity 0.3s ease, visibility 0.3s ease, margin 0.3s ease;
    -webkit-transition: opacity 0.3s ease, visibility 0.3s ease, margin 0.3s ease;
    transition: opacity 0.3s ease, visibility 0.3s ease, margin 0.3s ease;
    position: absolute;
    right: 0;
}

body.single .item .text-box ul li a span
{
    max-width: 100%;
}

body.single .item .text-box ul li a:hover img
{
    margin-left: 18px;
    opacity: 1;
    visibility: visible;
}

body.single .bg-elem3
{
    background: rgba(0, 255, 200, 0.7);
    mix-blend-mode: screen;
}

body.single .bg-elem2
{
    background: rgba(0, 255, 200, 0.8);
    mix-blend-mode: lighten;
}

.exhibition-nav-box
{
    left: unset;
}

.wpb_video_widget.vc_video-aspect-ratio-43 .wpb_video_wrapper
{
    padding-top: 56.25%;
}

.title-box h2
{
    color: #fff;
}

.event-content > .wpb-content-wrapper > .vc_row:first-of-type {
    padding-top: 0 !important;
}

.event-meta {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: baseline;
}

.event-meta > * {
    display: inline-block;
    padding: 4px 10px;
    clear: both;
}

.event-meta > .event-date-time {
    background: #929292;
    color: #fff;
}

.event-meta > .event-date-time {
    background: #929292;
    color: #fff;
}

.event-meta > .event-type {
    text-transform: uppercase;
    background: #ededed;
    color: #000;
}

.event-meta > .event-type.offline {
    background: var(--blue);
    color: #fff;
}

.event-meta > .event-status.event-status-completed {
    background-color: #b11;
    color: #fff;
}

.event-meta > .event-location {
    padding-left: 0;
    padding-right: 0;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(45%, 1fr));
    gap: 20px;
}

.masonry-grid > .masonry-item {
    position: relative;
}

.masonry-grid > .masonry-item > .news-card {
    display: flex;
    text-decoration: none !important;
}

.masonry-grid > .masonry-item > .news-card > .news-card-img {
    flex: 3;
    margin-right: 20px;

    position: relative;
}

.masonry-grid > .masonry-item > .news-card > .news-card-text {
    flex: 3;
}

.news-card h3 {
    font-size: var(--md1);
    line-height: 1.2em;
    color: #393939;
    margin: 0;

    border-bottom: 1px solid #000;

    margin-bottom: 12px;
    padding-bottom: 12px;
}

.news-card p {
    font-size: var(--xs1);
    line-height: 1.7em;
    color: #282828;
}

.news-card p.read-more {
    display: inline-block;

    color: #393939;
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 1px solid var(--blue);
    transition: color .3s ease, border .3s ease;
}

.news-card:hover p.read-more {
    color: var(--blue);
    border-bottom-color: transparent;
}

.masonry-grid .masonry-item:nth-child(2),
.masonry-grid .masonry-item:nth-child(4),
.masonry-grid .masonry-item:nth-child(6),
.masonry-grid .masonry-item:nth-child(8) {
    margin-top: 115px;
}

.masonry-grid .masonry-item:nth-child(2) img,
.masonry-grid .masonry-item:nth-child(4) img,
.masonry-grid .masonry-item:nth-child(6) img,
.masonry-grid .masonry-item:nth-child(8) img {
    aspect-ratio: 36 / 26;
    object-fit: cover;
    object-position: center;
}

.highlight-box {
    padding: 42px 40px 32px 37px;
    margin-bottom: 35px;
}

ol {
    list-style: none;
    counter-reset: list1;
}

ol > li {
    position: relative;
}

ol > li:before {
    position: absolute;
    left: -20px;
    top: -3px;
    font-weight: 600;
    font-size: 17px;
    line-height: 1.7em;
    letter-spacing: 0.01em;
    color: var(--blue);
    counter-increment: list1;
    content: counter(list1) ".";
}

.wpb_text_column ul {
    list-style: none;
    padding-left: 0;
}

.wpb_text_column ul > li {
    position: relative;
    background: url("../img/list-pin.svg") no-repeat 0 11px/8px auto;

    padding-left: 20px;
}

.pagination {
    padding: 25px 0;
    border-top: 1px solid #393939;
    border-bottom: 1px solid #393939;

    display: flex;
    align-items: center;
    gap: 10px;

    margin-top: 35px;
}

.pagination > * {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination > a {
    color: #000;
    text-decoration: none !important;
}

.pagination > span,
.pagination > a:hover {
    color: var(--blue);
}

.pagination > a:hover svg path {
    fill: var(--blue);
}

.lesson-units-mode.events-inner {
    margin-bottom: 20px;
}

.slick-arrow.slick-hidden,
.slick-arrow.slick-disabled {
    display: block !important;
    opacity: 0.6;

    pointer-events: none;
}

.custom-gallery {
    /* important: no grid or columns! */
}

.custom-gallery a {
    position: relative;
    width: calc(50% - 8px); /* 2 columns with 16px gap */
    margin-bottom: 16px;
    display: block;
}

.custom-gallery a:after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: url(../img/icons/zoom-in.svg) no-repeat 50% 50% / 40px auto, rgba(0, 255, 200, 0.8);
    opacity: 0;
    transition: opacity .3s ease;
}

.custom-gallery a:hover:after {
    opacity: 1;
}

.custom-gallery img {
    width: 100%;
    height: auto;
    display: block;
}

.exhibition-nav-box ul {
    list-style: none;
    padding-left: 0;
}

/* TABLE */
.wb-table-container {
    margin-bottom: 35px;

    overflow-x: auto;
    width: 100%;
}

table {
    position: relative;

    border: 1px solid #ececec;

    margin: 0 auto;
    table-layout: fixed;
    border-collapse: collapse;
    border-spacing: 0;

    min-width: 100%;
}

table th {
    background: #fbfbfb;
}

table th,
table td {
    vertical-align: top;
    text-align: left;
    padding: 8px 9px;
    letter-spacing: 0.000005em;
}

table th {
    padding: 29px 20px 21px 20px;
    line-height: 1em !important;
}
table th:first-child {
    padding: 29px 32px 24px 20px;
}

table td {
    padding: 18px 32px 19px 20px;
}

table thead {
    border-bottom: 1px solid #000;
}

table th {
    font-weight: 700;
    font-size: 17px;
    line-height: 1.7em;
    letter-spacing: 0.01em;
    color: #282828;
    border: 1px solid #ececec;
}

table td {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.2em;
    letter-spacing: 0.01em;
    color: #282828;
    border: 1px solid #ececec;
}

table th:first-child,
table td:first-child{
    border-left: 1px solid #ececec;
}

table th:last-child,
table td:last-child{
    border-right: 1px solid #ececec;
}
table tr:last-child td {
    border-bottom: 1px solid #ececec;
}

table td > * {
    margin: 10px 0;
}

table td > *:first-child {
    margin-top: 0 !important;
}

table td > *:last-child {
    margin-bottom: 0 !important;
}

/* Colored card */
.colored-card {
    margin-bottom: 35px;

    padding: 90px 10px;
    text-align: center;

    background: var(--blue);
}

.colored-card h3 {
    font-weight: 700;
    font-size: 20px;
    line-height: 170%;
    letter-spacing: 0.01em;

    color: var(--black);
}

.colored-card.bg-color-red {
    background: #b11;
}

.colored-card.bg-color-red h3 {
    color: #fff;
}

/* BLOCKQUOTE */
blockquote {
    font-weight: 600;
    font-size: 20px;
    line-height: 1.5em;
    letter-spacing: 0.01em;
    color: var(--black);
    padding-left: 42px;
    border-left: 4px solid var(--blue);

    margin-bottom: 35px;
}

.wbcaption {
    margin-bottom: 35px;

    font-size: var(--xs);
    color: #393939;
}

.wpb_single_image + .wbcaption {
    margin-top: -20px;
}

.related-lessons {
    margin-top: 100px;
}

.events-card a > img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.event-thumbnail {
	margin-bottom: 35px;
}

select {
	background-color: transparent;
}

.footer-area ul {
    padding: 0;
}

.search_form input {
    padding: 10px 20px;
    border: 1px solid var(--black);
}

.search_form input:active,
.search_form input:focus {
    border: 1px solid var(--blue);
}

.maincontent article {
    width: 80%;
    margin: 30px 0 50px 0;
}

.wb-404-page {
    max-width: 680px;
    margin: 0 auto 50px auto;

    text-align: center;
}

.wb-404-page h1 {
    font-weight: 400;
    font-size: 354px;
    line-height: 1em;
    color: #393939;
}

.wb-404-page h3 {
    font-weight: 400;
}

.hidden-on-desktop {
    display: none !important;
}

@media (max-width: 991px) {
    .maincontent article {
        width: 100%;
    }

    .hidden-on-desktop {
        display: block !important;
    }

    .hidden-on-mobile {
        display: none !important;
    }

    .custom-gallery a {
        width: 100%;
    }

    .footer-area .footer-inner,
    .footer-area .footer-inner .footer-left {
        flex-direction: column;

        gap: 20px;
    }

    .footer-area .footer-bottom {
        -webkit-box-align: flex-start;
        -ms-flex-align: flex-start;
        align-items: flex-start;
    }

    .events-inner .arrow-box {
        display: none;
    }

    .events-card a > img,
    .events-card .events-date {
        width: 100%;
    }

    .play-btn-box {
        justify-content: flex-start;
    }

    .parallax-container .about-breadcrumbs .row {
        margin-left: 0;
        margin-right: 0;
    }

    .parallax-container .about-breadcrumbs .col-12 {
        padding-left: 0;
        padding-right: 0;
    }

    body.admin-bar .open-exhibition-menu {
        top: 109.4px;
    }

    body.admin-bar .panel-header {
        top: 32px;
    }

    body.admin-bar .lesson-navigation {
        top: 177px;
    }
}

@media screen and (max-width: 782px) {
    body.admin-bar .open-exhibition-menu {
        top: 123.4px;
    }

    body.admin-bar .panel-header {
        top: 46px;
    }

    body.admin-bar .lesson-navigation {
        top: 191px;
    }
}