/* assets/frontend.css */

.ptg-gallery-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.ptg-tabs-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.ptg-tab-btn {
    padding: 12px 30px;
    background: #f1f5f9;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #475569;
    transition: all 0.3s ease;
}

.ptg-tab-btn:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.ptg-tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.ptg-gallery-content {
    position: relative;
}

.ptg-tab-content {
    display: none;
}

.ptg-tab-content.active {
    display: block;
}

.ptg-main-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #f8fafc;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.ptg-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ptg-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #667eea;
    transition: all 0.3s ease;
    z-index: 10;
}

.ptg-nav-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.ptg-prev {
    left: 20px;
}

.ptg-next {
    right: 20px;
}

.ptg-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.ptg-thumbnail {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.ptg-thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}

.ptg-thumbnail.active {
    border-color: #667eea;
    opacity: 1;
}

.ptg-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .ptg-tabs-nav {
        flex-direction: column;
    }
    
    .ptg-tab-btn {
        width: 100%;
    }
    
    .ptg-nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .ptg-prev {
        left: 10px;
    }
    
    .ptg-next {
        right: 10px;
    }
    
    .ptg-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 10px;
    }
}
