#item-peinture {
    width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
    padding: 0 1rem;
    margin: 0 auto !important;

    .image-style {
        transition: transform 0.3s ease-in-out;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
        cursor: pointer;
        max-width: 100%;
        margin-bottom: 0;
        will-change: transform;
        image-rendering: crisp-pixelated;

        /*&:hover {
            transform: scale(1.03) translateZ(0) !important;
        }*/
    }
    
    .image-container {
        position: relative;
        display: flex;
        align-items: center;

        .image-wrapper {
            position: relative;
            width: 100%;
            height: auto;
            perspective: 1000px;
            transform-style: preserve-3d;

            #base-image {
                position: relative;
                z-index: 2;
                transition: transform 0.6s ease-in-out;
                backface-visibility: hidden;
                width: 100%;
                height: auto;
                display: block;
                transform: rotateY(0deg); // Estado inicial
            }

            #situacion-image {
                position: absolute;
                top: 0;
                left: 0;
                z-index: 1;
                transition: transform 0.6s ease-in-out;
                backface-visibility: hidden;
                width: 100%;
                height: auto;
                display: block;
                transform: rotateY(180deg); // Estado inicial (girada 180 grados)
            }
        }

        .situacion {
            .btn-situacion {
                margin-left: 0.7rem;
    
                i {
                    font-size: 2rem;
                    color: #5c1c1c;
                    background: #f1f1f1;
                    border: none;
                    cursor: pointer;
                    transition: background 0.3s ease;
                    font-weight: bold;
                    border-radius: 50%;
                    box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
    
                    &:hover {
                        background: #c0bfbf;
                    }
                }
            }
        }

        

    }

    

    .description {
        align-self: flex-start;
        padding: 1rem 0.2rem 0;
        h3 {
            font-weight: bold;
            
            margin-bottom: 0.5rem;
            text-transform: uppercase;
        }

        p {
            line-height: 1.6rem;

        }    
    }

}


/* Estilos comunes para ambos modales */
.fullscreen-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    
    box-sizing: border-box;
    padding: 6rem 1rem;
    

    &.active {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #fullscreenImage {
        width: 100%;
        max-width: 1150px;
        height: auto;
        max-height: 90vh;
        object-fit: contain; /* Mantiene la proporción de la imagen */
    }

    .close-modal {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 1.5rem;
        color: white;
        cursor: pointer;
        background: rgba(255, 255, 255, 0.2);
        border: none;
        padding: 10px 15px;
        border-radius: 50%;
        transition: background 0.3s ease;

        &:hover {
            background: rgba(255, 255, 255, 0.5);
        }
    }
}



@media screen and (max-width: 750px) {
    .fullscreen-modal {
        padding: 0.5rem;
    }
}