/* =========================================================
   MOTOGRAPHIX V9
   MODEL PAGE — LIQUID GLASS / iOS STYLE
   ========================================================= */

.mgx-model-page {
    --mgx-red: #e30613;
    --mgx-red-bright: #ff2432;
    --mgx-glass: rgba(18, 18, 22, .58);
    --mgx-glass-strong: rgba(13, 13, 16, .78);
    --mgx-glass-border: rgba(255, 255, 255, .12);
    --mgx-glass-border-soft: rgba(255, 255, 255, .075);
    --mgx-text-soft: rgba(255, 255, 255, .58);

    position: relative;
    isolation: auto;
    width: 100%;
    min-height: 100vh;
    padding: 42px 0 132px;
    overflow: visible;
    color: #fff;
    background:
        radial-gradient(circle at 50% -8%, rgba(227, 6, 19, .16), transparent 30%),
        radial-gradient(circle at 9% 24%, rgba(255, 255, 255, .035), transparent 22%),
        linear-gradient(180deg, #08080a 0%, #020203 34%, #000 100%);
}

.mgx-model-page::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(115deg, transparent 0 34%, rgba(255,255,255,.025) 44%, transparent 55%),
        radial-gradient(circle at 86% 72%, rgba(227, 6, 19, .07), transparent 25%);
}


/* =========================================================
   HEADER GLASS
   ========================================================= */

.mgx-model-header {
    position: relative;
    width: min(920px, calc(100% - 48px));
    margin: 0 auto 30px;
    padding: 26px 28px 24px;
    overflow: hidden;
    box-sizing: border-box;
    text-align: center;

    background:
        linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.025)),
        rgba(14, 14, 18, .54);

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 30px;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.12),
        0 24px 70px rgba(0,0,0,.35);

    -webkit-backdrop-filter: blur(28px) saturate(145%);
    backdrop-filter: blur(28px) saturate(145%);
}

.mgx-model-header::before {
    content: "";
    position: absolute;
    top: -70px;
    left: 50%;
    width: 440px;
    height: 150px;
    transform: translateX(-50%);
    pointer-events: none;
    background: radial-gradient(ellipse, rgba(227,6,19,.23), transparent 68%);
    filter: blur(8px);
}

.mgx-model-kicker {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 27px;
    margin-bottom: 12px;
    padding: 0 12px;

    color: #fff;
    background: rgba(227,6,19,.14);
    border: 1px solid rgba(255,45,58,.30);
    border-radius: 999px;

    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08),
        0 8px 24px rgba(227,6,19,.09);
}

.mgx-model-header h1 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 4vw, 58px);
    line-height: .96;
    font-weight: 900;
    letter-spacing: -1.2px;
    text-transform: uppercase;
    text-wrap: balance;
}

