/* Galería pública compacta: estilo álbum, no feed infinito */
.compact-gallery-main {
    max-width: 1280px;
    padding: clamp(1.2rem, 4vw, 3rem) clamp(.75rem, 2vw, 1.5rem) 7rem;
}

.compact-gallery-toolbar {
    margin-bottom: 1rem;
}

.compact-gallery-toolbar h2 {
    margin-bottom: .35rem;
}

.compact-memory-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .7rem;
    align-items: stretch;
}

.compact-memory-grid .memory-item,
.compact-memory-grid .memory-item.wide,
.compact-memory-grid .memory-item.tall,
.compact-memory-grid .memory-item.featured {
    grid-column: auto;
    grid-row: auto;
    overflow: hidden;
    background: transparent;
    border: 0;
    border-radius: 18px;
    box-shadow: none;
}

.compact-memory-grid .memory-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(27, 18, 35, .13);
}

.compact-memory-grid .memory-media {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #eee;
    border-radius: 18px;
}

.compact-memory-grid .lightbox-trigger {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.compact-memory-grid .memory-media img,
.compact-memory-grid .memory-media video,
.compact-memory-grid .memory-item.wide .memory-media img,
.compact-memory-grid .memory-item.wide .memory-media video,
.compact-memory-grid .memory-item.tall .memory-media img,
.compact-memory-grid .memory-item.tall .memory-media video,
.compact-memory-grid .memory-item.featured .memory-media img,
.compact-memory-grid .memory-item.featured .memory-media video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compact-memory-grid .memory-info {
    display: none;
}

.compact-memory-grid .memory-type-badge,
.compact-memory-grid .featured-badge {
    position: absolute;
    z-index: 2;
    right: .45rem;
    bottom: .45rem;
    display: grid;
    min-width: 1.65rem;
    height: 1.65rem;
    place-items: center;
    padding: 0 .45rem;
    color: #fff;
    background: rgba(18, 12, 24, .64);
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.compact-memory-grid .featured-badge {
    left: .45rem;
    right: auto;
    color: #fff5bf;
}

.compact-memory-grid .memory-type-badge {
    font-size: 0;
}

.compact-memory-grid .memory-type-badge::first-letter {
    font-size: .72rem;
}

.floating-gallery-actions {
    position: fixed;
    z-index: 60;
    right: 1.25rem;
    bottom: calc(1.25rem + env(safe-area-inset-bottom));
    display: flex;
    gap: .65rem;
    align-items: center;
}

.floating-gallery-actions button {
    border: 0;
    cursor: pointer;
    box-shadow: 0 18px 42px rgba(29, 18, 44, .22);
}

.floating-camera-button,
.compact-floating-upload {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 3.2rem;
    padding: .78rem 1rem;
    border-radius: 999px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--event-primary), var(--event-secondary));
}

.floating-camera-button span,
.compact-floating-upload span {
    display: grid;
    width: 1.75rem;
    height: 1.75rem;
    place-items: center;
    border-radius: 999px;
    background: rgba(255,255,255,.2);
}

.compact-floating-upload {
    position: static;
    right: auto;
    bottom: auto;
}

.camera-drawer[hidden] {
    display: none;
}

.camera-drawer {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: end center;
}

.camera-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 12, 24, .62);
    backdrop-filter: blur(16px);
    opacity: 0;
    transition: opacity .22s ease;
}

.camera-panel {
    position: relative;
    z-index: 1;
    width: min(560px, calc(100% - 1rem));
    max-height: calc(100vh - 1rem);
    overflow: auto;
    padding: 1.2rem;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -28px 70px rgba(15, 10, 24, .25);
    transform: translateY(28px);
    opacity: 0;
    transition: transform .22s ease, opacity .22s ease;
}

.camera-drawer.is-open .camera-backdrop {
    opacity: 1;
}

.camera-drawer.is-open .camera-panel {
    opacity: 1;
    transform: translateY(0);
}

.camera-close {
    position: absolute;
    top: .9rem;
    right: .9rem;
    width: 2.35rem;
    height: 2.35rem;
    border: 0;
    border-radius: 999px;
    background: rgba(22, 16, 28, .08);
    color: #24172f;
    font-size: 1.35rem;
    cursor: pointer;
}

