.portfolio-main,
.portfolio-single {
    padding: 48px 0 72px;
}

html.is-lightbox-open,
body.is-lightbox-open {
    overflow: hidden;
    overscroll-behavior: none;
}

.home-main--home {
    padding-top: 0;
    background: #fdf6e7;
}

.post-type-archive-portfolio .home-wrap {
    background: #fdf6e7;
}

.portfolio-main--archive {
    padding-top: clamp(160px, 16vw, 210px);
    background: #fdf6e7;
}

.alamard-nextgen-picture {
    display: block;
}

.home-hero__item > .alamard-nextgen-picture,
.portfolio-card__thumb > .alamard-nextgen-picture,
.home-about__media > .alamard-nextgen-picture,
.home-about__media-link > .alamard-nextgen-picture,
.home-contact__media > .alamard-nextgen-picture,
.home-contact__media-link > .alamard-nextgen-picture,
.portfolio-detail__featured > .alamard-nextgen-picture,
.portfolio-gallery__link > .alamard-nextgen-picture {
    width: 100%;
    height: 100%;
}

.page-template-tpl-home {
    --home-hero-offset: 120px;
}

.home-hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.home-hero__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
}

.page-template-tpl-home .home-hero__grid {
    margin-top: var(--home-hero-offset);
}

.home-hero__item {
    margin: 0;
}

.home-hero__image {
    display: block;
    width: 100%;
    height: 100vh;
    height: 100svh;
    object-fit: cover;
    background: #e6dccd;
}

.page-template-tpl-home .home-hero__image {
    height: calc(100vh - var(--home-hero-offset));
    height: calc(100svh - var(--home-hero-offset));
}

.home-hero__image.is-empty {
    background:
        radial-gradient(80% 70% at 50% 35%, rgba(236, 225, 204, 0.86) 0%, rgba(236, 225, 204, 0) 65%),
        linear-gradient(180deg, #d9c9ad 0%, #c7b091 100%);
}

.portfolio-section {
    margin-top: 32px;
}

.home-portfolio-section {
    max-width: 1686px;
    margin-top: clamp(72px, 7vw, 148px);
    margin-left: auto;
    margin-right: auto;
}

.portfolio-section--archive {
    max-width: 1686px;
    margin-top: clamp(24px, 3vw, 48px);
    margin-left: auto;
    margin-right: auto;
}

.home-portfolio-section .portfolio-head {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 56px;
    text-align: center;
}

.portfolio-section--archive .portfolio-head {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 56px;
    text-align: center;
}

.home-portfolio-section .portfolio-title {
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(289px, 100%);
    aspect-ratio: 289 / 166;
    background-image: url("../img/paper_bg_get_in_touch.png");
    background-image: image-set(
        url("../img/paper_bg_get_in_touch.avif") type("image/avif") 1x,
        url("../img/paper_bg_get_in_touch.webp") type("image/webp") 1x,
        url("../img/paper_bg_get_in_touch.png") type("image/png") 1x
    );
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    font-family: "Bricolage Grotesque", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 26px;
    font-weight: 400;
    line-height: 1.15;
    text-align: center;
    color: #000;
}

.portfolio-section--archive .portfolio-title {
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(289px, 100%);
    aspect-ratio: 289 / 166;
    background-image: url("../img/paper_bg_get_in_touch.png");
    background-image: image-set(
        url("../img/paper_bg_get_in_touch.avif") type("image/avif") 1x,
        url("../img/paper_bg_get_in_touch.webp") type("image/webp") 1x,
        url("../img/paper_bg_get_in_touch.png") type("image/png") 1x
    );
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    font-family: "Bricolage Grotesque", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 26px;
    font-weight: 400;
    line-height: 1.15;
    text-align: center;
    color: #000;
}

.home-portfolio-section .portfolio-filters {
    justify-content: center;
    gap: clamp(12px, 3vw, 56px);
    width: 100%;
}

.portfolio-section--archive .portfolio-filters {
    justify-content: center;
    gap: clamp(12px, 2vw, 20px);
    width: 100%;
}

.portfolio-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.portfolio-filters-disclosure {
    width: 100%;
}

.portfolio-filters-disclosure__toggle {
    display: none;
    list-style: none;
}

.portfolio-filters-disclosure__toggle::-webkit-details-marker {
    display: none;
}

@media (min-width: 701px) {
    .portfolio-filters-disclosure > .portfolio-filters {
        display: flex !important;
    }
}

.home-portfolio-section .portfolio-filter {
    width: 202px;
    height: 47px;
    border: 0;
    border-radius: 30px;
    padding: 0 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #9e8460;
    box-shadow: 0 4px 4px 0 #00000040;
    color: #fff;
    font-family: "Bricolage Grotesque", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
    transition: background-color 220ms ease, color 220ms ease, box-shadow 220ms ease, transform 180ms ease;
}

.home-portfolio-section .portfolio-filter.is-active {
    background: #e0b06d;
    color: #fff;
}

.home-portfolio-section .portfolio-filter:hover {
    background: #c38e45;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.privacy-policy-main {
    background: #fdf6e7;
}

.privacy-policy-section {
    max-width: 1040px;
    margin-top: clamp(72px, 7vw, 148px);
    margin-left: auto;
    margin-right: auto;
}

.privacy-policy-head {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: clamp(36px, 5vw, 56px);
    text-align: center;
}

.privacy-policy-title {
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(289px, 100%);
    aspect-ratio: 289 / 166;
    background-image: url("../img/paper_bg_get_in_touch.png");
    background-image: image-set(
        url("../img/paper_bg_get_in_touch.avif") type("image/avif") 1x,
        url("../img/paper_bg_get_in_touch.webp") type("image/webp") 1x,
        url("../img/paper_bg_get_in_touch.png") type("image/png") 1x
    );
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    font-family: "Bricolage Grotesque", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 26px;
    font-weight: 400;
    line-height: 1.15;
    text-align: center;
    color: #000;
}

.privacy-policy-content {
    max-width: 860px;
    margin: 0 auto;
}

.privacy-policy-content > *:first-child {
    margin-top: 0;
}

.privacy-policy-content h2,
.privacy-policy-content h3,
.privacy-policy-content h4,
.privacy-policy-content h5,
.privacy-policy-content h6 {
    margin: 34px 0 14px;
    font-family: "Bricolage Grotesque", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: #000;
}

.privacy-policy-content h2 {
    font-size: 32px;
}

.privacy-policy-content h3 {
    font-size: 26px;
}

.privacy-policy-content h4,
.privacy-policy-content h5,
.privacy-policy-content h6 {
    font-size: 22px;
}

.privacy-policy-content ul,
.privacy-policy-content ol {
    margin: 0 0 18px;
    padding-left: 1.4em;
}

.privacy-policy-content li {
    margin-bottom: 10px;
}

.privacy-policy-content a {
    color: #7d5a33;
}

.privacy-policy-content a:hover {
    color: #a26e2f;
}

#home-portfolio,
#home-about,
#home-contact {
    scroll-margin-top: clamp(84px, 10vw, 156px);
}

