.slider {
    width: 100%;
    height: 30em;
    overflow: hidden;
    position: relative;
}

.slider .text {
    position: absolute;
    color: var(--white-text);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8%;
}

.slider .text h1 {
    font-size: 3em;
    margin: 0;
}

.slider .text p {
    font-size: 2em;
}

.slider .pictures {
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    filter: brightness(0.6);
}

.slider .pictures img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    left: 0;
    transition: 1.5s ease-in;
}

.one-line-gallery {
    padding: 2em;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    width: 100%;
}

.one-line-gallery h3,
#about h3 {
    text-align: center;
    font-size: 1.8em;
}

.one-line-gallery .gallery {
    display: flex;
    width: fit-content;
    max-width: 100%;
    flex-direction: row;
    gap: 1em;
    flex-wrap: nowrap;
    overflow-x: scroll;
    scrollbar-color: var(--gray-bg) var(--white-bg);
    align-self: center;
}

.one-line-gallery .card {
    padding: .5em;
    text-decoration: none;
    color: black;
    transition: .3s;
    width: calc(260px + 2 * .5em);
}

.one-line-gallery .card img {
    display: inline-block;
}

.one-line-gallery .card h4,
.one-line-gallery .card p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.one-line-gallery .card h4 {
    font-size: 1.17em;
}

.one-line-gallery .card:hover {
    background-color: var(--gray-bg);
}

#about {
    padding: 1.4em 2.2em;
    display: flex;
    align-items: center;
    gap: 2em;
    max-width: 70em;
    justify-self: center;
}

#about h3 {
    grid-area: heading;
    margin-bottom: 1em;
}

#about img {
    grid-area: picture;
    width: min(30em, 30%);
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 50%;
}

#about p {
    grid-area: paragraph;
    align-self: center;
    font-size: 1.2em;
}

@media (max-width: 550px) {
    .slider {
        height: 18em;
    }

    .one-line-gallery {
        padding: 1em;
    }

    .one-line-gallery .card {
        width: calc(180px + 2 * .5em);
    }

    .one-line-gallery .card img {
        width: 180px;
    }

    #about,
    .one-line-gallery {
        margin: 0.5em 0;
    }
}

@media (max-width: 750px) {
    #about {
        padding: 0.5em 1.5em;
        flex-direction: column;
    }

    #about img {
        width: min(14em, 70%);
    }

    #about h3 {
        margin-bottom: 0.3em;
    }
}
