#gallery-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
    z-index: 1200;
    background: none;
}

#gallery-section.is-content-scroll {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    align-items: flex-start;
    padding-top: 0;
    pointer-events: auto;
}

#gallery-section.is-content-scroll.is-architecture-scroll {
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: clip;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

#gallery-section.is-active {
    opacity: 1;
    display: flex;
    pointer-events: auto;
}

#gallery-section.is-content-scroll .fan-container {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin-top: 0;
    z-index: 3200;
    isolation: isolate;
}

#gallery-section.has-fan-selection .fan-container {
    z-index: 4200;
    isolation: isolate;
    /* El contenedor en sí no debe interceptar eventos: el carrusel de proyectos
       queda parcialmente debajo de él por z-index. Con pointer-events:none en el
       contenedor, los .fan-card hijos (que tienen pointer-events:auto) siguen
       siendo interactivos, pero el área vacía del contenedor ya no bloquea
       el cursor sobre el carrusel. */
    pointer-events: none;
}

#card-status {
    position: absolute;
    left: 0;
    top: 0;
    transform: none;
    font-family: 'bianzhidai-Base', sans-serif;
    font-size: 4.4rem;
    font-style: italic;
    letter-spacing: 0.5px;
    color: #000000;
    text-shadow: none;
    text-align: center;
    opacity: 0;
    translate: 0 10px;
    transition: opacity 0.22s ease, translate 0.22s ease;
    z-index: 60;
    pointer-events: none;
    width: 100vw;
    overflow: hidden;
    white-space: nowrap;
}

#card-status.is-architecture.is-architecture-projects {
    overflow: visible;
}

#card-status.is-visible {
    opacity: 1;
    translate: 0 0;
}

#card-status.is-carousel {
    text-align: left;
}

#card-status.is-architecture {
    white-space: normal;
    pointer-events: auto;
    top: 4vh;
    left: 50%;
    transform: translateX(-50%);
    width: min(980px, calc(100vw - 3rem));
    z-index: 2600;
    overflow: visible;
}

#card-status.is-docencia {
    white-space: normal;
    pointer-events: auto;
    top: 4vh;
    left: 50%;
    transform: translateX(-50%);
    width: min(980px, calc(100vw - 3rem));
    z-index: 2600;
    overflow: visible;
}

#gallery-section.has-fan-selection #card-status {
    z-index: 2400;
}

#gallery-section.is-content-scroll #card-status.is-architecture.is-architecture-projects {
    max-width: none;
    width: calc(100vw - 0.6rem);
    position: relative;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    margin-top: clamp(8px, 2vh, 18px);
    margin-bottom: 4rem;
    padding-bottom: clamp(180px, 24vh, 300px);
    z-index: 2400;
}

#gallery-section.is-content-scroll #card-status.is-docencia.is-architecture-projects {
    max-width: none;
    width: calc(100vw - 0.6rem);
    position: relative;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    margin-top: clamp(8px, 2vh, 18px);
    margin-bottom: 4rem;
    padding-bottom: clamp(180px, 24vh, 300px);
    z-index: 2400;
}

.architecture-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(12px, 2vw, 20px);
}

.architecture-status-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    text-decoration: none;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08));
    border-radius: 26px;
    padding: clamp(12px, 2vw, 18px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.architecture-status-lead {
    margin: 2px 0 0;
    font-family: 'Space Mono', monospace;
    font-size: clamp(11px, 1.1vw, 14px);
    line-height: 1.35;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.88);
    text-transform: lowercase;
}

.architecture-status-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.architecture-subview {
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08));
    border-radius: 26px;
    padding: clamp(12px, 2vw, 18px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
}

.architecture-projects-timeline {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.6vh, 20px);
    align-items: stretch;
    padding-top: clamp(90px, 14vh, 170px);
}

.architecture-projects-timeline--docencia {
    padding-top: clamp(24px, 4vh, 52px);
}

