:root{
    --color-primary: #6c757d;
}

html{
    font-family: "Open Sans", sans-serif;
}

body{
    line-height: 1.6;
    font-size: 16px;
}

h1,
h2,
h3,
h4,
.title{
    font-family: 'Ubuntu', sans-serif;
}

.container{
    max-width: 1320px;
    margin-inline: auto;
}

section > div + div{
    margin-top: 2rem;
}

.images-list{
    --grid-gap: 20px;
    margin-top: 3rem;
    margin-bottom: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--grid-gap);
}

.image-item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.image-item + .image-item{
    margin-top: var(--grid-gap);
}

.image-item:hover {
    z-index: 1;
}

.image-item:hover img {
    transform: scale(1.1);
}

.image-item img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 500ms;
}

.image-item__label {
    position: absolute;
    right: 0;
    bottom: 1rem;
    color: #ffffff;
    background-color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    padding-inline: 1rem;
    font-size: 12px;
    border-bottom-left-radius: 2px;
    border-top-left-radius: 2px;
}

.nav-topics{
    margin-bottom: 4rem;
}

.nav-topics ul{
    display: flex;
    justify-content: space-between;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2px;
}

.nav-topics li{
    flex: 1 0;
}

.nav-topics a{
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    color: #2d2d2d;
    background-color: #cecece;
    text-decoration: none;
    padding-block: 0.5rem;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
}

.nav-topics a:hover{
    background-color: #e0e0e0;
}
