/* Events & Program Gallery — neon mosaic marquee */

.hp-gallery {
    position: relative;
    padding: clamp(3.5rem, 6vw, 5rem) 0 clamp(2rem, 3vw, 2.5rem);
    background: #0a0b10 !important;
    overflow: hidden;
}

.hp-gallery::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 50% 40% at 20% 0%, rgba(0, 255, 136, 0.08), transparent 55%),
        radial-gradient(ellipse 40% 35% at 85% 100%, rgba(255, 170, 0, 0.06), transparent 50%);
}

.hp-gallery__head {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 2rem;
}

.hp-gallery__head-main {
    flex: 1 1 420px;
    max-width: 640px;
}

.hp-gallery__head p {
    max-width: 640px;
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.68) !important;
}

.hp-gallery__cta {
    flex-shrink: 0;
}

.hp-gallery__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #00ff88 !important;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.28);
}

.hp-gallery__head h2 {
    margin: 0;
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 900;
    line-height: 1.1;
    color: #fff !important;
}

.hp-gallery__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 136, 0.45);
    background: transparent;
    color: #00ff88 !important;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.hp-gallery__cta:hover {
    background: #00ff88;
    color: #000 !important;
    transform: translateY(-2px);
}

.hp-scroll--gallery .hp-scroll__track {
    padding-left: max(1.25rem, calc((100vw - 1320px) / 2 + 1.25rem));
    padding-right: 1.25rem;
    gap: 16px;
    align-items: stretch;
}

.hp-gallery-tile {
    position: relative;
    flex: 0 0 260px;
    display: block;
    text-decoration: none;
    color: #fff !important;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 136, 0.18);
    background: #11141c;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.hp-gallery-tile:hover {
    color: #fff !important;
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(0, 255, 136, 0.5);
    box-shadow: 0 20px 48px rgba(0, 255, 136, 0.18);
}

.hp-gallery-tile__media {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #1a1f2b;
}

.hp-gallery-tile__media img,
.hp-gallery-tile__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.hp-gallery-tile:hover .hp-gallery-tile__media img,
.hp-gallery-tile:hover .hp-gallery-tile__media video {
    transform: scale(1.06);
}

.hp-gallery-tile__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10, 11, 16, 0.92) 100%);
    pointer-events: none;
}

.hp-gallery-tile__play {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 12px;
}

.hp-gallery-tile__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 16px;
}

.hp-gallery-tile__caption time {
    display: block;
    margin-bottom: 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: #ffaa00 !important;
}

.hp-gallery-tile__caption strong {
    display: block;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.3;
    color: #fff !important;
}

.hp-gallery-tile__caption span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.72) !important;
}

@media (max-width: 767px) {
    .hp-gallery__head {
        grid-template-columns: 1fr;
    }

    .hp-gallery__cta {
        grid-column: 1;
        justify-self: start;
    }

    .hp-gallery-tile {
        flex-basis: min(240px, 82vw);
    }
}
