/* c-images ------------------------------------------------------------------- */ .c-images__big { position: relative; height: 400px; background: #fff; } .c-images { width: 100%; } @media (max-width: 989px) { .c-images__big { height: 300px; } } @media (max-width: 767px) { .c-images__big { height: 200px; } } .c-images__slider { margin-top: 10px; } .c-images__slider__item { position: relative; display: block; height: 100px; border: 1px solid #dadada; background: #fff; } @media (max-width: 989px) { .c-images__slider__item { height: 70px; } } .c-images__slider__item img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; margin: auto; padding: 6px; } .owl-item.current .c-images__slider__item { border-color: #f39c12; box-shadow: inset 0 0 0 1px #f39c12; } .c-images .fancy-modal:first-child { width: 100%; height: 100%; } .c-main-img__inner { height: 100%; background: #fff; display: flex; align-items: center; justify-content: center; } .c-main-img__wrap { background-position: 50% 50%; background-repeat: no-repeat; position: relative; overflow: hidden; cursor: zoom-in; width: 100%; height: 100%; transform: translateZ(0); display: flex; align-items: center; justify-content: center; } .c-main-img__wrap:after { content: ''; position: absolute; background: #fff; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; opacity: 1; transition: .3s opacity; } .c-images__link { display: flex; align-items: center; justify-content: center; } .c-images__link { display: flex; align-items: center; justify-content: center; } .c-main-img__wrap_zoomable:hover .c-main-img, .c-main-img__wrap_zoomable:hover:after { opacity: 0; pointer-events: none; } /* Вложенные селекторы и important необходимы, чтобы перебить стили из других owl-carousel */ .c-main-img { transition: opacity .5s; background: #fff; /* object-fit: scale-down; */ position: relative; z-index: 2; height: 100% !important; } .c-carousel__images .owl-stage { display: block !important; }