/* ==========================================================================
 * Askómedas Legacy Bridge 1.1.0 — deterministic mobile shell.
 * Everything below is scoped to the old classic-menu responsive breakpoint;
 * the validated desktop header and layout are left untouched.
 * ========================================================================== */
.askomedas-mobile-header {
    display: none;
}

@media (max-width: 1143px) {
    html {
        --askomedas-mobile-header-height: 64px;
    }

    html,
    body {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: hidden;
    }

    body.askomedas-mobile-nav-open,
    html.askomedas-mobile-nav-open {
        overflow: hidden !important;
        overscroll-behavior: none;
    }

    /* Retire only the fragile legacy mobile representation. */
    body .classic-menu {
        display: none !important;
    }

    .askomedas-mobile-header {
        position: fixed;
        z-index: 99990;
        top: 0;
        right: 0;
        left: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 64px;
        padding: 0 16px;
        box-sizing: border-box;
        background: rgba(255, 255, 255, .98);
        border-bottom: 1px solid rgba(0, 0, 0, .08);
        box-shadow: 0 1px 8px rgba(0, 0, 0, .08);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }

    .askomedas-mobile-logo {
        display: flex;
        align-items: center;
        width: min(142px, 48vw);
        height: 48px;
    }

    .askomedas-mobile-logo img {
        display: block;
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: 38px;
        filter: brightness(0) saturate(100%);
    }

    .askomedas-mobile-toggle {
        position: relative;
        z-index: 2;
        display: grid;
        place-content: center;
        gap: 5px;
        width: 46px;
        height: 46px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #111;
        cursor: pointer;
        -webkit-appearance: none;
        appearance: none;
    }

    .askomedas-mobile-toggle span {
        display: block;
        width: 25px;
        height: 2px;
        background: currentColor;
        transition: transform .22s ease, opacity .18s ease;
        transform-origin: center;
    }

    .askomedas-mobile-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .askomedas-mobile-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }
    .askomedas-mobile-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .askomedas-mobile-navigation {
        position: fixed;
        z-index: 1;
        top: 64px;
        right: 0;
        bottom: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow-y: auto;
        padding: 30px 24px max(30px, env(safe-area-inset-bottom));
        box-sizing: border-box;
        background: rgba(17, 15, 16, .985);
        color: #fff;
        opacity: 0;
        visibility: hidden;
        transform: translate3d(0, -12px, 0);
        transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
        -webkit-overflow-scrolling: touch;
    }

    .askomedas-mobile-header.is-open .askomedas-mobile-navigation {
        opacity: 1;
        visibility: visible;
        transform: translate3d(0, 0, 0);
    }

    .askomedas-mobile-menu,
    .askomedas-mobile-menu ul,
    .askomedas-mobile-social {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .askomedas-mobile-menu {
        width: min(100%, 520px);
        margin: auto;
        text-align: center;
    }

    .askomedas-mobile-menu > li {
        border-bottom: 1px solid rgba(255, 255, 255, .14);
    }

    .askomedas-mobile-menu a {
        display: block;
        padding: 15px 10px;
        color: #fff !important;
        font-family: "Josefin Sans", "Open Sans", sans-serif;
        font-size: clamp(18px, 5vw, 24px);
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: 4px;
        text-transform: uppercase;
        overflow-wrap: anywhere;
    }

    .askomedas-mobile-menu .sub-menu {
        padding: 0 0 12px;
    }

    .askomedas-mobile-menu .sub-menu a {
        padding: 9px 10px;
        font-size: 14px;
        letter-spacing: 2px;
        opacity: .78;
    }

    .askomedas-mobile-social {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
        width: min(100%, 520px);
        margin: 28px auto 0;
    }

    .askomedas-mobile-social a {
        display: grid;
        place-items: center;
        width: 42px;
        height: 42px;
        border: 1px solid rgba(255, 255, 255, .3);
        border-radius: 50%;
        color: #fff !important;
        font-size: 18px;
    }

    body.admin-bar .askomedas-mobile-header {
        top: 32px;
    }
    body.admin-bar .askomedas-mobile-navigation {
        top: 96px;
    }

    #pusher-wrap {
        width: 100%;
        max-width: 100%;
        padding-top: 64px !important;
        box-sizing: border-box;
    }

    #pusher,
    .pjax-container,
    #wrapper,
    #wrapper .container,
    #wrapper .container > .boxed,
    #wrapper .wpb_row,
    #wrapper .wpb_row.in_container,
    #wrapper .wpb_row .wpb_row {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    #wrapper {
        padding-top: 0 !important;
        overflow: clip;
    }

    img,
    video,
    canvas {
        max-width: 100%;
    }

    iframe,
    embed,
    object {
        max-width: 100%;
    }
}

