/*
Theme Name: Hello Child
Template: hello-elementor
*/

body {
    background: #F3F3E6 !important;
    color: #545648;
}

.werke-item p,
.werke-single__field p,
.werke-search input,
.werke-categories span,
.werke-search button {
    font-family: "Inria Serif", serif;
}

.werke-archive {
    max-width: 92vw;
    margin: 0 auto;
    padding: 6vh 3vw;
}

.werke-archive h1 {
    margin-bottom: 3vh;
    font-size: 3em;
    letter-spacing: 0.02em;
    color: #49674C;
}

.werke-filters {
    margin-bottom: 5vh;
}

.werke-search {
    display: flex;
    gap: 1vw;
    margin-bottom: 2vh;
}

.werke-search input {
    flex: 1;
    padding: 0.8em 1em;
    border: 0.08em solid #C2A797;
    background: transparent;
    color: #545648;
    font-size: 0.9em;
    border-radius: 0;
    outline: none;
}

.werke-search button {
    padding: 0.8em 1.6em;
    border: none;
    border-radius: 0;
    background: #C2A797;
    color: #ffffff;
    font-family: "Inria Serif", serif !important;
    font-size: 0.95em;
    cursor: pointer;
}

.werke-search button:hover {
    background: #8F5A5E !important;
}

.werke-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8em;
}

.werke-categories label {
    cursor: pointer;
}

.werke-categories input {
    display: none;
}

.werke-categories span {
    display: inline-block;
    padding: 0.55em 1em;
    border: 0.08em solid #C2A797;
    color: #545648;
    font-size: 0.85em;
}

.werke-categories input:checked + span {
    background: #C2A797;
    color: #ffffff;
}

.werke-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5vh 2.5vw;
}

.werke-item {
    background: #ffffff;
    border: 0.08em solid rgba(84, 86, 72, 0.12);
}

.werke-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.werke-item img {
    width: 100%;
    height: 32vh;
    object-fit: cover;
    display: block;
    margin: 0;
}

.werke-item h2,
.werke-item p {
    padding-left: 1.2em;
    padding-right: 1.2em;
}

.werke-item h2 {
    margin: 1.2vh 0 0.6vh -0.5em;
    font-size: 1.25em;
    color: #49674C;
}

.werke-item p {
    margin: 0 0 0.6vh;
    font-size: 0.85em;
    line-height: 1.5;
    opacity: 0.8;
}

.werke-item p strong {
    display: none;
}

.werke-item p:last-child {
    margin-bottom: 1.2vh;
}

.werke-item:hover {
    box-shadow: 0 0.8em 2em rgba(0, 0, 0, 0.06);
}

.werke-single {
    max-width: 90vw;
    margin: 0 auto;
    padding: 6vh 3vw;
}

.werke-single__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4vw;
    align-items: start;
}

.werke-single__media {
    display: flex;
    justify-content: center;
}

.werke-single__media img {
    width: 75%;
    max-width: 40vw;
    height: auto;
}

.werke-single__content h1 {
    margin: 0 0 2vh;
    font-size: 3em;
    color: #49674C;
}

.werke-single__field {
    margin-bottom: 1.4vh;
}

.werke-single__field span {
    display: block;
    font-size: 0.75em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 0.3vh;
}

.werke-single__field p {
    margin: 0;
    font-size: 0.95em;
    line-height: 1.6;
    color: #545648;
}

.werke-zoom {
    cursor: zoom-in;
}

.werke-gallery {
    width: 75%;
    max-width: 40vw;
}

.werke-gallery__main {
    width: 100%;
    height: auto;
    display: block;
}

.werke-gallery__nav {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.8em;
    align-items: center;
    margin-top: 1em;
}

.werke-gallery__thumbs {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0.8em;
    overflow: hidden;
    min-width: 0;
}

.werke-gallery__thumb {
    display: block !important;
    flex: 0 0 calc((100% - 1.6em) / 3) !important;
    max-width: calc((100% - 1.6em) / 3);
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    appearance: none;
    cursor: pointer;
    opacity: 0.65;
    transition: transform .2s ease, opacity .2s ease;
}

.werke-gallery__thumb.is-active,
.werke-gallery__thumb:hover {
    opacity: 1;
}

.werke-gallery__thumb-image {
    width: 100%;
    aspect-ratio: 1.6 / 1;
    object-fit: cover;
    display: block;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.werke-gallery__arrow {
    width: 1.4em;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #545648 !important;
    font-size: 2em;
    line-height: 1;
    appearance: none;
    cursor: pointer;
}

.werke-gallery__arrow:disabled {
    opacity: 0.25;
    cursor: default;
}

.werke-single__media .werke-gallery img {
    max-width: none;
}

.werke-single__media .werke-gallery__main,
.werke-single__media .werke-gallery__thumb-image {
    width: 100%;
}

@media (max-width: 1024px) {
    .werke-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .werke-search {
        flex-direction: column;
    }

    .werke-search button {
        width: 100%;
    }

    .werke-grid {
        grid-template-columns: 1fr;
    }

    .werke-single__grid {
        grid-template-columns: 1fr;
    }

    .werke-single__media img {
        width: 100%;
        max-width: none;
    }

    .werke-single__content h1 {
        margin-top: 2vh;
    }

    .werke-gallery {
        width: 100%;
        max-width: none;
    }
}