/**
 * LRV PDF Products - Gallery Widget Styles
 * @version 1.1.0
 */

.lrv-gallery-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

/* Imagem Principal */
.lrv-gallery-main {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f7;
    min-height: 300px;
}

.lrv-gallery-main img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.lrv-gallery-counter {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Thumbnails */
.lrv-gallery-thumbs-container {
    overflow: hidden;
    margin-bottom: 14px;
}

.lrv-gallery-thumbs {
    display: flex;
    gap: 12px;
    transition: transform 0.3s ease;
}

.lrv-gallery-thumb {
    flex: 0 0 calc(25% - 9px);
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: border-color 0.2s, transform 0.2s;
    background: #f5f5f7;
}

.lrv-gallery-thumb:hover {
    transform: scale(1.03);
}

.lrv-gallery-thumb.active {
    border-color: #1A6FBE;
}

.lrv-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

/* Navegação */
.lrv-gallery-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 0;
}

.lrv-gallery-prev,
.lrv-gallery-next {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 4px;
    border-radius: 8px;
    transition: color 0.2s;
    font-weight: 500;
}

.lrv-gallery-prev:hover,
.lrv-gallery-next:hover {
    color: #1A6FBE;
}

.lrv-gallery-prev span,
.lrv-gallery-next span {
    font-size: 18px;
    line-height: 1;
}

/* Dots - estilo "traço" */
.lrv-gallery-dots {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
}

.lrv-gallery-dot {
    width: 20px;
    height: 5px;
    border-radius: 3px;
    background: #d4d4d4;
    cursor: pointer;
    transition: background 0.3s, width 0.3s;
}

.lrv-gallery-dot.active {
    background: #1A6FBE;
    width: 32px;
}

/* Responsivo */
@media (max-width: 768px) {
    .lrv-gallery-thumb {
        flex: 0 0 calc(33.33% - 8px);
        border-radius: 12px;
    }

    .lrv-gallery-main {
        border-radius: 16px;
    }

    .lrv-gallery-main img {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .lrv-gallery-thumb {
        flex: 0 0 calc(50% - 6px);
        border-radius: 10px;
    }

    .lrv-gallery-main {
        border-radius: 14px;
    }

    .lrv-gallery-main img {
        height: 220px;
    }
}
