/* RESET - Cancel some browser defaults to get consistent styling from one browser
     to another. */

html, body, div, span, h1, h2, h3, h4, h5, h6, p, ul, ol, li, dl, dt, dd, img, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, a, article, aside, details, figcaption, figure, footer, header, hgroup, menu, #menu, section {
    margin: 0;
    padding: 0;
    border: 0;
}
 
* {
    box-sizing: border-box;
}


/* TYPOGRAPHY */

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #333;
    line-height: 1.5;
}

header {
    text-align: center;
    color: white;
}

#sitename {
    font-size: 2rem;
    font-weight: bold;
}

main > p {
    margin-bottom: 1em;
}

h2 {
    font-size: 1.75rem;
    font-weight: bold;
    margin: 0.5em 0;
}

.aside-content {
    margin-bottom: 1em;
}

aside#articles a {
    text-decoration: underline;
}


/* COLOUR SCHEME */

header, nav {
    background-color: darkgreen;
}

aside {
    background-color: #ccc;
    padding: 0 1em;
}


/* LAYOUT */

body {
    display: grid;
    margin: 0 auto;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    column-gap: 2em;
    grid-template-columns: 1fr 20em 40em 20em 1fr;
    grid-template-areas: " . header header header  . "
                         " . nav    nav    nav     . "
                         " . gallery main articles . "
                         " . footer footer footer  . ";
}

header {
    grid-area: header;
    padding: 1em 0;
}

nav {
    grid-area: nav;
    padding-bottom: 1em;
}

main {
    grid-area: main;
}

aside#gallery {
    grid-area: gallery;
    border-right: 1px solid #ccc;
}

aside#articles {
    grid-area: articles;
    border-left: 1px solid #ccc;
}

footer {
    grid-area: footer;
    padding: 1em;
    background-color: #333;
}


/* #menuIGATION */

nav ul {
    display: flex;
    list-style-type: none;
    justify-content: center;
}

footer ul {
    display: flex;
    list-style-type: none;
    justify-content: center;
}

nav li, footer li {
    padding: 0 1em;
}

nav a:hover, footer a:hover {
    border-bottom: 1px solid #fff; 
}

aside a:hover {
	color: red;
}

nav a, footer a {
    text-decoration: none;
    color: #fff;
}

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


/* IMAGES */

img {
    width: 100%;
}

.banner-images {
    display: flex;
    justify-content: center;
    gap: 1em;
    margin-bottom: 1em;
}

#gallery > img {
    margin-bottom: 1em;
}