@use "helpers";

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

    #fotos{
        display: flex;
        align-items: flex-start;
        justify-content: center;
        width: 100%;

        @media(max-width:575px){
            flex-direction: column;
            justify-content: flex-start;
        }

        #fotosp{
            display: block;
            width: 100%;
            max-width: 82px;
            padding-right: 6px;

            @media(max-width:575px){
                order: 2;
                display: flex;
                flex-direction: column;
                width: 100%;
                max-width: 100%;
                padding: 0px;
                margin-top: 6px;
            }

            #fotospDisplay{
                display: block;
                overflow-y: auto;
                width: 100%;
                max-height: 620px;

                @media(max-width:575px){
                    display: flex;
                    align-items: flex-start;
                    justify-content: flex-start;
                    max-height: auto;
                    gap: 6px;
                }

                .item{
                    display: block;
                    outline: 0px;
                    width: 100%;
                    max-width: 82px;
                    margin-bottom: 6px;

                    @media(max-width:575px){
                        margin: 0px;
                    }

                    img{
                        display: block;
                        width: 100%;
                    }

                    &.control-video{
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        min-height: 82px;
                        background-color: helpers.$highlight;
                    }
                }
            }
        }

        #fotosm{
            position: relative;
            display: block;
            width: calc(100% - 82px);
            max-width: helpers.$maxM;

            @media(max-width:575px){
                order: 1;
                width: 100%;
            }

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

                .item{
                    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{
                        display: block;
                        width: 100%;
                    }

                    .video{
                        display: flex;
                        width: 100%;
                        aspect-ratio: 620 / 620;
                    }

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

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

            .owl-dots, .owl-nav{
                display: none !important;
            }
        }
    }
}
