html * {
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

@font-face {
    font-family: "LibreBaskerville-Bold";
    src: url("/fonts/LibreBaskerville-Bold.woff") format("woff"); 
    font-weight: bold;
    font-style: normal;
    font-display: fallback;
}

@font-face {
    font-family: "LibreBaskerville-Regular";
    src: url("/fonts/LibreBaskerville-Regular.woff") format("woff"); 
    font-weight: normal;
    font-style: normal;
    font-display: fallback;
}

@font-face {
    font-family: "LibreBaskerville-BoldItalic";
    src: url("/fonts/LibreBaskerville-BoldItalic.woff") format("woff"); 
    font-weight: bold;
    font-style: italic;
    font-display: fallback;
}

@font-face {
    font-family: "LibreBaskerville-Italic";
    src: url("/fonts/LibreBaskerville-Italic.woff") format("woff"); 
    font-weight: normal;
    font-style: italic;
    font-display: fallback;
}

body {
    font-family: Arial, sans-serif;
    font-size: 100%;
    line-height: 135%;
    background-color: var(--primary-color);
    color: var(--background-color);
    background-position: center right;
    background-size: cover;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/landing-pic.jpg');
}

h1 {
    line-height: 1.2em;
    font-family: "LibreBaskerville-Bold";
}

h2 {
    line-height: 1.2em;
    font-family: "LibreBaskerville-BoldItalic";
}

h3 {
    line-height: 1.2em;
    font-family: "LibreBaskerville-Italic";
}

p {
    font-family: "LibreBaskerville-Regular";
}

figcaption {
    font-family: "Ubuntu";
    font-size: 14px;
    margin-top: 0.5em;
    text-align: center;
}

section.pictures {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

figure {
    margin: 0;
}

figure img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

header {
    /* header background image */
    padding: 3em 1em;
    background-image: url('images/landing-pic.jpg');
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    color: var(--background-color);
    min-height: 30vh; /* ensure header shows the background */
    padding: 28px 20px;
    box-sizing: border-box;
    background-color: #000000; /* fallback while image loads */
    background-blend-mode: normal;
}
p {
    font-size: 16px;
}
footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #777;
}

/* Link colorway using CSS variables + pseudo-selectors */
:root {
    --primary-color: #000000;
    --secondary-color: #5b3bd1;
    --background-color: #f9f9f9;
    --text-color: #333;
    --link: #1a73e8;
    --link-visited: #5b3bd1;
    --link-hover: #174ea6;
    --link-active: #113f8a;
    --link-focus: #ffd54f;
}

ul {
    list-style: none;
    padding: 0;
}

li button.list-button {
  width: 100%;
  border: 1px solid #000;
  border-radius: 14px;
  padding: 0.9em 1.2em;
  background: whitesmoke;
  cursor: pointer;
  font: inherit;
}

li button.list-button:hover {
  background: #e4f7dd;
}

li a {
    display: block;
    color: var(--link);
    padding: 0.2em 0;
}

a {
    color: var(--link);
    text-decoration: none;
    justify-content: space-evenly;
    align-items: center;
    transition: color 150ms ease, text-decoration-color 150ms ease;
}
a:visited {
    color: var(--link-visited);
}
a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}
a:active {
    color: var(--link-active);
}
a:focus-visible {
    outline: 3px solid var(--link-focus);
    outline-offset: 3px;
}

/* Also, use grid to make a different layout for larger screens, using a media query with a breakpoint that targets larger screens. Give and get help from your peers in the breakout room. */
/* Media Queries ------------------------*/

@media (max-width: 550px) {  /* mid-width screen */
	section.pictures {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1rem 0;
    }

    header {
        padding: 4em 1em;
    }

    figure {
    margin: 0;
    }

    figure img {
        width: 100%;
        height: 300px;
        object-fit: cover;
        display: block;
    }
}

@media (min-width: 850px) {  /* wide screen */
    section.pictures {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
        gap: 1rem;
        margin: 1rem 0;
    }

    header {
        padding: 4em 1em;
    }

    figure {
    margin: 0;
    }

    figure img {
        width: 100%;
        height: 400px;
        object-fit: cover;
        display: block;
    }

}