.home-portfolio-section .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(22px, 3vw, 58px);
}

.home-portfolio-section .portfolio-card {
    background: transparent;
    border: 0;
    border-radius: 20px;
}

.home-portfolio-section .portfolio-card__thumb {
    aspect-ratio: 812 / 962;
    border-radius: 20px;
    background: #d9d9d9;
}

.home-portfolio-section .portfolio-card__img {
    border-radius: 20px;
}

.home-portfolio__actions {
    display: flex;
    justify-content: center;
    margin-top: clamp(32px, 4vw, 72px);
}

.portfolio-load-more {
    width: 202px;
    height: 47px;
    border: 0;
    border-radius: 30px;
    padding: 0 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #9e8460;
    box-shadow: 0 4px 4px 0 #00000040;
    color: #fff;
    font-family: "Bricolage Grotesque", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
    cursor: pointer;
    transition: background-color 220ms ease, box-shadow 220ms ease, transform 180ms ease;
}

.portfolio-load-more:hover {
    background: #c38e45;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.portfolio-load-more:focus-visible {
    outline: 2px solid #111;
    outline-offset: 3px;
}

.home-about,
.home-contact {
    margin-top: 84px;
    max-width: 1634px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.home-contact {
    position: relative;
    overflow: hidden;
    padding: 0;
}

.home-contact__layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 593.93px) minmax(0, 749px);
    align-items: stretch;
    justify-content: space-between;
    gap: clamp(48px, 6vw, 200px);
}

