/* ============================================================
   GALLERY.CSS — Gallery grid, lightbox, video, filtering
   ============================================================ */

/* ======================== FILTER TABS ======================== */
.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    position: relative;
}

.gallery-tab {
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    border-radius: 50px;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.gallery-tab:hover {
    color: var(--saffron);
    border-color: var(--saffron);
}

.gallery-tab.active {
    background: var(--saffron);
    color: var(--white);
    border-color: var(--saffron);
}

/* ======================== GALLERY GRID ======================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-card);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.gallery-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    transform: translateY(100%);
    transition: transform var(--transition);
}

.gallery-item:hover figcaption {
    transform: translateY(0);
}

.gallery-item[data-hidden="true"] {
    display: none;
}

/* ======================== VIDEO SECTION ======================== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.video-facade {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    background: #000;
}

.video-facade img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity var(--transition);
}

.video-facade:hover img {
    opacity: 0.6;
}

.video-facade .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    background: rgba(255, 111, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.video-facade:hover .play-btn {
    background: var(--saffron);
    transform: translate(-50%, -50%) scale(1.1);
}

.play-btn::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 22px;
    border-color: transparent transparent transparent var(--white);
    margin-left: 4px;
}

.video-title {
    text-align: center;
    margin-top: 12px;
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
}

/* ======================== RESPONSIVE ======================== */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}