.architecture-projects-timeline--docencia .arch-search-label,
.architecture-projects-timeline--docencia .arch-year-filter,
.architecture-projects-timeline--docencia .architecture-projects-years {
    display: none;
}

.arch-search-label {
    position: fixed;
    top: clamp(12px, 2vh, 22px);
    left: clamp(12px, 2vw, 28px);
    z-index: 200;
    display: block;
}

.arch-search-input {
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 105, 180, 0.75);
    color: #ff69b4;
    font-family: 'Space Mono', monospace;
    font-size: clamp(0.9rem, 1.2vw, 1.15rem);
    font-weight: 700;
    padding: 7px 4px;
    width: clamp(90px, 10vw, 160px);
    outline: none;
    letter-spacing: 0.09em;
    transition: border-color 0.2s;
    display: block;
}

.arch-search-input::placeholder {
    color: rgba(255, 105, 180, 0.35);
}

.arch-search-input:focus {
    border-bottom-color: rgba(255, 105, 180, 1);
}

.arch-search-input::-webkit-search-cancel-button {
    display: none;
}

.arch-year-filter {
    position: fixed;
    top: clamp(52px, 7.5vh, 72px);
    left: clamp(12px, 2vw, 28px);
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.arch-year-btn {
    background: transparent;
    border: none;
    border-left: 2px solid rgba(255, 105, 180, 0.25);
    color: rgba(255, 105, 180, 0.4);
    font-family: 'Space Mono', monospace;
    font-size: clamp(0.65rem, 0.85vw, 0.8rem);
    font-weight: 700;
    padding: 2px 7px;
    text-align: left;
    cursor: pointer;
    letter-spacing: 0.08em;
    transition: color 0.15s, border-color 0.15s;
    line-height: 1.5;
}

.arch-year-btn:hover,
.arch-year-btn.is-active {
    color: #ff69b4;
    border-left-color: rgba(255, 105, 180, 0.85);
}

.arch-carousel-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 200;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    outline: none;
    user-select: none;
    color: #ff69b4;
    line-height: 1;
    transition: opacity 0.15s;
    opacity: 0.6;
}

.arch-carousel-arrow:hover {
    opacity: 1;
}

.arch-carousel-arrow--prev {
    left: clamp(6px, 1.2vw, 18px);
}

.arch-carousel-arrow--next {
    right: clamp(6px, 1.2vw, 18px);
}

.arch-carousel-arrow span {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    display: block;
    font-weight: 400;
}

.architecture-projects-years {
    position: fixed;
    top: clamp(12px, 2vh, 22px);
    right: clamp(12px, 2vw, 28px);
    z-index: 200;
}

.architecture-year-cards {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: clamp(6px, 1vw, 14px);
}

/* Each slot holds one digit card and flips 360° on change */
.architecture-year-digit-slot {
    display: grid;
    place-items: center;
}

@keyframes yearDigitFlip {
    0%   { transform: rotateY(0deg);   }
    100% { transform: rotateY(360deg); }
}

.architecture-year-digit-slot.year-digit-flip {
    animation: yearDigitFlip 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.architecture-year-digit-card {
    width: clamp(40px, 3.4vw, 58px);
    height: clamp(56px, 4.8vw, 80px);
    border-radius: 6px;
    display: grid;
    align-items: center;
    justify-items: center;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}

.architecture-year-digit-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.architecture-projects-timeline.is-year-switching .architecture-year-digit-slot {
    opacity: 0.6;
}

.architecture-projects-feed {
    display: block;
    overflow: visible;
}

.architecture-projects-year-group {
    display: none;
    gap: clamp(8px, 1.2vw, 14px);
    animation: archYearFadeIn 0.28s ease;
    overflow: visible;
}

.architecture-projects-year-group.is-active {
    display: grid;
    overflow: visible;
}

.architecture-projects-year-title {
    margin: 0;
    font-family: 'Space Mono', monospace;
    font-size: clamp(11px, 1vw, 13px);
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.72);
}

