/* css/responsive.css */

/* 
   Contains all @media queries to keep responsive
   adjustments in one place.
*/

/* Breakpoint 1: 576px (Small devices) */
@media screen and (min-width: 576px) {
    body {
        background-color: var(--color-light-background);
    }

    nav {
        margin-block: 0;
        padding-block: 1rem;

        ul {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 5px;

            li {
                width: 28ch;
            }
        }
    }

    .gal1 {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        flex-direction: row;
        max-width: 80%;
        height: auto;
        object-fit: none;
        margin-block: 1.5rem;
        margin-inline: auto;
        gap: 25px;
    
        img {
            border: 4px solid #000;
            border-radius: 8px;
        }
    
    }

    /* home page */
    .location-card {
        flex-direction: row;
        align-items: center;
      }
    
      .location-card:nth-child(even) {
        flex-direction: row-reverse;
      }
    
      .location-image {
        width: 50%;
      }
    
      .location-info {
        width: 50%;
      }
    
      .location-card:nth-child(odd) .location-image {
        margin-right: 20px;
      }
    
      .location-card:nth-child(even) .location-image {
        margin-left: 20px;
      }
    /* home page end */

    #links {
        margin-left: 1rem;
    }
}

/* Breakpoint 2: 768px (Medium devices) */
@media screen and (min-width: 768px) {
    header {
        align-items: center;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        text-align: center;

        h1 {
            line-height: 2.25rem;
        }
    }

    .eagle1 {
        display: block;
        width: 200px;
    }

    .header-right {
        display: block;
        width: 200px;
    }

    .butterfly {
        display: block;
        width: 200px;
        padding: 3rem;
    }

    .donation {
        flex-direction: row;
        min-height: 200px;
    }

    #links {
        margin-inline: 2.25rem;
    }

    #trail-parking {
        margin: 0 auto;
    }
}

/* Breakpoint for notes component on larger screens */
@container (width >= 900px) {
    .notes {
        border-radius: 8px 8px 0 0; /* Added to fix border radius*/
    }
}

/* Breakpoint 3: 1200px (Large devices) */
@media screen and (min-width: 1200px) {
    .location-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .location-card {
        max-width: 525px;
    }

    #links {
        margin-inline: 4.25rem;
        font-size: var(--font-size-500);
    }

    .interactive-controls {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
        align-items: stretch; /* Make all grid items the same height */
        margin-bottom: 2rem;
    }

    .interactive-controls > * {
        margin: 0; /* Reset margins for direct children to let the grid gap handle spacing */
    }
}

/* Breakpoint 4: 1600px (Extra large devices) */
@media screen and (min-width: 1600px) {
    .location-card {
        max-width: 750px;
    }
}