body { margin: 0; }
a { text-decoration: none; }

/* Visibility + no-flash */
.carousel .list .item { opacity: 0; visibility: hidden; }
.carousel .list .item.active { opacity: 1; visibility: visible; z-index: 1; }

/* Keep transition slides visible while animating */
.carousel.next .list .item:nth-child(1) { opacity: 1; visibility: visible; }
.carousel.prev .list .item:nth-child(2) { opacity: 1; visibility: visible; z-index: 2; }

/* Hide slide content until first image is ready */

.carousel:not(.ready) .list .item .content {
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
}


/* First-slide text animations only after .ready */
.carousel.ready .list .item:nth-child(1) .content .eyebrow,
.carousel.ready .list .item:nth-child(1) .content .title,
.carousel.ready .list .item:nth-child(1) .content .topic,
.carousel.ready .list .item:nth-child(1) .content .des,
.carousel.ready .list .item:nth-child(1) .content .buttons {
  transform: translateY(50px);
  filter: blur(20px);
  opacity: 0;
  animation: showContent .5s 1s linear 1 forwards;
}
.carousel.ready .list .item:nth-child(1) .content .title  { animation-delay: 1.2s!important; }
.carousel.ready .list .item:nth-child(1) .content .topic  { animation-delay: 1.4s!important; }
.carousel.ready .list .item:nth-child(1) .content .des    { animation-delay: 1.6s!important; }
.carousel.ready .list .item:nth-child(1) .content .buttons { animation-delay: 1.8s!important; }

/* Carousel frame */
.carousel{
    height: 100vh;
    width: 100vw;
    min-height: 650px;
    overflow: hidden;
    position: relative;
}
.carousel .list .item{
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.carousel .list .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* prevent baseline gap */
    pointer-events: none;
}
.carousel .list img {
	user-select: none;	
}
.carousel .list .item .img-overlay { 
  content: '';
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  position: absolute;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 0;
  pointer-events: none;
}

/* Content block */
.carousel .list .item .content{
    position: absolute !important;
    width: 1600px !important;
    max-width: 90%;
    inset: 0 !important;
    margin: auto !important;
    box-sizing: border-box;
    color: #fff;
    text-shadow: 0 5px 10px #0004;
    height: 400px;
    background: none !important;
}
.carousel .list .item .content .des { 
    max-width: 700px;
    font-weight: 300;
    line-height: 1.7em !important;
}

.carousel .list .item .eyebrow, .carousel .list .item .eyebrow h1 {
    letter-spacing: 2px;
    font-size: 15px;
    font-weight: 300;
    text-transform: uppercase;
    font-family: 'DM Sans';
    color: #fff !important;
}
.carousel .list .item .title h3 {
    font-size: 50px;
    font-weight: 400;
    line-height: 1.3em;
    color: white !important;
    font-family: Urbanist !important;
    text-transform: uppercase;
}
.carousel .list .item .buttons {
    display: flex;
    flex-direction: row;
    margin-top: 40px;
    position: relative;
}
.carousel .list .item .buttons button {
    border: none;
    background-color: #eee;
    letter-spacing: 3px;
    font-family: Urbanist;
    font-weight: 500;
}
.carousel .list .item .buttons button:nth-child(2) {
    background-color: transparent;
    border: 1px solid #fff;
    color: #eee;
}

/* Thumbnails */
.carousel .thumbnail {
    position: absolute;
    bottom: 40px;
    left: 50%;
    width: max-content;
    z-index: 100;
    display: flex;
    gap: 20px;
    z-index: 80;
}
.carousel .thumbnail .item {
    width: 150px;
    height: 220px;
    flex-shrink: 0;
    position: relative;
    border-radius: 20px;
	user-select: none;
}
.carousel .thumbnail .item::after {
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    position: absolute;
    background: linear-gradient(0deg,rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
    border-radius: 20px;
    content: '';
    border: solid #ffffff 1px;
}
.carousel .thumbnail .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}
.carousel .thumbnail .item .content {
    color: #fff;
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    z-index: 11;
    font-size: 12px;
    line-height: 1.4em;
}
.carousel .thumbnail .item .content .title { font-weight: 500; }
.carousel .thumbnail .item .content .description{ font-weight: 300; }

