:root {
    --mrc-wine: #6f1838;
    --mrc-gold: #c3923c;
    --mrc-cream: #fff9ee;
}

.mrc-section {
    position: relative;
    padding: clamp(34px, 5vw, 72px) 18px;
    overflow: hidden;
    background:
        radial-gradient(circle at 14% 18%, rgba(195, 146, 60, .17), transparent 31%),
        radial-gradient(circle at 86% 82%, rgba(111, 24, 56, .11), transparent 35%),
        linear-gradient(180deg, #fffdf8 0%, #fff8ec 52%, #fffdf8 100%);
}

.mrc-section::before,
.mrc-section::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(2px);
}

.mrc-section::before {
    width: 360px;
    height: 360px;
    left: -210px;
    top: 14%;
    border: 1px solid rgba(195, 146, 60, .23);
    box-shadow: 0 0 0 44px rgba(195, 146, 60, .035), 0 0 0 92px rgba(111, 24, 56, .025);
}

.mrc-section::after {
    width: 260px;
    height: 260px;
    right: -160px;
    bottom: 8%;
    border: 1px solid rgba(111, 24, 56, .14);
    box-shadow: 0 0 0 40px rgba(111, 24, 56, .025);
}

.mrc-shell {
    position: relative;
    z-index: 1;
    width: min(1280px, 100%);
    margin: 0 auto;
}

.mrc-stage {
    display: grid;
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.16fr) minmax(0, .78fr);
    align-items: center;
    gap: clamp(12px, 2vw, 30px);
    min-height: clamp(470px, 50vw, 690px);
    padding: clamp(12px, 1.5vw, 22px) 0;
    overflow: visible;
}

.mrc-slide {
    --mrc-accent: #c79535;
    position: relative;
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    aspect-ratio: 1032 / 1524;
    border: 0;
    outline: 0;
    transform-origin: center center;
    translate: 0 0;
    transition:
        translate .78s cubic-bezier(.2, .82, .2, 1),
        transform .78s cubic-bezier(.2, .82, .2, 1),
        opacity .55s ease,
        filter .55s ease;
    will-change: transform, opacity, translate;
    cursor: default;
    isolation: isolate;
}

.mrc-slide--gold { --mrc-accent: #d59a21; }
.mrc-slide--silver { --mrc-accent: #a7afb9; }
.mrc-slide--platinum { --mrc-accent: #d1d4dc; }

.mrc-picture-frame {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--mrc-accent) 66%, #ffffff 34%);
    border-radius: clamp(20px, 2vw, 32px);
    background: #1d100b;
    box-shadow:
        0 22px 50px rgba(52, 27, 12, .23),
        0 0 0 5px color-mix(in srgb, var(--mrc-accent) 10%, transparent 90%),
        inset 0 0 0 1px rgba(255, 255, 255, .2);
    transition: box-shadow .55s ease, border-color .55s ease;
}

.mrc-picture-frame::before {
    content: "";
    position: absolute;
    inset: 8px;
    z-index: 2;
    border: 1px solid color-mix(in srgb, var(--mrc-accent) 42%, transparent 58%);
    border-radius: clamp(15px, 1.6vw, 25px);
    pointer-events: none;
}

.mrc-picture-frame::after {
    content: "";
    position: absolute;
    z-index: 3;
    left: 8%;
    right: 8%;
    bottom: -8%;
    height: 16%;
    border-radius: 50%;
    background: color-mix(in srgb, var(--mrc-accent) 38%, transparent 62%);
    filter: blur(28px);
    opacity: .5;
    pointer-events: none;
}

.mrc-picture-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;
    transition: transform 1.2s cubic-bezier(.2, .8, .2, 1), filter .55s ease;
}

.mrc-picture-gloss {
    position: absolute;
    z-index: 4;
    top: -22%;
    bottom: -22%;
    left: -48%;
    width: 28%;
    opacity: 0;
    transform: rotate(13deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.32), transparent);
    pointer-events: none;
}

.mrc-slide.is-active {
    z-index: 4;
    transform: translateY(-3px) scale(1);
    opacity: 1;
    filter: none;
}

