﻿@media screen and (max-width: 975px) {
    /* Content window - fill available width on smaller screens */
    .content-window-wrap {
        position: absolute;
        top: 50px;
        left: 3px;
        right: 3px;
        bottom: 0;
        opacity: 1.0;

        /* Modern glassmorphism */
        background: var(--color-neutral-0);
        backdrop-filter: var(--glass-blur-lg);
        -webkit-backdrop-filter: var(--glass-blur-lg);
        border: 1px solid var(--glass-border-strong);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-xl);

        transform: translate(0, 0);
        max-width: none;
        min-width: 0;
    }
    .content-liner {
        top: 45px;
        left: 1px;
        right: 1px;
        bottom: 70px;
    }
    .thumb-menu-wrapper{
        height:70px;
    }
    /*    .site-logo {
        position: absolute;
        background-repeat: no-repeat;
        background-size: contain;
        opacity: 1.0;
        top: 30px;
        left: 50%;
        width: 289px;
        height: 205px;
        transform: translate(-144px, -102px);
        background-image: url('images/logoSimplified2.png');
        animation-name: none;
        animation-fill-mode: unset;
    }*/
    /* Establishment profile - stack vertically with relative flow */
    .establishment-profile-image {
        position: relative;
        width: 100%;
        height: 140px;
        top: auto;
        right: auto;
        left: auto;
        border-radius: 8px;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
    }

    .establishment-profile-blurb {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        width: 100%;
        height: auto;
        min-height: unset;
        overflow: hidden;
        padding: 8px;
        background-color: var(--glass-bg-subtle);
        border-radius: 8px;
    }

    /* Remove <br> dead space and reset the top:-40px inline style offsets */
    .establishment-profile-blurb br {
        display: none;
    }

    .establishment-profile-blurb h2 {
        margin-bottom: 4px;
    }

    .establishment-profile-blurb span {
        top: 0px !important;
    }

    /* Social and menu sections flow below profile naturally */
    .social-container {
        position: relative;
        top: auto;
        bottom: auto;
        width: 100%;
    }

    .menu-crumb-wrapper {
        position: relative;
        top: auto;
        left: 5px;
        width: auto;
        min-width: 250px;
        min-height: 25px;
        margin-bottom: 5px;
    }

    .establishment-profile-menu-wrapper {
        position: relative;
        top: auto;
        left: 0;
        right: 0;
        bottom: auto;
    }

    .establishment-profile-tabs {
        position: relative;
        top: 1%;
    }

    /* Admin profile */
    .admin-establishment-profile-image {
        position: absolute;
        height: 50%;
        width: 100%;
        top: 0;
        left: 0;
        border-radius: 8px;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: top;
    }

    .admin-establishment-profile-blurb {
        position: absolute;
        background-color: var(--glass-bg-subtle);
        border-radius: 8px;
        top: 50%;
        left: 20%;
        right: 5px;
        height: 400px;
        width: 450px;
        overflow: auto;
    }
    .admin-menu-label {
        position: absolute;
        left: 5px;
        font-size: 14px;
        bottom: 4px;
        height: 20px;
        width: 250px;
        font-size: 18px;
    }
    .admin-campaign-item{
        font-size: 12px;
    }
    .admin-campaign-button {
        max-width: 30px;
        min-width: 30px;
        font-size: 12px;
        top: 20px;
        text-align: center;
        padding: 0;
    }
    .admin-campaign-button-location {
        right: 5px;
    }
    .admin-campaign-button-people {
        right: 40px;
    }
    .admin-allowed {
        visibility: hidden;
    }

    /* Menu items */
    .menu-thumb-label {
        min-width: 93%;
        max-width: 93%;
    }
    .menu-article-head {
        font-size: 22px;
    }
    .tile-item {
        max-width: 75px;
        max-height: 75px;
        min-height: 75px;
        min-width: 75px;
    }
    .tile-item-preview-wrap {
        position: absolute;
        height: 550px;
        width: 80%;
        top: 25px;
        left: 10%;
        border-radius: 8px;
    }
    th,
    td {
        padding: 8px;
        color: #fff;
        font-size: 12px;
    }
    .mobile-offset-dialog {
        margin-top: 50px !important;
    }

        .mobile-offset-dialog .rz-dialog-wrapper {
            align-items: flex-start !important;
        }
}

@media screen and (max-width: 730px) {
    .admin-establishment-profile-image {
        height: 40%;
    }
    .admin-establishment-profile-blurb {
        top: 45%;
        width: 99%;
        left: 0;
    }
    .admin-campaign-item {
        font-size: 10px;
    }
    .post-response {
    }
    .menu-thumb-label-head {
        top: 15px;
        font-size: 28px;
    }
    .content-liner {
        top: 45px;
        left: 1px;
        right: 1px;
        bottom: 90px;
    }

    .thumb-menu-wrapper {
        height: 90px;
    }
    .label-50 {
        font-size: 30px;
        top: 19px;
    }
    .label-44 {
        font-size: 28px;
        top: 21px;
    }
    .label-32 {
        font-size: 26px;
        top: 22px;
    }
    .label-28 {
        font-size: 24px;
        top: 24px;
    }
}

@media screen and (max-width: 530px) {
    /* Admin profile section */
    .admin-establishment-profile-image {
        height: 250px;
    }
    .admin-establishment-profile-blurb {
        height: 250px;
    }
    .profile-container {
        width: 95%;
        transform: none;
        left: 10px;
    }

    /* Make profile form more compact on small screens */
    .profile-container table colgroup col:first-child {
        width: 60px !important;
    }

    .profile-container table td:first-child {
        font-size: var(--font-size-sm);
        padding: var(--space-1) !important;
    }

    .profile-container table td:last-child {
        padding: var(--space-1) !important;
    }
    .establishment-profile-tabs {
        position: relative;
        top: 1%;
    }

    /* Social posts - fit to narrow screens */
    .social-post {
        margin-left: 5px;
        margin-right: 5px;
    }
    .social-post-head {
        min-width: unset;
        max-width: 100%;
        width: 100%;
        left: 0;
        transform: none;
    }
    .social-post-inner {
        min-width: unset;
        max-width: 100%;
        width: 100%;
        left: 0;
        transform: none;
    }

    .menu-thumb-detail-head {
        font-size: 12px;
        text-align: center;
        padding: 5px;
    }
    .menu-thumb-detail-message {
        font-size: 12px;
        padding-top: 5px;
        text-align: center;
    }
    .share-pop {
        top: 25px;
        bottom: 10px;
    }
}
