
/* ==============================
   Photo Gallery - Draggable Strip
   ============================== */
.takeover-gallery-section {
    margin-bottom: 3.5rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid var(--border-color);
}
.photo-gallery {
    position: relative;
    margin-top: 1rem;
    overflow: hidden;
}
.gallery-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: unset;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
    padding-bottom: 0.5rem;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track.dragging { cursor: grabbing; }
.gallery-item {
    flex: 0 0 auto;
    width: 380px;
    height: 260px;
    overflow: hidden;
    border-radius: 2px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    transition: border-color 0.3s;
}
.gallery-item:hover { border-color: rgba(90,82,221,0.35); }
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: auto;
    cursor: zoom-in;
    transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.gallery-item:hover img { transform: scale(1.03); }
.gallery-hint {
    margin-top: 0.6rem;
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    opacity: 0.5;
    text-align: center;
}
.photo-gallery::before,
.photo-gallery::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 1.8rem;
    width: 40px;
    z-index: 1;
    pointer-events: none;
}
.photo-gallery::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-primary), transparent);
}
.photo-gallery::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-primary), transparent);
}

/* ==============================
   Video Cards - Thumbnail + Inline Player
   ============================== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.2rem;
    margin-top: 1rem;
}
.video-card {
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
    background: var(--bg-secondary);
}
.video-card:hover:not(.playing) {
    border-color: rgba(90,82,221,0.5);
    transform: translateY(-2px);
}
.video-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-color: #0a0a0f;
}
.video-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.35);
    transition: background 0.2s;
}
.video-card:hover .video-play-btn { background: rgba(0,0,0,0.15); }
.video-play-btn span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(255,255,255,0.6);
    color: #fff;
    font-size: 1.1rem;
    backdrop-filter: blur(4px);
    transition: background 0.2s, transform 0.2s;
    padding-left: 3px;
}
.video-card:hover .video-play-btn span {
    background: rgba(255,255,255,0.22);
    transform: scale(1.08);
}
.video-card-label {
    padding: 0.6rem 0.9rem;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.video-card.playing {
    cursor: default;
    border-color: var(--accent);
}
.video-iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
}

@media (max-width: 600px) {
    .gallery-item { width: 280px; height: 186px; }
    .video-grid { grid-template-columns: 1fr; }
}

/* ==============================
   Media Lightbox — Photo & Video
   ============================== */
.media-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}
.media-lightbox.active {
    opacity: 1;
    pointer-events: all;
}
.ml-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 4, 12, 0.93);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.ml-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    transform: scale(0.96);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.media-lightbox.active .ml-inner {
    transform: scale(1);
}

/* Photo */
.ml-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.ml-photo {
    max-width: 88vw;
    max-height: 78vh;
    object-fit: contain;
    display: block;
    border-radius: 2px;
    box-shadow: 0 32px 100px rgba(0,0,0,0.7);
}

/* Controls bar: ← × → */
.ml-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.4rem;
}
.ml-nav {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.7);
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.ml-nav:hover {
    background: rgba(255,255,255,0.16);
    color: #fff;
    transform: scale(1.08);
}
.ml-close {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.7);
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.ml-close:hover {
    background: rgba(255,255,255,0.16);
    color: #fff;
}

/* Caption */
.ml-footer {
    margin-top: 0.8rem;
    text-align: center;
}
.ml-caption {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.5px;
    font-family: var(--font-body, sans-serif);
}

/* Video Preview — Embedded iframe */
.ml-video-container {
    width: min(1000px, 92vw);
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 3px;
    box-shadow: 0 32px 100px rgba(0,0,0,0.7);
    display: flex;
    overflow: hidden;
}
.ml-video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.ml-video-fallback-btn {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-decoration: underline;
    opacity: 0.7;
    transition: opacity 0.2s;
    white-space: nowrap;
}
.ml-video-fallback-btn:hover {
    opacity: 1;
    color: var(--text-primary);
}
.ml-video-preview::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.42);
}
.ml-video-open-btn {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    transition: transform 0.25s ease;
}
.ml-video-open-btn:hover { transform: scale(1.06); }
.ml-vbtn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.7);
    color: #fff;
    font-size: 1.6rem;
    padding-left: 4px;
    backdrop-filter: blur(6px);
    transition: background 0.2s, border-color 0.2s;
}
.ml-video-open-btn:hover .ml-vbtn-icon {
    background: rgba(255,255,255,0.28);
    border-color: #fff;
}
.ml-vbtn-label {
    font-size: 0.82rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    font-family: var(--font-body, sans-serif);
    font-weight: 400;
}

@media (max-width: 600px) {
    .ml-photo { max-width: 95vw; max-height: 65vh; }
    .ml-video-container { width: 95vw; }
    .ml-controls { gap: 1rem; }
}
