/* ===== ART GALLERY STYLES ===== */

:root {
    --gallery-overlay-bg: linear-gradient(135deg, rgba(0, 0, 0, 0.85), rgba(44, 122, 205, 0.7));
    --gallery-card-bg: #fff;
    --gallery-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* Page Hero Adjustments */
.page-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--gradient-dark);
    color: var(--white);
    overflow: hidden;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Featured Work Section */
.featured-work {
    background: var(--white);
    padding: 120px 20px;
    position: relative;
    overflow: hidden;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.featured-content h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.featured-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--gray-color);
    margin-bottom: 40px;
    opacity: 0.9;
}

.featured-image {
    position: relative;
}

.featured-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.featured-image:hover img {
    transform: scale(1.02);
}

/* Gallery Section */
.gallery-section {
    padding: 120px 20px;
    background: var(--light-bg);
}

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

.filter-btn {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--secondary-color);
    padding: 15px 35px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--secondary-color);
    transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    width: 100%;
}

.filter-btn:hover,
.filter-btn.active {
    color: white;
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Masonry/Grid Layout */
.gallery-grid {
    column-count: 3;
    column-gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 40px;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--gallery-card-bg);
    box-shadow: var(--gallery-shadow);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-15px) scale(1.01);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.gallery-image {
    width: 100%;
    height: auto;
    /* Allow natural height for masonry feel */
    min-height: 250px;
    display: block;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* Premium Overlay */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gallery-overlay-bg);
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    backdrop-filter: blur(5px);
}

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

.gallery-overlay i {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 20px;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s;
}

.gallery-overlay h3 {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s;
}

.gallery-item:hover .gallery-overlay i,
.gallery-item:hover .gallery-overlay h3,
.gallery-item:hover .gallery-overlay p {
    transform: translateY(0);
}

/* Info Section: Handle both internal (overlay) and external (below image) placements */
.gallery-info {
    padding: 0;
    width: 100%;
}

/* Hide the external info box to maintain the clean masonry look */
.gallery-item>.gallery-info {
    display: none;
}

/* Ensure info inside overlay is visible and styled */
.gallery-overlay .gallery-info {
    display: block;
    color: white;
}

/* Category Tag */
.gallery-category {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover .gallery-category {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .gallery-grid {
        column-count: 2;
    }

    .featured-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .featured-image img {
        height: 400px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        column-count: 1;
    }

    .gallery-filters {
        gap: 10px;
    }

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

    .section-title {
        font-size: 0.9rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}