.hero-post-slides {
--page: 0;
--slides-height: 70vh;
height: var(--slides-height);
}
@media screen and (min-width: 48em) {
.hero-post-slides {	
--slides-height: 545px;
height: 545px;
}
}
.hero-post-slides .slides-cont {
position: relative;
height: 100%;
--button-height: 6vh;
--button-spacing: 0.2vh;
}
.hero-post-slides .slides {
width: 100%;
height: var(--slides-height);
font-size: 0;
white-space: nowrap;
position: absolute;
-webkit-transform: translate3D(calc(var(--page) * -80vw), 0, 0);
transform: translate3D(calc(var(--page) * -80vw), 0, 0);
transition: 1500ms -webkit-transform cubic-bezier(0.7, 0, 0.3, 1);
transition: 1500ms transform cubic-bezier(0.7, 0, 0.3, 1);
transition: 1500ms transform cubic-bezier(0.7, 0, 0.3, 1), 1500ms -webkit-transform cubic-bezier(0.7, 0, 0.3, 1);
}
.hero-post-slides .slides .slide {
display: inline-block;
vertical-align: top;
font-size: 1.5vh;
width: 20%;
height: var(--slides-height);
margin: 0 20px;
background: #101419;
color: white;
background-size: cover;
background-position: center;
white-space: normal;
word-break: break-word;
position: relative;
}
@media only screen and (max-width: 1280px) {
.hero-post-slides .slides .slide {
width: 50%;
}
}
@media only screen and (max-width: 667px) {
.hero-post-slides .flickity-prev-next-button {
right: 0 !important;
}
}
@media only screen and (max-width: 479px) {
.hero-post-slides .slides .slide {
width: 100%;
}
}
.hero-post-slides .slides .slide:before {
content: '';
display: block;
background: linear-gradient(180deg, rgba(86, 97, 108, 0) 0%, rgba(33, 52, 69, 0.7) 100%);
opacity: 0;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
.hero-post-slides .slides .slide .number {
position: absolute;
top: 2em;
left: 2em;
}
.hero-post-slides .slides .slide .number, .hero-post-slides .slides .slide .number:before, .hero-post-slides .slides .slide .number:after {
vertical-align: middle;
}
.hero-post-slides .slides .slide .number:before, .hero-post-slides .slides .slide .number:after {
display: inline-block;
content: '';
height: 0.133em;
margin-top: -0.2em;
background: white;
}
.hero-post-slides .slides .slide .number:before {
width: 0;
margin-left: 0;
}
.hero-post-slides .slides .slide .number:after {
width: 3em;
margin-left: 1em;
}
.hero-post-slides .slides .slide .body {
position: absolute;
bottom: 2em;
left: 2em;
right: 2em;
}
.hero-post-slides .slides .slide .location, .hero-post-slides .slides .slide .headline {
position: relative;
bottom: 0;
cursor: default;
}
.hero-post-slides .slides .slide:before, .hero-post-slides .slides .slide .number:before, .hero-post-slides .slides .slide .number:after, .hero-post-slides .slides .slide .location, .hero-post-slides .slides .slide .headline, .hero-post-slides .slides .slide .link {
transition: 375ms cubic-bezier(0.7, 0, 0.3, 1);
}
.hero-post-slides .slides .slide .location {
font-weight: 300;
margin-bottom: 1.1em;
transition-delay: 60ms;
}
.hero-post-slides .slides .slide .headline {
font-size: 2.2rem;
line-height: 1.1em;
transition-delay: 50ms;
}
.hero-post-slides .slides .slide .link {
display: inline-block;
padding: 8px 20px 7px;
font-size: 12px;
text-transform: uppercase;
opacity: 0;
position: absolute;
bottom: -2em;
pointer-events: none;
transition-delay: 25ms;
}
.hero-post-slides .slides .slide.hover:before, .hero-post-slides .slides .slide:hover:before {
opacity: 1;
}
.hero-post-slides .slides .slide.hover:before, .hero-post-slides .slides .slide.hover .number:before, .hero-post-slides .slides .slide.hover .number:after, .hero-post-slides .slides .slide.hover .location, .hero-post-slides .slides .slide.hover .headline, .hero-post-slides .slides .slide.hover .link, .hero-post-slides .slides .slide:hover:before, .hero-post-slides .slides .slide:hover .number:before, .hero-post-slides .slides .slide:hover .number:after, .hero-post-slides .slides .slide:hover .location, .hero-post-slides .slides .slide:hover .headline, .hero-post-slides .slides .slide:hover .link {
transition: 500ms cubic-bezier(0.7, 0, 0.3, 1);
}
.hero-post-slides .slides .slide.hover .number:before, .hero-post-slides .slides .slide:hover .number:before {
width: 3em;
margin-right: 1em;
}
.hero-post-slides .slides .slide.hover .number:after, .hero-post-slides .slides .slide:hover .number:after {
width: 0;
margin-right: 0;
}
.hero-post-slides .slides .slide.hover .location, .hero-post-slides .slides .slide:hover .location {
transition-delay: 0;
bottom: 4em;
}
.hero-post-slides .slides .slide.hover .headline, .hero-post-slides .slides .slide:hover .headline {
transition-delay: 100ms;
bottom: 1.5em;
}
.hero-post-slides .slides .slide.hover .link, .hero-post-slides .slides .slide:hover .link {
bottom: 0;
opacity: 1;
transition-delay: 250ms;
pointer-events: auto;
}
.hero-post-slides .flickity-prev-next-button {
width: 90px;
height: 40px;
right: 100px;
margin-top: -25px;
}
.hero-post-slides .flickity-prev-next-button.previous {
right: 100px;
margin-top: 20px;
left: unset;
}
.hero-post-slides .flickity-prev-next-button svg {
left: 27%;
top: 29%;
width: 45%;
height: 45%;
}