/* ============================================================
   USP module (#USPModule)
   Real <img> elements, no CSS background-image.
   ============================================================ */
.usp-wrapper {
    background-color: #000;
    padding: 0;
    margin: 0;
}

.usp-stage {
    position: relative;
    width: 100%;
    height: 100vh;   /* reserves the box: no layout shift */
    overflow: hidden;
}

/* Dark scrim behind the captions, above the photos */
.usp-stage::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 46%;
    background: linear-gradient(to top,
                rgba(0,0,0,.74) 0%,
                rgba(0,0,0,.34) 46%,
                transparent 100%);
    pointer-events: none;
    z-index: 2;
}

/* ---------- Panels ---------- */
.usp-panel {
    margin: 0;
    padding: 0;
}

/* The photo layer: all three overlap, one is visible */
.usp-shot {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    opacity: 0;
    transition: opacity .45s ease;
    pointer-events: none;
    will-change: opacity;
}
.usp-panel.is-active .usp-shot { opacity: 1; }

.usp-shot img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* ---------- Captions: three equal columns along the bottom ---------- */
.usp-caption {
    position: absolute;
    bottom: 0;
    z-index: 3;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;

    width: 33.3333%;
    padding: 24px 20px 34px;

    cursor: pointer;
    text-align: center;
    line-height: 1.4;
    opacity: .84;
    transition: opacity .25s ease;

    border-right: 1px solid rgba(255,255,255,.28);
}
.usp-panel:nth-child(1) .usp-caption { left: 0; }
.usp-panel:nth-child(2) .usp-caption { left: 33.3333%; }
.usp-panel:nth-child(3) .usp-caption { left: 66.6666%; border-right: 0; }

.usp-caption:hover,
.usp-caption:focus-visible,
.usp-panel.is-active .usp-caption { opacity: 1; }
.usp-caption:focus-visible { outline: 2px solid #c9a84c; outline-offset: -4px; }

/* Gold underline on the active caption.
   A pseudo-element, not border-bottom: the caption already owns
   border-right for the dividers, and this needs to sit inside the
   padding box and animate. */
.usp-caption::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 18px;
    width: 0;
    height: 2px;
    background: #c9a84c;
    transform: translateX(-50%);
    transition: width .35s ease;
    pointer-events: none;
}
.usp-panel.is-active .usp-caption::after { width: 56px; }

/* Faint preview of the underline on hover of a non-active caption */
.usp-caption:hover::after,
.usp-caption:focus-visible::after { width: 56px; }
.usp-panel:not(.is-active) .usp-caption:hover::after,
.usp-panel:not(.is-active) .usp-caption:focus-visible::after {
    background: rgba(201,168,76,.55);
}

.usp-caption-title {
    font-family: Georgia, 'Playfair Display', serif;
    font-size: 30px;
    font-weight: 400;
    color: #fff;
    letter-spacing: .01em;
}

.usp-caption-desc {
    font-size: 15px;
    font-weight: 400;
    color: rgba(255,255,255,.86);
}

/* ---------- Mobile: three stacked cards ---------- */
@media (max-width: 767.98px) {
    .usp-stage {
        height: auto;
        display: block;
    }
    .usp-stage::after { display: none; }

    .usp-panel {
        position: relative;
        display: block;
        border-bottom: 1px solid rgba(255,255,255,.14);
    }
    .usp-panel:last-child { border-bottom: 0; }

    /* Every photo shows, in flow */
    .usp-shot {
        position: absolute;
        inset: 0;
        opacity: 1;
        transition: none;
    }
    .usp-panel::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 2;
        background: linear-gradient(to top,
                    rgba(0,0,0,.74) 0%,
                    rgba(0,0,0,.24) 56%,
                    transparent 100%);
        pointer-events: none;
    }

    .usp-caption {
        position: relative;
        left: auto !important;
        width: 100%;
        min-height: 240px;
        padding: 0 18px 26px;
        border-right: 0;
        opacity: 1;
        cursor: default;
    }
    .usp-caption::after { display: none; }

    .usp-caption-title { font-size: 26px; }
    .usp-caption-desc  { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .usp-shot { transition: none; }
    .usp-caption::after { transition: none; }
}