/* Gallery Redesign - Premium Glassmorphic & Clean Card Design */
/* ========================================================== */

/* Gallery Section Header */
.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 30px;
}

.gallery-header-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-gray);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.gallery-header-content p {
    color: var(--medium-gray);
    font-size: 1.1rem;
    max-width: 600px;
}

/* Category Filters */
.gallery-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--white);
    border: 1px solid var(--border-color);
    color: var(--dark-gray);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.filter-btn:hover {
    border-color: var(--primary-yellow);
    background: var(--light-yellow);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(246, 198, 62, 0.15);
}

.filter-btn.active {
    background: var(--primary-yellow);
    border-color: var(--primary-yellow);
    color: var(--dark-gray);
    box-shadow: 0 6px 20px rgba(246, 198, 62, 0.3);
}

/* Gallery Grid & Masonry-like Card Style */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.gallery-item {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(246, 198, 62, 0.3);
}

/* Image Container & Overlay */
.gallery-item-image {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background-color: #f1f5f9;
}

.gallery-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

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

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 2;
}

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

.gallery-item-view {
    background: var(--primary-yellow);
    border: none;
    color: var(--dark-gray);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    transform: scale(0.8);
    opacity: 0;
    box-shadow: 0 4px 15px rgba(246, 198, 62, 0.4);
}

.gallery-item:hover .gallery-item-view {
    transform: scale(1);
    opacity: 1;
}

.gallery-item-view:hover {
    transform: scale(1.15);
    background: var(--white);
    color: var(--dark-yellow);
}

/* Gallery Info Section */
.gallery-item-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: var(--white);
}

.gallery-item-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 10px;
    line-height: 1.4;
}

.gallery-item-info p {
    font-size: 0.95rem;
    color: var(--medium-gray);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.gallery-item-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #94a3b8;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
    margin-top: auto;
}

.gallery-item-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Lightbox Modal Redesign (Premium Glassmorphic) */
.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.gallery-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.gallery-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1;
}

.gallery-modal-content {
    position: relative;
    background: var(--white);
    width: 90%;
    max-width: 950px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    z-index: 2;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-modal.active .gallery-modal-content {
    transform: scale(1);
}

/* Close, Prev, Next Buttons */
.gallery-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gallery-modal-close:hover {
    background: var(--primary-yellow);
    color: var(--dark-gray);
    transform: scale(1.1) rotate(90deg);
}

.gallery-modal-prev,
.gallery-modal-next {
    position: absolute;
    top: 40%;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.gallery-modal-prev:hover,
.gallery-modal-next:hover {
    background: var(--primary-yellow);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(246, 198, 62, 0.4);
}

.gallery-modal-prev {
    left: 20px;
}

.gallery-modal-next {
    right: 20px;
}

/* Image Wrapper in Modal */
.gallery-modal-image-wrapper {
    width: 100%;
    height: 480px;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-modal-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Info Wrapper in Modal */
.gallery-modal-info {
    padding: 30px 40px;
    background: var(--white);
}

.gallery-modal-info h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 12px;
}

.gallery-modal-info p {
    font-size: 1.05rem;
    color: var(--medium-gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

.modal-meta {
    display: flex;
    gap: 30px;
    font-size: 0.9rem;
    color: #64748b;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}

.modal-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Empty & Loading States */
.gallery-loading,
.gallery-empty {
    text-align: center;
    padding: 80px 0;
    color: var(--medium-gray);
}

.gallery-loading i {
    font-size: 3rem;
    color: var(--primary-yellow);
    margin-bottom: 20px;
}

.gallery-empty i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.gallery-empty h3 {
    font-size: 1.6rem;
    color: var(--dark-gray);
    margin-bottom: 10px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .gallery-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    .gallery-modal-image-wrapper {
        height: 380px;
    }

    .gallery-modal-info {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .gallery-modal-prev,
    .gallery-modal-next {
        width: 45px;
        height: 45px;
    }

    .gallery-modal-prev {
        left: 10px;
    }

    .gallery-modal-next {
        right: 10px;
    }

    .gallery-modal-image-wrapper {
        height: 280px;
    }

    .gallery-header-content h2 {
        font-size: 2rem;
    }
}

/* Gallery Hero Banner Styling */
.gallery-hero {
    background-image: url('../assets/Gallery_images/Expert-partners-banner.jpg') !important;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: multiply;
}

@media (max-width: 768px) {
    .gallery-hero {
        background-attachment: scroll;
    }
}