.mgx-model-header p {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 14px 0 0;
    color: rgba(255,255,255,.50);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.mgx-model-header p strong {
    color: #fff;
    font-weight: 900;
}


/* =========================================================
   BREADCRUMB
   ========================================================= */

.mgx-model-breadcrumb {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto 14px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;

    color: rgba(255,255,255,.40);
    font-size: 9px;
    font-weight: 650;
}

.mgx-model-breadcrumb a {
    color: rgba(255,255,255,.60);
    text-decoration: none;
}

.mgx-model-breadcrumb a:hover {
    color: #fff;
}

.mgx-model-breadcrumb [aria-current="page"] {
    color: rgba(255,255,255,.78);
}


/* =========================================================
   GALERÍA
   ========================================================= */

.mgx-model-gallery {
    width: min(1440px, calc(100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}


/* =========================================================
   TARJETA DE DISEÑO — GLASS FRAME
   ========================================================= */

.mgx-model-gallery-item {
    position: relative;
    isolation: auto;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    box-sizing: border-box;
    text-decoration: none;

    background: rgba(15,15,18,.72);
    border: 1px solid rgba(255,255,255,.105);
    border-radius: 24px;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.09),
        0 14px 32px rgba(0,0,0,.24);

    transform: translateZ(0);

    transition:
        transform .34s cubic-bezier(.2,.75,.25,1),
        border-color .28s ease,
        box-shadow .34s ease;
}

.mgx-model-gallery-item::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    border-radius: inherit;
    background:
        linear-gradient(145deg, rgba(255,255,255,.10), transparent 24%, transparent 72%, rgba(227,6,19,.055)),
        linear-gradient(180deg, rgba(0,0,0,0) 58%, rgba(0,0,0,.30) 100%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.018);
}

.mgx-model-gallery-item img {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 88% center;
    transform: scale(1.24);
    transform-origin: center center;
    transition:
        transform .48s cubic-bezier(.2,.75,.25,1),
        filter .35s ease;
}


/* Logo vertical Motographix */
.mgx-model-gallery-item::after {
    content: "";
    position: absolute;
    top: 5%;
    right: 2%;
    bottom: 10%;
    z-index: 2;
    width: 16%;
    pointer-events: none;

    background-image: url("../images/mgx-vertical.webp");
    background-repeat: no-repeat;
    background-position: center right;
    background-size: contain;
    opacity: .34;
}


/* =========================================================
   FRANJA INFERIOR — LIQUID GLASS
   ========================================================= */

.mgx-model-gallery-meta {
    position: absolute;
    left: 7px;
    right: 7px;
    bottom: 7px;
    z-index: 4;

    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    padding: 5px 6px 5px 11px;
    box-sizing: border-box;

    background:
        linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.025)),
        rgba(10,10,13,.67);

    border: 1px solid rgba(255,255,255,.105);
    border-radius: 14px;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08),
        0 8px 22px rgba(0,0,0,.25);

    -webkit-backdrop-filter: blur(20px) saturate(145%);
    backdrop-filter: blur(20px) saturate(145%);
}

.mgx-model-gallery-code {
    min-width: 0;
    overflow: hidden;
    color: rgba(255,255,255,.94);
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .45px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mgx-model-gallery-price {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.mgx-model-gallery-price-label {
    color: rgba(255,255,255,.50);
    font-size: 7px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .5px;
}

.mgx-model-gallery-price-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0 9px;

    border: 1px solid rgba(255,255,255,.15);
    border-radius: 999px;

    background:
        linear-gradient(180deg, rgba(255,255,255,.12), transparent 45%),
        linear-gradient(135deg, var(--mgx-red-bright), var(--mgx-red));

    color: #fff;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.20),
        0 5px 16px rgba(227,6,19,.24);
}


/* =========================================================
   HOVER / FOCUS
   ========================================================= */

@media (hover: hover) and (pointer: fine) {
    .mgx-model-gallery-item:hover {
        transform: translateY(-6px) scale(1.012);
        border-color: rgba(255,255,255,.21);
        box-shadow:
            inset 0 1px 0 rgba(255,255,255,.13),
            0 24px 58px rgba(0,0,0,.45),
            0 0 0 1px rgba(227,6,19,.10);
    }

    .mgx-model-gallery-item:hover img {
        transform: scale(1.285);
        filter: saturate(1.04) contrast(1.02);
    }
}

.mgx-model-gallery-item:focus-visible {
    outline: 2px solid rgba(255,45,58,.92);
    outline-offset: 3px;
}


/* =========================================================
   GALERÍA VACÍA
   ========================================================= */

.mgx-model-gallery-empty {
    width: min(700px, calc(100% - 40px));
    min-height: 220px;
    margin: 30px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;

    color: rgba(255,255,255,.48);
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 24px;

    font-size: 11px;
    font-weight: 900;
    letter-spacing: .7px;
    text-align: center;

    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}



/* =========================================================
   PAGINACIÓN — ESCRITORIO
   24 diseños por página
   ========================================================= */

.mgx-gallery-pagination {
    width: 100%;
    margin: 22px 0 40px;

    display: none;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 7px;
}

.mgx-gallery-pagination.is-visible {
    display: flex;
}

.mgx-gallery-page-button {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;

    background: rgba(17,17,20,.78);
    color: #ffffff;

    font-size: 10px;
    font-weight: 800;

    cursor: pointer;

    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease,
        opacity .2s ease;
}

.mgx-gallery-page-button:not(.mgx-gallery-page-prev):not(.mgx-gallery-page-next):not(.is-active):hover {
    background: rgba(35,35,40,.92);
    border-color: rgba(255,255,255,.24);
}

.mgx-gallery-page-button.is-active {
    background: var(--mgx-red);
    border-color: var(--mgx-red);
    color: #ffffff;
    box-shadow: 0 7px 22px rgba(227,6,19,.20);
}

.mgx-gallery-page-prev,
.mgx-gallery-page-next {
    background: rgba(227,6,19,.92);
    border-color: rgba(227,6,19,.92);
    color: #ffffff;
}

.mgx-gallery-page-prev:hover,
.mgx-gallery-page-next:hover {
    background: #ff1726;
    border-color: #ff1726;
    transform: scale(1.05);
}

.mgx-gallery-page-button:disabled {
    opacity: .32;
    cursor: default;
    transform: none;
}

.mgx-gallery-page-ellipsis {
    min-width: 22px;
    color: rgba(255,255,255,.45);
    font-size: 13px;
    font-weight: 900;
    text-align: center;
}

@media (min-width: 900px) {
    /*
     * En escritorio usamos paginación.
     * El indicador "SIGUE BAJANDO" pertenece solo a móvil/tablet.
     */
    .mgx-gallery-progress {
        display: none !important;
    }
}

@media (max-width: 899px) {
    .mgx-gallery-pagination {
        display: none !important;
    }
}


/* =========================================================
   CARGA PROGRESIVA
   ========================================================= */

.mgx-gallery-progress {
    width: max-content;
    max-width: calc(100% - 32px);
    min-height: 38px;
    margin: 22px auto 40px;
    padding: 0 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    color: rgba(255,255,255,.58);
    background: rgba(16,16,20,.52);
    border: 1px solid rgba(255,255,255,.085);
    border-radius: 999px;

    font-size: 8px;
    font-weight: 800;
    letter-spacing: .55px;
    text-transform: uppercase;
}

.mgx-gallery-progress[hidden] {
    display: none !important;
}

.mgx-gallery-progress__dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--mgx-red);
    box-shadow: 0 0 0 4px rgba(227,6,19,.11);
}


