/* Home document 4 only. Restyle the existing sections, without moving or replacing widgets. */
body.home #main > .elementor-4 {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
    align-items: stretch;
    width: 100%;
    padding-inline: max(20px, calc((100% - 1100px) / 2));
}

body.home #main > .elementor-4 > * {
    grid-column: 1 / -1;
    min-width: 0;
}

/* The grid's side padding replaces the header's old side margin: its visible size stays identical. */
body.home #main > .elementor-4 > .elementor-element-c83dbd2 {
    width: 100% !important;
}

body.home #main > .elementor-4 > :is(.elementor-element-1e60, .elementor-element-5dff) {
    box-sizing: border-box;
    display: flex;
    grid-column: auto;
    align-self: stretch;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    margin: 0 0 36px !important;
    padding: 16px !important;
    border: 0 !important;
    border-radius: 16px !important;
    background: rgba(157, 107, 255, 0.14) !important;
    box-shadow: none !important;
}

/* Remove the old white frame and large nested spacing, keeping all content and links. */
body.home #main > .elementor-4 > :is(.elementor-element-1e60, .elementor-element-5dff) :is(.elementor-container, .elementor-column, .elementor-widget-wrap) {
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.home #main > .elementor-4 > :is(.elementor-element-1e60, .elementor-element-5dff) > .elementor-container,
body.home #main > .elementor-4 > :is(.elementor-element-1e60, .elementor-element-5dff) > .elementor-container > .elementor-column {
    display: flex;
    flex: 1 1 auto;
}

body.home #main .elementor-4 :is(.elementor-element-4263, .elementor-element-511e, .elementor-element-6496, .elementor-element-7e1d) > .elementor-widget-wrap {
    display: flex !important;
    flex-direction: column;
    flex-wrap: nowrap;
    flex: 1 1 auto;
    align-items: stretch !important;
    align-content: stretch !important;
}

body.home #main .elementor-4 :is(.elementor-element-206, .elementor-element-3892, .elementor-element-6ded) {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

body.home #main .elementor-4 :is(.elementor-element-3892, .elementor-element-6ded),
body.home #main .elementor-4 :is(.elementor-element-3892, .elementor-element-6ded) > .elementor-container,
body.home #main .elementor-4 :is(.elementor-element-7e1d, .elementor-element-6496) {
    display: flex;
    flex: 1 1 auto;
}

body.home #main .elementor-4 :is(.elementor-element-4765, .elementor-element-5c3a, .elementor-element-2a58, .elementor-element-7b1) {
    display: none !important;
}

body.home #main .elementor-4 :is(.elementor-element-66cf, .elementor-element-35ca) {
    flex: 0 0 auto;
    order: 0;
    width: 100%;
    margin: 0 0 14px !important;
    text-align: center !important;
}

body.home #main .elementor-4 :is(.elementor-element-66cf, .elementor-element-35ca, .elementor-element-233b) > .elementor-widget-container {
    margin: 0 !important;
    padding: 0 !important;
}

body.home #main .elementor-4 :is(.elementor-element-66cf, .elementor-element-35ca) .elementor-heading-title {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5em;
    margin: 0 !important;
    color: #e5dc07 !important;
    font-family: "Bangers", sans-serif !important;
    font-size: clamp(18px, 2.2vw, 28px) !important;
    line-height: 1.25 !important;
    letter-spacing: 1px !important;
    text-align: center !important;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

/* Keep both original desktop/phone listing instances and their responsive visibility. */
body.home #main .elementor-4 .elementor-element-1e60 .elementor-widget-jet-blog-smart-listing {
    flex: 1 1 auto;
    width: 100%;
    margin: 0 !important;
}

body.home #main .elementor-4 .elementor-element-1e60 :is(.elementor-widget-jet-blog-smart-listing > .elementor-widget-container, .elementor-jet-blog-smart-listing, .jet-smart-listing-wrap, .jet-smart-listing, .jet-smart-listing__posts, .jet-smart-listing__post-wrapper, .jet-smart-listing__post, .jet-smart-listing__post-content) {
    display: flex;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
}

body.home #main .elementor-4 .elementor-element-1e60 .elementor-widget-jet-blog-smart-listing > .elementor-widget-container {
    height: 100%;
}

/* Equal portrait frames. Contain preserves text/artwork within the current sale image. */
body.home #main .elementor-4 .elementor-element-1e60 .jet-smart-listing__post-thumbnail,
body.home #main .elementor-4 .elementor-element-d742a76 .jet-images-layout__image {
    box-sizing: border-box;
    display: block;
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 300px !important;
    height: auto !important;
    aspect-ratio: 3 / 4;
    margin: 0 auto !important;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 8px;
    background: #15171a;
}

