/* ═══════════════════════════════════════════════
   NAAGAR FITNESS CLUB — PHOTOS & VIDEOS PAGE
   ═══════════════════════════════════════════════ */

/* ── Filter Bar ── */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.filter-btn {
    font-family: 'Manrope', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 0.5rem 1.2rem;
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.4s var(--ease);
    white-space: nowrap;
}

.filter-btn:hover {
    color: var(--cream);
    border-color: var(--border-light);
}

.filter-btn.active {
    background: var(--cream);
    color: var(--black);
    border-color: var(--cream);
}

/* ═══════════════════════════════════════════════
   MASONRY GALLERY
   ═══════════════════════════════════════════════ */

.gallery-masonry {
    columns: 3;
    column-gap: 1rem;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.6s var(--ease);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 15, 15, 0.7) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    display: flex;
    align-items: flex-end;
    padding: 1.2rem;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-label {
    font-family: 'Manrope', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--cream);
    padding: 0.35rem 0.8rem;
    background: rgba(15, 15, 15, 0.5);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-pill);
}

/* Item hiding for filter */
.gallery-item.hidden {
    display: none;
}

/* ═══════════════════════════════════════════════
   VIDEO GALLERY
   ═══════════════════════════════════════════════ */

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.video-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border);
    transition: all 0.5s var(--ease);
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-light);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.06);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cream);
    transition: all 0.4s var(--ease);
}

.video-card:hover .video-play-btn {
    background: var(--red);
    border-color: var(--red);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-duration {
    position: absolute;
    bottom: 0.8rem;
    right: 0.8rem;
    background: rgba(15, 15, 15, 0.8);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--cream);
}

.video-info {
    padding: 1rem 1.2rem;
}

.video-title {
    font-family: 'Manrope', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.video-category {
    font-size: 0.75rem;
    color: var(--muted);
}

/* ═══════════════════════════════════════════════
   EVENT HIGHLIGHTS
   ═══════════════════════════════════════════════ */

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.event-card {
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--dark-card);
    transition: all 0.5s var(--ease);
}

.event-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.event-date {
    font-family: 'Manrope', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--bronze);
    margin-bottom: 0.8rem;
}

.event-title {
    font-family: 'Manrope', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.event-desc {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.65;
}

/* ═══════════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════════ */

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius);
}

.lightbox-content video {
    max-width: 100%;
    max-height: 85vh;
    border-radius: var(--radius);
    outline: none;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

@media (max-width: 960px) {
    .gallery-masonry { columns: 2; }
    .video-grid { grid-template-columns: repeat(2, 1fr); }
    .events-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .gallery-masonry { columns: 1; }
    .video-grid { grid-template-columns: 1fr; }
    .events-grid { grid-template-columns: 1fr; }

    .filter-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
    }
}