.mrc-slide.is-active .mrc-picture-frame {
    border-color: color-mix(in srgb, var(--mrc-accent) 84%, #ffffff 16%);
    box-shadow:
        0 34px 78px rgba(48, 24, 9, .31),
        0 0 0 7px color-mix(in srgb, var(--mrc-accent) 14%, transparent 86%),
        0 0 42px color-mix(in srgb, var(--mrc-accent) 28%, transparent 72%),
        inset 0 0 0 1px rgba(255,255,255,.28);
}

.mrc-slide.is-active .mrc-picture-frame img {
    transform: scale(1.018);
}

.mrc-slide.is-active .mrc-picture-gloss {
    animation: mrcImageGloss 3.4s ease-in-out infinite 1s;
}

.mrc-slide.is-left,
.mrc-slide.is-right {
    z-index: 1;
    transform: scale(.82);
    opacity: .68;
    filter: saturate(.78) brightness(.9);
}

.mrc-slide.is-left {
    transform-origin: right center;
}

.mrc-slide.is-right {
    transform-origin: left center;
}

.mrc-slide.is-paused .mrc-picture-frame {
    box-shadow:
        0 34px 78px rgba(48, 24, 9, .31),
        0 0 0 7px color-mix(in srgb, var(--mrc-accent) 20%, transparent 80%),
        0 0 52px color-mix(in srgb, var(--mrc-accent) 34%, transparent 66%),
        inset 0 0 0 1px rgba(255,255,255,.3);
}

.mrc-slide:focus-visible .mrc-picture-frame {
    outline: 3px solid var(--mrc-wine);
    outline-offset: 6px;
}

@media (hover: hover) {
    .mrc-slide.is-active:hover {
        transform: translateY(-10px) scale(1.012);
    }

    .mrc-slide.is-active:hover .mrc-picture-frame img {
        transform: scale(1.04);
    }
}

@keyframes mrcImageGloss {
    0%, 58% { left: -48%; opacity: 0; }
    68% { opacity: .7; }
    88% { left: 122%; opacity: .12; }
    100% { left: 122%; opacity: 0; }
}

@media (max-width: 767px) {
    .mrc-section {
        padding: 30px 14px 42px;
    }

    .mrc-stage {
        display: block;
        min-height: 0;
        padding: 6px 0;
        overflow: visible;
        touch-action: pan-y;
        -webkit-user-select: none;
        user-select: none;
    }

    .mrc-slide {
        display: none;
        width: min(100%, 430px);
        max-width: 430px;
        margin: 0 auto;
        transform: none;
    }

    .mrc-slide.is-active {
        display: block;
        animation: mrcMobileImageEnter .66s cubic-bezier(.2, .82, .2, 1) both;
        cursor: pointer;
    }

    .mrc-slide.is-left,
    .mrc-slide.is-right {
        display: none;
    }

    .mrc-slide.is-active .mrc-picture-frame {
        box-shadow:
            0 24px 54px rgba(48, 24, 9, .27),
            0 0 0 5px color-mix(in srgb, var(--mrc-accent) 14%, transparent 86%),
            0 0 30px color-mix(in srgb, var(--mrc-accent) 23%, transparent 77%),
            inset 0 0 0 1px rgba(255,255,255,.26);
    }
}

@keyframes mrcMobileImageEnter {
    from { opacity: 0; transform: translateY(18px) scale(.955); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .mrc-slide,
    .mrc-picture-frame img {
        transition: none;
    }

    .mrc-slide.is-active,
    .mrc-slide.is-active .mrc-picture-gloss {
        animation: none;
    }
}

/* Dynamic admin-managed carousel states */
.mrc-slide.is-hidden {
    display: none;
}

.mrc-stage--double {
    grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
    width: min(900px, 100%);
    margin-inline: auto;
}

.mrc-stage--single {
    grid-template-columns: minmax(0, 520px);
    justify-content: center;
}

.mrc-stage--single .mrc-slide,
.mrc-stage--double .mrc-slide {
    max-width: 470px;
}

@media (max-width: 767px) {
    .mrc-stage--double,
    .mrc-stage--single {
        display: block;
        width: 100%;
    }

    .mrc-stage[data-metal-return-carousel] {
        touch-action: pan-y pinch-zoom;
    }
}