.architecture-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 28px);
    overflow: visible;
}

.architecture-project-item {
    display: flex;
    flex-direction: column;
    grid-column: span 2;
    justify-self: center;
    text-decoration: none;
    opacity: 0;
    transform: translate3d(0, 18px, -80px) rotateY(0deg) rotateZ(0deg) scale(0.94);
    transition: opacity 0.35s ease, transform 0.35s ease;
    transform-origin: center center;
    will-change: transform, opacity;
}

@keyframes archYearFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes archProjectWheelIn {
    from {
        opacity: 0;
        transform:
            translate3d(calc(var(--wheel-offset, 0) * -68px), 28px, -300px)
            rotateY(calc(var(--wheel-offset, 0) * -24deg))
            rotateZ(calc(var(--wheel-offset, 0) * -9deg))
            scale(0.78);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) rotateY(0deg) rotateZ(0deg) scale(1);
    }
}

.architecture-project-item.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateY(0deg) rotateZ(0deg) scale(1);
    animation: archProjectWheelIn 0.62s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.architecture-project-item.is-row-hidden {
    display: none;
}

/* === Horizontal carousel track para los proyectos === */
.architecture-projects-wheel-track {
    position: relative;
    width: 100%;
    height: clamp(396px, 65vh, 774px);
    perspective: 1500px;
    perspective-origin: 50% 50%;
    overflow: visible;
    padding-bottom: 5rem;
    mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    mask-size: 100% 100%;
    -webkit-mask-size: 100% 100%;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    /* pointer-events: none en el track garantiza a nivel CSS que los items laterales
       nunca interceptan clicks, independientemente del contexto 3D con perspective. */
    pointer-events: none;
}

.architecture-projects-wheel-track .architecture-project-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: fit-content;
    max-width: min(98vw, 755px);
    display: flex;
    flex-direction: column;
    align-items: center;
    grid-column: unset;
    justify-self: unset;
    text-decoration: none;
    cursor: inherit;
    transform-origin: center center;
    transform: translate(-50%, -50%) translateZ(0) rotateY(0deg) scale(0.9);
    opacity: 0;
    transition: transform 0.48s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.48s ease, filter 0.48s ease;
    will-change: transform, opacity;
}

/* Solo el item central recibe clicks — el JS también pone pointer-events via inline style,
   esta regla CSS es la garantía definitiva independiente del contexto 3D/perspective. */
.architecture-projects-wheel-track .architecture-project-item.is-center {
    pointer-events: auto;
    cursor: inherit;
}

.architecture-project-img-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: auto;
    max-width: 100%;
    flex-shrink: 0;
}

.architecture-project-item img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: clamp(377px, 65vh, 824px);
    display: block;
    /* clip-path is more reliable than border-radius inside GPU-composited layers.
       width:auto + height:auto (no object-fit) ensures the element box = image
       content box, so clip-path corners fall exactly on the image corners. */
    clip-path: inset(0 round clamp(22px, 2.8vw, 34px));
    border-radius: clamp(22px, 2.8vw, 34px);
}

.architecture-project-item:not(.is-center) .architecture-project-caption {
    opacity: 0;
    pointer-events: none;
}

.architecture-project-caption {
    margin-top: 6px;
    margin-bottom: 1.8rem;
    transition: opacity 0.48s ease;
    font-family: 'bianzhidai-Base', sans-serif;
    font-style: italic;
    font-size: clamp(1.1rem, 1.5vw, 1.8rem);
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.9);
    text-transform: lowercase;
}

.architecture-projects-timeline--docencia .architecture-project-caption {
    margin-top: 12px;
    margin-bottom: 0.4rem;
    font-family: 'Typefesse', sans-serif;
    font-style: normal;
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
    line-height: 1.1;
    color: #000000;
    text-align: center;
}

