﻿.productImages {
    width: 100%;
    user-select: none;
}

.productImagesAlt {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    justify-items: center;
    align-items: center;
    margin-bottom: 20px;
    user-select: none;
}

.imageCurrent {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    width: 100%;
}

.imageCurrentAlt {
    display: inline-block;
    margin: 0 auto;
}

.myImgWrapper {
    display: inline-block;
    overflow: hidden;
    max-height: 100%;
}

.myImg {
    max-width: 100%;
    max-height: 40vh;
    cursor: pointer;
}

.myImgAlt {
    height: 40vw;
    max-height: 400px;
    cursor: pointer;
}

/*Эффект появления/исчезновения фото продуктов на слайдерах*/
.imgOn {
    animation-name: imgAppear;
    animation-duration: .1s;
    animation-fill-mode: forwards;
}

.imgOff {
    animation-name: imgDisappear;
    animation-duration: .2s;
    animation-fill-mode: forwards;
}

@keyframes imgAppear {
    0% {
        opacity: 0;
    }

    25% {
        opacity: 0.25;
    }

    50% {
        opacity: 0.5;
    }

    75% {
        opacity: 0.75;
    }

    100% {
        opacity: 1;
    }
}

@keyframes imgDisappear {
    0% {
        opacity: 1;
    }

    25% {
        opacity: 0.75;
    }

    50% {
        opacity: 0.5;
    }

    75% {
        opacity: 0.25;
    }

    100% {
        opacity: 0;
    }
}

/* Media
==================== */
@media (max-width: 640px) {
    .imageCurrent {
        height: 300px;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .imageCurrent {
        height: auto;
        max-width: 100%;
        max-height: 40vh;
    }
}