/* =========================================================
   ENTRADA DE TARJETAS
   ========================================================= */

@keyframes mgxCardElegantEnter {
    0% {
        opacity: 0;
        transform: translateY(24px) scale(.975);
        filter: blur(2px);
    }

    60% {
        opacity: 1;
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.mgx-model-gallery-item.mgx-card-enter {
    animation:
        mgxCardElegantEnter
        560ms
        cubic-bezier(.16,.72,.22,1)
        both;
    animation-delay: var(--mgx-card-delay, 0ms);
    will-change: transform, opacity;
}


/* =========================================================
   PANEL DE COLORES — LIQUID GLASS
   ========================================================= */

.mgx-model-colors-panel {
    position: fixed;
    left: 50%;
    bottom: 92px;
    z-index: 9998;
    transform: translateX(-50%) translateY(14px) scale(.985);

    width: min(620px, 72vw);
    max-height: 65vh;
    padding: 16px;
    overflow: hidden;
    box-sizing: border-box;

    background:
        linear-gradient(180deg, rgba(255,255,255,.105), rgba(255,255,255,.025)),
        rgba(15,15,19,.78);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 26px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.11),
        0 26px 70px rgba(0,0,0,.55);

    -webkit-backdrop-filter: blur(32px) saturate(155%);
    backdrop-filter: blur(32px) saturate(155%);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity .24s ease,
        transform .28s cubic-bezier(.2,.75,.25,1),
        visibility .24s ease;
}

.mgx-model-colors-panel.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
}

/* El dock iOS queda por debajo y el panel se ancla al viewport. */
body.mgx-has-context-nav .mgx-model-colors-panel {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: calc(96px + env(safe-area-inset-bottom)) !important;
    z-index: 10010 !important;
    width: min(620px, calc(100vw - 32px));
}

.mgx-model-colors-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
    padding-left: 4px;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.mgx-model-colors-close {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 50%;
    background: rgba(255,255,255,.075);
    color: #fff;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
    transition: background .2s ease, transform .2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .mgx-model-colors-close:hover {
        background: var(--mgx-red);
        transform: scale(1.04);
    }
}

.mgx-model-colors-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 8px;
    max-height: calc(65vh - 70px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.18) transparent;
}

