/* Modern Filtered Gallery Section */
.gallery-filtered-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--light-bg);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.gallery-filter-btn {
    padding: 12px 28px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--secondary-color);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.4s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.gallery-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    transition: opacity 0.5s ease;
    min-height: 400px;
}

.gallery-filter-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    height: 280px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-filter-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Hover Overlay */
.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(2px);
}

.gallery-item-overlay>i {
    color: white;
    font-size: 2.5rem;
    transform: scale(0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

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

.gallery-filter-item:hover .gallery-item-overlay>i {
    transform: scale(1);
}

/* Responsive */
@media (max-width: 992px) {
    .gallery-filter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .gallery-filters {
        gap: 10px;
    }

    .gallery-filter-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: var(--radius-md);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    background: transparent;
    border: none;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.lightbox-close:hover {
    color: var(--primary-light);
    opacity: 1;
    transform: rotate(90deg);
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 20px;
    z-index: 10001;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.lightbox-nav:hover {
    color: var(--primary-light);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Like Button Styles */
.like-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: var(--text-muted);
    font-size: 1.4rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.like-btn.liked {
    color: #ef4444;
    animation: heartBeat 0.4s ease-in-out;
}

.like-btn:hover {
    transform: scale(1.15);
    box-shadow: var(--shadow-lg);
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}