@import "helpers";

#prd-fotos {
    display: block;
    width: 100%;

    #fotos{
        position: relative;
        width: 100%;

        #fotosp{
            bottom: 25px;
            display: block;
            overflow: auto;
            position: absolute;
            top: 0;
            width: 85px;

            @media(max-width:575px){
                display: none;
            }

            #fotospDisplay{
                display: block;
                overflow-y: hidden;
                width: 100%;

                .item{
                    aspect-ratio: 385 / 510;
                    display: block;
                    outline: 0px;
                    width: 100%;
                    max-width: 70px;
                    margin-bottom: 10px;

                    img{
                        aspect-ratio: 385 / 510;
                        object-fit: cover;
                        display: block;
                        width: 100%;
                    }
                }
            }
        }

        #fotosm{
            position: relative;
            display: block;
            width: calc(100% - 90px);
            max-width: $maxM;
            margin-left: 85px;

            @media(max-width:575px){
                width: 100%;
                margin-left: auto;
            }

            .conteudo{
                display: block;
                width: 100%;

                .item{
                    aspect-ratio: 385 / 510;
                    display: block;
                    width: 100%;

                    .zoom {
                        background-color: #f8f8f8;
                        background-image: url(../img/icones/photo-loading.png);
                        background-position: center;
                        background-repeat: no-repeat;
                        height: 100%;
                        left: 0;
                        opacity: 0;
                        pointer-events: none;
                        position: absolute;
                        top: 0;
                        transition: opacity 0.3s ease, background-position 0.05s, background-image 0.3s ease;
                        width: 100%;
                        z-index: 2;
                    }

                    .fotosmimg{
                        aspect-ratio: 385 / 510;
                        object-fit: cover;
                        display: block;
                        width: 100%;
                    }

                    .video {
                        width: 100%;
                        aspect-ratio: 506/675;
                        pointer-events: none;
                    }

                    &:hover {
                        .zoom {
                            opacity: 1;
                        }
                    }
                }

                &.prevent-load{
                    .item{
                        flex: 1 0 100%;
                    }
                }
            }

            .owl-nav{
                display: none !important;
            }
            .owl-dots{
                margin-top: 16px;
            }
        }
    }
}