.camera-panel h2 {
    margin: .2rem 2.3rem .35rem 0;
    font-size: clamp(1.5rem, 6vw, 2.25rem);
}

.camera-copy {
    margin: 0 0 1rem;
    color: #6f6377;
}

.camera-stage {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: #1c1425;
    border-radius: 24px;
}

.camera-stage video,
.camera-stage img,
.camera-stage canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-warning {
    position: absolute;
    inset: auto 1rem 1rem;
    margin: 0;
    padding: .75rem .9rem;
    color: #fff;
    background: rgba(0,0,0,.55);
    border-radius: 16px;
    font-size: .9rem;
}

.camera-filters {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    padding: .85rem .1rem .55rem;
}

.camera-filters button {
    flex: 0 0 auto;
    border: 1px solid rgba(91, 64, 111, .16);
    border-radius: 999px;
    padding: .58rem .8rem;
    background: #fff;
    color: #4a3b55;
    font-weight: 800;
    cursor: pointer;
}

.camera-filters button.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--event-primary), var(--event-secondary));
    border-color: transparent;
}

.camera-form label {
    display: grid;
    gap: .4rem;
    margin-top: .4rem;
    color: #47364f;
    font-weight: 900;
}

.camera-form label span {
    color: #8d7d96;
    font-weight: 700;
}

.camera-form textarea {
    width: 100%;
    border: 1px solid rgba(92, 71, 111, .18);
    border-radius: 16px;
    padding: .85rem;
    resize: vertical;
    font: inherit;
}

.camera-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .55rem;
    margin-top: .85rem;
}

.camera-actions .button {
    min-height: 3rem;
    border-radius: 16px;
}

body.camera-drawer-open {
    overflow: hidden;
}

@media (max-width: 1024px) {
    .compact-memory-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .compact-gallery-main {
        padding: 1rem .55rem 6.6rem;
    }

    .compact-gallery-toolbar {
        padding: 0 .25rem;
    }

    .compact-memory-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: .38rem;
    }

    .compact-memory-grid .memory-item,
    .compact-memory-grid .memory-media {
        border-radius: 11px;
    }

    .compact-memory-grid .memory-type-badge,
    .compact-memory-grid .featured-badge {
        min-width: 1.35rem;
        height: 1.35rem;
        font-size: .62rem;
    }

    .floating-gallery-actions {
        right: .85rem;
        left: .85rem;
        bottom: calc(.85rem + env(safe-area-inset-bottom));
        display: grid;
        grid-template-columns: 1.08fr .92fr;
    }

    .floating-camera-button,
    .compact-floating-upload {
        width: 100%;
        min-height: 3.25rem;
        padding: .85rem .75rem;
    }

    .camera-panel {
        width: 100%;
        max-height: calc(100vh - .5rem);
        border-radius: 26px 26px 0 0;
    }

    .camera-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 390px) {
    .compact-memory-grid {
        gap: .32rem;
    }
}


