﻿/* =========================================================
   VISOR NUEVO DE PIEZAS
   ========================================================= */

.pieza-gallery {
    width: 100%;
}

.pieza-gallery__main {
    width: 100%;
    border: 1px solid #e9ecef;
    border-radius: .5rem;
    overflow: hidden;
    background: #fff;
}

    .pieza-gallery__main a,
    .pieza-gallery__main figure {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
    }

.pieza-gallery__img {
    display: block;
    width: 100%;
    height: auto !important;
    max-width: 100%;
    object-fit: contain;
    background: #fff;
}

.dv-fot-master {
    margin-top: 0.3rem;
}

    .dv-fot-master img,
    .dv-fot-master figure img {
        display: block;
        width: 100%;
        height: auto !important;
        max-width: 100%;
        object-fit: contain;
    }

.pieza-gallery__thumbs-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: .9rem;
}

.pieza-gallery__thumbs {
    display: flex;
    gap: .75rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    flex: 1 1 auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .pieza-gallery__thumbs::-webkit-scrollbar {
        display: none;
    }

.pieza-gallery__nav {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border: 1px solid #dcdfe3;
    border-radius: 50%;
    background: #fff;
    color: #666;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
}

    .pieza-gallery__nav:hover {
        background: #f8f9fa;
        border-color: #bfc5cc;
        color: #222;
    }

    .pieza-gallery__nav:disabled {
        opacity: .35;
        cursor: default;
    }

.pieza-thumb {
    flex: 0 0 auto;
    border: 1px solid #dee2e6;
    background: #fff;
    border-radius: .5rem;
    padding: .2rem;
    cursor: pointer;
    transition: all .2s ease;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}

    .pieza-thumb img {
        display: block;
        width: 82px;
        height: 82px;
        object-fit: cover;
        border-radius: .35rem;
    }

    .pieza-thumb.is-active {
        border-color: #dc3545;
        box-shadow: 0 0 0 2px rgba(220, 53, 69, .12);
    }

    .pieza-thumb:hover {
        border-color: #adb5bd;
    }

    .pieza-thumb:focus,
    .pieza-thumb:active {
        outline: none;
        box-shadow: none;
    }

@media (min-width: 768px) {
    .pieza-thumb img {
        width: 95px;
        height: 95px;
    }
}

@media (min-width: 992px) {
    .pieza-thumb img {
        width: 105px;
        height: 105px;
    }
}
