:root{--height:calc(80vh - 50px);--width:450px}.carousel{display:grid;transform:translateZ(.1px)}.carousel__list{contain:layout;isolation:isolate;margin:0;padding:2em 0 3em;list-style:none;display:flex;overflow:hidden}.carousel__item{height:var(--height);contain:layout;isolation:isolate;background:#fff3;border-radius:16px;flex:10%;align-content:start;margin:0 10px;padding:0;transition:transform .3s,flex-basis .3s;display:grid;position:relative;overflow:hidden;transform:translateZ(.1px);box-shadow:0 3px 15px 2px #0006,0 12px 28px #0003,0 2px 4px #0000001a,inset 0 0 0 1px #ffffff0d}.carousel__item,.carousel__item *{-webkit-user-select:none;user-select:none;transition:all .6s cubic-bezier(.55,.24,.18,1)}.carousel__image,.carousel__contents{width:var(--width);height:auto}.carousel__item:hover{flex-basis:calc(var(--width) / 2);transition:all .3s}.carousel__item[data-active]{flex-basis:var(--width);background-image:radial-gradient(at 0 0,#000000b3 20%,#0000 80%);flex-grow:0}.carousel__item[data-active]:hover{transition:transform .3s ease-out,flex-basis .3s ease-out;transform:scale(1.1)}@media screen and (max-width:800px){.carousel__item{flex-basis:15%}}@media screen and (max-width:600px){.carousel__item{border-radius:8px;flex-basis:10%;margin:0 5px;font-size:3vw}.carousel__item[data-active]{flex-grow:0;flex-basis:45%}.carousel__item:nth-child(3),.carousel__item:nth-child(7){flex:0 0 10px}.carousel__item:nth-child(2),.carousel__item:nth-child(8){flex:0 0 5px;transform:translate(-50px)}.carousel__item:nth-child(8){transform:translate(50px)}.carousel__item:first-child,.carousel__item:nth-child(n+9){box-shadow:none;flex:0 0 0;margin:0;opacity:0!important}.carousel__item:not(:nth-child(n+5)) img,.carousel__item:nth-child(n+7) img{opacity:.8}.carousel__item:not(:nth-child(n+4)) *,.carousel__item:nth-child(n+7) *{opacity:0!important}}@media screen and (min-width:600px){.carousel__item:nth-child(3),.carousel__item:nth-child(10){flex:0 0 10px}.carousel__item:nth-child(2),.carousel__item:nth-child(11){flex:0 0 5px;transform:translate(-50px)}.carousel__item:nth-child(11){transform:translate(50px)}.carousel__item:first-child,.carousel__item:nth-child(n+12){box-shadow:none;flex:0 0 0;margin:0;opacity:0!important}.carousel__item:not(:nth-child(n+5)) img,.carousel__item:nth-child(n+9) img{opacity:.8}.carousel__item:not(:nth-child(n+4)) *,.carousel__item:nth-child(n+10) *{opacity:0!important}}.carousel__item img{width:var(--width);z-index:-1;aspect-ratio:2/3;-o-object-fit:cover;object-fit:cover;filter:saturate(.2)contrast(.75)brightness(1.1);height:100%;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.carousel__item:after{content:"";z-index:1;opacity:1;background:linear-gradient(160deg,#02002400 40%,#6d3add80 70%,#00fff699 100%);width:100%;height:100%;transition:all .66s cubic-bezier(.55,.24,.18,1);position:absolute;inset:0}.carousel__item[data-active]:after{transform:translateY(100%)}.carousel__item[data-active],.carousel__item[data-active] *{opacity:1;filter:none}.carousel__contents{z-index:2;background-repeat:no-repeat;background-size:170% 200px;flex-direction:column-reverse;justify-content:start;min-height:200px;padding:1em;transition:all .3s;display:flex;position:absolute;bottom:0;left:0}.carousel__item[data-active] .carousel__contents{background-image:radial-gradient(at 0 0,#000000e6 60%,#0000 80%)}.carousel__item[data-active]:hover .carousel__contents{background-position:100% 100%}.carousel__contents .user__name{color:#e8eff4;letter-spacing:.8px;text-shadow:0 1px #0000004d;font-size:1.75em;font-weight:600}.carousel__contents .user__title{letter-spacing:1.25px;text-transform:uppercase;color:#0000;opacity:.85;text-wrap:balance;background:linear-gradient(270deg,#43ff00,#00fff7);-webkit-background-clip:text;background-clip:text;margin-bottom:.5em;font-family:lexend;font-size:.875em;font-weight:500}.carousel__contents .user__description{letter-spacing:1.25px;color:#fff;opacity:.85;text-wrap:balance;-webkit-background-clip:text;background-clip:text;margin-bottom:.5em;font-size:.875em}.carousel__contents .user__title,.carousel__contents .user__description,.carousel__contents .user__name{opacity:0;margin:0;line-height:1.1;transition-duration:1s;transform:translate(-200px)}@media screen and (max-width:800px){.carousel__item img{width:calc(var(--width) * .5)}.carousel__contents{transform-origin:100% 100%;text-align:right;background-image:radial-gradient(at 100% 100%,#0006 0%,#0000 50%);background-position:-100% 100%;flex-direction:column;justify-content:end;align-items:end;position:absolute;bottom:0;left:0;transform:translate(-100%)rotate(90deg)}[data-active] .carousel__contents{background-position:100% 100%}.carousel__contents .user__title,.carousel__contents .user__name{max-width:70vh;transform:translate(200px)}}[data-active] .carousel__contents *{opacity:1;transition-duration:.66s;transform:translate(0)}[data-active] .carousel__contents .user__name{transition-delay:.1s}[data-active] .carousel__contents .user__title{opacity:.85;transition-delay:50ms}.carousel__nav{grid-row:1;justify-content:space-between;justify-self:end;gap:1em;padding:1em;display:flex}button{gap:.5em;padding:.5em 1.5em;display:flex}button span,button svg{fill:none;margin:0;padding:0}button path{fill:currentColor}