body.home #main .elementor-4 .elementor-element-1e60 .jet-smart-listing__post-thumbnail > a {
    display: block;
    width: 100%;
    height: 100%;
}

body.home #main .elementor-4 .elementor-element-1e60 .jet-smart-listing__post-thumbnail img,
body.home #main .elementor-4 .elementor-element-d742a76 .jet-images-layout__image-instance {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
    object-fit: contain !important;
    object-position: center center;
    margin: 0 !important;
    padding: 0 !important;
}

body.home #main .elementor-4 .elementor-element-1e60 .jet-smart-listing__post-title,
body.home #main .elementor-4 .elementor-element-1e60 .jet-smart-listing__post-title a,
body.home #main .elementor-4 .elementor-element-d742a76 .jet-images-layout__title {
    display: block;
    margin: 14px 0 0 !important;
    padding: 0 !important;
    color: #f7f7f2 !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: clamp(14px, 1.5vw, 20px) !important;
    font-weight: 650 !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    text-transform: none !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
}

body.home #main .elementor-4 .elementor-element-1e60 .jet-smart-listing__post-title a {
    margin: 0 !important;
}

body.home #main .elementor-4 .elementor-element-1e60 .jet-smart-listing__meta {
    margin: 10px 0 14px !important;
    text-align: center !important;
}

body.home #main .elementor-4 .elementor-element-1e60 .jet-smart-listing__meta a {
    color: #ddd0fb !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
}

body.home #main .elementor-4 .elementor-element-1e60 .jet-smart-listing__more-wrap {
    display: flex;
    justify-content: center !important;
    margin: auto 0 0 !important;
    padding-top: 52px !important;
}

/* Original navigation controls stay attached to Jet Blog and remain outside the artwork. */
body.home #main .elementor-4 .elementor-element-1e60 .jet-smart-listing__arrows {
    position: absolute;
    display: flex;
    justify-content: center;
    gap: 8px;
    right: 0;
    bottom: 56px;
    left: 0;
}

body.home #main .elementor-4 .elementor-element-1e60 .jet-smart-listing__arrow {
    position: static !important;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #f7f7f2;
    background: #ffffff0d !important;
}

body.home #main .elementor-4 .elementor-element-1e60 .jet-smart-listing__arrow svg {
    width: 24px !important;
    height: 24px !important;
}

/* The existing lightbox link remains intact; show its caption below the image. */
body.home #main .elementor-4 .elementor-element-d742a76 {
    order: 1;
    margin: 0 !important;
}

body.home #main .elementor-4 .elementor-element-d742a76 :is(.elementor-widget-container, .jet-images-layout__list, .jet-images-layout__inner) {
    margin: 0 !important;
    padding: 0 !important;
}

body.home #main .elementor-4 .elementor-element-d742a76 :is(.salvattore-column, .jet-images-layout__item) {
    width: 100% !important;
    min-width: 0;
}

body.home #main .elementor-4 .elementor-element-d742a76 .jet-images-layout__link {
    display: block;
    opacity: 1;
}

body.home #main .elementor-4 .elementor-element-d742a76 .jet-images-layout__content {
    position: static !important;
    height: auto !important;
    padding: 0 !important;
    opacity: 1 !important;
    transform: none !important;
    background: transparent !important;
}

body.home #main .elementor-4 .elementor-element-d742a76 .jet-images-layout__content::before {
    display: none;
}

body.home #main .elementor-4 .elementor-element-233b {
    order: 2;
    margin: 10px 0 0 !important;
    text-align: center !important;
}

body.home #main .elementor-4 .elementor-element-233b .elementor-heading-title {
    margin: 0;
    font-size: clamp(16px, 1.6vw, 22px) !important;
    line-height: 1.3 !important;
    letter-spacing: 1px !important;
    text-align: center !important;
}

body.home #main .elementor-4 .elementor-element-3159 {
    margin-top: auto !important;
    padding-top: 16px;
}

body.home #main .elementor-4 .elementor-element-3159 > .elementor-widget-container {
    margin: 0 !important;
    padding: 0 !important;
}

body.home #main .elementor-4 .elementor-element-1e60 .jet-smart-listing__more,
body.home #main .elementor-4 .elementor-element-3159 .jet-button__instance {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    max-width: 100%;
    min-height: 44px;
    margin: 0 !important;
    padding: 10px 20px !important;
    border: 1px solid transparent !important;
    border-radius: 999px !important;
    background: #d8ed36 !important;
    color: #151710 !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 14px !important;
    font-weight: 700;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
    text-transform: none;
    text-decoration: none;
    box-shadow: none !important;
}

