:root {
    --font: 'Philosopher', serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    flex: 1;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.header__logo {
    display: block;
    width: 29px;
    height: 20px;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header__icon {
    display: block;
    line-height: 0;
    color: #333;
}

.header__icon svg {
    width: 24px;
    height: 24px;
}

/* Wraps only the header on the homepage, so it doesn't take over the sticky-footer flex-grow that .categories needs */
.container--header {
    flex: 0 0 auto;
}

.hero {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero__img {
    display: block;
    width: 100%;
    height: auto;
}

.category {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 0;
}

.category-title {
    font-family: var(--font);
    font-size: 21px;
    font-weight: 400;
    color: #333;
    width: 100%;
    margin-bottom: 30px;
}

.gallery {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
}

.gallery__img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery__img--landscape,
.gallery__img--portrait {
    opacity: 1;
}

.gallery__img--portrait {
    width: 41.6667%;
}

.categories {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin: 50px 0;
}

.category-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.category-row__title {
    font-family: var(--font);
    font-size: 18px;
    font-weight: 400;
    color: #333;
}

.category-row:hover .category-row__title {
    color: #666;
    text-decoration: none;
}

.category-row__strip {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}

.category-row__strip img {
    height: 300px;
    width: auto;
    flex-shrink: 0;
    display: block;
    object-fit: cover;
}

h1 {
    color: #333;
    font-size: 21px;
    font-weight: 400;
    margin-bottom: 5px;
}

.content {
    display: flex;
    gap: 50px;
}

.footer {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.footer__copy {
    font-family: var(--font);
    font-size: 14px;
    color: #333;
}

@media (max-width: 768px) {

    .container {
        padding: 0 10px;
    }

    .content {
        flex-direction: column;
    }

    .categories {
        gap: 35px;
        margin: 35px 0;
    }

    .category-row__title {
        font-size: 16px;
    }

    .category-row__strip {
        gap: 10px;
    }

    .category-row__strip img {
        height: 220px;
    }

    .category {
        padding: 35px 0;
    }

    .category-title {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .gallery__img--portrait {
        width: 100%;
    }

    .footer {
        padding: 20px 10px;
    }

    .footer__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        align-items: center;
    }

    .footer__left {
        width: 100%;
        justify-content: space-between;
    }

}