/* Tabs Gallery */
.asg-tabs-gallery {
    width: 100%;
    margin: 40px 0;
}

.asg-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    border-bottom: 2px solid #e0e0e0;
}

.asg-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.asg-tab:hover {
    color: #333;
}

.asg-tab.active {
    color: #0073aa;
    border-bottom-color: #0073aa;
}

.asg-tab-content {
    position: relative;
}

.asg-content {
    display: none;
}

.asg-content.active {
    display: block;
}

/* Grid Layout */
.asg-grid {
    display: grid;
    gap: 20px;
}

/* Dynamic Columns */
.asg-grid[data-columns="1"] { grid-template-columns: repeat(1, 1fr); }
.asg-grid[data-columns="2"] { grid-template-columns: repeat(2, 1fr); }
.asg-grid[data-columns="3"] { grid-template-columns: repeat(3, 1fr); }
.asg-grid[data-columns="4"] { grid-template-columns: repeat(4, 1fr); }
.asg-grid[data-columns="5"] { grid-template-columns: repeat(5, 1fr); }
.asg-grid[data-columns="6"] { grid-template-columns: repeat(6, 1fr); }

.asg-grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    width: 100%;
    height: 250px;
    cursor: pointer;
}

.asg-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s;
    display: block;
}

.asg-grid-item:hover img {
    transform: scale(1.05);
}

/* Carousel */
.asg-carousel-wrapper {
    width: 100%;
    margin: 40px 0;
}

.asg-carousel {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
}

.asg-carousel .swiper-slide {
    width: auto;
    height: 500px;
    background: #f5f5f5;
}

.asg-carousel .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.asg-carousel .swiper-button-prev,
.asg-carousel .swiper-button-next {
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.asg-carousel .swiper-button-prev:after,
.asg-carousel .swiper-button-next:after {
    font-size: 20px;
}

.asg-carousel .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.7;
}

.asg-carousel .swiper-pagination-bullet-active {
    opacity: 1;
    background: #0073aa;
}

/* See More Button */
.asg-see-more {
    text-align: center;
    margin-top: 20px;
}

.asg-btn {
    display: inline-block;
    padding: 12px 32px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.3s;
}

.asg-btn:hover {
    background: #005a87;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .asg-carousel,
    .asg-carousel .swiper-slide {
        height: 350px;
    }
    
    /* Responsive columns for tablet */
    .asg-grid[data-columns="4"],
    .asg-grid[data-columns="5"],
    .asg-grid[data-columns="6"] {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .asg-grid {
        gap: 15px;
    }
    
    .asg-grid-item {
        height: 200px;
    }
    
    .asg-tabs {
        gap: 5px;
    }
    
    .asg-tab {
        padding: 10px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .asg-carousel,
    .asg-carousel .swiper-slide {
        height: 250px;
    }
    
    /* Responsive columns for mobile */
    .asg-grid[data-columns="3"],
    .asg-grid[data-columns="4"],
    .asg-grid[data-columns="5"],
    .asg-grid[data-columns="6"] {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .asg-grid[data-columns="2"] {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .asg-grid-item {
        height: 180px;
    }
}

/* Lightbox Popup */
.asg-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.asg-lightbox.active {
    display: flex;
}

.asg-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.asg-lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.asg-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    line-height: 40px;
    padding: 0;
}

.asg-lightbox-close:hover {
    color: #ff4444;
}

.asg-lightbox-prev,
.asg-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: background 0.3s;
}

.asg-lightbox-prev:hover,
.asg-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.4);
}

.asg-lightbox-prev {
    left: 20px;
}

.asg-lightbox-next {
    right: 20px;
}

.asg-lightbox-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    overflow-x: auto;
    max-width: 90vw;
    padding: 10px 0;
}

.asg-lightbox-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 4px;
    opacity: 0.6;
    transition: all 0.3s;
    flex-shrink: 0;
}

.asg-lightbox-thumb:hover {
    opacity: 0.8;
}

.asg-lightbox-thumb.active {
    border-color: #0073aa;
    opacity: 1;
}

@media (max-width: 768px) {
    .asg-lightbox-prev,
    .asg-lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .asg-lightbox-prev {
        left: 10px;
    }
    
    .asg-lightbox-next {
        right: 10px;
    }
    
    .asg-lightbox-thumb {
        width: 60px;
        height: 45px;
    }
}
