/* প্রিমিয়াম ইমেজ গ্যালারি ফিল্টার স্টাইল */
.pig-gallery-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.pig-gallery-container {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.pig-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.pig-header {
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.pig-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.pig-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.pig-filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.pig-filter-btn {
    padding: 10px 20px;
    background-color: white;
    border: 2px solid #ddd;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #555;
}

.pig-filter-btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.pig-filter-btn.active {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border-color: #6a11cb;
}

.pig-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.pig-gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background-color: white;
    cursor: pointer;
}

.pig-gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.pig-gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.pig-gallery-item:hover img {
    transform: scale(1.05);
}

.pig-gallery-item .pig-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    color: white!important;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.pig-overlay h3{
    color: #ffffff;
}

.pig-gallery-item:hover .pig-overlay {
    transform: translateY(0);
}

.pig-gallery-item h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.pig-gallery-item p {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.4;
}

.pig-category-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6a11cb;
}

.pig-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.pig-no-results h3 {
    color: #666;
    margin-bottom: 10px;
}

.pig-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 1.1rem;
}

/* পপআপ স্টাইল - নন-ফুলস্ক্রিন */
.pig-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pig-popup.active {
    display: flex;
    opacity: 1;
}

.pig-popup-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    overflow: hidden;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.pig-popup.active .pig-popup-container {
    transform: scale(1);
}

.pig-popup-content {
    position: relative;
    padding: 0;
    max-width: 100%;
    max-height: calc(85vh - 60px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.pig-popup-img {
    max-width: 100%;
    max-height: calc(85vh - 60px);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.pig-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
}

.pig-popup-title {
    font-size: 1.3rem;
    font-weight: 600;
}

.pig-popup-close {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.pig-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.pig-popup-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.pig-image-counter {
    font-weight: 600;
    color: #495057;
}

.pig-popup-nav {
    display: flex;
    gap: 10px;
}

.pig-nav-btn {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pig-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
}

.pig-nav-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pig-zoom-controls {
    display: flex;
    gap: 10px;
}

.pig-zoom-btn {
    background: white;
    color: #495057;
    border: 1px solid #dee2e6;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pig-zoom-btn:hover {
    background: #e9ecef;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .pig-gallery {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .pig-header h1 {
        font-size: 2rem;
    }

    .pig-popup-container {
        max-width: 95vw;
        max-height: 90vh;
    }

    .pig-popup-content {
        max-height: calc(90vh - 120px);
    }

    .pig-popup-img {
        max-height: calc(90vh - 120px);
    }

    .pig-popup-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .pig-popup-nav {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .pig-gallery {
        grid-template-columns: 1fr;
    }
    
    .pig-filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .pig-filter-btn {
        width: 80%;
    }

    .pig-popup-header {
        padding: 10px 15px;
    }

    .pig-popup-title {
        font-size: 1.1rem;
    }

    .pig-popup-footer {
        padding: 10px 15px;
    }

    .pig-nav-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}