:root {
    --color-body-bg: rgb(45, 45, 45);
    --color-body-text: rgb(171, 171, 171);
    --color-primary: rgb(168, 64, 0);
    --color-primary-light: rgb(253, 175, 126);
    --color-primary-dark: rgb(84, 32, 0);
    --shadow: rgba(0, 0, 0, 0.6) 0 1px 4px 0;
}

*, *::before, *::after {
  box-sizing: inherit;
}

html {
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    margin: 0;
    background-color: var(--color-body-bg);
    color: var(--color-body-text);
}

a {
    text-decoration: none;
    color: inherit;
}

a.text-link {
    text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #fff;
}

form input,
form textarea {
    color: #fff;
    border: none;
    box-shadow: var(--shadow);
    min-height: 2em;
    padding: 0.2em 1em;
    font-size: 1em;
}

form input,
form textarea,
.g-recaptcha {
    margin-bottom: 1em;
}

form input[type=text],
form input[type=email],
form textarea {
    display: block;
    background: transparent;
    min-width: 80%;
}

form textarea {
    font-family: inherit;
    min-height: 8em;
    padding: 1em;
    resize: none;
}

form input[type=submit] {
    background: var(--color-primary);
}

form:not(.submitted) .submitted-message {
    display: none;
}

.text-center {
    text-align: center;
}

header .hero {
    background-image: url(/images/bg.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
}

header .title-container {
    background: rgb(48, 48, 48);
    border: 0.25em solid rgb(129, 129, 129);
}

header h1 {
    font-weight: 100;
    padding: 0;
    margin: 0;
    text-transform: uppercase;
    text-align: center;
}

header nav {
    display: flex;
    justify-content: center;
}

header nav ul {
    width: 100%;
    list-style: none;
    padding: 0;
    box-shadow: var(--shadow);
}

header nav li {
    width: 100%;
    height: 2.81em;
    line-height: 2.81em;
    text-align: center;
}

header nav a {
    display: inline-block;
    text-decoration: none;
    text-transform: uppercase;
    color: var(--color-primary-light);
    width: 100%;
    height: 100%;
    transition: background-color 0.4s ease;
}

header nav a:hover {
    background-color: var(--color-primary-dark);
}


header nav a.active {
    color: #fff;
    background-color: var(--color-primary);
}

main {
    display: flex;
    justify-content: center;
}

.content {
    padding: 1em;
    font-size: 1.1em;
}

ul.list li {
    margin: 0.25em 0;
}

.intro .text p {
    line-height: 1.33;
}

.intro .image {
    margin-bottom: 2em;
}

.intro .image img {
    width: 100%;
    height: auto;
}

.intro .text p:first-child {
    margin: 0;
}

.main-container {
    max-width: 980px;
    width: 100%;
}

.main-container h2 {
    margin: 0.25em 0 0.5em;
}

footer {
    display: flex;
    justify-content: center;
    margin: 2em 0;
}

footer .copyright {
    text-align: center;
    line-height: 2.5em;
    margin-bottom: 1em;
}

footer .languages {
    text-align: center;
}

footer .languages ul {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: 1em;
}

footer .languages li {
    margin-right: 1em;
}

footer .languages a {
    line-height: 2.5em;
}

footer .row {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    margin-bottom: 1.5em;
}

.socials {
    display: flex;
    justify-content: space-around;
}

.socials a {
    display: block;
    margin: 0 0.5em;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.socials a:hover,
.socials a:active {
    opacity: 1;
}

.socials svg {
    width: 2.5em;
    fill: currentColor;
}

ul.category-list {
    list-style: none;
    padding: 0.5em 0;
    display: flex;
    gap: 0.5em;
    font-size: 0.9em;
    overflow: auto;
}

ul.category-list li a {
    display: block;
    color: #000;
    background: #fff;
    padding: 0.5em 1em;
    border-radius: 0.5em;
    box-shadow: var(--shadow);
    white-space: nowrap;
}

ul.category-list li a.active {
    background-color: var(--color-primary);
    color: #fff;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 0.5em;
}

.gallery-item .img-container {
    height: 100vw;
    background: #ebebeb;
    position: relative;
}

.gallery-item .img-container img {
    display: block;
    position: absolute;
    inset: 0;
    margin: auto;
    max-width: calc(100% - 1em);
    max-height: calc(100% - 1em);
    width: auto;
    height: auto;
}

.gallery-item section {
    background: #fff;
    color: #000;
    padding: 1em;
    margin: 0;
    font-size: 0.9em;
}

.gallery-item h3 {
    color: inherit;
    text-transform: none;
    font-weight: 400;
    margin: 0;
    font-size: 1em;
    min-height: 2lh;
}

.gallery-item p {
    color: #444;
    margin: 0;
    margin-top: 0.66em;
    font-size: 0.8em;
}

.gallery-item p.status-sold::before {
    content: "";
    display: inline-block;
    margin-right: .5em;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    background-color: #f00;
}

.artwork-details {
    margin: 1em 0;
}

.artwork-details h1 {
    margin: 1em 0;
}

.artwork-details .image {
    border: 3px solid #fff;
}

.artwork-details .image img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
}

@media only screen and (min-width: 360px) {
    .gallery-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-item .img-container {
        height: 50vw;
    }

    header .title-container {
        padding: 0.5em 2em;
        margin: 1em;
    }
}

@media only screen and (min-width: 720px) {
    header nav ul {
        display: flex;
    }

    header nav li {
        width: 245px;
    }

    header nav li:not(:first-child) {
        border-left: 1px solid #fff;
    }

    header .title-container {
        padding: 0.5em 6em;
    }

    footer .copyright {
        text-align: initial;
        margin-bottom: 0;
    }

    footer .row {
        flex-direction: row;
    }

    footer .languages {
        text-align: initial;
    }

    footer .languages li {
        display: inline-block;
    }

    .intro {
        display: flex;
    }

    .intro .image {
        flex: 50%;
        margin-right: 2em;
    }

    .intro .text {
        flex: 50%;
    }

    .gallery-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .category-list {
        flex-wrap: wrap;
    }

    .category-list,
    .gallery-item section {
        font-size: 1em;
    }

    .gallery-item .img-container {
        height: 330px;
        height: calc(min(33vw, 330px));
    }

    .artwork-details {
        padding: 1em;
        box-shadow: var(--shadow);
    }
}
