.theatre_page_header {
    position: relative;
    z-index: 99;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    box-shadow: 0 1px 3px #aaa;
}

.theatre_page__article {
    max-width: 100%;
}

.theatre_page__article img {
    width: 300px;
    height: auto;
    display: block;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.theatre_page__article a {
    text-decoration: none;
    font-weight: 800;
    transition: color 0.2s ease-in-out;
}

.theatre_page__article a:hover {
    color: #7e0926;
    outline: none;
    text-decoration: none;
}

.wp-block-button__link {
    background-color: #7e0926;
}

.theatre_page_fixed_background {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 400px;
    z-index: 0;
}

.theatre_page_fixed_background__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150%;
    object-fit: cover;
    transform: translateY(0);
    will-change: transform;
    z-index: 1;
    pointer-events: none;
}

.theatre_page_fixed_background__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.theatre_page_header .theatre_nav {
    display: flex;
    padding: 0 20px 0 0;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.theatre_page_header .theatre_nav__toggle {
    background-color: #7e0926;
    color: #fff;
    box-shadow: none;
    align-self: stretch;
}

.theatre_nav__white_logo {
    display: none;
}

.theatre_page_header .theatre_nav__logo {
    padding: 10px 0;
}

.theatre_page_main {
    padding: 50px 0;
    line-height: 1.6;
    background-color: #fff;
    color: #111;
}

.theatre_page__repertuar__content,
.theatre_page__repertuar__image {
    width: 100%;
}

.theatre_page__title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.theatre_page__subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.theatre_page__description,
.theatre_page__info {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.theatre_page__info_heading {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.theatre_flex_between_start_row {
    gap: 2rem;
}

.theatre_page__image_wrapper {
    max-width: 100%;
    margin: 0;
}

.theatre_page__image {
    width: 100%;
    height: auto;
}

.theatre_page__calendar {
    margin-top: 4rem;
}

.theatre_page__calendar__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.theatre_page__calendar__desktop,
.theatre_page__calendar__mobile {
    transition: all 0.3s ease;
}

a:focus-visible,
button:focus-visible,
.theatre_page__calendar__desktop:focus-visible,
.theatre_page__calendar__mobile:focus-visible {
    outline: 3px solid #ffcc00;
    outline-offset: 2px;
}

.theatre_page__divider {
    margin: 4rem auto;
    height: 1px;
    background-color: #ccc;
    border: none;
    width: 100%;
}

.theatre_page__calendar__mobile {
    display: block;
}

.theatre_page__calendar__desktop {
    display: none;
}

.theatre_sub_pages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.theatre_sub_pages__item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.theatre_sub_pages__item:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.theatre_sub_pages__item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    z-index: 1;
    pointer-events: none;
}

.theatre_sub_pages__title {
    position: relative;
    z-index: 2;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 0 12px;
    color: #fff;
}s

.theatre_objects_page__main .left,
.theatre_objects_page__main .right {
    width: 100%;
}

.theatre-tab {
    background: #fff;
    color: #7e0926;
    border: 1px solid #7e0926;
    padding: 10px 16px;
    font-weight: bold;
    margin-right: 10px;
    cursor: pointer;
}

.theatre-tab--active {
    background: #7e0926;
    color: #fff;
}

@media only screen and (max-width: 1700px) {
    .theatre_page__subtitle {
        font-size: 1.3rem;
    }
}

@media (max-width: 1280px) {
    .theatre_sub_pages {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .theatre_page__calendar__mobile {
        display: none;
    }
    .theatre_page__calendar__desktop {
        display: block;
    }

}

@media only screen and (max-width: 991px) {
    .theatre_page_header .theatre_nav__logo {
        max-width: 150px;
    }

    .theatre_flex_between_start_row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .theatre_page_main {
        padding: 0 0 1rem;
    }
}


@media (max-width: 768px) {
    .theatre_sub_pages {
        grid-template-columns: 1fr;
    }


    .theatre_page__title {
        font-size: 1.75rem;
    }

    .theatre_page__subtitle {
        font-size: 1.25rem;
    }

    .theatre_page__calendar__title {
        font-size: 1.5rem;
    }
}

