/* Standalone module. The host supplies Bootstrap's container. */
.wi-custom {

    --wi-ink: #151512;
    --wi-gold: #896020;
    background: var(--wi-paper, #faf9f6);
    color: var(--wi-ink);
    font: 16px/1.5 Arial, Helvetica, sans-serif;
    width: 100%;
    isolation: isolate;
}

    .wi-custom *,
    .wi-custom *::before,
    .wi-custom *::after {
        box-sizing: border-box;
    }

.wi-custom__hero {
    position: relative;
    isolation: isolate;
    min-height: 350px;
    aspect-ratio: 3/1;
    display: flex;
    align-items: center;
    user-select: none;
    overflow: hidden;
}

.wi-custom__hero-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.wi-custom__hero-copy {
    position: relative;
    width: 53%;
    padding: 35px 0 38px 7%;
    z-index: 1;
}

.wi-custom__eyebrow {
    margin: 0 0 14px;
    color: #80500d;
    font-size: 12px;
    letter-spacing: 5px;
    font-weight: 600;
}

.wi-custom h1 {
    font: normal clamp(40px, 4.8vw, 72px) / 0.99 Georgia, "Times New Roman", serif;
    letter-spacing: -1.7px;
    margin: 0 0 18px;
}

    .wi-custom h1 em {
        font-style: normal;
        color: #93621b;
        background: linear-gradient(105deg, #a67a32, #493516 55%, #b77c26);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

.wi-custom__intro {
    font-size: clamp(13px, 1.25vw, 17px);
    line-height: 1.55;
    color: #36342f;
    margin: 0;
    max-width: 420px;
}

.wi-custom__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 28px;
    padding: 0 5.6% 52px;
}

.wi-custom__card {
    display: block;
    position: relative;
    min-width: 0;
    width: 100%;
    padding: 0 0 22px;
    border: 1px solid #e7e1d733;
    border-radius: 10px;
    background: var(--wi-paper, #faf9f6);
    color: inherit;
    text-align: left;
    font: inherit;
    cursor: pointer;
    box-shadow: 0 5px 16px #40311a0d;
    transition: box-shadow 0.25s, transform 0.25s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

    .wi-custom__card:hover {
        box-shadow: 0 9px 28px #40311a19;
    }

    .wi-custom__card:focus-visible {
        outline: 2px solid var(--wi-gold);
        outline-offset: 5px;
    }

.wi-custom__visual {
    position: relative;
    display: block;
    aspect-ratio: 1.62;
    isolation: isolate;
}

.wi-custom__photos {
    position: absolute;
    inset: 6.5% 5.5% 8%;
    overflow: hidden;
    background: #e6ded0;
}

.wi-custom__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.38s ease, transform 0.6s ease;
}

.wi-custom__image--samples {
    opacity: 0;
    object-fit: cover;
}

.wi-custom__ink {
    position: absolute;
    inset: 0;
    background: url("assets/ink-frame.png") center/100% 100% no-repeat;
    filter: var(--ink-filter);
    z-index: 2;
    pointer-events: none;
}

.wi-custom--gold {
    --ink-filter: none;
}

.wi-custom--crimson {
    --ink-filter: hue-rotate(318deg) saturate(1.65) brightness(0.68);
}

.wi-custom--navy {
    --ink-filter: hue-rotate(158deg) saturate(1.25) brightness(0.6);
}

.wi-custom--forest {
    --ink-filter: hue-rotate(53deg) saturate(0.72) brightness(0.64);
}

.wi-custom--plum {
    --ink-filter: hue-rotate(235deg) saturate(0.9) brightness(0.7);
}

.wi-custom--teal {
    --ink-filter: hue-rotate(120deg) saturate(1.1) brightness(0.7);
}

.wi-custom--champagne {
    --ink-filter: saturate(0.6) brightness(1.1);
}

.wi-custom--wine {
    --ink-filter: hue-rotate(293deg) saturate(1.2) brightness(0.62);
}

.wi-custom__sample-label {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 8%;
    transform: translateX(-50%);
    max-width: 86%;
    padding: 6px 9px;
    color: #fff;
    background: #151512d9;
    font-size: 8px;
    letter-spacing: 1.3px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
}

.wi-custom__card:focus-visible.samples-ready .wi-custom__image--samples {
    opacity: 1;
}

.wi-custom__card:focus-visible.samples-ready .wi-custom__sample-label {
    opacity: 1;
}

@media (hover: hover) {
    .wi-custom__card:hover.samples-ready .wi-custom__image--samples {
        opacity: 1;
    }

    .wi-custom__card:hover.samples-ready .wi-custom__sample-label {
        opacity: 1;
    }
}

.wi-custom__details {
    display: block;
    padding: 0 6.5%;
}

.wi-custom__title {
    display: block;
    font: normal clamp(22px, 2.15vw, 31px) / 1.2 Georgia, serif;
    margin: 2px 0 6px;
    letter-spacing: -0.4px;
}

.wi-custom__description {
    display: block;
    color: #605a51;
    font-size: 14px;
    line-height: 1.5;
    min-height: 42px;
    max-width: 390px;
}

.wi-custom__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
}

.wi-custom__material {
    font-size: 8px;
    letter-spacing: 1.4px;
    color: #786c59;
}

.wi-custom__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    min-height: 40px;
    padding: 10px 19px;
    background: linear-gradient(120deg, #80591d, #9e7028, #795519);
    color: #fff;
    font: 600 10px/1.4 Arial, sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background 0.25s, box-shadow 0.25s;
    white-space: nowrap;
}

    .wi-custom__cta svg {
        width: 17px;
        height: 17px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.4;
        transition: transform 0.25s;
    }

.wi-custom__card:hover .wi-custom__cta,
.wi-custom__card:focus-visible .wi-custom__cta {
    box-shadow: 0 4px 12px #8e652c35;
    background: linear-gradient(120deg, #614013, #b17c29, #755019);
}

    .wi-custom__card:hover .wi-custom__cta svg {
        transform: translateX(3px);
    }

.wi-custom__modal {
    position: fixed;
    width: min(940px, calc(100vw - 36px));
    height: min(680px, calc(100dvh - 48px));
    max-width: none;
    max-height: none;
    padding: 48px;
    border: 0;
    margin: auto;
    background: var(--wi-paper, #faf9f6);
    color: var(--wi-ink);
    overflow: hidden;
    box-shadow: 0 24px 100px #0005;
}

    .wi-custom__modal::backdrop {
        background: #171510a8;
        backdrop-filter: blur(3px);
    }

    .wi-custom__modal[open] {
        animation: wi-custom-appear 0.22s ease-out;
    }

.wi-custom__modal-ink {
    position: absolute;
    inset: 0;
    border: 55px solid transparent;
    border-image: url("assets/ink-frame.png") 190 240 190 240 / 55px / 0 stretch;
    filter: var(--ink-filter);
    pointer-events: none;
}

.wi-custom__fields {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: auto;
}

.wi-custom__close {
    position: absolute;
    z-index: 2;
    right: 23px;
    top: 23px;
    width: 44px;
    height: 44px;
    padding: 12px;
    border: 1px solid #d7cbb8;
    background: #faf9f6f5;
    color: #211d16;
    cursor: pointer;
    border-radius: 50%;
    transition: transform 0.2s;
}

    .wi-custom__close:hover {
        transform: rotate(90deg);
    }

    .wi-custom__close:focus-visible {
        outline: 3px solid #a7803e;
        outline-offset: 3px;
    }

    .wi-custom__close svg {
        width: 100%;
        height: 100%;
        stroke: currentColor;
        stroke-width: 1.5;
        fill: none;
    }

@keyframes wi-custom-appear {
    from {
        opacity: 0;
        transform: translateY(7px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 800px) {
    .wi-custom__hero {
        min-height: 290px;
    }

    .wi-custom__hero-copy {
        padding-left: 6%;
        width: 58%;
    }

    .wi-custom h1 {
        font-size: 48px;
    }

    .wi-custom__intro {
        font-size: 13px;
    }

    .wi-custom__grid {
        gap: 18px;
        padding: 0 3% 36px;
    }

    .wi-custom__material {
        display: none;
    }

    .wi-custom__bottom {
        justify-content: flex-end;
    }

    .wi-custom__description {
        font-size: 13px;
    }

    .wi-custom__eyebrow {
        font-size: 10px;
        letter-spacing: 4px;
    }
}

@media (max-width: 540px) {
    .wi-custom__hero {
        height: 370px;
        aspect-ratio: auto;
        align-items: flex-start;
    }

    .wi-custom__hero-art {
        object-position: 70% center;
        opacity: 0.65;
    }

    .wi-custom__hero::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 0;
        background: linear-gradient( 90deg, #faf9f6f2, #faf9f6c7 42%, #faf9f600 100% );
    }

    .wi-custom__hero-copy {
        width: 88%;
        padding: 38px 6%;
    }

    .wi-custom h1 {
        font-size: 48px;
        line-height: 1.02;
    }

    .wi-custom__intro {
        max-width: 240px;
        font-size: 14px;
    }

    .wi-custom__desktop-break {
        display: none;
    }

    .wi-custom__grid {
        grid-template-columns: 1fr;
        padding: 0 4% 35px;
        gap: 22px;
        margin-top: -15px;
        position: relative;
        z-index: 1;
    }

    .wi-custom__title {
        font-size: 27px;
    }

    .wi-custom__description {
        font-size: 14px;
        min-height: 0;
    }

    .wi-custom__material {
        display: block;
        font-size: 8px;
        max-width: 100px;
    }

    .wi-custom__bottom {
        justify-content: space-between;
    }

    .wi-custom__cta {
        min-height: 44px;
    }

    .wi-custom__modal {
        padding: 38px 28px;
        width: calc(100vw - 20px);
        height: calc(100dvh - 50px);
    }

    .wi-custom__modal-ink {
        border-image-width: 35px;
    }

    .wi-custom__close {
        right: 18px;
        top: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wi-custom *,
    .wi-custom *::before,
    .wi-custom *::after {
        transition: none !important;
        animation: none !important;
    }
}
