.home-editorial {
    overflow: hidden;
    padding: 56px 0 18px;
    background: #fff;
}

.home-editorial__row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    width: min(1280px, calc(100% - 56px));
    min-height: 380px;
    margin: 0 auto 76px;
}

.home-editorial__panel {
    z-index: 0;
    grid-area: 1 / 1 / 2 / 3;
    display: flex;
    align-items: center;
    width: 88%;
    min-height: 320px;
    padding: 56px 64px;
    background: #f1f3f4;
}

.home-editorial__copy {
    width: min(58%, 470px);
}

.home-editorial__eyebrow {
    margin: 0 0 12px;
    color: #967545;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    text-transform: uppercase;
}

.home-editorial__copy h2 {
    margin: 0 0 16px;
    color: #202324;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
}

.home-editorial__copy > p:last-child {
    margin: 0;
    color: #4e5355;
    font-size: 14px;
    line-height: 1.75;
}

.home-editorial__image {
    z-index: 1;
    grid-area: 1 / 2 / 2 / 3;
    justify-self: end;
    display: block;
    width: 100%;
    max-width: 610px;
    aspect-ratio: 1.55 / 1;
    object-fit: cover;
}

.home-editorial__row--reversed .home-editorial__panel {
    justify-self: end;
}

.home-editorial__row--reversed .home-editorial__copy {
    margin-left: auto;
}

.home-editorial__row--reversed .home-editorial__image {
    grid-area: 1 / 1 / 2 / 2;
    justify-self: start;
}

.home-reasons {
    padding: 72px 0;
    background: #f1f3f4;
    text-align: center;
}

.home-reasons__eyebrow {
    margin: 0 0 8px;
    color: #967545;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.home-reasons h2 {
    margin: 0;
    color: #202324;
    font-size: 34px;
    font-weight: 400;
    line-height: 1.25;
}

.home-reasons__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 32px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.home-reasons__list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
    border-top: 1px solid #c9ced0;
    color: #303638;
    font-size: 17px;
    line-height: 1.45;
}

.home-reasons__icon {
    flex: 0 0 26px;
    color: #967545;
    font-size: 20px;
    text-align: center;
}

.content-page {
    width: min(1100px, calc(100% - 48px));
    margin: 0 auto;
    padding-top: 64px;
    padding-bottom: 80px;
}

.content-page__body {
    color: #303638;
    font-size: 17px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.content-page__body > :first-child {
    margin-top: 0;
}

.content-page__body h1,
.content-page__body h2,
.content-page__body h3,
.content-page__body h4 {
    color: #202324;
    line-height: 1.25;
}

.content-page__body img {
    display: block;
    max-width: 100%;
    height: auto;
}

.content-page__body figure {
    max-width: 100%;
    margin: 28px 0;
}

.content-page__body table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.property-detail {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
    padding-top: 48px;
    padding-bottom: 72px;
}

.property-detail__header {
    margin-bottom: 32px;
}

.property-detail__header h1 {
    color: #202324;
    font-size: 38px;
    font-weight: 400;
    line-height: 1.2;
}

.property-detail__price {
    color: #4a7c2f;
    font-size: 24px;
    font-weight: 700;
}

.property-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0 auto 40px;
}

.property-gallery__main {
    float: none !important;
    flex: 0 0 auto;
    display: block;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    background: #f1f3f4;
}

.property-gallery__main .slides img {
    display: block;
    width: 100%;
    height: 100% !important;
    object-fit: contain;
}

.property-gallery__main .slides > li {
    height: min(62vw, 620px) !important;
    overflow: hidden;
}

.property-gallery__main .slides > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.property-gallery__embed,
.property-gallery__video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #111;
    object-fit: contain;
}

.property-gallery__lightbox-link {
    position: absolute;
    z-index: 2;
    right: 16px;
    bottom: 16px;
    padding: 8px 12px;
    background: rgb(32 35 36 / 82%);
    color: #fff;
    font-size: 13px;
}

.property-gallery__external-media {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    background: #202324;
    color: #fff;
    font-size: 20px;
}

.property-gallery__thumbs {
    float: none !important;
    flex: 0 0 auto;
    display: block;
    width: 88.9% !important;
    margin: 16px auto 0;
}

.property-gallery__thumbs .slides > li {
    height: 96px !important;
    overflow: hidden;
}

.property-gallery__thumbs .slides > li img {
    display: block;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

.property-gallery__thumbnail-label {
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    overflow: hidden;
    background: #303638;
    color: #fff;
    font-size: 12px;
    text-align: center;
}

.property-detail__description {
    margin-bottom: 40px;
    color: #303638;
    font-size: 17px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.property-detail__description img {
    max-width: 100%;
    height: auto;
}

.property-detail__media-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.property-contact {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
    gap: 40px;
    padding-top: 32px;
    border-top: 1px solid #d7dcde;
}

.property-contact form {
    display: grid;
    gap: 16px;
}

.property-contact label {
    display: grid;
    gap: 6px;
}

@media (max-width: 767px) {
    .home-editorial {
        padding: 28px 0 4px;
    }

    .home-editorial__row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: calc(100% - 36px);
        min-height: 0;
        margin-bottom: 44px;
    }

    .home-editorial__panel {
        order: 1;
        width: 100%;
        min-height: 0;
        padding: 30px 26px;
    }

    .home-editorial__copy {
        width: 100%;
        max-width: 520px;
    }

    .home-editorial__copy h2 {
        font-size: 27px;
    }

    .home-editorial__image,
    .home-editorial__row--reversed .home-editorial__image {
        order: 2;
        width: 100%;
        max-width: none;
        aspect-ratio: 1.45 / 1;
    }

    .home-reasons {
        padding: 48px 0;
    }

    .home-reasons h2 {
        font-size: 29px;
    }

    .home-reasons__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 20px;
        margin-top: 24px;
    }

    .home-reasons__list li {
        font-size: 15px;
    }

    .content-page {
        width: calc(100% - 36px);
        padding-top: 36px;
        padding-bottom: 48px;
    }

    .content-page__body {
        font-size: 16px;
    }

    .property-detail {
        width: calc(100% - 36px);
        padding-top: 32px;
        padding-bottom: 48px;
    }

    .property-detail__header h1 {
        font-size: 30px;
    }

    .property-gallery__main .slides > li {
        height: min(68vw, 460px) !important;
    }

    .property-gallery__thumbs .slides > li {
        height: 64px !important;
    }

    .property-gallery__thumbnail-label {
        font-size: 10px;
    }

    .property-contact {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 420px) {
    .home-reasons__list {
        grid-template-columns: 1fr;
    }
}
