/* =============================================
   GRID LAYOUT SYSTEM
   Fixed 3 column layout
   ============================================= */

/* Base Gallery Grid - 3 Columns Only */
.gallery-art {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   RESPONSIVE BREAKPOINTS
   ============================================= */

/* Tablets (768px - 991px) */
@media (max-width: 991px) {
    .gallery-art {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    .gallery-art {
        grid-template-columns: repeat(1, 1fr);
        grid-gap: 20px;
    }
}

/* Large Desktops (> 1400px) */
@media (min-width: 1400px) {
    .gallery-art {
        grid-gap: 32px;
    }
}

/* Grid switcher removed - fixed 3 column layout */

/* =============================================
   VARIANT SWITCHER IMPROVEMENTS
   ============================================= */

.variant-switcher-wrapper {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
}

.variant-label {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
}

.variant-switcher {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.variant-btn {
    padding: 10px 20px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.variant-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-2px);
}

.variant-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.variant-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.25);
}

/* Mobile Variant Switcher */
@media (max-width: 767px) {
    .variant-switcher-wrapper {
        padding: 16px;
    }

    .variant-btn {
        flex: 1 1 calc(50% - 4px);
        text-align: center;
        padding: 12px 16px;
        font-size: 12px;
    }
}

/* =============================================
   SIDEBAR MOBILE FIX
   ============================================= */

@media (max-width: 991px) {
    .filter-section {
        position: fixed;
        top: 0;
        left: -100%;
        width: 90%;
        max-width: 400px;
        height: 100vh;
        overflow-y: auto;
        z-index: 9999;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 2px 0 16px rgba(0, 0, 0, 0.2);
    }

    .filter-section.active {
        left: 0;
    }

    .close-sidebar,
    .filter-title-mobile {
        display: block !important;
    }

    .mobile-filter {
        display: block !important;
    }
}

/* Smooth Transitions */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.gallery-box,
.grid-btn,
.variant-btn {
    will-change: transform;
}
