.gallery-item-wrapper.hidden-item {
    display: none !important;
}

.gallery-show-more-container {
    margin-top: 30px;
    text-align: center;
}

#loadMoreGalleryBtn {
    padding: 12px 35px;
    font-size: 18px;
    transition: all 0.3s;
}

#loadMoreGalleryBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Standardizing Gallery Cards */
.gallery-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    /* Fixed professional ratio */
    overflow: hidden;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(var(--primary-color-rgb, 0, 123, 255), 0.8);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 2;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover .video-play-icon {
    transform: translate(-50%, -50%) scale(1.2);
    background: var(--primary-color, #007bff);
    box-shadow: 0 0 20px rgba(var(--primary-color-rgb, 0, 123, 255), 0.5);
}

/* Gallery Filter Tabs */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    padding: 0;
    list-style: none;
}

.gallery-filters li {
    cursor: pointer;
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: #f8f9fa;
    color: #444;
}

.gallery-filters li:hover {
    background: #eee;
    transform: translateY(-2px);
}

.gallery-filters li.active {
    background: var(--primary-color, #007bff);
    color: #fff;
    box-shadow: 0 4px 15px rgba(var(--primary-color-rgb, 0, 123, 255), 0.3);
    transform: translateY(-2px);
}

/* --- PROFESSIONAL ANIMATIONS & UTILITIES --- */

/* Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-50px, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb, 0, 123, 255), 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(var(--primary-color-rgb, 0, 123, 255), 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb, 0, 123, 255), 0);
    }
}

/* Utility Classes */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hover-lift {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-glow:hover {
    animation: pulse-glow 1.5s infinite;
}

/* Stagger Delays */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

/* Hero Enhancements */
.hero-title-animate {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.3s;
}

.hero-subtitle-animate {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.6s;
}

.hero-btn-animate {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.9s;
}