.amgs-widget,
.amgs-widget *,
.amgs-outer-shell,
.amgs-container,
.amgs-slider,
.amgs-slider * {
    box-sizing: border-box;
}

.amgs-widget {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* Layer 1: full-width/main background */
.amgs-outer-shell {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
    background: transparent;
}

.amgs-outer-shell.amgs-full-bleed {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Layer 2: boxed container */
.amgs-container {
    position: relative;
    width: 100%;
    max-width: 1320px;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    background: transparent;
}

.amgs-slider {
    --amgs-active-width: 34%;
    --amgs-side-width: 26%;
    --amgs-side-position: 17%;
    --amgs-image-height: 78%;
    --amgs-side-blur: 5px;
    --amgs-side-opacity: .50;
    --amgs-side-scale: .90;
    --amgs-active-scale: 1;
    --amgs-speed: 650ms;

    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 520px;
    overflow: hidden;
    isolation: isolate;
    background: #fff9ee;
}

.amgs-stage {
    position: relative;
    width: 100%;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    border-radius: inherit;
}

.amgs-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--amgs-side-width);
    height: var(--amgs-image-height);
    margin: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(.82);
    transform-origin: center center;
    filter: blur(var(--amgs-side-blur));
    transition:
        left var(--amgs-speed) cubic-bezier(.22,.61,.36,1),
        width var(--amgs-speed) cubic-bezier(.22,.61,.36,1),
        transform var(--amgs-speed) cubic-bezier(.22,.61,.36,1),
        opacity var(--amgs-speed) ease,
        filter var(--amgs-speed) ease;
    will-change: left, width, transform, opacity, filter;
    z-index: 1;
}

.amgs-slide.is-active,
.amgs-slide.is-prev,
.amgs-slide.is-next {
    visibility: visible;
}

.amgs-slide.is-active {
    left: 50%;
    width: var(--amgs-active-width);
    opacity: 1;
    filter: blur(0);
    transform: translate(-50%, -50%) scale(var(--amgs-active-scale));
    pointer-events: auto;
    z-index: 4;
}

.amgs-slide.is-prev {
    left: var(--amgs-side-position);
    width: var(--amgs-side-width);
    opacity: var(--amgs-side-opacity);
    filter: blur(var(--amgs-side-blur));
    transform: translate(-50%, -50%) scale(var(--amgs-side-scale));
    pointer-events: auto;
    cursor: pointer;
    z-index: 2;
}

.amgs-slide.is-next {
    left: calc(100% - var(--amgs-side-position));
    width: var(--amgs-side-width);
    opacity: var(--amgs-side-opacity);
    filter: blur(var(--amgs-side-blur));
    transform: translate(-50%, -50%) scale(var(--amgs-side-scale));
    pointer-events: auto;
    cursor: pointer;
    z-index: 2;
}

.amgs-slide.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 0;
}

.amgs-image-shell {
    position: relative;
    width: 100%;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255,255,255,.52);
    transform: translateZ(0);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.amgs-image-shell img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    min-width: 0;
    border-radius: inherit !important;
    object-fit: contain;
    object-position: center;
    user-select: none;
    -webkit-user-drag: none;
    backface-visibility: hidden;
}

.amgs-slide.is-active .amgs-image-shell {
    box-shadow: 0 24px 65px rgba(63, 48, 18, .12);
}

.amgs-caption {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    width: auto;
    max-width: calc(100% - 28px);
    padding: 10px 16px;
    margin: 0;
    border-radius: 999px;
    background: rgba(10,35,22,.78);
    color: #fff;
    text-align: center;
    line-height: 1.35;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 6;
}

.amgs-slide.is-active .amgs-caption {
    opacity: 1;
    visibility: visible;
}

.amgs-arrow {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 54px;
    height: 54px;
    padding: 0;
    margin: 0;
    border: 1px solid rgba(255,255,255,.62);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #d99b17;
    box-shadow: 0 10px 28px rgba(0,0,0,.16);
    transition: transform .25s ease, background .25s ease, box-shadow .25s ease, opacity .25s ease;
}

.amgs-arrow:hover,
.amgs-arrow:focus-visible {
    transform: translateY(-50%) scale(1.06);
    background: #2d5e2b;
    box-shadow: 0 14px 32px rgba(0,0,0,.2);
    outline: none;
}

.amgs-arrow:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.amgs-arrow svg {
    width: 42%;
    height: 42%;
    stroke: #fff;
}

.amgs-arrow-prev { left: 18px; }
.amgs-arrow-next { right: 18px; }

.amgs-dots {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: calc(100% - 96px);
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.76);
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.amgs-dot {
    appearance: none;
    -webkit-appearance: none;
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(45,94,43,.28);
    cursor: pointer;
    transition: width .25s ease, background .25s ease, transform .25s ease;
}

.amgs-dot.is-active {
    width: 24px;
    background: #d99b17;
}

.amgs-dot:focus-visible {
    outline: 2px solid #2d5e2b;
    outline-offset: 2px;
}

.amgs-empty {
    padding: 24px;
    border: 1px dashed #c9a45c;
    border-radius: 14px;
    background: #fff9ee;
    color: #3c5f2e;
    text-align: center;
}

@media (max-width: 1024px) {
    .amgs-slider {
        --amgs-active-width: 46%;
        --amgs-side-width: 27%;
        --amgs-side-position: 13%;
        --amgs-image-height: 78%;
        height: 440px;
    }
}

@media (max-width: 767px) {
    .amgs-outer-shell.amgs-full-bleed {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }

    .amgs-slider {
        --amgs-active-width: 76%;
        --amgs-side-width: 42%;
        --amgs-side-position: 2%;
        --amgs-image-height: 76%;
        height: 340px;
    }

    .amgs-caption {
        max-width: calc(100% - 20px);
        bottom: 14px;
        padding: 8px 12px;
        border-radius: 12px;
    }

    .amgs-arrow-prev { left: 8px; }
    .amgs-arrow-next { right: 8px; }

    .amgs-dots {
        bottom: 8px;
        gap: 6px;
        padding: 6px 8px;
        max-width: calc(100% - 72px);
        overflow: hidden;
    }
}

@media (prefers-reduced-motion: reduce) {
    .amgs-slide,
    .amgs-arrow,
    .amgs-dot,
    .amgs-caption {
        transition-duration: 0.01ms !important;
    }
}
