* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    font-family: sans-serif;
    background-color: #F2F1EE;
}

.burger_menu {
    /* Dimensions */
    width: 30px;
    height: 25px;

    /* Layout */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* This is key for spacing the bars */

    /* Reset default button styles */
    background: transparent;
    border: none;
    padding: 0;

    /* Make it obvious it's clickable */
    cursor: pointer;
}

.bar {
    display: block;
    width: 100%;
    height: 3px;
    /* Set bar thickness */
    background-color: #333;
    /* Set bar color */
    border-radius: 3px;

    /* Animate the transition */
    transition: all 0.3s ease-in-out;
}

/* The Active "X" State */
/* This CSS applies when the .burger_menu button ALSO has the .active class */

/* Rotate the top bar */
.burger_menu.active .bar:nth-child(1) {
    /* Move the bar down 11px (half the container height minus half the bar height) 
    then rotate it 45 degrees.
  */
    transform: translateY(11px) rotate(45deg);
}

/* Fade out the middle bar */
.burger_menu.active .bar:nth-child(2) {
    opacity: 0;
}

/* Rotate the bottom bar */
.burger_menu.active .bar:nth-child(3) {
    /* Move the bar up 11px then rotate it -45 degrees.
  */
    transform: translateY(-11px) rotate(-45deg);
}

.home_header {
    display: grid;
    height: 10vh;
    grid-template-columns: 1fr 2fr 7fr;
    align-items: center;
    justify-items: start;
    padding: 0px 5vh;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    grid-column: 1;
    height: 80%;
    width: auto;
    object-fit: contain;
}

.burger_menu {
    display: none;
}

.nav_menu {
    display: none;
}

@media (max-width: 768px) {
    .home_layout {
        display: flex;
        flex-direction: column;
    }

    .home_header {
        display: grid;
        height: 10vh;
        grid-template-columns: 3fr 5fr 3fr;
        align-items: center;
        justify-items: center;
        box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
    }

    .logo {
        grid-column: 1;
        width: 75%;
        height: auto;
        object-fit: contain;
    }

    .burger_menu {
        display: flex;
        grid-column: 3;
    }

    .nav_menu {
        display: none;
    }

    .home_content {
        display: grid;
        grid-template-rows: 3fr 1fr;
        height: 100%;
        width: 100%;
    }

    .slideshow_container {
        display: flex;
        grid-row: 1;
        height: 100%;
        width: 100%;
        align-items: center;
        justify-content: center;
    }

    .slideshow_container__image {
        height: 75%;
        width: auto;
        aspect-ratio: 2 / 3;
        object-fit: contain;
        border-radius: 8px;
        box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.1),
            0 0 20px 0 rgba(0, 0, 0, 0.08);
    }

    .cta_container {
        display: flex;
        grid-row: 2;
        height: 100%;
        width: 100%;
        align-items: flex-start;
        justify-content: center;
        gap: 20px;
    }

    .book_button, .gallery_button{
        /* --- Visuals --- */
        display: inline-block;
        /* Ensures padding and margins work, good for <a> tags */
        background-color: #F2F1EE;
        color: #000000;
        /* Black text */
        border: none;

        /* --- Spacing & Shape --- */
        /* This padding is what makes it look like a button */
        padding: 12px 28px;
        border-radius: 50px;
        /* This creates the "pill" shape */

        /* --- Typography --- */
        font-size: 16px;
        font-weight: 600;
        /* Bolder text for a CTA */
        text-decoration: none;
        /* Removes underline if it's an <a> tag */

        /* --- Interaction --- */
        cursor: pointer;
        transition: all 0.2s ease-in-out;

        box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.1),
            0 0 20px 0 rgba(0, 0, 0, 0.08);

    }

    .book_button:hover, .gallery_button:hover {
        /* Slight pop and background change on hover */
        background-color: #f4f4f4;
        transform: scale(1.03);
    }

    .book_button:active, .gallery_button:active {
        /* Click-down effect */
        transform: scale(0.98);
    }

}