.gallery-tab-btn.active {
    color: var(--primary) !important;
}
.gallery-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
}
.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 32px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.gallery-item:hover img {
    transform: scale(1.15);
}
.gallery-info {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}
.gallery-item:hover .gallery-info {
    opacity: 1;
    transform: translateY(0);
}
.play-overlay:hover div {
    transform: scale(1.1);
    background: var(--primary-dark);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.lightbox.active {
    display: flex;
    opacity: 1;
}
.lightbox-overlay {
    position: absolute;
    inset: 0;
    cursor: zoom-out;
}
.lightbox-content-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 95vw;
    max-height: 95vh;
    animation: zoomIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes zoomIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.lightbox-img-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    background: #000;
}
.lightbox-img-container img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}
.lightbox-caption-container {
    margin-top: 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 30px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
}
.lightbox-caption-container h3 {
    color: #fff;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.lightbox-close-btn {
    position: absolute;
    top: -50px;
    right: -10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}
.lightbox-close-btn:hover {
    background: var(--primary);
    transform: rotate(90deg);
}