@media (max-width: 782px) {
    body.admin-bar .askomedas-mobile-header {
        top: 46px;
    }
    body.admin-bar .askomedas-mobile-navigation {
        top: 110px;
    }
}

@media (max-width: 767px) {
    #wrapper,
    #wrapper .container {
        min-height: 0;
    }

    #wrapper .container,
    .single .container,
    .blog .container,
    .page-template .container {
        padding-right: 12px;
        padding-left: 12px;
    }

    #wrapper .container > .boxed {
        margin-right: auto;
        margin-left: auto;
    }

    .menu-type-classic-menu .page-title,
    .error404 .menu-type-classic-menu h1 {
        margin-top: 28px;
    }

    .page-title {
        box-sizing: border-box;
        max-width: 100%;
        padding-right: 12px;
        padding-left: 12px;
    }

    .page-title h1,
    h1.page-title,
    .error404 h1 {
        max-width: 100%;
        font-size: clamp(22px, 7vw, 34px) !important;
        line-height: 1.15 !important;
        letter-spacing: clamp(2px, 1.2vw, 5px) !important;
        overflow-wrap: anywhere;
    }

    span.heading-t {
        margin-top: 28px;
    }

    span.heading-b {
        margin-bottom: 36px;
    }

    .entry,
    .entry-content,
    .content-box,
    .content__wrapper,
    .content__main,
    #content,
    #sidebar {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .entry img,
    .content-box img,
    .event-wrapper img {
        height: auto;
    }

    .event-wrapper {
        margin-top: 28px;
    }

    .event-wrapper .lefthalf,
    .event-wrapper .righthalf {
        float: none;
        width: 100%;
        max-width: 100%;
        margin-right: 0;
    }

    .event-wrapper table {
        width: 100%;
        margin-left: 0;
        table-layout: fixed;
    }

    .event-wrapper td {
        overflow-wrap: anywhere;
    }

    .event-wrapper .event-icon {
        width: 38px;
    }

    .event-boldtitle {
        font-size: 24px;
        line-height: 1.15;
        overflow-wrap: anywhere;
    }

    .album-header {
        height: min(72vh, 620px);
        min-height: 430px;
    }

    .albumCover {
        width: min(78vw, 430px) !important;
        height: auto !important;
        max-height: none !important;
    }

    .albumCover img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    .single-album .single-post.featured {
        margin-top: -42px;
        margin-bottom: 32px;
        padding: 58px 12px 0;
    }

    .single-album .single-post.featured h2 {
        font-size: clamp(22px, 8vw, 34px) !important;
        line-height: 1.1 !important;
        overflow-wrap: anywhere;
    }

    .single-album .meta-artist_of_album {
        margin-top: -28px;
    }

    .single-album .content-box .blockquote-block,
    .info-section .blockquote-block {
        padding-right: 12px;
        padding-left: 12px;
    }

    .single-album .buttons-block,
    .single-album .ctnButton-block,
    .single-album .store-list {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .contact-box {
        padding: 24px 18px 14px;
        margin-right: 0;
        overflow-wrap: anywhere;
    }

    .wpcf7,
    .wpcf7-form,
    .wpcf7-form p,
    .wpcf7-form label {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .wpcf7-form input[type="text"],
    .wpcf7-form input[type="email"],
    .wpcf7-form input[type="url"],
    .wpcf7-form input[type="tel"],
    .wpcf7-form textarea,
    .wpcf7-form select {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .askomedas-privacy-note {
        font-size: 13px;
        line-height: 1.55;
        overflow-wrap: anywhere;
    }

    .footer-wrapper,
    #footer,
    #footer .boxed {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (prefers-reduced-motion: reduce) {
    .askomedas-mobile-navigation,
    .askomedas-mobile-toggle span {
        transition: none !important;
    }
}