.architecture-projects-timeline--docencia .architecture-project-item img {
    max-height: clamp(320px, 58vh, 720px);
}

.architecture-subview-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.architecture-subview-topbar h3 {
    margin: 0;
    font-family: 'bianzhidai-Base', sans-serif;
    font-style: italic;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: #ff00de;
    text-transform: lowercase;
}

.architecture-back-button {
    border: 1px solid rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-radius: 999px;
    padding: 6px 11px;
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    text-transform: lowercase;
    cursor: pointer;
}

.architecture-subview-copy {
    margin: 8px 0 10px;
    font-family: 'Space Mono', monospace;
    font-size: clamp(11px, 1.1vw, 14px);
    line-height: 1.35;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.88);
    text-transform: lowercase;
}

.architecture-media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(8px, 1.2vw, 14px);
    margin-top: 8px;
}

.architecture-media-grid--idi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.architecture-media-grid--idi .architecture-media-item {
    position: relative;
    padding-top: 4.5rem;
    padding-bottom: 1.5rem;
}

.architecture-media-grid--docencia {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.architecture-media-grid--docencia .architecture-media-item {
    position: relative;
    padding-top: 0;
    padding-bottom: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.architecture-media-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    font: inherit;
    color: inherit;
    padding: 0;
    text-align: left;
}

.architecture-media-item img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}

.architecture-media-caption {
    display: block;
    padding: 8px 10px;
    font-family: 'Space Mono', monospace;
    font-size: clamp(10px, 0.95vw, 12px);
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.92);
    text-transform: lowercase;
}

.architecture-media-caption--docencia {
    padding: 12px 0 4px;
    font-family: 'Typefesse', sans-serif;
    font-size: 1.8rem;
    font-weight: normal;
    line-height: 1.1;
    letter-spacing: 0;
    text-align: center;
    color: #000000;
    text-shadow: none;
    background: none;
}

.architecture-media-item:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.architecture-status-links a {
    font-family: 'Space Mono', monospace;
    font-size: clamp(11px, 1vw, 13px);
    line-height: 1;
    text-decoration: none;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.12);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.architecture-status-links a:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.2);
}

.architecture-status-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.72);
    box-shadow: 0 22px 34px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.architecture-status-image-wrap {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
    min-height: clamp(170px, 26vw, 290px);
    display: grid;
    place-items: center;
}

.architecture-status-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.architecture-status-title {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-family: 'bianzhidai-Base', sans-serif;
    font-style: italic;
    font-size: clamp(1.2rem, 2.6vw, 2.3rem);
    color: #ff00de;
    text-shadow: 0 0 12px rgba(255, 0, 222, 0.4);
    text-transform: lowercase;
    line-height: 1;
    white-space: nowrap;
}

@media (max-width: 900px) {
    #card-status.is-architecture {
        top: 10vh;
    }

    .architecture-status-grid {
        grid-template-columns: 1fr;
    }

    #gallery-section.is-content-scroll #card-status.is-architecture.is-architecture-projects {
        width: calc(100vw - 0.5rem);
        margin-top: clamp(10px, 2vh, 20px);
    }

    .architecture-projects-timeline {
        /* already flex column, nothing to override */
    }

    .architecture-projects-years {
        position: fixed;
    }

    .architecture-year-cards {
        /* already flex row, nothing to override */
    }

    .architecture-media-grid,
    .architecture-media-grid--idi,
    .architecture-media-grid--docencia {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .architecture-projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .architecture-media-grid,
    .architecture-media-grid--idi,
    .architecture-media-grid--docencia {
        grid-template-columns: 1fr;
    }

    .architecture-projects-grid {
        grid-template-columns: 1fr;
    }
}

body.is-shop-open {
    overflow: hidden;
    padding-right: var(--ira-scrollbar-compensation, 0px);
}

