/* Mobile layout overrides for the OLSC theme. */
@media (width < 992px) {
    #tg-header .tg-topbar,
    #tg-nav #tg-navigation {
        display: none !important;
    }

    #tg-nav .navbar-header {
        display: flex;
        position: relative;
        align-items: center;
        justify-content: center;
        float: none;
        width: 100%;
        height: 110px;
        padding: 10px 64px;
    }

    #tg-nav .navbar-header::before,
    #tg-nav .navbar-header::after {
        display: none;
    }

    #tg-nav .navbar-header .tg-logo {
        float: none;
        position: static;
        width: 85px;
        height: auto;
        margin: 0;
        transform: none;
    }

    #tg-nav .tg-logo img {
        width: 100%;
        height: auto;
    }

    #tg-nav .navbar-header > .navbar-toggle {
        display: block !important;
        position: absolute !important;
        inset: 50% auto auto 12px !important;
        transform: translateY(-50%);
        color: #fff;
        background: #302e39;
        font-size: 22px;
        min-width: 44px;
        min-height: 44px;
        margin: 0;
    }

    body.mobile-menu-active {
        overflow: hidden;
    }

    .olsc-hero {
        padding: 125px 16px 32px;
        min-height: 280px;
    }

    .olsc-hero-content {
        min-width: 0;
    }

    .olsc-hero .olsc-hero-content h1,
    .olsc-hero .olsc-hero-content h2 {
        float: none;
        width: auto;
        white-space: normal;
        word-break: normal;
        overflow-wrap: normal;
        letter-spacing: normal;
    }

    .olsc-hero .olsc-hero-content h1 {
        font-size: clamp(30px, 8.5vw, 76px);
    }

    .olsc-hero h1 span {
        display: inline;
        white-space: nowrap;
    }

    #tg-main .tg-main-section {
        padding-top: 32px;
        padding-bottom: 32px;
    }

    #tg-main .tg-section-name {
        position: static;
        float: none;
        width: auto;
        height: auto;
        margin: 0 0 16px;
        padding: 0;
        background: transparent;
        transform: none;
        writing-mode: horizontal-tb;
    }

    #tg-main .row > .tg-section-name {
        margin-inline: 15px;
    }

    #tg-main .tg-section-name::after {
        display: none;
    }

    #tg-main .tg-section-name h2 {
        width: auto;
        float: none;
        margin: 0;
        line-height: 1.3;
        transform: none;
    }

    #tg-main .col-xs-11.pull-right {
        float: none !important;
        width: 100%;
    }

    #tg-main .tg-description {
        overflow-wrap: anywhere;
    }

    #tg-main .tg-description img {
        max-width: 100%;
        height: auto;
    }

    #tg-main .tg-description iframe {
        max-width: 100%;
    }

    #tg-main .tg-counters {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    #tg-main .tg-counters .tg-counter {
        flex: 1 0 80px;
        width: auto;
        height: auto;
        margin: 0;
        padding: 12px 4px;
    }
}

@media (max-width: 767px) {
    .calendar-wrapper .calendar-table {
        display: none;
    }

    .calendar-wrapper .calendar-mobile {
        display: block;
    }

    .calendar-wrapper .calendar-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 8px;
    }

    .newslettera-card .namea-row {
        grid-template-columns: minmax(0, 1fr);
    }

    #tg-main .membership-payment-form input {
        display: block;
        width: 100%;
        max-width: 100%;
        min-height: 44px;
        margin-bottom: 10px;
        font-size: 16px;
    }
}

@media (min-width: 992px) {
    #tg-nav .navbar-header > .navbar-toggle {
        display: none !important;
    }
}


.olsc-mobile-drawer {
    display: none;
}

@media (width < 992px) {
    .olsc-mobile-drawer:not([hidden]) {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 100000;
        box-sizing: border-box;
        padding: 0 16px 24px;
        overflow: auto;
        overscroll-behavior: contain;
        color: #fff;
        background: #302e39;
    }

    .olsc-mobile-drawer .mobile-menu-header {
        position: sticky;
        top: 0;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 0;
        border-bottom: 1px solid #55515b;
        background: #302e39;
        color: #ffcc2f;
        font: 20px 'Oswald', sans-serif;
    }

    .olsc-mobile-drawer .mobile-menu-close {
        min-width: 44px;
        min-height: 44px;
        border: 0;
        background: transparent;
        color: #fff;
        font-size: 26px;
    }

    .olsc-mobile-drawer .tg-colhalf,
    .olsc-mobile-drawer .tg-colhalf + .tg-colhalf {
        float: none;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .olsc-mobile-drawer .tg-colhalf::after,
    .olsc-mobile-drawer li::before,
    .olsc-mobile-drawer li::after {
        display: none;
    }

    .olsc-mobile-drawer ul,
    .olsc-mobile-drawer li {
        float: none;
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .olsc-mobile-drawer li > a,
    .olsc-mobile-drawer .mobile-submenu-toggle {
        display: block;
        position: relative;
        width: 100%;
        box-sizing: border-box;
        min-height: 48px;
        padding: 12px 36px 12px 12px;
        border: 0;
        border-bottom: 1px solid #55515b;
        background: transparent;
        color: #fff;
        font: 18px/24px 'Oswald', sans-serif;
        text-align: left;
        text-decoration: none;
    }

    .olsc-mobile-drawer .mobile-submenu-toggle::after {
        content: '';
        position: absolute;
        top: 18px;
        right: 16px;
        width: 8px;
        height: 8px;
        border: solid #ffcc2f;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }

    .olsc-mobile-drawer .mobile-submenu[open] > .mobile-submenu-toggle::after {
        top: 22px;
        transform: rotate(225deg);
    }

    .olsc-mobile-drawer .mobile-submenu-toggle {
        cursor: pointer;
        list-style: none;
    }

    .olsc-mobile-drawer .mobile-submenu-toggle::-webkit-details-marker {
        display: none;
    }

    .olsc-mobile-drawer .mobile-submenu-links {
        position: static;
        background: #24232b;
    }

    .olsc-mobile-drawer .mobile-submenu-links a {
        padding-left: 24px;
        font: 15px/24px 'Open Sans', sans-serif;
    }

    .olsc-mobile-drawer a:focus-visible,
    .olsc-mobile-drawer button:focus-visible,
    .olsc-mobile-drawer summary:focus-visible,
    #mobile-menu-open:focus-visible {
        outline: 2px solid #ffcc2f;
        outline-offset: -3px;
    }
}
