/* Main Container */
.avg-gallery-container,
.avg-videos-container {
    padding: 20px 0;
}

/* Category Filter */
.avg-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.avg-filter-btn {
    padding: 10px 20px;
    background: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 30px;
    color: #333;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.avg-filter-btn:hover,
.avg-filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Grid Layout */
.avg-gallery-grid,
.avg-videos-grid {
    display: grid;
    gap: 25px;
}

.avg-columns-2 { grid-template-columns: repeat(2, 1fr); }
.avg-columns-3 { grid-template-columns: repeat(3, 1fr); }
.avg-columns-4 { grid-template-columns: repeat(4, 1fr); }

/* Album Item */
.avg-album-item,
.avg-video-item {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.avg-album-item:hover,
.avg-video-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.avg-album-inner,
.avg-video-inner {
    position: relative;
}

.avg-album-thumb,
.avg-video-thumb {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
}

.avg-album-thumb img,
.avg-video-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.avg-album-item:hover .avg-album-thumb img,
.avg-video-item:hover .avg-video-thumb img {
    transform: scale(1.1);
}

/* Overlay Effects */
.avg-album-overlay,
.avg-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.avg-album-item:hover .avg-album-overlay,
.avg-video-item:hover .avg-video-overlay {
    opacity: 1;
}

.avg-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.avg-video-play i {
    font-size: 24px;
    color: #667eea;
    margin-left: 5px;
}

.avg-video-play:hover {
    background: white;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Info Styling */
.avg-album-info,
.avg-video-info {
    color: white;
    margin-bottom: 15px;
}

.avg-album-title,
.avg-video-title {
    font-size: 18px;
    margin: 0 0 8px 0;
    color: white;
    font-weight: 600;
}

.avg-album-category,
.avg-video-category,
.avg-album-count {
    display: inline-block;
    font-size: 12px;
    margin-right: 10px;
    opacity: 0.9;
}

.avg-album-category i,
.avg-video-category i,
.avg-album-count i {
    margin-right: 5px;
}

/* Action Buttons */
.avg-album-actions {
    display: flex;
    gap: 10px;
}

.avg-view-btn,
.avg-preview-btn {
    padding: 8px 15px;
    background: rgba(255,255,255,0.9);
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.avg-view-btn:hover,
.avg-preview-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

.avg-view-btn {
    background: #667eea;
    color: white;
}

.avg-view-btn:hover {
    background: #5a67d8;
}

/* Load More Button */
.avg-load-more-container {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.avg-load-more-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.avg-load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.avg-load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* LightGallery Customization */
.lg-outer .lg-thumb-item.active,
.lg-outer .lg-thumb-item:hover {
    border-color: #667eea;
}

.lg-actions .lg-next,
.lg-actions .lg-prev {
    background-color: rgba(102, 126, 234, 0.8);
}

/* Responsive Design */
@media (max-width: 992px) {
    .avg-columns-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .avg-columns-3,
    .avg-columns-4 { grid-template-columns: repeat(2, 1fr); }
    
    .avg-category-filter {
        gap: 8px;
    }
    
    .avg-filter-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .avg-columns-2,
    .avg-columns-3,
    .avg-columns-4 { grid-template-columns: 1fr; }
    
    .avg-album-actions {
        flex-direction: column;
    }
}