/* Ajuste móvil premium 2026-06-24: galería pública ordenada en celular */
@media (max-width: 760px) {
    html,
    body.gallery-page {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        background: var(--gallery-bg) !important;
    }

    .gallery-experience {
        padding-bottom: calc(5.8rem + env(safe-area-inset-bottom)) !important;
        background: var(--gallery-bg) !important;
    }

    .gallery-experience .gallery-hero.compact-gallery-hero,
    .gallery-experience .gallery-hero {
        width: 100% !important;
        min-height: min(760px, 92svh) !important;
        height: auto !important;
        margin: 0 !important;
        border-radius: 0 !important;
        overflow: hidden !important;
        background-size: cover !important;
        background-position: var(--hero-focus-x, 50%) var(--hero-focus-y, 45%) !important;
        box-shadow: none !important;
    }

    .gallery-experience .gallery-hero::before {
        background:
            radial-gradient(circle at 18% 36%, rgba(255,255,255,.10), transparent 32%),
            linear-gradient(180deg, rgba(10,6,16,.38) 0%, rgba(10,6,16,.18) 32%, rgba(10,6,16,.78) 100%) !important;
        opacity: 1 !important;
    }

    .gallery-experience .gallery-hero::after {
        display: none !important;
    }

    .gallery-experience .gallery-nav {
        position: absolute !important;
        z-index: 5 !important;
        inset: 0 0 auto 0 !important;
        display: flex !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        gap: .65rem !important;
        max-width: none !important;
        width: 100% !important;
        padding: calc(.85rem + env(safe-area-inset-top)) 1rem .6rem !important;
        margin: 0 !important;
        pointer-events: none !important;
    }

    .gallery-experience .gallery-nav-left,
    .gallery-experience .gallery-nav-right {
        display: flex !important;
        align-items: center !important;
        gap: .55rem !important;
        min-width: 0 !important;
        pointer-events: auto !important;
    }

    .gallery-experience .gallery-nav-right {
        margin-left: auto !important;
        justify-content: flex-end !important;
        flex-wrap: wrap !important;
    }

    .gallery-experience .gallery-nav-event-logo {
        height: clamp(42px, 10vw, 58px) !important;
        width: auto !important;
        max-width: 148px !important;
        object-fit: contain !important;
        filter: drop-shadow(0 10px 22px rgba(0,0,0,.32)) !important;
    }

    .gallery-experience .gallery-nav .brand.light {
        width: 42px !important;
        height: 42px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        border-radius: 999px !important;
        background: rgba(255,255,255,.16) !important;
        border-color: rgba(255,255,255,.20) !important;
        color: transparent !important;
        font-size: 0 !important;
        box-shadow: 0 12px 30px rgba(0,0,0,.18) !important;
    }

    .gallery-experience .gallery-nav .brand.light .brand-mark {
        width: 30px !important;
        height: 30px !important;
        margin: 0 !important;
        display: grid !important;
        place-items: center !important;
        color: #fff !important;
        font-size: .72rem !important;
        font-weight: 900 !important;
        background: rgba(255,255,255,.18) !important;
        border: 1px solid rgba(255,255,255,.18) !important;
    }

    .gallery-experience .gallery-guest-chip {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        max-width: min(48vw, 180px) !important;
        min-height: 42px !important;
        padding: .48rem .78rem !important;
        border-radius: 999px !important;
        background: rgba(255,255,255,.18) !important;
        border: 1px solid rgba(255,255,255,.20) !important;
        box-shadow: 0 12px 30px rgba(0,0,0,.18) !important;
        text-align: center !important;
    }

    .gallery-experience .gallery-guest-chip span {
        display: none !important;
    }

    .gallery-experience .gallery-guest-chip strong {
        display: block !important;
        overflow: hidden !important;
        color: #fff !important;
        font-size: .86rem !important;
        font-weight: 900 !important;
        line-height: 1.05 !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .gallery-experience .gallery-hero-content {
        position: relative !important;
        z-index: 3 !important;
        inset: auto !important;
        display: flex !important;
        min-height: min(760px, 92svh) !important;
        width: 100% !important;
        max-width: none !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
        align-items: flex-start !important;
        gap: .72rem !important;
        padding: calc(6.7rem + env(safe-area-inset-top)) 1.3rem 3.15rem !important;
        margin: 0 !important;
        text-align: left !important;
    }

    .gallery-experience .gallery-hero-content > *,
    .gallery-experience .gallery-kicker,
    .gallery-experience .gallery-hero-content h1,
    .gallery-experience .gallery-hosts,
    .gallery-experience .gallery-hero blockquote,
    .gallery-experience .gallery-memory-line {
        position: relative !important;
        inset: auto !important;
        left: auto !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: auto !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .gallery-experience .gallery-kicker {
        max-width: calc(100vw - 2.6rem) !important;
        padding: .68rem .92rem !important;
        border-radius: 999px !important;
        background: rgba(255,255,255,.17) !important;
        border: 1px solid rgba(255,255,255,.22) !important;
        color: #fff !important;
        font-size: clamp(.66rem, 2.7vw, .76rem) !important;
        font-weight: 900 !important;
        letter-spacing: .17em !important;
        line-height: 1.22 !important;
        text-shadow: 0 2px 12px rgba(0,0,0,.25) !important;
        backdrop-filter: blur(15px) !important;
    }

    .gallery-experience .gallery-hero-content h1 {
        width: min(100%, 420px) !important;
        font-size: clamp(3rem, 15vw, 4.55rem) !important;
        line-height: .86 !important;
        letter-spacing: -.06em !important;
        text-align: left !important;
        text-wrap: balance !important;
        text-shadow: 0 8px 28px rgba(0,0,0,.38) !important;
    }

    .gallery-experience .gallery-hosts {
        width: min(100%, 420px) !important;
        font-size: clamp(1rem, 4.5vw, 1.18rem) !important;
        line-height: 1.28 !important;
        font-weight: 800 !important;
        text-align: left !important;
        text-shadow: 0 4px 20px rgba(0,0,0,.42) !important;
    }

    .gallery-experience .gallery-hero blockquote {
        width: min(100%, 400px) !important;
        padding-top: .25rem !important;
        font-size: clamp(1.25rem, 5.3vw, 1.65rem) !important;
        line-height: 1.13 !important;
        text-align: left !important;
        text-shadow: 0 5px 22px rgba(0,0,0,.45) !important;
    }

    .gallery-experience .gallery-memory-line {
        max-width: calc(100vw - 2.6rem) !important;
        padding: .66rem .9rem !important;
        border-radius: 999px !important;
        font-size: .83rem !important;
        line-height: 1.25 !important;
        background: rgba(255,255,255,.15) !important;
        border: 1px solid rgba(255,255,255,.20) !important;
        backdrop-filter: blur(14px) !important;
    }

    .gallery-experience .gallery-main-premium.compact-gallery-main {
        max-width: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 2.25rem 1.18rem 7rem !important;
        border-radius: 0 !important;
        background: var(--gallery-bg) !important;
    }

    .gallery-experience .compact-gallery-toolbar,
    .gallery-experience .gallery-toolbar {
        display: block !important;
        padding: 0 !important;
        margin: 0 0 1.45rem !important;
    }

    .gallery-experience .gallery-toolbar .eyebrow {
        margin: 0 0 .75rem !important;
        font-size: .75rem !important;
        line-height: 1 !important;
        letter-spacing: .28em !important;
        font-weight: 900 !important;
    }

    .gallery-experience .gallery-toolbar h2 {
        margin: 0 0 .72rem !important;
        max-width: 100% !important;
        font-size: clamp(2.45rem, 12.5vw, 3.65rem) !important;
        line-height: .9 !important;
        letter-spacing: -.055em !important;
        text-wrap: balance !important;
    }

    .gallery-experience .gallery-toolbar p:not(.eyebrow) {
        max-width: 100% !important;
        font-size: .98rem !important;
        line-height: 1.5 !important;
    }

    .gallery-experience .compact-memory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: .72rem !important;
    }

    .gallery-layout-editorial .compact-memory-grid .memory-item,
    .gallery-experience .compact-memory-grid .memory-item,
    .gallery-experience .compact-memory-grid .memory-item.wide,
    .gallery-experience .compact-memory-grid .memory-item.tall,
    .gallery-experience .compact-memory-grid .memory-item.featured {
        grid-column: auto !important;
        grid-row: auto !important;
        border-radius: 20px !important;
    }

    .gallery-layout-editorial .compact-memory-grid .memory-item:nth-child(6n + 1),
    .gallery-layout-editorial .compact-memory-grid .memory-item:nth-child(6n + 4),
    .gallery-experience .compact-memory-grid .memory-item.featured:first-child {
        grid-column: span 2 !important;
    }

    .gallery-experience .compact-memory-grid .memory-media {
        border-radius: 20px !important;
        box-shadow: 0 18px 42px rgba(41, 29, 51, .10) !important;
    }

    .gallery-experience .floating-gallery-actions {
        position: fixed !important;
        z-index: 60 !important;
        right: .92rem !important;
        left: auto !important;
        bottom: calc(1.05rem + env(safe-area-inset-bottom)) !important;
        display: flex !important;
        width: auto !important;
        grid-template-columns: none !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        gap: .65rem !important;
    }

    .gallery-experience .floating-gallery-actions button,
    .gallery-experience .floating-camera-button,
    .gallery-experience .compact-floating-upload {
        box-shadow: 0 18px 42px rgba(39, 28, 48, .24) !important;
    }

    .gallery-experience .floating-camera-button {
        width: 60px !important;
        min-width: 60px !important;
        height: 60px !important;
        min-height: 60px !important;
        padding: 0 !important;
        border-radius: 999px !important;
    }

    .gallery-experience .floating-camera-button span {
        width: 100% !important;
        height: 100% !important;
        background: transparent !important;
    }

    .gallery-experience .compact-floating-upload {
        width: auto !important;
        max-width: 210px !important;
        min-height: 56px !important;
        padding: .85rem 1.16rem !important;
        border-radius: 999px !important;
        font-size: .94rem !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 380px) {
    .gallery-experience .gallery-hero-content h1 {
        font-size: clamp(2.55rem, 14vw, 3.75rem) !important;
    }

    .gallery-experience .gallery-toolbar h2 {
        font-size: clamp(2.15rem, 12vw, 3.1rem) !important;
    }

    .gallery-experience .compact-floating-upload {
        max-width: 170px !important;
        padding-inline: 1rem !important;
    }
}


/* =========================================================
   Recuerdos QR · Pulido especial para escritorio
   No toca la experiencia móvil: solo aplica desde 900px.
   ========================================================= */
@media (min-width: 900px) {
    body.gallery-experience {
        background:
            radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--gallery-button, #b79a42) 8%, transparent), transparent 30%),
            radial-gradient(circle at 88% 16%, color-mix(in srgb, var(--event-secondary, #d95f91) 7%, transparent), transparent 28%),
            color-mix(in srgb, var(--gallery-bg, #fbf8f4) 94%, #fff 6%) !important;
    }

    .gallery-experience .gallery-hero.compact-gallery-hero,
    .gallery-experience .gallery-hero {
        width: min(100% - 3rem, 1480px) !important;
        min-height: clamp(560px, 68vh, 760px) !important;
        margin: 1.35rem auto 0 !important;
        border-radius: 42px !important;
        overflow: hidden !important;
        background-size: cover !important;
        box-shadow: 0 34px 100px rgba(31, 22, 37, .20) !important;
    }

    .gallery-experience .gallery-hero::before {
        background:
            radial-gradient(circle at 22% 68%, rgba(0,0,0,.14), transparent 28%),
            linear-gradient(180deg, rgba(14,10,18,.34), rgba(14,10,18,.58) 68%, rgba(14,10,18,.64)) !important;
        opacity: 1 !important;
    }

    .gallery-experience .gallery-nav {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 5 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding: 1.4rem 2rem !important;
    }

    .gallery-experience .gallery-nav-left,
    .gallery-experience .gallery-nav-right {
        display: flex !important;
        align-items: center !important;
        gap: .85rem !important;
    }

    .gallery-experience .gallery-nav-event-logo {
        height: clamp(54px, 5vw, 84px) !important;
        max-width: 260px !important;
        object-fit: contain !important;
        filter: drop-shadow(0 12px 28px rgba(0,0,0,.25)) !important;
    }

    .gallery-experience .gallery-nav .brand.light {
        min-height: 46px !important;
        padding: .55rem .86rem !important;
        border-radius: 999px !important;
        background: rgba(255,255,255,.14) !important;
        border: 1px solid rgba(255,255,255,.18) !important;
        box-shadow: 0 14px 32px rgba(0,0,0,.16) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
    }

    .gallery-experience .gallery-guest-chip {
        min-height: 46px !important;
        padding: .55rem .95rem !important;
        border-radius: 999px !important;
        background: rgba(255,255,255,.14) !important;
        border: 1px solid rgba(255,255,255,.18) !important;
        box-shadow: 0 14px 32px rgba(0,0,0,.16) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
    }

    .gallery-experience .gallery-hero-content {
        position: relative !important;
        z-index: 4 !important;
        inset: auto !important;
        display: grid !important;
        min-height: clamp(560px, 68vh, 760px) !important;
        width: min(100%, 1100px) !important;
        margin: 0 auto !important;
        padding: 7.5rem 2rem 5rem !important;
        place-items: center !important;
        align-content: center !important;
        gap: 1rem !important;
        text-align: center !important;
    }

    .gallery-experience .gallery-hero-content > *,
    .gallery-experience .gallery-kicker,
    .gallery-experience .gallery-hero-content h1,
    .gallery-experience .gallery-hosts,
    .gallery-experience .gallery-hero blockquote,
    .gallery-experience .gallery-memory-line {
        position: relative !important;
        inset: auto !important;
        left: auto !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        margin: 0 auto !important;
        text-align: center !important;
    }

    .gallery-experience .gallery-kicker {
        max-width: 880px !important;
        padding: .66rem 1rem !important;
        border-radius: 999px !important;
        background: rgba(255,255,255,.16) !important;
        border: 1px solid rgba(255,255,255,.22) !important;
        color: #fff !important;
        font-size: clamp(.76rem, .9vw, .92rem) !important;
        letter-spacing: .18em !important;
        line-height: 1.2 !important;
        backdrop-filter: blur(14px) !important;
        -webkit-backdrop-filter: blur(14px) !important;
    }

    .gallery-experience .gallery-hero-content h1 {
        width: min(100%, 980px) !important;
        max-width: 980px !important;
        color: #fff !important;
        font-size: clamp(4.3rem, 7vw, 8.1rem) !important;
        line-height: .88 !important;
        letter-spacing: -.06em !important;
        text-wrap: balance !important;
        text-shadow: 0 12px 42px rgba(0,0,0,.35) !important;
    }

    .gallery-experience .gallery-hosts {
        max-width: 760px !important;
        color: rgba(255,255,255,.94) !important;
        font-size: clamp(1.15rem, 1.7vw, 1.55rem) !important;
        line-height: 1.25 !important;
        font-weight: 850 !important;
        text-shadow: 0 8px 26px rgba(0,0,0,.32) !important;
    }

    .gallery-experience .gallery-hero blockquote {
        max-width: 880px !important;
        color: rgba(255,255,255,.94) !important;
        font-size: clamp(1.35rem, 2.1vw, 2rem) !important;
        line-height: 1.16 !important;
        text-shadow: 0 8px 26px rgba(0,0,0,.34) !important;
    }

    .gallery-experience .gallery-memory-line {
        max-width: 620px !important;
        padding: .65rem 1rem !important;
        border-radius: 999px !important;
        color: #fff !important;
        background: rgba(255,255,255,.14) !important;
        border: 1px solid rgba(255,255,255,.18) !important;
        backdrop-filter: blur(14px) !important;
        -webkit-backdrop-filter: blur(14px) !important;
    }

    .gallery-experience .gallery-main-premium.compact-gallery-main {
        width: min(100% - 3rem, 1320px) !important;
        max-width: 1320px !important;
        margin: -2.8rem auto 6rem !important;
        padding: clamp(2.8rem, 4vw, 4.5rem) !important;
        border: 1px solid rgba(255,255,255,.78) !important;
        border-radius: 44px !important;
        background: color-mix(in srgb, var(--gallery-surface, #fff) 97%, transparent) !important;
        box-shadow: 0 30px 100px rgba(34, 26, 44, .13) !important;
        backdrop-filter: blur(14px) !important;
        -webkit-backdrop-filter: blur(14px) !important;
    }

    .gallery-experience .compact-gallery-toolbar,
    .gallery-experience .gallery-toolbar {
        display: flex !important;
        align-items: flex-end !important;
        justify-content: space-between !important;
        gap: 2rem !important;
        margin: 0 0 1.75rem !important;
        padding: 0 !important;
    }

    .gallery-experience .gallery-toolbar > div {
        max-width: 850px !important;
    }

    .gallery-experience .gallery-toolbar .eyebrow {
        margin: 0 0 .65rem !important;
        letter-spacing: .24em !important;
        font-size: .78rem !important;
        font-weight: 900 !important;
    }

    .gallery-experience .gallery-toolbar h2 {
        max-width: 760px !important;
        margin: 0 0 .65rem !important;
        font-size: clamp(3.5rem, 5vw, 6rem) !important;
        line-height: .9 !important;
        letter-spacing: -.055em !important;
        text-wrap: balance !important;
    }

    .gallery-experience .gallery-toolbar p:not(.eyebrow) {
        max-width: 760px !important;
        font-size: 1.06rem !important;
        line-height: 1.55 !important;
    }

    .gallery-experience .gallery-filter-tabs {
        width: min(100%, 620px) !important;
        margin: 0 0 1.35rem !important;
        padding: .36rem !important;
    }

    .gallery-experience .gallery-filter-tabs button {
        min-height: 2.85rem !important;
        font-size: .98rem !important;
    }

    .gallery-experience .compact-memory-grid {
        grid-template-columns: repeat(var(--gallery-desktop-columns, 3), minmax(0, 1fr)) !important;
        gap: clamp(.9rem, 1.35vw, 1.35rem) !important;
    }

    .gallery-experience .compact-memory-grid .memory-item,
    .gallery-experience .compact-memory-grid .memory-item.wide,
    .gallery-experience .compact-memory-grid .memory-item.tall,
    .gallery-experience .compact-memory-grid .memory-item.featured,
    .gallery-layout-editorial .compact-memory-grid .memory-item:nth-child(n) {
        grid-column: auto !important;
        grid-row: auto !important;
        overflow: hidden !important;
        border: 1px solid rgba(40, 30, 48, .06) !important;
        border-radius: clamp(22px, 1.7vw, 30px) !important;
        background: rgba(255,255,255,.88) !important;
        box-shadow: 0 20px 50px rgba(35, 27, 45, .08) !important;
        transition: transform .18s ease, box-shadow .18s ease !important;
    }

    .gallery-experience .compact-memory-grid .memory-item:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 28px 64px rgba(35, 27, 45, .12) !important;
    }

    .gallery-experience .compact-memory-grid .memory-media {
        border-radius: inherit !important;
        box-shadow: none !important;
    }

    .gallery-experience .compact-memory-grid .memory-info {
        min-height: 86px !important;
        padding: 1rem 1.1rem !important;
        background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.86)) !important;
    }

    .gallery-experience .floating-gallery-actions {
        right: calc(1.25rem + env(safe-area-inset-right)) !important;
        bottom: calc(1.25rem + env(safe-area-inset-bottom)) !important;
        gap: .7rem !important;
    }

    .gallery-experience .floating-gallery-actions button,
    .gallery-experience .floating-camera-button,
    .gallery-experience .compact-floating-upload {
        width: 58px !important;
        height: 58px !important;
        min-width: 58px !important;
        min-height: 58px !important;
        border-radius: 999px !important;
        box-shadow: 0 18px 45px rgba(37, 29, 45, .18) !important;
    }

    .gallery-experience .compact-floating-upload {
        padding: 0 !important;
        font-size: 0 !important;
    }
}

/* Carga progresiva de recuerdos: evita descargar toda la galería de golpe */
.memory-lazy-media {
    opacity: 0;
    transition: opacity .22s ease;
    background: linear-gradient(135deg, rgba(0,0,0,.04), rgba(255,255,255,.42));
}

.memory-lazy-media.is-lazy-loaded,
.memory-lazy-media[src]:not([src^="data:image/gif;base64"]) {
    opacity: 1;
}



/* =========================================================
   Postealo · Android balanceado
   Referencia visual: conservar composición de iPhone, solo evitar empalmes.
   ========================================================= */
@media (max-width: 760px) and (pointer: coarse) {
    .gallery-experience.is-android-browser .gallery-hero.compact-gallery-hero,
    .gallery-experience.is-android-browser .gallery-hero {
        min-height: min(820px, calc(var(--rq-visual-vh, 1vh) * 96)) !important;
        max-height: none !important;
    }

    .gallery-experience.is-android-browser .gallery-hero-content {
        min-height: min(820px, calc(var(--rq-visual-vh, 1vh) * 96)) !important;
        padding-top: calc(6.45rem + env(safe-area-inset-top)) !important;
        padding-bottom: 3.45rem !important;
        gap: .68rem !important;
        justify-content: flex-end !important;
    }

    .gallery-experience.is-android-browser .gallery-hero.compact-gallery-hero > .gallery-hero-profile {
        width: 118px !important;
        height: 118px !important;
        min-width: 118px !important;
        max-width: 118px !important;
        min-height: 118px !important;
        max-height: 118px !important;
        left: 1.05rem !important;
        top: clamp(9.2rem, 20vh, 11rem) !important;
        z-index: 4 !important;
    }

    .gallery-experience.is-android-browser .gallery-kicker {
        max-width: calc(100vw - 2.4rem) !important;
        padding: .58rem .82rem !important;
        font-size: clamp(.62rem, 2.55vw, .72rem) !important;
        letter-spacing: .15em !important;
        line-height: 1.18 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .gallery-experience.is-android-browser .gallery-hero-content h1 {
        width: min(100%, 410px) !important;
        font-size: clamp(2.75rem, 13.8vw, 4.35rem) !important;
        line-height: .86 !important;
    }

    .gallery-experience.is-android-browser .gallery-hosts {
        width: min(100%, 410px) !important;
        font-size: clamp(1rem, 4.25vw, 1.16rem) !important;
        line-height: 1.24 !important;
    }

    .gallery-experience.is-android-browser .gallery-hero blockquote {
        width: min(100%, 410px) !important;
        max-width: calc(100vw - 6rem) !important;
        font-size: clamp(1.12rem, 4.75vw, 1.48rem) !important;
        line-height: 1.13 !important;
    }

    .gallery-experience.is-android-browser .hero-rating-strip {
        margin-top: .08rem !important;
        transform: none !important;
    }

    .gallery-experience.is-android-browser .gallery-main-premium.compact-gallery-main {
        padding-top: 2.15rem !important;
        padding-bottom: calc(7.6rem + env(safe-area-inset-bottom)) !important;
    }

    .gallery-experience.is-android-browser .floating-gallery-actions {
        right: .78rem !important;
        bottom: calc(1rem + env(safe-area-inset-bottom)) !important;
        gap: .56rem !important;
    }

    .gallery-experience.is-android-browser .floating-gallery-actions button,
    .gallery-experience.is-android-browser .floating-gallery-actions .floating-custom-link,
    .gallery-experience.is-android-browser .floating-camera-button {
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
        min-height: 56px !important;
        padding: 0 !important;
    }

    .gallery-experience.is-android-browser .compact-floating-upload {
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
        min-height: 60px !important;
        max-width: 60px !important;
        padding: 0 !important;
        font-size: 2rem !important;
    }
}

@media (max-width: 380px) and (pointer: coarse) {
    .gallery-experience.is-android-browser .gallery-hero.compact-gallery-hero,
    .gallery-experience.is-android-browser .gallery-hero,
    .gallery-experience.is-android-browser .gallery-hero-content {
        min-height: min(790px, calc(var(--rq-visual-vh, 1vh) * 96)) !important;
    }

    .gallery-experience.is-android-browser .gallery-hero-content {
        padding-bottom: 3.2rem !important;
    }

    .gallery-experience.is-android-browser .gallery-hero.compact-gallery-hero > .gallery-hero-profile {
        width: 108px !important;
        height: 108px !important;
        min-width: 108px !important;
        max-width: 108px !important;
        min-height: 108px !important;
        max-height: 108px !important;
    }

    .gallery-experience.is-android-browser .gallery-hero-content h1 {
        font-size: clamp(2.6rem, 13vw, 3.85rem) !important;
    }

    .gallery-experience.is-android-browser .floating-gallery-actions button,
    .gallery-experience.is-android-browser .floating-gallery-actions .floating-custom-link,
    .gallery-experience.is-android-browser .floating-camera-button {
        width: 52px !important;
        height: 52px !important;
        min-width: 52px !important;
        min-height: 52px !important;
    }

    .gallery-experience.is-android-browser .compact-floating-upload {
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
        min-height: 56px !important;
        max-width: 56px !important;
    }
}

.gallery-experience .floating-refresh-button,
.gallery-experience .gallery-mini-refresh-button,
.gallery-experience .gallery-album-refresh-button,
.gallery-experience .gallery-manual-refresh-row {
    display: none !important;
}



/* Postealo · Android ajuste fino: subir información del evento */
@media (max-width: 760px) and (pointer: coarse) {
    .gallery-experience.is-android-browser .gallery-hero-content {
        padding-bottom: 4.55rem !important;
        gap: .62rem !important;
    }

    .gallery-experience.is-android-browser .gallery-main-premium.compact-gallery-main {
        padding-top: 1.55rem !important;
    }

    .gallery-experience.is-android-browser .floating-gallery-actions {
        bottom: calc(1.35rem + env(safe-area-inset-bottom)) !important;
    }
}

@media (max-width: 380px) and (pointer: coarse) {
    .gallery-experience.is-android-browser .gallery-hero-content {
        padding-bottom: 4.25rem !important;
    }

    .gallery-experience.is-android-browser .gallery-main-premium.compact-gallery-main {
        padding-top: 1.35rem !important;
    }
}