.mgx-model-color-option {
    min-height: 43px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 11px;

    border: 1px solid rgba(255,255,255,.09);
    border-radius: 15px;
    background: rgba(255,255,255,.045);
    color: rgba(255,255,255,.72);

    font-size: 10px;
    font-weight: 800;
    cursor: pointer;

    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;
}

.mgx-model-color-option:hover {
    background: rgba(255,255,255,.075);
    color: #fff;
}

.mgx-model-color-option.is-active {
    background:
        linear-gradient(180deg, rgba(255,255,255,.065), transparent),
        rgba(227,6,19,.19);
    border-color: rgba(255,45,58,.58);
    color: #fff;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.06),
        0 5px 16px rgba(227,6,19,.08);
}

.mgx-model-color-option:focus-visible,
.mgx-model-colors-close:focus-visible {
    outline: 2px solid rgba(255,45,58,.92);
    outline-offset: 2px;
}

.mgx-model-color-dot {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    border-radius: 50%;
    background: #777;
    border: 1px solid rgba(255,255,255,.42);
    box-shadow:
        0 0 0 2px rgba(0,0,0,.18),
        inset 0 1px 1px rgba(255,255,255,.18);
}

.mgx-model-color-name {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mgx-model-color-count {
    margin-left: auto;
    color: rgba(255,255,255,.42);
    font-size: 9px;
    font-weight: 900;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1200px) {
    .mgx-model-gallery {
        grid-template-columns: repeat(4, minmax(0,1fr));
    }
}


/* =========================================================
   MOBILE / TABLET VERTICAL
   ========================================================= */

@media (max-width: 899px) {
    .mgx-model-breadcrumb {
        width: calc(100% - 24px);
        margin-bottom: 10px;
        justify-content: flex-start;
        font-size: 8px;
        overflow: hidden;
    }

    .mgx-gallery-progress {
        min-height: 34px;
        margin-top: 16px;
        margin-bottom: 28px;
        font-size: 7.5px;
    }

    .mgx-model-page {
        padding: 24px 0 112px;
        background:
            radial-gradient(circle at 50% -5%, rgba(227,6,19,.15), transparent 27%),
            linear-gradient(180deg, #08080a 0%, #020203 32%, #000 100%);
    }

    .mgx-model-header {
        width: calc(100% - 24px);
        margin-bottom: 16px;
        padding: 20px 16px 18px;
        border-radius: 24px;
    }

    .mgx-model-header::before {
        top: -76px;
        width: 330px;
    }

    .mgx-model-kicker {
        min-height: 25px;
        margin-bottom: 10px;
        padding-inline: 10px;
        font-size: 9px;
        letter-spacing: 1.2px;
    }

    .mgx-model-header h1 {
        font-size: clamp(27px, 8vw, 34px);
        line-height: .98;
        letter-spacing: -.6px;
    }

    .mgx-model-header p {
        margin-top: 11px;
        font-size: 9px;
        letter-spacing: .85px;
    }

    .mgx-model-gallery {
        width: calc(100% - 24px);
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 10px;
    }

    .mgx-model-gallery-item {
        border-radius: 19px;
        box-shadow:
            inset 0 1px 0 rgba(255,255,255,.075),
            0 10px 24px rgba(0,0,0,.22);
    }

    .mgx-model-gallery-item img {
        object-position: 72% center;
        transform: scale(1.22);
    }

    .mgx-model-gallery-item::after {
        top: 7%;
        right: 2%;
        bottom: 14%;
        width: 15%;
        opacity: .22;
    }

    .mgx-model-gallery-meta {
        left: 5px;
        right: 5px;
        bottom: 5px;
        min-height: 31px;
        gap: 5px;
        padding: 4px 5px 4px 8px;
        border-radius: 12px;
    }

    .mgx-model-gallery-code {
        font-size: 7.7px;
        letter-spacing: .25px;
    }

    .mgx-model-gallery-price {
        gap: 3px;
    }

    .mgx-model-gallery-price-label {
        font-size: 6.2px;
    }

    .mgx-model-gallery-price-pill {
        min-height: 19px;
        padding: 0 6px;
        font-size: 7.7px;
    }

    .mgx-model-colors-panel {
        left: 12px;
        right: 12px;
        bottom: 80px;
        width: auto;
        max-height: 65vh;
        padding: 13px;
        border-radius: 24px;
        transform: translateY(14px) scale(.985);
    }

    .mgx-model-colors-panel.is-open {
        transform: translateY(0) scale(1);
    }

    body.mgx-has-context-nav .mgx-model-colors-panel {
        left: 12px !important;
        right: 12px !important;
        bottom: calc(88px + env(safe-area-inset-bottom)) !important;
        width: auto;
        transform: translateY(14px) scale(.985);
    }

    body.mgx-has-context-nav .mgx-model-colors-panel.is-open {
        transform: translateY(0) scale(1);
    }

    .mgx-model-colors-list {
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 7px;
    }

    .mgx-model-color-option {
        min-height: 42px;
        border-radius: 14px;
    }
}


/* =========================================================
   MÓVILES PEQUEÑOS
   ========================================================= */

@media (max-width: 420px) {
    .mgx-model-page {
        padding-top: 18px;
    }

    .mgx-model-header {
        width: calc(100% - 16px);
        padding: 18px 13px 16px;
        border-radius: 22px;
    }

    .mgx-model-header h1 {
        font-size: 27px;
    }

    .mgx-model-gallery {
        width: calc(100% - 16px);
        gap: 8px;
    }

    .mgx-model-gallery-item {
        border-radius: 17px;
    }

    .mgx-model-gallery-meta {
        left: 4px;
        right: 4px;
        bottom: 4px;
        padding-left: 7px;
        padding-right: 4px;
    }

    .mgx-model-gallery-code {
        font-size: 7.2px;
    }

    .mgx-model-gallery-price-label {
        display: none;
    }

    .mgx-model-gallery-price-pill {
        min-height: 18px;
        padding: 0 6px;
        font-size: 7.3px;
    }

    .mgx-model-colors-panel {
        left: 8px;
        right: 8px;
        bottom: 74px;
        border-radius: 22px;
    }

    body.mgx-has-context-nav .mgx-model-colors-panel {
        left: 8px !important;
        right: 8px !important;
        bottom: calc(82px + env(safe-area-inset-bottom)) !important;
    }

    .mgx-model-color-option {
        min-height: 40px;
        padding: 0 9px;
        font-size: 9px;
    }
}


/* =========================================================
   REDUCIR MOVIMIENTO
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .mgx-model-gallery-item,
    .mgx-model-gallery-item img,
    .mgx-model-gallery-item.mgx-card-enter,
    .mgx-model-colors-panel,
    .mgx-model-color-option {
        animation: none !important;
        transition: none !important;
    }
}

/* =========================================================
   VER MÁS DISEÑOS — MÓVIL / TABLET
   No modifica el grid ni el tamaño de las tarjetas.
   ========================================================= */

.mgx-gallery-load-more {
    display: none;
}

@media (max-width: 899px) {

    .mgx-gallery-progress {
        margin-bottom: 12px;
    }

    .mgx-gallery-load-more:not([hidden]) {
        width: max-content;
        max-width: calc(100% - 32px);
        min-height: 42px;
        margin: 0 auto 34px;
        padding: 0 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255,45,58,.42);
        border-radius: 999px;
        background:
            linear-gradient(
                180deg,
                rgba(255,255,255,.08),
                rgba(255,255,255,.025)
            ),
            rgba(227,6,19,.13);
        color: #fff;
        font: inherit;
        font-size: 9px;
        font-weight: 800;
        letter-spacing: .65px;
        text-transform: uppercase;
        cursor: pointer;
        box-shadow:
            inset 0 1px 0 rgba(255,255,255,.08),
            0 10px 28px rgba(0,0,0,.20);
        -webkit-backdrop-filter:
            blur(14px) saturate(140%);
        backdrop-filter:
            blur(14px) saturate(140%);
    }

    .mgx-gallery-load-more:active {
        transform: scale(.985);
    }
}

@media (hover: hover) and (pointer: fine) {
    .mgx-gallery-load-more:not([hidden]):hover {
        border-color: rgba(255,45,58,.72);
        background:
            linear-gradient(
                180deg,
                rgba(255,255,255,.10),
                rgba(255,255,255,.025)
            ),
            rgba(227,6,19,.22);
    }
}

