/* --- CONTAINER GALLERIA --- */
.gallery-wrapper {
    padding: 20px 0;
    background-color: #000; /* Fondo nero per far risaltare il cristallo */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* --- SINGOLO ELEMENTO --- */
.gallery-item {
    position: relative;
    border: 1px solid #1a1a1a; /* Bordo sottile come cornice */
    overflow: hidden;
    background: #000;
    transition: border-color 0.4s ease;
}

.gallery-item:hover {
    border-color: #444;
}

.img-container {
    position: relative;
    aspect-ratio: 4/3; /* Mantiene tutte le foto della stessa dimensione */
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%); /* Leggero desaturo per stile minimal */
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1), filter 0.5s ease;
}

/* --- EFFETTO OVERLAY (VETRO SATINATO) --- */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(4px); /* Effetto satinatura vetro */
}

.overlay-content {
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    padding: 20px;
}

.work-title {
    color: #ffffff;
    font-family: 'Century Gothic', sans-serif;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-weight: 300;
}

.view-btn {
    display: inline-block;
    color: #fff;
    border: 1px solid #fff;
    padding: 8px 16px;
    font-size: 11px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

/* --- ANIMAZIONI HOVER --- */
.gallery-item:hover img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .overlay-content {
    transform: translateY(0);
}

.view-btn:hover {
    background: #fff;
    color: #000;
}

.empty-msg {
    color: #666;
    text-align: center;
    grid-column: 1 / -1;
    font-family: 'Century Gothic', sans-serif;
    padding: 50px;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
        gap: 10px;
    }
}

.pagination-container {
    text-align: center;
    margin-top: 50px;
    padding-bottom: 40px;
}

.pagination-container .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    border: 1px solid #333;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.pagination-container .page-numbers.current {
    background-color: #f97316; /* Arancio come il tuo tema */
    border-color: #f97316;
    color: #fff;
}

.pagination-container .page-numbers:hover:not(.current) {
    border-color: #f97316;
    color: #f97316;
}