.home-contact__form-wrap {
    width: 100%;
    max-width: 594px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.home-contact__heading {
    margin: 0 0 26px;
    display: block;
    text-align: center;
}

.home-contact__heading-text,
.home-about__heading-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 289 / 166;
    font-family: "Bricolage Grotesque", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 26px;
    font-weight: 400;
    line-height: 1.15;
    text-align: center;
    color: #000;
    background-image: url("../img/paper_bg_get_in_touch.png");
    background-image: image-set(
        url("../img/paper_bg_get_in_touch.avif") type("image/avif") 1x,
        url("../img/paper_bg_get_in_touch.webp") type("image/webp") 1x,
        url("../img/paper_bg_get_in_touch.png") type("image/png") 1x
    );
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.home-about__heading-text,
.home-contact__heading-text {
    width: min(260px, 100%);
}

.home-contact__heading-text {
    width: min(289px, 100%);
}

.home-about {
    display: grid;
    grid-template-columns: minmax(0, 749px) minmax(0, 473px);
    align-items: start;
    gap: clamp(72px, 9vw, 288px);
    margin-top: 136px;
}

.home-about__media {
    width: min(100%, 749px);
}

.home-about__media-link,
.home-contact__media-link {
    display: block;
    color: inherit;
    text-decoration: none;
    line-height: 0;
}

.home-about__media-link:focus-visible,
.home-contact__media-link:focus-visible {
    outline: 2px solid #111;
    outline-offset: 3px;
}

.home-about__content {
    width: 100%;
    max-width: 473px;
    margin-top: clamp(24px, 4vw, 84px);
}

.home-about__heading {
    margin: 0 0 26px;
    text-align: center;
}

.home-about__richtext {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.29348;
    color: #000;
}

.home-about__image {
    display: block;
    width: 100%;
    aspect-ratio: 749 / 849;
    border-radius: 20px;
    object-fit: cover;
    background: #d9d9d9;
}

.home-about__image.is-empty {
    aspect-ratio: 749 / 849;
}

.home-section-title {
    margin: 0 0 16px;
    font-family: "Bricolage Grotesque", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 42px;
    font-weight: 600;
    line-height: 1.08;
    color: #000;
}

.home-section-richtext {
    font-family: "Bricolage Grotesque", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 20px;
    line-height: 1.55;
    color: #111;
}

.home-section-richtext p {
    margin: 0 0 14px;
}

.home-section-richtext p:last-child {
    margin-bottom: 0;
}

.home-contact__content {
    max-width: 594px;
    font-size: 16px;
    line-height: 1.45;
    margin-bottom: 26px;
}

.home-contact__form {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 18px;
}

.home-contact__field {
    display: grid;
    gap: 8px;
}

.home-contact__field label {
    font-family: "Bricolage Grotesque", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.29348;
    color: #000;
}

.home-contact__field input,
.home-contact__field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #000;
    border-radius: 5px;
    background: transparent;
    font-family: "Bricolage Grotesque", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.29348;
    color: #000;
    padding: 11px 13px;
}

.home-contact__field input {
    min-height: 46px;
}

.home-contact__field textarea {
    min-height: 172px;
    resize: vertical;
}

.home-contact__field input::placeholder,
.home-contact__field textarea::placeholder {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.29348;
    color: rgba(0, 0, 0, 0.5);
}

.home-contact__field input:focus,
.home-contact__field textarea:focus,
.home-contact__field input:focus-visible,
.home-contact__field textarea:focus-visible {
    outline: none;
}

.home-contact__checkbox:focus-visible,
.home-contact__submit:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

.home-contact__consent {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 4px;
}

.home-contact__consent-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.home-contact__consent label {
    font-family: "Bricolage Grotesque", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.29348;
    color: #000;
    cursor: pointer;
}

.home-contact__consent-link {
    font-family: "Bricolage Grotesque", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.29348;
    color: #000;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.home-contact__field--hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.home-contact__checkbox {
    appearance: none;
    width: 28px;
    height: 28px;
    margin: 0;
    border: 1px solid #9e8460;
    border-radius: 5px;
    background: #9e8460;
    display: grid;
    place-content: center;
    flex-shrink: 0;
    cursor: pointer;
}

.home-contact__checkbox::before {
    content: "";
    width: 12px;
    height: 7px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: scale(0) rotate(-45deg);
    transform-origin: center;
    transition: transform 0.14s ease;
}

.home-contact__checkbox:checked::before {
    transform: scale(1) rotate(-45deg);
}

.home-contact__submit {
    margin-top: auto;
    margin-bottom: 6px;
    width: 202px;
    min-height: 47px;
    border: 0;
    border-radius: 30px;
    background: #9e8460;
    color: #fff;
    font-family: "Bricolage Grotesque", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    text-transform: none;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: background-color 220ms ease, box-shadow 220ms ease, transform 180ms ease;
}

.home-contact__form--without-consent .home-contact__submit {
    margin-top: 0;
}

.home-contact__submit:hover {
    background: #c38e45;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.home-contact__submit:disabled {
    cursor: wait;
    opacity: 0.72;
}

.home-contact__status {
    margin: 6px 0 0;
    font-family: "Bricolage Grotesque", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.4;
}

.home-contact__status.is-success {
    color: #1d6b37;
}

