.filter-wrap {
    margin: 25px 0 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-pill {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: #e9e9ea;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-pill:hover {
    border-color: rgba(61, 217, 214, 0.5);
    color: #fff;
}

.filter-pill.active {
    background: #b4f1f0;
    color: #0f0f0f;
    border-color: #b4f1f0;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 1200px) {
    .photo-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .photo-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .photo-gallery {
        grid-template-columns: 1fr;
    }
}

.photo-gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.25s ease, opacity 0.25s ease;
    will-change: transform, opacity;
}

.photo-gallery img.enter {
    animation: fadeSlideIn 280ms ease;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(6px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 10px;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.lightbox img.transitioning {
    opacity: 0;
    transform: translateX(8px);
}

.lightbox-controls {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
}

html[dir="rtl"] .lightbox-controls {
    direction: ltr;
}

.lightbox-btn {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: 6px;
    width: 36px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.lightbox-btn:hover {
    background: rgba(180, 241, 240, 0.15);
    border-color: rgba(180, 241, 240, 0.6);
}

.video-container .yt-lite {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    background: #000;
    cursor: pointer;
}

.video-container .yt-lite__media {
    position: absolute;
    inset: 0;
    display: block;
    background-size: cover;
    background-position: center;
}

.video-container .yt-lite__play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.55);
    transform: translate(-50%, -50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.video-container .yt-lite__play::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: 4px;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 14px 0 14px 22px;
    border-color: transparent transparent transparent #fff;
}

.video-container .yt-lite:hover .yt-lite__play {
    background: rgba(0, 0, 0, 0.7);
    transform: translate(-50%, -50%) scale(1.04);
}
