body {
    margin: 0;
    font-family: Arial,sans-serif;
    background-color: rgb(255, 255, 255);
}

quote {
    display: block;
    padding: 20px;
    font-family: 'Albert sans';
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgb(255, 255, 255);
    background-color: rgb(255, 0, 0);
    border-left: 5px solid burlywood;
    margin: 20px 0;
}

h1 {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

header img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

nav {
    background-color: rgb(37, 60, 98);
    padding: 15px;
    object-fit: cover;
    text-align: center;
}

nav a {
    color: rgb(251, 241, 241);
    text-decoration: none;
    margin: 15px;
    font-weight: bold;
}

nav a:hover {
    color: rgb(175, 236, 249); /*Not sure about the color but it works*/
}

aside {
    margin: 50px;
    font-size: 1.5em;
}

article.layout {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

article.gallery {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(3,1fr); 
    gap: 20px;
}

/*NEW container for image + text*/
.image-container {
    position: relative;
}

.image-container img {
width: 100%;
height: 400px;
object-fit: cover;
border:4px solid red; /*REPLACE LATER PLEASE DON'T FORGET EDMUND*/
display: block;

}

/*Text overlay*/
.image-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 3em;
    font-weight: bold;
    z-index: 2;
    background-color: rgb(198, 19, 19); /*DON'T FORGET THIS ONE EITHER BUDDY*/
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid grey;
    
}

.image-container img:hover {
    transform: scale(1.05);
    transition: 0.3s;
}

footer {
    background-color: rgb(37, 60, 98);
    color: rgb(255, 255, 255);
    text-align: center;
    padding: 20px;
}

dd img {
    max-width: 600px;
    max-height: 600px;
    border: 4px solid  rgb(37, 60, 98);
}

dl-container {
    img {
        position: absolute;
        top: 50%;
        bottom: 50%;
        left: 50%;
        right: 50%;
    }
    dd, p {
        text-align: center;
    }
}