.home-contact__status.is-error {
    color: #8a1f12;
}

.home-contact__media {
    justify-self: end;
    width: min(100%, 749px);
    border-radius: 20px;
    overflow: hidden;
}

.home-contact__image {
    display: block;
    width: 100%;
    aspect-ratio: 749 / 849;
    object-fit: cover;
    border-radius: 20px;
    background: #e6dccd;
}

.home-contact__image.is-empty {
    background: #d9d9d9;
}

@media (min-width: 1101px) {
    .home-contact__media {
        height: 100%;
    }

    .home-contact__media-link {
        height: 100%;
    }

    .home-contact__image {
        height: 100%;
        aspect-ratio: auto;
    }
}

.portfolio-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.portfolio-title {
    margin: 0;
    font-family: "Bricolage Grotesque", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.15;
    color: #000;
}

.portfolio-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.portfolio-filter {
    appearance: none;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.55);
    color: #000;
    font-family: "Bricolage Grotesque", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    padding: 10px 12px;
    border-radius: 999px;
    cursor: pointer;
}

.portfolio-filter.is-active {
    background: #111;
    border-color: #111;
    color: #fff;
}

.portfolio-section--archive .portfolio-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 0;
    background: #9e8460;
    box-shadow: 0 4px 4px 0 #00000040;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 0 24px;
    transition: background-color 220ms ease, color 220ms ease, box-shadow 220ms ease, transform 180ms ease;
}

.portfolio-section--archive .portfolio-filter:hover {
    background: #c38e45;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.portfolio-section--archive .portfolio-filter.is-active {
    background: #e0b06d;
    border-color: transparent;
    color: #fff;
}