/* Arrows */
.arrows{
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 100;
    width: auto;
    display: flex;
    gap: 10px;
    align-items: center;
}
.arrows button{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eee4;
    border: none;
    color: #fff;
    font-family: monospace;
    font-weight: bold;
    transition: .5s;
}
.arrows button:hover{ background-color: #fff; color: #000; }

/* Z stacking for first item */
.carousel .list .item:nth-child(1){ z-index: 1; }

/* First item text intro */
@keyframes showContent{
    to{
        transform: translateY(0px);
        filter: blur(0px);
        opacity: 1;
    }
}

/* NEXT animation */
.carousel.next .list .item:nth-child(1) img{
    width: 150px;
    height: 220px;
    position: absolute;
    bottom: 50px;
    left: 50%;
    border-radius: 30px;
    animation: showImage .5s linear 1 forwards;
}
@keyframes showImage{
    to{
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}
.carousel.next .thumbnail .item:nth-last-child(1){
    overflow: hidden;
    animation: showThumbnail .5s linear 1 forwards;
}
@keyframes showThumbnail{
    from{ width: 0; opacity: 0; }
}
.carousel.next .thumbnail{
    animation: effectNext .5s linear 1 forwards;
}
@keyframes effectNext{
    from{ transform: translateX(150px); }
}

/* Time bar */
.carousel .time{
    position: absolute;
    z-index: 101;
    width: 0%;
    height: 3px;
    background-color: #fff;
    left: 0;
    top: 0;
}
.carousel.next .time,
.carousel.prev .time{
    animation: runningTime 2s linear 1 forwards;
}
@keyframes runningTime{ from{ width: 100% } to{ width: 0 } }

/* PREV animation */
.carousel.prev .list .item:nth-child(2){ z-index: 2; }
.carousel.prev .list .item:nth-child(2) img{
    animation: outFrame 0.5s linear 1 forwards;
    position: absolute;
    bottom: 0;
    left: 0;
}
@keyframes outFrame{
    to{
        width: 150px;
        height: 220px;
        bottom: 50px;
        left: 50%;
        border-radius: 20px;
    }
}
.carousel.prev .thumbnail .item:nth-child(1){
    overflow: hidden;
    opacity: 0;
    animation: showThumbnail .5s linear 1 forwards;
}
.carousel.next .arrows button,
.carousel.prev .arrows button{ pointer-events: none; }

.carousel.prev .list .item:nth-child(2) .content .eyebrow,
.carousel.prev .list .item:nth-child(2) .content .title,
.carousel.prev .list .item:nth-child(2) .content .topic,
.carousel.prev .list .item:nth-child(2) .content .des,
.carousel.prev .list .item:nth-child(2) .content .buttons{
    animation: contentOut 1.5s linear 1 forwards!important;
}
@keyframes contentOut{
    to{
        transform: translateY(-150px);
        filter: blur(20px);
        opacity: 0;
    }
}

/* Responsive */
@media screen and (max-width: 767px) {
    .carousel .list .item .content{ padding-right: 0; }
    .carousel .list .item .content .title h3{ font-size: 30px; }
}
@media screen and (max-width: 1536px) {
    .carousel .thumbnail .item{ width: 120px; height: 160px; }
    .carousel .list .item .content{ width: 1100px !important; padding-top: 50px !important;}
	.carousel .list .item .content .des { max-width: 550px; }    
}
@media screen and (max-width: 2400px) and (min-width: 1536px) {
    .carousel .list .item .content{ width: 1400px !important; }
}
@media screen and (min-width: 1921px) {
    .carousel .list .item .content .title h3 { font-size: 70px; }
    .carousel .list .item .content .des { font-size: 22px; }    
    .carousel .list .item .content .eyebrow, .carousel .list .item .eyebrow h1 { font-size: 18px; }
}



.buttons button {
    position: relative;
}

.carousel.ready .list .item .content .buttons a span {
    position: absolute;
    display: block;
    background: black;
}

.carousel.ready .list .item .content .buttons a span:nth-child(1) {
    left: 0;
    top: 0;
    width: 100%;
    height: 2px;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.2s;
    transition-delay: 0.45s;
}

.carousel.ready .list .item .content .buttons a:hover span:nth-child(1) {
    transform: scaleX(1);
}

.carousel.ready .list .item .content .buttons a span:nth-child(2) {
    right: 0;
    top: 0;
    width: 2px;
    height: 100%;
    transform-origin: top;
    transform: scaleY(0);
    transition: transform 0.2s;
    transition-delay: 0.3s;
}

.carousel.ready .list .item .content .buttons a:hover span:nth-child(2) {
    transform: scaleY(1);
    transition-delay: 0.1s;
}

.carousel.ready .list .item .content .buttons a span:nth-child(3) {
    right: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    transform-origin: right;
    transform: scaleX(0);
    transition: transform 0.2s;
    transition-delay: 0.15s;
}

.carousel.ready .list .item .content .buttons a:hover span:nth-child(3) {
    transform: scaleX(1);
    transition-delay: 0.2s;
}

.carousel.ready .list .item .content .buttons a span:nth-child(4) {
    left: 0;
    bottom: 0;
    width: 2px;
    height: 100%;
    transform-origin: bottom;
    transform: scaleY(0);
    transition: transform 0.2s;
}

.carousel.ready .list .item .content .buttons a:hover span:nth-child(4) {
    transform: scaleY(1);
    transition-delay: 0.3s;
}



.carousel .arrows button:focus {
	background-color: #eee4 !important;
}

.carousel .arrows button:hover {
	background-color: white !important;
}

/*
.carousel [data-slide="0"] .title, .carousel [data-slide="3"] .title {
	max-width: 500px !important;
}
.carousel [data-slide="4"] .title {
	max-width: 550px !important;
}

.carousel .des {
	max-width: 450px !important;
}
@media only screen and (max-width:1024px) { .carousel [data-slide="0"] .title {
	max-width: 300px !important;
}
	/*.carousel [data-slide="0"] .des {
	max-width: 350px !important;
}
}*/