/**
 * Modern Gallery Styles
 */

.pbg-gallery-modern {
    max-width: 1400px;
    margin: 40px auto;
    padding: 20px;
}

.pbg-gallery-header {
    text-align: center;
    margin-bottom: 40px;
}

.pbg-gallery-title {
    font-size: 36px;
    color: #2c3e50;
    margin: 0 0 15px;
    font-weight: 700;
}

.pbg-gallery-meta {
    color: #7f8c8d;
    font-size: 16px;
}

.pbg-gallery-meta span {
    margin: 0 15px;
}

.pbg-gallery-controls {
    text-align: center;
    margin-bottom: 30px;
}

.pbg-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin: 0 5px;
}

.pbg-btn-primary {
    background: #3498db;
    color: white;
}

.pbg-btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.pbg-btn-secondary {
    background: #95a5a6;
    color: white;
}

.pbg-btn-secondary:hover {
    background: #7f8c8d;
}

/* PhotoSwipe Gallery Grid */
.pbg-pswp-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.pbg-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: fadeInScale 0.5s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.pbg-gallery-item:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    transform: translateY(-8px);
}

.pbg-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pbg-gallery-item:hover img {
    transform: scale(1.15);
}

/* Download overlay */
.pbg-download-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.pbg-gallery-item:hover .pbg-download-overlay {
    opacity: 1;
}

.pbg-download-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    color: #2c3e50;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.pbg-download-icon:hover {
    background: #3498db;
    color: white;
    transform: scale(1.1);
}

/* Empty state */
.pbg-empty-gallery {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 16px;
}

.pbg-empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.pbg-empty-gallery h3 {
    font-size: 24px;
    color: #2c3e50;
    margin: 0 0 10px;
}

.pbg-empty-gallery p {
    color: #7f8c8d;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 1200px) {
    .pbg-pswp-gallery {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .pbg-pswp-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .pbg-gallery-title {
        font-size: 28px;
    }
    
    .pbg-gallery-item {
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .pbg-pswp-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .pbg-gallery-title {
        font-size: 24px;
    }
    
    .pbg-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}
