@media screen and (max-width: 1670px) { body .product-swiper .product-swiper-left{ left: 1rem; } body .product-swiper .product-swiper-right{ right: 1rem; } } @media screen and (max-width: 1360px) { body .product-swiper { width: 100%; padding: 0 1rem; box-sizing: border-box; margin: 2rem auto; position: relative; } body .product-swiper .product-direction{ position: absolute; width: 3rem; height: 3rem; background-color: #ffffff; border: solid 1px #cccccc; border-radius: 50%; display: flex; justify-content: center; align-items: center; z-index: 5; top: 0; bottom: 0; margin: auto 0; } body .product-swiper .product-direction span{ font-weight: bold; font-size: 1.2rem; color: #0178c8; } body .swiper-container { width: 100%; height: 100%; } body .swiper-slide { /* Center slide text vertically */ display: -webkit-box; display: -ms-flexbox; display: -webkit-flex; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; -webkit-justify-content: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; -webkit-align-items: center; align-items: center; transition: 300ms; } body .product-li{ width: 100%; height: 20rem; box-sizing: border-box; padding: 0 1rem; display: flex; flex-direction: column; cursor: pointer; } body .product-li div:first-child{ width: 100%; height: unset; background-color: #ffffff; border-radius: 6px; border: solid 1px #d4dce1; box-sizing: border-box; padding: 1rem 0; display: flex; justify-content: center; } body .swiper-slide .a{ width: 100%; } body .product-li div:first-child{ width: 100%; height: 18rem; } body .product-li div:first-child img{ width: 80%; } body .product-li div:last-child{ text-align: center; color: #000000; font-size: 1rem; margin-top: 1rem; } } .product-swiper { width: 1360px; padding: 0 20px; box-sizing: border-box; margin: 60px auto; position: relative; } .product-swiper .product-direction{ position: absolute; width: 60px; height: 60px; background-color: #ffffff; border: solid 1px #cccccc; border-radius: 50%; display: flex; justify-content: center; align-items: center; z-index: 5; top: 0; bottom: 0; margin: auto 0; } .product-swiper .product-direction span{ font-weight: bold; font-size: 22px; color: #0178c8; } .product-swiper .product-swiper-left{ cursor: pointer; left: -90px; } .product-swiper .product-swiper-right{ cursor: pointer; right: -90px; transform: rotate(180deg); } .swiper-container { width: 100%; height: 100%; } .swiper-slide { /* Center slide text vertically */ display: -webkit-box; display: -ms-flexbox; display: -webkit-flex; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; -webkit-justify-content: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; -webkit-align-items: center; align-items: center; transition: 300ms; } .product-li{ display: flex; flex-direction: column; cursor: pointer; } .product-li:hover div:first-child img{ transform: scale(1.1); } .product-li div:first-child{ width: 330px; height: 330px; position: relative; background-color: #ffffff; border-radius: 6px; border: solid 1px #d4dce1; box-sizing: border-box; padding: 50px 0; display: flex; justify-content: center; overflow: hidden; } .product-li div:first-child img{ width: 80%; position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: auto; transition: all .3s; } .product-li div:last-child{ text-align: center; color: #000000; font-size: 18px; transition: all .3s; margin-top: 20px; } .product-li:hover div:last-child{ color: #0178c8; }