/* Price List Base Styles */
.pl-gallery-container {
    width: 100%;
}

.pl-gallery-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pl-gallery-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.pl-gallery-image-wrapper {
    flex-shrink: 0;
    margin-right: 20px;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    /* Hover Effect Base */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    will-change: transform, box-shadow;
}

.pl-gallery-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    display: block;
}

/* Hover Effect - 3D */
.pl-gallery-item:hover .pl-gallery-image-wrapper {
    transform: scale(1.08) rotateX(2deg) rotateY(3deg) translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

@media (max-width: 767px) {
    .pl-gallery-item:hover .pl-gallery-image-wrapper {
        transform: scale(1.02) translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    }
}

.pl-gallery-content {
    flex-grow: 1;
}

.pl-gallery-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 5px;
}

.pl-gallery-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.pl-gallery-separator {
    flex-grow: 1;
    border-bottom: 1px dotted #ccc;
    margin: 0 10px;
}

.pl-gallery-price {
    font-weight: 600;
}

.pl-gallery-description {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Modal Overlay Styles (Full Screen & Dissolve Effect) */
.pl-gallery-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95); /* Fondo oscuro casi opaco */
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pl-gallery-modal-content {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pl-gallery-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 100000;
    transition: color 0.3s ease;
}

.pl-gallery-modal-close:hover {
    color: #ccc;
}

.pl-gallery-swiper {
    width: 100%;
    height: 100%;
    background: transparent; /* Permite que el fondo de la capa modal se vea */
}

/* Fix para superposición de imágenes en Swiper Fade */
.pl-gallery-swiper .swiper-slide {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background: #000; /* Fondo negro sólido en cada diapositiva para evitar que se vean las anteriores durante el fundido */
}

/* Responsividad automática para las imágenes del carrusel */
.pl-gallery-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ajusta la imagen al tamaño de pantalla sin recortar ni deformar */
    max-width: 100vw;
    max-height: 100vh;
    display: block;
}

/* Ajustes de navegación Swiper para pantalla completa */
.pl-gallery-swiper .swiper-button-next,
.pl-gallery-swiper .swiper-button-prev {
    color: #fff;
}

.pl-gallery-swiper .swiper-pagination-bullet {
    background: #fff;
}