.shop-embed-shell {
    --ira-shop-corner: clamp(28px, 3.2vw, 44px);
    --ira-shop-corner-soft: calc(var(--ira-shop-corner) - 6px);
    --ira-shop-corner-xs: calc(var(--ira-shop-corner) - 16px);
    position: relative;
    width: min(1200px, calc(100% - 12vw));
    margin: 10vh auto 6vh;
    min-height: 72vh;
    z-index: 30;
    display: none;
    flex-direction: column;
    border-radius: var(--ira-shop-corner);
    clip-path: inset(0 round var(--ira-shop-corner));
    border: 1px solid rgba(255,255,255,0.34);
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.22) 0%,
        rgba(255,255,255,0.06) 48%,
        rgba(255,255,255,0.18) 100%
    );
    -webkit-backdrop-filter: blur(18px) saturate(170%);
    backdrop-filter: blur(18px) saturate(170%);
    box-shadow:
        0 26px 56px rgba(0,0,0,0.30),
        inset 0 1px 0 rgba(255,255,255,0.44),
        inset 0 -1px 0 rgba(255,255,255,0.10);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    overflow: hidden;
}

.shop-embed-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.20) 0%,
        rgba(255,255,255,0.04) 34%,
        rgba(255,255,255,0.00) 100%
    );
    z-index: 1;
}

.shop-embed-shell,
.shop-embed-shell * {
    border-radius: inherit;
}

#gallery-section.is-shop-open .shop-embed-shell,
.shop-embed-shell.is-active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

#gallery-section.is-shop-open {
    position: fixed;
    inset: 0;
    height: 100vh;
    overflow: hidden;
    align-items: stretch;
}

#gallery-section.is-shop-open .shop-embed-shell {
    margin: 2.5vh auto;
    width: 95vw;
    min-height: 0;
    height: 95vh;
    --ira-shop-corner: clamp(30px, 3.6vw, 48px);
}

.shop-embed-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
}

.shop-embed-title {
    margin: 0;
    font-family: 'bianzhidai-Base', sans-serif;
    font-style: italic;
    color: #ff00de;
    font-size: clamp(20px, 2.2vw, 32px);
    line-height: 1;
}

.shop-embed-close {
    border: 1px solid rgba(255,255,255,0.34);
    border-radius: 999px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 6px 12px;
    cursor: pointer;
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
}

.shop-embed-frame-wrap {
    position: relative;
    flex: 1;
    min-height: 0;
    border-radius: calc(var(--ira-shop-corner) - 2px);
    clip-path: inset(0 round calc(var(--ira-shop-corner) - 2px));
    overflow: hidden;
    z-index: 2;
    background: linear-gradient(
        160deg,
        rgba(255,255,255,0.18) 0%,
        rgba(255,255,255,0.06) 52%,
        rgba(255,255,255,0.14) 100%
    );
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.35),
        inset 0 -1px 0 rgba(255,255,255,0.12);
}

.shop-embed-frame-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 12% 0%, rgba(255,255,255,0.30) 0%, rgba(255,255,255,0) 38%);
    z-index: 2;
}
.shop-embed-status {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 16px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    letter-spacing: 0.01em;
    text-align: center;
    pointer-events: none;
    z-index: 1;
    border-radius: calc(var(--ira-shop-corner) - 2px);
}

.shop-embed-status.is-error {
    color: rgba(255, 120, 120, 0.95);
}

.shop-embed-frame {
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    border-radius: inherit;
    position: relative;
    z-index: 1;
}

#gallery-section.is-shop-open .team-bubbles,
#gallery-section.is-shop-open .studio-wrapper,
#gallery-section.is-shop-open #card-status {
    opacity: 0 !important;
    pointer-events: none !important;
}

.status-carousel-track {
    display: inline-flex;
    white-space: nowrap;
    animation: status-carousel 18.48s linear infinite;
    will-change: transform;
    gap: 0;
}

.status-carousel-item {
    flex: 0 0 auto;
    padding-right: 0;
}

@keyframes status-carousel {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-16.6666667%, 0, 0); }
}
