/* --- ARTMC Media Ultimate v9.8.0 --- */

/* 1. Grid Fixes */
.artmc-grid { 
    display: grid !important; 
    width: 100%;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; 
}

/* 2. Slider Fixes */
.swiper.artmc-media-wrapper, 
.artmc-media-wrapper .swiper {
    overflow: hidden !important; 
    padding-bottom: 40px !important;
}

.artmc-grid .swiper-slide {
    width: 100% !important; 
    height: auto !important;
    margin: 0 !important;
}

/* 3. Card Styling */
.artmc-item-wrap { 
    position: relative; 
    overflow: hidden; 
    transition: 0.3s; 
    display: block; 
    width: 100%; 
    border-radius: 8px; 
    box-sizing: border-box;
}

/* 4. Filter Tabs Style (NEW) */
.artmc-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.artmc-filter-item {
    padding: 8px 20px;
    background: #f1f1f1;
    color: #333;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    user-select: none;
}

.artmc-filter-item:hover,
.artmc-filter-item.active {
    background: #2271b1; 
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* 5. Thumb & Visuals */
.artmc-thumb { 
    position: relative; 
    width: 100%; 
    height: 250px; 
    background-size: cover; 
    background-position: center; 
    transition: transform 0.6s ease;
    display: block;
}
.artmc-overlay { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    display: flex; align-items: center; justify-content: center; 
    transition: 0.3s; z-index: 2; background: rgba(0,0,0,0.2);
}
.artmc-item-wrap:hover .artmc-overlay { background: rgba(0,0,0,0.4); }

.artmc-icon svg { transition: transform 0.3s ease, fill 0.3s; filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5)); }
.artmc-item-wrap:hover .artmc-icon svg { transform: scale(1.15); }

/* Content */
.artmc-content { position: relative; width: 100%; z-index: 3; padding: 15px; }
.artmc-title { margin: 0; font-weight: bold; font-size: 16px; line-height: 1.4; }

/* Positions */
.artmc-pos-below .artmc-content { background: #fff; }
.artmc-pos-overlay .artmc-item-wrap { display: flex; flex-direction: column; }
.artmc-pos-overlay .artmc-content { 
    position: absolute; bottom: 0; left: 0; width: 100%; 
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #fff; padding-bottom: 20px;
}
.artmc-pos-overlay .artmc-title { color: #fff; }

/* Navigation */
.swiper-button-next, .swiper-button-prev {
    width: 40px; height: 40px; background: rgba(0,0,0,0.6); color: #fff; border-radius: 50%;
    backdrop-filter: blur(2px); margin-top: -20px;
}
.swiper-button-next:after, .swiper-button-prev:after { font-size: 16px; font-weight: bold; }
.swiper-pagination-bullet { width: 10px; height: 10px; opacity: 1; background: #ccc; }
.swiper-pagination-bullet-active { background: #2271b1; }

/* Load More */
.artmc-loader { text-align: center; padding: 20px; display: none; width: 100%; font-weight: bold; }
.artmc-btn-wrap { text-align: center; margin-top: 30px; }
.artmc-btn-more { 
    cursor: pointer; display: inline-block; padding: 12px 30px; 
    background: #2271b1; color: #fff; border-radius: 4px; border:none; 
    font-size: 15px; transition: 0.3s;
}
.artmc-btn-more:hover { opacity: 0.9; transform: translateY(-2px); }