/* royallandingslider */
.royallandingslider {
    height: 100vh;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.royallandingslider .list .item {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0 0 0 0;
}

.royallandingslider .list .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.royallandingslider .list .item .content {
    position: absolute;
    top: 20%;
    width: 1140px;
    max-width: 40%;
    padding: 20px 30px;
    box-sizing: border-box;
    color: #fff;
    text-shadow: 0 5px 10px #0004;
}

.royallandingslider .list .item .subtitle {
    font-weight: bold;
}

.royallandingslider .list .item .title {
    font-size: 42px;
    font-weight: bold;
    line-height: 1.3em;
}

.royallandingslider .list .item button {
    border: none;
    padding: 10px 30px;
    background-color: #eee;
    letter-spacing: 3px;
    font-weight: 500;
    margin-top: 5px;
}

/* thumbnail */
.royallandingslider .thumbnail {
    position: absolute;
    bottom: 50px;
    left: 50%;
    width: max-content;
    z-index: 100;
    display: flex;
    gap: 20px;
}

.royallandingslider .thumbnail .item {
    width: 150px;
    height: 220px;
    flex-shrink: 0;
    position: relative;
}

.royallandingslider .thumbnail .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.royallandingslider .thumbnail .item .content {
    color: #fff;
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
}

.royallandingslider .thumbnail .item .content .title {
    font-weight: 500;
}

.royallandingslider .thumbnail .item .content .description {
    font-weight: 300;
}

/* arrows */
.royallandingslider .arrows {
    position: absolute;
    bottom: 50px;
    right: 95px;
    z-index: 100;
    width: 50%;
    display: flex;
    gap: 10px;
}

.royallandingslider .arrows button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eee4;
    border: none;
    color: #fff;
    font-weight: bold;
    transition: 0.5s;
    cursor: pointer;
}

.royallandingslider .arrows button svg{
    width: 20px;
    height: 20px;
    fill: #000;
}

.royallandingslider .arrows button:hover {
    background-color: #fff;
    color: #000;
}

/* animation */
.royallandingslider .list .item:nth-child(1) {
    z-index: 1;
}

/* animation text in first item */
.royallandingslider .list .item:nth-child(1) .content .subtitle,
.royallandingslider .list .item:nth-child(1) .content .title,
.royallandingslider .list .item:nth-child(1) .content .excerpt,
.royallandingslider .list .item:nth-child(1) .content button {
    transform: translateY(50px);
    filter: blur(20px);
    opacity: 0;
    animation: royallandingslidershowContent 0.5s 1s linear 1 forwards;
}

@keyframes royallandingslidershowContent {
    to {
        transform: translateY(0px);
        filter: blur(0px);
        opacity: 1;
    }
}

.royallandingslider .list .item:nth-child(1) .content .title {
    animation-delay: 1.2s !important;
}

.royallandingslider .list .item:nth-child(1) .content .excerpt {
    animation-delay: 1.6s !important;
}

.royallandingslider .list .item:nth-child(1) .content button {
    animation-delay: 1.8s !important;
}

/* create animation when next click */
.royallandingslider.next .list .item:nth-child(1) img {
    width: 150px;
    height: 220px;
    position: absolute;
    bottom: 50px;
    left: 50%;
    border-radius: 30px;
    animation: royallandingslidershowImage 0.5s linear 1 forwards;
}
@keyframes royallandingslidershowImage {
    to {
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

.royallandingslider.next .thumbnail .item:nth-last-child(1) {
    overflow: hidden;
    animation: royallandingslidershowThumbnail 0.5s linear 1 forwards;
}

.royallandingslider.prev .list .item img {
    z-index: 100;
}

@keyframes royallandingslidershowThumbnail {
    from {
        width: 0;
        opacity: 0;
    }
}

.royallandingslider.next .thumbnail {
    animation: royallandingslidereffectNext 0.5s linear 1 forwards;
}

@keyframes royallandingslidereffectNext {
    from {
        transform: translateX(150px);
    }
}

/* prev click */
.royallandingslider.prev .list .item:nth-child(2) {
    z-index: 2;
}

.royallandingslider.prev .list .item:nth-child(2) img {
    animation: royallandingslideroutFrame 0.5s linear 1 forwards;
    position: absolute;
    bottom: 0;
    left: 0;
}
@keyframes royallandingslideroutFrame {
    to {
        width: 150px;
        height: 220px;
        bottom: 50px;
        left: 50%;
        border-radius: 20px;
    }
}

.royallandingslider.prev .thumbnail .item:nth-child(1) {
    overflow: hidden;
    opacity: 0;
    animation: showThumbnail 0.5s linear 1 forwards;
}

.royallandingslider.prev .list .item:nth-child(2) .content .subtitle,
.royallandingslider.prev .list .item:nth-child(2) .content .title,
.royallandingslider.prev .list .item:nth-child(2) .content .excerpt,
.royallandingslider.prev .list .item:nth-child(2) .content button {
    animation: royallandingslidercontentOut 1.5s linear 1 forwards !important;
}

@keyframes royallandingslidercontentOut {
    to {
        transform: translateY(-150px);
        filter: blur(20px);
        opacity: 0;
    }
}

@media screen and (max-width: 678px) {
    .royallandingslider .list .item .content {
        max-width: 100%;
        padding: 10px;
        top: 0;
    }

    .royallandingslider .list .item .content .title {
        font-size: 30px;
    }

    .royallandingslider .thumbnail {
        gap: 10px;
        bottom: 20px;
    }

    .royallandingslider .thumbnail .item {
        width: 100px;
        height: 150px;
    }

    .royallandingslider .arrows {
        bottom: 20px;
    }

}
