* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Barlow', sans-serif;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
        "header header header header"
        "section section section aside"
        "footer footer footer footer";
    height: 100vh;
}


header {
    grid-area: header;
    background: url('ada_banner.jpeg') no-repeat center center/cover;
    padding: 3em;
    font-size: 2em;
    border-bottom: 1px solid #ccc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}



header nav ul {
    list-style: none;
    display: flex;
    gap: 2em; 
    padding: 0;
    margin: 0;
}

header nav li {
    display: inline; 
}

header nav a {
    color: white; 
    text-decoration: none;
    font-weight: 700;
}
section {
    grid-area: section;
    padding: 1em;
}


section .gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1em;
    padding-right: 1em;
}

section .gallery img {
    width: 100%;
    display: block;
}


aside {
    grid-area: aside;
    padding: 1em;
    background: #fafafa;
    border-left: 1px solid #ccc;
    overflow-y: auto;
}
aside img {
    width: 100%;        
    height: auto;       
    display: block;     
    }
    
aside ul{
    list-style: none;
    padding-left: 0;
}



p {
    font-size: 1.3em;
}

h2 {
    font-size: 1.6em;
    font-weight: 700;
}

a {
    color: black;
    text-decoration: none;
}


section.testimonials {
    display: flex;
    flex-direction: row;
}

section .testimonials a {
    width: 33%;
    text-align: center;
}

section .testimonials figure {
    margin: 0;
    text-align: center;
}

section .testimonials img {
    width: 100%;
    border-radius: 50%;
}

section .testimonials figcaption {
    margin-top: 0.5em;
    text-align: center;
}


footer {
    grid-area: footer;
    padding: 1em;
    background: #f0f0f0;
    border-top: 1px solid #ccc;
    text-align: center;
    font-size: 1em;
}


@media (max-width: 500px) {
    section .gallery {
        grid-template-columns: 1fr;
    }

    
    body {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "section"
            "aside"
            "footer";
        height: auto;
    }

    aside {
        border-left: none;
        border-top: 1px solid #ccc;
    }

    header {
        flex-direction: column;
        text-align: center;
    }

    header nav {
        margin-top: 1em;
    }
}


@media (min-width: 501px) and (max-width: 900px) {
    section .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    
    body {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "section"
            "aside"
            "footer";
        height: auto;
    }

    aside {
        border-left: none;
        border-top: 1px solid #ccc;
    }
}
