.container { display: flex; flex-direction: row; align-items: flex-start; /* padding-bottom: 25.5vh; */ /* padding-left: 2.5rem; padding-right: 2.5rem; */ margin-bottom: 26%; /* max-height: 20%; */ overflow-x: hidden; } .container span { z-index: 1000; cursor: pointer; } .container span:nth-of-type(1) { position: absolute; transform: translateX(calc(-93vw + 00px)) translateY(7em); } .container span:nth-of-type(2) { position: absolute; transform: translateY(7em) translateX(-5vw); } .cardCarousel { list-style: none; padding: 0; position: relative; max-width: 100%; } .carouselDefault { width: 250px; height: 200px; margin: 20px; } .leftButton { transform: translateY(50%); color: cornflowerblue; font-size: 2em; padding: 0.313rem; } .rightButton { color: cornflowerblue; font-size: 2em; padding: 0.313rem; } .cardSummary { width: 100%; height: 100%; box-shadow: 0 0.625rem 0.313rem rgba(0, 0, 0, 0.1); transition: all 0.5s ease-in-out; display: grid; grid-template-columns: repeat(auto-fit, minmax(5rem, 1fr)); grid-template-rows: repeat(auto-fit, minmax(5rem, 1fr)); grid-gap: 0px; } .cardSummary div { width: 100%; height: 100%; object-fit: cover; transition: all 0.5s ease-in-out; } .cardSummary img { width: 100%; height: 100%; object-fit: cover; overflow: hidden; } .card { width: 100%; height: 100%; box-shadow: 0 0.625rem 0.313rem rgba(0, 0, 0, 0.1); transition: all 0.5s ease-in-out; opacity: 0; position: absolute; transform: scale(1) translateX(0px); } .card img { width: 100%; height: 100%; object-fit: cover; overflow: hidden; } .card.active { opacity: 1; transform: scale(1) translateY(0) translateX(0%); z-index: 3; display: flex; flex-wrap: wrap; } .card.next { opacity: 0.6; z-index: 2; transform: scale(0.9) translateX(15vw); padding: 0 calc(0% + 1.5625vw) 0 0; } .card.next2 { opacity: 0.6; z-index: 1; transform: scale(0.9) translateX(17vw); padding: 0 calc(3% + 1.5625vw) 0 0; } .card.prev { transform: scale(0.9) translateX(-15vw); z-index: 1; opacity: 0.6; padding: 0 0 0 calc(0% + 1.5625vw); } .card.prev2 { transform: scale(0.9) translateX(-17vw); z-index: 1; opacity: 0.6; padding: 0 0 0 calc(3% + 1.5625vw); } .card.inactive { transform: scale(1) translateX(0px); z-index: 1; opacity: 0; } .card.noTranslate { transform: scale(1) translateX(0px); z-index: 1; opacity: 0; } @media (min-width: 320px) { .container { display: flex; flex-direction: row-reverse; align-items: flex-start; overflow: -moz-hidden-unscrollable; /* padding-left: 2.5rem; */ /* padding-right: 2.5rem; */ margin-bottom: 0rem; max-height: 17rem; width: 100%; } .card.next { opacity: 0.6; padding: 0 0 0 calc(15% + 1.5625vw); } .card.prev { opacity: 0.6; padding: 0 calc(3% + 5.5625vw) 0 0; } .card.next2 { opacity: 0.6; z-index: 1; transform: scale(0.9) translateX(17vw); padding: 0 calc(3% + 1.5625vw) 0 0; } .card.prev2 { transform: scale(0.9) translateX(-17vw); z-index: 1; opacity: 0.6; padding: 0 0 0 calc(3% + 1.5625vw); } } @media (min-width: 640px) { .container { width: 100%; } .card.next { opacity: 0.6; transform: scale(0.9) translateX(0vw) translateY(1vh); padding: 0 0 0 calc(30% + 1.5625vw); } .card.next2 { opacity: 0.6; z-index: 1; transform: scale(0.8) translateX(4vw) translateY(2vh); /* padding: 0 calc(3% + 1.5625vw) 0 0; */ padding: 0 0 0 calc(40.5% + 0vw); } .card.prev { opacity: 0.6; transform: scale(0.9) translateX(0vw) translateY(1vh); padding: 0 calc(30% + 1.5625vw) 0 0; } .card.prev2 { opacity: 0.6; transform: scale(0.8) translateX(-4vw) translateY(2vh); padding: 0 calc(40.5% + 0vw) 0 0; z-index: 1; /* padding: 0 0 0 calc(3% + 1.5625vw); */ } } /* xs - sm */ @media (min-width: 320px) and (max-width: 640px) { .container { width: 100%; min-height: 27vh; overflow-x: hidden; padding: 0 0 0 0; /* padding: 0 calc(9% + 0rem) 0 0; */ } .card.next { opacity: 0.6; display: none; } .card.prev { opacity: 0.6; display: none; } .card.prev2 { transform: scale(0.9) translateX(-17vw); z-index: 1; opacity: 0.6; padding: 0 0 0 calc(3% + 1.5625vw); display: none; } .card.next2 { opacity: 0.6; z-index: 1; transform: scale(0.8) translateX(17vw); padding: 0 calc(3% + 1.5625vw) 0 0; display: none; } } /* sm - md */ @media (min-width: 640px) and (max-width: 767px) { .container { width: 100%; height: 100%; /* padding: 0 calc(5% + 0rem) 0 0; */ } .card.next { opacity: 0.6; transform: scale(0.9) translateX(10vw) translateY(1vh); padding: 0 0 0 calc(17% + 1.5625vw); display: none; } .card.next2 { opacity: 0.6; z-index: 1; transform: scale(0.8) translateX(17vw) translateY(2vh); /* padding: 0 calc(3% + 1.5625vw) 0 0; */ padding: 0 0 0 calc(34% + 1.5625vw); display: none; } .card.prev { opacity: 0.6; transform: scale(0.9) translateX(-10vw) translateY(1vh); padding: 0 calc(19% + 1.5625vw) 0 0; display: none; } .card.prev2 { opacity: 0.6; transform: scale(0.8) translateX(-17vw) translateY(2vh); padding: 0 calc(38% + 1.5625vw) 0 0; z-index: 1; display: none; /* padding: 0 0 0 calc(3% + 1.5625vw); */ } } /* md - lg */ @media (min-width: 768px) and (max-width: 1023.4px) { .container { width: 100%; /* padding: 0 calc(0 + 0rem) 0 0; */ /* padding: 0 calc(2.5% + 0rem) 0 0; */ /* padding-left: calc(40px + 2.5vw); */ /* padding-left: calc(1% + 95px); */ /* align-items: center; */ /* justify-content: center; */ /* overflow-y: hidden; */ } .card.next { opacity: 0.6; transform: scale(0.9) translateX(10vw) translateY(1vh); padding: 0 0 0 calc(17% + 1.5625vw); } .card.next2 { opacity: 0.6; z-index: 1; transform: scale(0.8) translateX(17vw) translateY(2vh); /* padding: 0 calc(3% + 1.5625vw) 0 0; */ padding: 0 0 0 calc(34% + 1.5625vw); } .card.prev { opacity: 0.6; transform: scale(0.9) translateX(-10vw) translateY(1vh); padding: 0 calc(19% + 1.5625vw) 0 0; } .card.prev2 { opacity: 0.6; transform: scale(0.8) translateX(-17vw) translateY(2vh); padding: 0 calc(38% + 1.5625vw) 0 0; z-index: 1; /* padding: 0 0 0 calc(3% + 1.5625vw); */ } } /* @media (max-width: 1050px) { .card.next2 { opacity: 0.6; z-index: 1; transform: scale(0.8) translateX(17vw) translateY(2vh); padding: 0 0 0 calc(37% + 1.5625vw); } .card.prev2 { opacity: 0.6; transform: scale(0.8) translateX(-17vw) translateY(2vh); padding: 0 calc(30% + 1.5625vw) 0 0; z-index: 1; } } */ /* lg - xl */ @media (min-width: 1023.5px) and (max-width: 1278.5px) { .container { width: 100%; } .card.next { opacity: 0.6; transform: scale(0.85) translateX(3rem) translateY(1.5vh); padding: 0 0 0 calc(33% + 0vw); } .card.next2 { opacity: 0.6; z-index: 1; transform: scale(0.7) translateX(6rem) translateY(4vh); /* padding: 0 calc(3% + 1.5625vw) 0 0; */ padding: 0 0 0 calc(53% + 2rem); } .card.prev { opacity: 0.6; transform: scale(0.85) translateX(-3rem) translateY(1.5vh); padding: 0 calc(33% + 0vw) 0 0; } .card.prev2 { opacity: 0.6; transform: scale(0.7) translateX(-9vw) translateY(4vh); padding: 0 calc(53% + 2rem) 0 0; z-index: 1; /* padding: 0 0 0 calc(3% + 1.5625vw); */ } } /* xl - 2xl */ @media (min-width: 1278.6px) and (max-width: 1535px) { .container { max-width: 100%; } .card.next { opacity: 0.6; transform: scale(0.85) translateX(2vw) translateY(1.7vh); /* padding: 0 0 0 calc(30% + 1.5625vw); */ padding: 0 0 0 calc(30% + (100vw / 10)); } .card.next2 { opacity: 0.6; z-index: 1; transform: scale(0.7) translateX(16vw) translateY(4.3vh); /* padding: 0 calc(3% + 1.5625vw) 0 0; */ padding: 0 0 0 calc(40.5% + (100vw / 8)); } .card.prev { opacity: 0.6; transform: scale(0.85) translateX(-2vw) translateY(1.7vh); padding: 0 calc(30% + (100vw / 10)) 0 0; /* padding: 0 calc(30% + 1.5625vw) 0 0; */ } .card.prev2 { opacity: 0.6; transform: scale(0.7) translateX(-16vw) translateY(4.3vh); padding: 0 calc(40.5% + (100vw / 8)) 0 0; /* padding: 0 calc(40.5% + 0vw) 0 0; */ z-index: 1; /* padding: 0 0 0 calc(3% + 1.5625vw); */ } } /* 2xl - 3xl */ @media (min-width: 1536px) and (max-width: 1919px) { .container { max-width: 100%; } .card.next { opacity: 0.6; transform: scale(0.85) translateX(2vw) translateY(1.7vh); /* padding: 0 0 0 calc(30% + 1.5625vw); */ padding: 0 0 0 calc(30% + (100vw / 10)); } .card.next2 { opacity: 0.6; z-index: 1; transform: scale(0.7) translateX(16vw) translateY(4.3vh); /* padding: 0 calc(3% + 1.5625vw) 0 0; */ padding: 0 0 0 calc(40.5% + (100vw / 8)); } .card.prev { opacity: 0.6; transform: scale(0.85) translateX(-2vw) translateY(1.7vh); padding: 0 calc(30% + (100vw / 10)) 0 0; /* padding: 0 calc(30% + 1.5625vw) 0 0; */ } .card.prev2 { opacity: 0.6; transform: scale(0.7) translateX(-16vw) translateY(4.3vh); padding: 0 calc(40.5% + (100vw / 8)) 0 0; /* padding: 0 calc(40.5% + 0vw) 0 0; */ z-index: 1; /* padding: 0 0 0 calc(3% + 1.5625vw); */ } } /* 3xl - 4xl */ @media (min-width: 1920) and (max-width: 2559.45px) { .container { width: 100%; } .card.next { opacity: 0.6; transform: scale(0.9) translateX(0vw) translateY(1vh); padding: 0 0 0 calc(30% + 1.5625vw); } .card.next2 { opacity: 0.6; z-index: 1; transform: scale(0.8) translateX(4vw) translateY(2vh); /* padding: 0 calc(3% + 1.5625vw) 0 0; */ padding: 0 0 0 calc(40.5% + 0vw); } .card.prev { opacity: 0.6; transform: scale(0.9) translateX(0vw) translateY(1vh); padding: 0 calc(30% + 1.5625vw) 0 0; } .card.prev2 { opacity: 0.6; transform: scale(0.8) translateX(-4vw) translateY(2vh); padding: 0 calc(40.5% + 0vw) 0 0; z-index: 1; /* padding: 0 0 0 calc(3% + 1.5625vw); */ } }