@media screen and (max-width: 500px) {
    .navbar_right {
        display: none;
    }

    .navigationbar {
        display: none !important;
    }

    .navbar {
        display: none !important;
    }

    .hamburger_overlay {
        position: fixed;
        top: 0rem; /* Add space from the top */
        left: 1rem; /* Add space from the left */
        z-index: 1000; /* Ensure it's on top of everything */
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 0.5rem;
        background: transparent;
        cursor: pointer;
    }

    .hamburger {
        display: block;
        font-size: 2rem;
        cursor: pointer;
        background: transparent !important;
        border: none;
        color: #f6f0e2;
        padding: 0.5rem 1rem;
    }

    .closebtn {
        position: absolute;
        top: 1vh; /* Add space from the top */
        left: 1rem;
        font-size: 2rem;
        text-decoration: none;
        color: var(--contents-contentPrimary, #5c492d);
        z-index: 1005;
        padding: 0.5rem 1rem;
    }

    .overlay_text_main {
        position: absolute;
        top: 40vh;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        width: 100%;
        z-index: 10;
    }

    .overlay_text_main_slider {
        position: absolute;
        top: 80h;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        width: 100%;
        z-index: 10;
    }

    .overlay_circle-container {
        position: absolute;
        top: 170%;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 20px;
        justify-content: center;
    }

    .circle {
        width: 1rem;
        height: 1rem;
        border-radius: 50%;
        background-color: #f8f7f2; /* light / off-white */
        transition: background-color 0.3s;
    }

    .circle.active {
        background-color: #a47d4d; /* brown when active */
    }

    .main_title {
        font-size: clamp(1.5rem, 7vw, 5em);
    }

    .main_logo {
        width: 90%;
        height: auto;
        align-items: center;
    }

    .main_button {
        width: 70%;
        height: max-content;
        flex-shrink: 0;
        border-radius: 100px;
        background: var(--secondary, #f6f0e2);
        box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
        padding: 1% 0%;
        margin: 15% 0 0;
        display: flex; /* Use flexbox to center */
        justify-content: center; /* Center horizontally */
        align-items: center; /* Center vertically */
    }

    .main_button a {
        font-size: clamp(1.5rem, 4vw, 3rem);
    }

    .logo {
        position: fixed;
        top: 1rem;
        left: 50%;
        transform: translateX(-50%);
        height: 40px; /* or however tall you want */
        z-index: 1000;
    }

    .main {
        margin: 0;
        padding: 0;
        position: relative !important;
        top: 0;
    }

    .main_flavour {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
    }

    .main_grid {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 0;
        width: 100%;
        height: 100vh;
        position: relative;
        top: 0;
        left: 0;
        z-index: 1;
    }

    .mobile-sidebar {
        height: 100vh;
        width: 0;
        position: fixed;
        z-index: 1002;
        top: 0;
        left: 0;
        background-color: var(--secondary, #f6f0e2);
        overflow-x: hidden;
        transition: 0.3s ease;
        font-family: "Crimson Text", serif;

        /* Center contents vertically & horizontally */
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* Align links left inside the sidebar */
        justify-content: center; /* Vertical center */
        padding-left: 0rem; /* Space from left edge */
        padding-top: 0; /* No extra top padding */
    }

    .mobile-sidebar a {
        display: block;
        padding: 1rem 2rem;
        text-decoration: none;
        font-size: 1.5rem;
        color: var(--contents-contentPrimary, #5c492d);
        transition: 0.2s;
    }

    .mobile-sidebar a:hover {
        font-weight: bold;
    }

    .swiper-wrapper {
        display: flex;
    }

    .swiper-slide {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .swiper,
    .swiper-wrapper,
    .swiper-slide {
        height: 100%;
    }

    .footer {
        display: grid;
        grid-template-columns: 100%;
        grid-template-rows: auto auto auto; /* Balanced layout */
        align-items: self-start;
        width: 100%;
        margin: 0 auto;
        padding: 5%;
        /* column-gap: 2%; */
        color: #6e6045;
        font-weight: 100;
        font-style: normal;
        border-top: 1px solid #c6c0b3;
        box-sizing: border-box;
        height: max-content;
    }

    .footer_img {
        width: 13%;
        height: auto;
        justify-self: end; /* Aligns it to the right within the grid cell */
    }
}

@media screen and (min-width: 501px) {
    .hamburger {
        display: none;
    }

    .hamburger_overlay {
        display: none;
    }

    .mobile-sidebar {
        display: none;
        width: 0;
    }

    .navigationbar {
        display: block;
    }

    .navbar_right {
        display: flex;
    }

    .swiper-wrapper {
        display: contents; /* disable Swiper layout visually */
    }

    .swiper-slide {
        display: block;
    }

    .main_grid {
        display: flex;
        justify-content: center;
        align-items: flex-end;
        width: 100%;
    }

    .main_flavour {
        display: flex;
        justify-content: center;
        align-items: center;
        flex: 1;
    }
}
