/* Fonts */
@font-face {
    font-family: Roboto;
    src: url("fonts/Roboto.ttf");
}

/* Globals */
:root {
    box-sizing: border-box;
    text-size-adjust: 100%;
    overflow-wrap: break-word;
    text-rendering: optimizeLegibility;
    -o-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}

/* Media */
a {
    color: gold;
}

a:hover {
    opacity: 0.7;
}

img {
    width: 100%;
    height: 100%;
    border-radius: 2rem;
}

figure {
    margin: 1rem;
    position: relative;
}

figcaption {
    bottom: 0;
    width: 100%;
    font-size: 1.7rem;
    line-height: 2.2rem;
    position: absolute;
    text-align: center;
    font-weight: bolder;
    font-family: Roboto;
    border-bottom-left-radius: 2rem;
    border-bottom-right-radius: 2rem;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Sections */
body {
    margin: 0;
    height: 100%;
    padding: 0 1rem;
    background-color: black;
}

h1 {
    color: white;
    font-size: 4rem;
    text-align: center;
    font-family: Roboto;
}

h2 {
    color: white;
    font-size: 3rem;
    font-family: Roboto;
}

h3 {
    color: white;
    font-size: 2rem;
    font-family: Roboto;
}

.gallery {
    display: grid;
    grid-template-columns: 33% 33% 33%;
}

@media (max-width: 768px) {
    .gallery {
        display: grid;
        grid-template-columns: 100%;
    }
}
