@media screen and (min-width: 769px) and (max-width: 1080px) {
    .mainWrapper .bookContainer {
        max-width: 70vw; /* Kunci ukuran maksimal di layar besar agar tidak melar/gepeng */
        margin: 0 auto;
    }
}

@media screen and (max-width: 768px) {
    header {
        position: fixed;
        width: 100vw;
        backdrop-filter: blur(0);
        -webkit-backdrop-filter: blur(0); 
        background: url(/assets/menu/background/menuBackground.webp); /*UNTUK PAKAI BACKGROUND GAMBAR*/
        /*background-color: rgba(255, 255, 255, 0.8);  UNTUK PAKAI BACKGROUND WARNA */
    }
    
    .topbar .mainWrapper {
        min-height: 20px;
        padding: 10px 2%;
        justify-content: space-between;
        align-items: center;
    }

    .rightGroup {
        gap: 20px;
        margin-right: -3px;
    }
    
    #langSelect {
        margin: 0;
        margin-top: 0;
    }
    
    .hamburgerText {
        font-size: 0.9rem;
    }
    
    .navWrapper {
        padding: 0;
        margin-right: -10px;
        gap: 0;
    }
    
    .navLink {
        align-items: center;
    }
    
    .navLink a {
        font-size: 0.7rem;
    }
    
    .navLink a:hover {
        font-size: 0.7rem;
    }

    footer {
        position: fixed;
        width: 100vw;
        background: url(/assets/menu/background/menuBackground.webp); /*UNTUK PAKAI BACKGROUND GAMBAR*/
        /*background-color: rgba(255, 255, 255, 0.8);  UNTUK PAKAI BACKGROUND WARNA */
    }
    
    .footerBottom {
        font-size: 0.6rem;
        line-height: 0;
    }
    
    body {
        margin: 0;
        padding-top: 20px;
        background: url(/assets/menu/background/menuBackground.webp); /*UNTUK PAKAI BACKGROUND GAMBAR*/
        /*background-color: rgba(255, 255, 255, 0.8);  UNTUK PAKAI BACKGROUND WARNA */
        background-size: cover;
    }
    
    .mainWrapper {
        height: 90vh;
        max-width: 100vw;
        margin: 0;
        padding: 0;
        overflow: hidden;        
        background-color: transparent;
        background-size: cover;
        background-attachment: fixed;
    }
    
    .bookContainer {    
        width: 100%;
        max-width: 100%;
        height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }
    
    .pageContainer {
        height: 100%;
        width: 100%;
        border-radius: 0;
        box-shadow: none;
    }
   
    .sidebarTabs {
        position: sticky;
        margin-top: 2vh;
        margin-bottom: 4vh;
        width: 45px;
        height: 97%;
        background-color: #222222;
        gap: 0;
    }
    
    .tabLink {
        transform: translateX(-38px);
        border-radius: 0;
        box-shadow: none;
        min-height: fit-content;
        background: rgba(255, 255, 255, 0.055); 
        backdrop-filter: blur(5px);
        border-bottom: 1px solid rgba(77, 77, 77, 0.616);
    }
    
    .tabLink.active {
        background-color: #550303;
        transform: translateX(-43px);
        box-shadow: none;
        z-index: 3;
    }
    
    .tabLink:hover:not(.active) {
        transform: translateX(-38px);
        background-color: #8f0b0b;
    }
    
    .menuPageGrid {
        border-radius: 0;
    }
    
    .instructionContainer.coffeeMenu {
        flex-direction: column;
    }
    
    .instructionContainer.coffeeMenu span {
        visibility: hidden;
        position: relative;
    }
    
    .instructionContainer.coffeeMenu span::after {
        content: "Please select one of our BREW methods:";
        visibility: visible;
        position: absolute;
        left: 0;
        top: 0;
        color: #550303;
        font-size: clamp(12px, 1.5vh, 20px);
        font-weight: 550;
    }
    
    html:lang(id) .instructionContainer.coffeeMenu span::after {
        content: "Silahkan pilih salah satu metode seduh kami:";
    }    
    
    .instructionContainer.coffeeMenu .blinkingArrow {
        display: none;
    }
    
    .innerContentArea {
        margin: 0 auto;
        border-radius: 10px 0 0 10px;   
    }
    
    .innerSidebarCoffee {
        display: none;
    }
    
    .innerSidebarMobile.mobile-version {
        display: flex;
        flex-direction: row;
        gap: 20px;
        margin-top: 10px;
        margin-left: -25px;
        justify-content: center;
    }
    
    .mobile-version .subTabLink {
        flex: 1;
        width: 80px;
        height: fit-content;
        border-radius: 5px;
        writing-mode: horizontal-tb;
        background: #444;
        padding: 7px;
        transform: translateX(0);
    }
    
    .mobile-version .subTabLink a {
        color: #ccc;
        font-size: clamp(12px, 1.5vh, 20px);
        text-decoration: none;
    }
    
    .mobile-version .subTabLink:hover:not(.active-sub) {
        transform: scale(1.2);
    }

    /* ISI MENU */
    .coverLogo {
        max-width: 200px;
        margin-bottom: 10px;
    }
    
    .tabContent.active-page {
        padding: 0 5px 0 10px;
        gap: 10px;
        justify-content: center;
    }

    .brewIntroWrapper {
        max-width: 250px;
    }    
    
    #brewIntro.active-sub-page {
        width: 100%;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;
    }

    .menuTitle {        
        gap: 0;
        margin-bottom: 0;
    }

    #espresso.subPage,
    #manual.subPage,
    #menuNonCoffee.subPage {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .menuItem {
        flex-direction: row;
        justify-items: center;
        padding: 0 0 10px 0;
        width: 100%;
        background-color: transparent;
        border: 1px solid transparent;
        border-radius: 0;
    }
    
    .menuItem:hover {
        transform: none;
    }
    
    .menuItem:hover .menuImage img {
        transform: none;
    }

    .menuImage {
        display: flex;
        align-items: center;
        justify-items: center;
        margin-left: -25px !important; 
        margin-right: -8px !important;
        padding: 0;
        height: 75px;
        width: 40px;
        aspect-ratio: 1 / 3;
    }
    
    .menuImage img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        rotate: 0deg;
        position: relative;
        top: 0; 
        left: 0;
        transform: none;
    }
    
    .menuInfo {
        width: 100%;
        max-width: 100%;
        padding: 0 5px;
        box-sizing: border-box;
    }
    
    .menuInfo h3 {
        margin: 0;
        font-size: 0.9rem;
    }
    
    .menuInfo p {
        margin: 0;
        font-size: 0.8rem;
    }
    
    .subPage {
        padding: 0 8px;
        width: 100%;
        box-sizing: border-box;
    }

    #brewIntro .instructionContainer.coffeeMenu {
        padding-left: 24px;
        margin-bottom: 0;
        text-align: left;
    }
    
    #menuCoffee > .menuTitle .menuTitleInfo h1 {
        padding-left: 24px;
        margin-bottom: 0;
    }
    
    #menuCoffee > .menuTitle .menuTitleInfo {
        padding-left: 8px;
        margin-bottom: -20px;
    }
    
    #menuCoffee .instructionContainer {
        padding-left: 0;   
    }
    
    #menuCoffee .menuTitleInfo {
        padding-left: 0;
    }
    
    #menuNonCoffee .menuTitle {
        padding-left: 20px;
    }
    
    .iconText {
        line-height: 1.5;
        margin-left: 0;
    }
    
    .nonCoffeeContainer {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    
    #menuNonCoffeeContent {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }    
    
    #menuNonCoffeeContent .menuTitleInfo {
        margin-top: 0;
    }
    
    #menuNonCoffeeContent .menuTitleInfo hr.sectionDivider {
        margin-top: 0;
        margin-bottom: 0;
    }
    
    .controlGroup p {
        margin-top: 10px;
    }

    /* Memperkecil lebar total area dan merapatkan jarak antar baris */
    .sizeQtyRow {
        display: grid;
        grid-template-columns: 1fr auto; /* Menggunakan 1fr agar menyesuaikan lebar layar */
        width: 100%;
        max-width: 100% !important; 
        gap: 8px;
        margin-bottom: 2px;
    }

    /* Mengecilkan ukuran teks ukuran & harga */
    .sizeQtyRow .sizeLabel {
        font-size: 11px !important;
        text-align: left;
        overflow: hidden;
        text-overflow: clip;
        white-space: normal;
        width: 100%;
    }

    /* Pembungkus Qty di sebelah kanan */
    .sizeQtyRow .qtyWrapper {
        display: flex;
        align-items: center;
        gap: 4px;
        justify-self: end;
    }

    /* Mengecilkan teks "Qty:" */
    .sizeQtyRow .qtyLabel {
        font-size: 11px !important;
    }

    /* Mengecilkan kotak input angka Qty */
    .sizeQtyRow .qtyInput {
        width: 42px !important;
        min-width: 42px !important;
        height: 20px;
        font-size: 11px !important;
        text-align: center;
        padding: 1px;
    }

    .btnOrder {
        padding: 10px;
        border-radius: 5px;
        backdrop-filter: blur(5px);
    }

    .menuGalleryArea {
        display: none;
    }

    .galleryOverlay {
        position: fixed;
        inset: 0;
        background: rgba(255,255,255,0.2);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 9999;
    }
    
    .galleryOverlayContent .menuGalleryArea {
        display: flex !important;
        position: relative;
        left: auto;
        top: auto;
        rotate: 0deg;
        transform: none;
        width: 100%;
        height: auto;
        box-shadow: none;
    }
    
    .galleryOverlayContent .menuGallery {
        position: relative;
        width: 100%;
        height: auto;
    }
    
    .galleryOverlay.active {
        display: flex;
    }
    
    #galleryOverlay.active .menuGalleryArea {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .galleryOverlayContent {
        background: #f0f0f0;
        border-radius: 10px;
        padding: 5px;
        max-width: 80%;
        max-height: 90%;
        overflow-y: auto;
    }
    
    .closeOverlay {
        display: block;
        position: absolute;
        top: 0;
        right: 20px;
        font-size: 2rem;
        background: none;
        border: none;
        color: #333;
        cursor: pointer;
    }
    
    .polaroid {
        left: 7%;
        width: 200px;
        height: 280px;
    }

    /* OTHERS PAGE */
    #others h2 {
        left: -20px;
        top: 5px;
    }
    
    /* MISC PAGE */
    #miscellaneous.active-page {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
        height: 100%;
    }
    
    #miscellaneous h2 {
        left: 30px;
        top: 5px;
    }

    /* FEEDBACK FORM */
    #feedback {
        justify-content: center;
    }
    
    .feedbackLayout {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
        height: 100%;
    }
    
    .feedbackWrapper {
        margin: 0 auto;
    }
    
    .feedbackWrapper p,
    .feedbackWrapper label,
    .feedbackWrapper input,
    .feedbackWrapper textarea {
        font-size: clamp(12px, 1.5vh, 20px);
    }

    /* SEMUA FOTO */
    .brewIntroGallery {
        padding-left: 0;
    }
    .feedbackGallery {
        padding-left: 14px;
    }
    .othersGallery {
        padding-left: 30px;
    }

}