/* ============================================
   PREMIUM GALLERY PAGE - SCOPED STYLES
   ============================================ */

.cnc-gallery-wrapper {
    font-family: 'Inter', sans-serif;
    background-color: #0B1120;
    color: #e2e8f0;
    overflow-x: hidden;
}

/* --- Hero Section --- */
.cnc-gallery-hero {
    position: relative;
    padding: 120px 20px 80px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cnc-gallery-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cnc-gallery-hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.cnc-gallery-hero-text {
    font-size: 1.125rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    color: #94a3b8;
}

/* --- Gallery Grid Section --- */
.cnc-gallery-grid-section {
    padding: 80px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Filter Buttons (Optional Future Feature) */
.cnc-gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.cnc-gallery-filter-btn {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 10px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cnc-gallery-filter-btn:hover,
.cnc-gallery-filter-btn.active {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}

/* Grid Layout */
.cnc-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.cnc-gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    background: #1e293b;
}

.cnc-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.cnc-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    display: flex;
    flex-direction: column;
    /* Stack vertically */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
    text-decoration: none;
    /* Remove underline */
}

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

.cnc-gallery-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.cnc-gallery-item:hover .cnc-gallery-icon {
    transform: translateY(0);
}

/* Added Caption Styles */
.cnc-gallery-caption {
    margin-top: 15px;
    text-align: center;
    color: #fff;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
    /* Slight delay */
    padding: 0 10px;
}

.cnc-gallery-item:hover .cnc-gallery-caption {
    transform: translateY(0);
}

.cnc-gallery-caption h6 {
    font-weight: 500;
    font-size: 1rem;
    margin: 0;
    color: white;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .cnc-gallery-hero-title {
        font-size: 2.5rem;
    }

    .cnc-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}