.portfolio-filter:focus-visible {
    outline: 2px solid #111;
    outline-offset: 3px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    transition: opacity 360ms cubic-bezier(0.22, 1, 0.36, 1), transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.portfolio-grid.is-filtering {
    opacity: 0.34;
    transform: translateY(8px);
    pointer-events: none;
}

.portfolio-card {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    overflow: hidden;
}

.portfolio-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.portfolio-card__thumb {
    background: rgba(0, 0, 0, 0.04);
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.portfolio-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.portfolio-card__img.is-empty {
    width: 100%;
    height: 100%;
}

.portfolio-card__link:focus-visible {
    outline: 2px solid #111;
    outline-offset: -2px;
}

.portfolio-card.is-revealing {
    animation: portfolio-card-reveal 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes portfolio-card-reveal {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-empty {
    margin: 0;
    font-family: "Bricolage Grotesque", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    color: #000;
}

.portfolio-detail__title {
    margin: 0 0 18px;
    font-family: "Bricolage Grotesque", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 34px;
    font-weight: 600;
    line-height: 1.1;
    color: #000;
}

.portfolio-detail__featured {
    margin-bottom: 20px;
}

.portfolio-detail__featured-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
}

.portfolio-detail__content {
    font-family: "Bricolage Grotesque", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #000;
}

.portfolio-gallery {
    margin-top: 28px;
}

.portfolio-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.portfolio-gallery__item {
    margin: 0;
}

.portfolio-gallery__link {
    display: block;
    border-radius: 10px;
    overflow: hidden;
}

.portfolio-gallery__link:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}

.portfolio-gallery__item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

@media (max-width: 1100px) {
    .home-portfolio-section .portfolio-filter {
        width: auto;
        min-width: 176px;
    }

    .home-hero__image {
        height: 100vh;
        height: 100svh;
    }

    .home-about {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .home-about__media,
    .home-about__content {
        max-width: 749px;
        margin-left: auto;
        margin-right: auto;
    }

    .home-about__content {
        margin-top: 0;
    }

    .home-contact {
        padding: 0;
    }

    .home-contact__layout {
        grid-template-columns: 1fr;
        gap: 40px;
        align-items: start;
    }

    .home-contact__form-wrap {
        max-width: 594px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        height: auto;
    }

    .home-contact__media {
        max-width: 749px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .home-contact__media {
        justify-self: center;
    }

    .home-contact__heading {
        display: block;
        text-align: center;
    }

    .home-contact__content {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .portfolio-grid,
    .portfolio-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .page-template-tpl-home {
        --home-hero-offset: 60px;
    }

    .home-hero__grid {
        grid-template-columns: 1fr;
    }

    .home-hero__item:nth-child(n + 2) {
        display: none;
    }
}

@media (min-width: 701px) {
    .home-portfolio-section .portfolio-filters {
        display: flex;
        flex-wrap: nowrap;
        gap: clamp(8px, 1.4vw, 18px);
    }

    .home-portfolio-section .portfolio-filter {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        max-width: 190px;
        height: 44px;
        padding: 0 clamp(10px, 1.2vw, 18px);
        font-size: clamp(14px, 1.1vw, 17px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 900px) {
    .home-portfolio-section .portfolio-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-section--archive .portfolio-head,
    .home-portfolio-section .portfolio-head {
        gap: 16px;
        margin-bottom: 40px;
    }

    .portfolio-section--archive .portfolio-title,
    .home-portfolio-section .portfolio-title {
        width: min(244px, 100%);
        font-size: 24px;
    }

    .home-about__heading-text {
        width: min(220px, 100%);
        font-size: 24px;
    }

    .home-contact__heading-text {
        width: min(244px, 100%);
        font-size: 24px;
    }
}

@media (max-width: 700px) {
    .portfolio-section--archive .portfolio-head,
    .home-portfolio-section .portfolio-head {
        gap: 12px;
        margin-bottom: 24px;
    }

    .portfolio-section--archive .portfolio-title,
    .home-portfolio-section .portfolio-title {
        width: min(220px, 100%);
        font-size: 21px;
    }

    .home-about__heading-text {
        width: min(200px, 100%);
        font-size: 21px;
    }

    .home-contact__heading-text {
        width: min(220px, 100%);
        font-size: 21px;
    }

    .portfolio-filters-disclosure {
        display: grid;
        justify-items: center;
        gap: 0;
        width: 100%;
    }

    .portfolio-filters-disclosure > .portfolio-filters {
        width: min(84vw, 280px);
        box-sizing: border-box;
        max-height: 0;
        margin-top: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
        transition: max-height 320ms ease, opacity 220ms ease, transform 220ms ease, margin-top 220ms ease;
    }

    .portfolio-filters-disclosure[open] > .portfolio-filters {
        max-height: var(--portfolio-filters-height, 560px);
        margin-top: 10px;
        padding: 6px 6px 10px;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .portfolio-filters-disclosure[open].is-closing > .portfolio-filters {
        max-height: 0;
        margin-top: 0;
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
    }

    .portfolio-filters-disclosure__toggle {
        width: clamp(208px, 58vw, 232px);
        min-width: 0;
        height: 48px;
        border: 0;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 14px;
        position: relative;
        background: #e0b06d;
        box-shadow: 0 4px 4px 0 #00000040;
        cursor: pointer;
        user-select: none;
    }

    .portfolio-filters-disclosure__label {
        color: #fff;
        font-family: "Bricolage Grotesque", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
        font-size: 18px;
        font-weight: 600;
        line-height: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
        text-align: center;
        padding: 0 34px;
    }

    .portfolio-filters-disclosure__icon {
        width: 20px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        flex-direction: column;
        flex-shrink: 0;
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
    }

    .portfolio-filters-disclosure__line {
        width: 20px;
        height: 2px;
        border-radius: 3px;
        background: #fff;
        transition: transform 180ms ease, opacity 180ms ease;
    }

    .portfolio-filters-disclosure[open] .portfolio-filters-disclosure__icon .portfolio-filters-disclosure__line:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .portfolio-filters-disclosure[open] .portfolio-filters-disclosure__icon .portfolio-filters-disclosure__line:nth-child(2) {
        opacity: 0;
    }

    .portfolio-filters-disclosure[open] .portfolio-filters-disclosure__icon .portfolio-filters-disclosure__line:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .home-portfolio-section .portfolio-filters {
        gap: 10px;
    }

    .portfolio-section--archive .portfolio-filter,
    .home-portfolio-section .portfolio-filter,
    .portfolio-load-more {
        width: 100%;
        max-width: 280px;
    }

    .home-about,
    .home-contact {
        margin-top: 64px;
    }

    .home-about {
        margin-top: 76px;
    }

    .home-about {
        grid-template-areas:
            "content"
            "media";
    }

    .home-about__content {
        grid-area: content;
        padding-left: 0;
        padding-right: 0;
    }

    .home-about__media {
        grid-area: media;
    }

    .home-section-richtext {
        font-size: 18px;
    }

    .home-about__heading {
        text-align: center;
        margin-bottom: 18px;
    }

    .home-about__richtext {
        font-size: 18px;
        line-height: 1.45;
    }

    .home-contact__consent {
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .home-contact__submit {
        width: 50vw;
        max-width: 50vw;
        min-width: 160px;
        align-self: center;
    }

    .portfolio-grid,
    .portfolio-gallery__grid {
        grid-template-columns: 1fr;
    }

    .portfolio-detail__title {
        font-size: 28px;
    }
}