body.home #main .elementor-4 .elementor-element-3159 :is(.jet-button__plane, .jet-button__state) {
    display: none;
}

body.home #main .elementor-4 .elementor-element-1e60 .jet-smart-listing__more:hover,
body.home #main .elementor-4 .elementor-element-3159 .jet-button__instance:hover {
    filter: brightness(1.08);
}

body.home #main .elementor-4 .elementor-element-1e60 a:focus-visible,
body.home #main .elementor-4 .elementor-element-5dff a:focus-visible {
    outline: 3px solid #d8ed36;
    outline-offset: 3px;
}

/* Keep the original title size; the newsletter line uses the requested 20:28 size ratio. */
body.home #main .elementor-4 #newsletter_button .elementor-element-6e89e7d .elementor-button-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.home #main .elementor-4 #newsletter_button .elementor-element-6e89e7d .creon-harmony-newsletter-note {
    display: block;
    margin-top: 4px;
    font-family: inherit;
    font-size: .7142857em;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: .02em;
    text-transform: none;
}

/* Override the sale widget's legacy 70% desktop width so the image and heading share the card centre.
 * Elementor's phone layout (up to 767px) keeps its existing rules.
 */
@media (min-width: 768px) {
    body.home #main .elementor-4 .elementor-element-d742a76,
    body.home #main .elementor-4 .elementor-element-233b {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100% !important;
        align-self: stretch;
        margin-inline: auto !important;
        text-align: center !important;
    }

    body.home #main .elementor-4 .elementor-element-d742a76 .jet-images-layout__image,
    body.home #main .elementor-4 .elementor-element-233b .elementor-heading-title {
        margin-inline: auto !important;
        text-align: center !important;
    }
}

@media (max-width: 760px) {
    body.home #main > .elementor-4 {
        padding-inline: 14px;
        column-gap: 12px;
    }

    body.home #main > .elementor-4 > :is(.elementor-element-1e60, .elementor-element-5dff) {
        padding: 8px !important;
        border-radius: 14px !important;
    }

    body.home #main .elementor-4 :is(.elementor-element-66cf, .elementor-element-35ca) .elementor-heading-title {
        min-height: 3.75em;
        font-size: 18px !important;
        letter-spacing: .5px !important;
    }

    body.home #main .elementor-4 .elementor-element-1e60 .jet-smart-listing__more,
    body.home #main .elementor-4 .elementor-element-3159 .jet-button__instance {
        min-width: 0;
        padding: 10px 12px !important;
        font-size: 13px !important;
    }
}

/* Compact Home cards on phones, including Elementor's 761-767px phone breakpoint. */
@media (max-width: 767px) {
    body.home #main > .elementor-4 > :is(.elementor-element-1e60, .elementor-element-5dff) {
        margin-bottom: 14px !important;
        padding: 6px !important;
    }

    /* Hiding the complete meta row also removes its calendar and any reserved date spacing. */
    body.home #main .elementor-4 .elementor-element-1e60 .jet-smart-listing__meta {
        display: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.home #main .elementor-4 :is(.elementor-element-66cf, .elementor-element-35ca) {
        margin-bottom: 6px !important;
    }

    body.home #main .elementor-4 :is(.elementor-element-66cf, .elementor-element-35ca) .elementor-heading-title {
        min-height: 3.3em;
        font-size: 16px !important;
        line-height: 1.1 !important;
        letter-spacing: .3px !important;
    }

    body.home #main .elementor-4 .elementor-element-1e60 .jet-smart-listing__post-thumbnail,
    body.home #main .elementor-4 .elementor-element-d742a76 .jet-images-layout__image {
        max-width: 120px !important;
    }

    body.home #main .elementor-4 .elementor-element-1e60 .jet-smart-listing__post-title,
    body.home #main .elementor-4 .elementor-element-d742a76 .jet-images-layout__title {
        margin-top: 8px !important;
        line-height: 1.25 !important;
    }

    body.home #main .elementor-4 .elementor-element-233b {
        margin-top: 6px !important;
    }

    body.home #main .elementor-4 .elementor-element-233b .elementor-heading-title {
        line-height: 1.2 !important;
    }

    body.home #main .elementor-4 .elementor-element-1e60 .jet-smart-listing__more-wrap {
        padding-top: 40px !important;
    }

    body.home #main .elementor-4 .elementor-element-1e60 .jet-smart-listing__arrows {
        bottom: 48px;
    }

    body.home #main .elementor-4 .elementor-element-1e60 .jet-smart-listing__arrow {
        width: 32px;
        height: 32px;
    }

    body.home #main .elementor-4 .elementor-element-3159 {
        padding-top: 10px;
    }
}
