.lmg-gallery {
    margin: 0 auto;
}

.lmg-gallery-item {
    margin-bottom: 10px;
    overflow: hidden; /* ESSENCIAL: evita que a imagem "vaze" ao dar zoom */
    border-radius: 0px; /* opcional: cantos arredondados */
    /*box-shadow: 0 2px 8px rgba(0,0,0,0.1);*/
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* suaviza o hover */
}

.lmg-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease; /* animação suave no zoom */
    transform-origin: center center;
}

.lmg-gallery-item:hover {
    /*transform: translateY(-4px);*/ /* leve elevação */
    /*box-shadow: 0 8px 20px rgba(0,0,0,0.15);*/ /* sombra mais forte */
    z-index: 10; /* garante que fique por cima */
}

.lmg-gallery-item:hover img {
    transform: scale(1.05); /* O ZOOM QUE VOCÊ QUER */
}

.lmg-pagination {
    text-align: center;
    margin-top: 20px;
}

.lmg-pagination a {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 5px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    border-radius: 3px;
}

.lmg-pagination a.active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Ajustes para telas menores */
@media (max-width: 600px) {
    .lmg-pagination a {
        padding: 4px 8px;
        margin: 0 3px;
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .lmg-pagination a {
        padding: 3px 6px;
        margin: 0 2px;
        font-size: 12px;
    }
}