/* **************************************************************** */
/* The Unknot Spot - Menu / @Media responsive and override Stylesheet 
   must be loaded last in the HTML head to ensure it can override 
   any previous styles as needed.

   CSS Variables located in style.css & linked in HTML
   Example: <link rel="stylesheet" href="styles.css">
            <link rel="stylesheet" href="stylesNav.css">
            <link rel="stylesheet" href="stylesMedia.css">  

/* **************************************************************** */


/* NAVIGATION OVERRIDES - Responsive styles for mobile, when to show the hamburger and how the menu behaves */
/* BASED ON STYLES IN stylesNav.css - this file should be loaded after stylesNav.css */
@media (max-width: 765px) {
    .nav-toggle {
        display: block; /* Show hamburger on mobile */
    }

    .nav-menu,
    .nav-menu-button {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        margin-top: 0.5rem;
    }

    .nav-menu.is-open,
    .nav-menu-button.is-open {
        display: flex;
    }

    .nav-menu-button {
        border-radius: 8px;
        padding: 0.4rem;
    }

    .nav-menu-button a {
        width: 100%;
        text-align: center;
    }

    /* Hamburger "close" animation (next 3 lines) top & bottom bars rotate to make an "X" */
    .nav-toggle[aria-expanded="true"] .bar1 {
        transform: translateY(6px) rotate(45deg);
    }
    .nav-toggle[aria-expanded="true"] .bar2 {
        opacity: 0;
    }
    .nav-toggle[aria-expanded="true"] .bar3 {
        transform: translateY(-6px) rotate(-45deg);
    }

    /* Keep this mobile override at the end so it wins over base .nav-menu-button display:flex. */ 
    .nav-menu-button {
        display: none;
    }

    .nav-menu-button.is-open {
        display: flex;
    }
}


/* INFORMATION CARDS with dynamic column count to display 1-3 cards per row */
@media (max-width: 765px) {
    .info-cards {
        grid-template-columns: 1fr;
    }
}

/* PICTURE CARDS with dynamic column count to display 1-3 cards per row */
/* BASED ON STYLES IN styles.css - this file should be loaded after styles.css */
@media (max-width: 765px) {
    .picture-cards {
        grid-template-columns: 1fr;
    }
}
 
 
