.gallery-block {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
    overflow: hidden;
    border:1px solid var(--wp--preset--color--accent);
}
.gallery-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.7s cubic-bezier(.4,0,.2,1);
    /* Gradiente nero trasparente dal basso */
}
.gallery-item[style*='display: block'] {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}
.gallery-item::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.45) 35%, rgba(0,0,0,0.0) 80%);
}
.gallery-overlay {
    position: absolute;
    left: 40px;
    bottom: 65px; /* 10px sopra i dots + padding */
    background: rgba(25,25,25,0.8); /* var(--wp--preset--color--background-secondary) con opacità */
    color: var(--wp--preset--color--text, #222);
    padding: 20px;
    min-width: 220px;
    max-width: 60%;
    z-index: 5;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.gallery-overlay h3 {
    margin: 0 0 0.2rem;
    font-size: 15px;
    font-family: inherit;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.65px;
    color: var(--wp--preset--color--accent, #c99c47);
}
.gallery-overlay p {
    margin: 0;
    font-size: 15px;
    font-family: 'Didot', serif;
    color: var(--wp--preset--color--text, #222);
    font-style: italic;
    quotes: "\201C" "\201D";
}
.gallery-overlay p::before {
    content: open-quote;
}
.gallery-overlay p::after {
    content: close-quote;
}
.gallery-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 40px;
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    z-index: 10;
    align-items: center;
    padding: 0 40px;
}
.gallery-dot {
    width: 10px;
    height: 6px;
    border-radius: 3px;
    background: var(--wp--preset--color--secondary, #bdbdbd);
    opacity: 1;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-block;
}
.gallery-dot.active {
    width: 30px;
    height: 6px;
    border-radius: 3px;
    background: var(--wp--preset--color--accent, #c99c47);
}
