/* Retail Slider Styles */
.retail-slider-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 600px;
    background: #000;
    padding: 20px 0;
}

.retail-slider-container {
    position: relative;
    width: 1000px;
    height: 600px;
    background: #000;
    margin-top: 100px;
    max-width: 95%;
}

.retail-slider-container .slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.retail-slider-container .slide .item {
    width: 200px;
    height: 300px;
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
    border-radius: 20px;
    background-position: 50% 50%;
    background-size: cover;
    display: inline-block;
    transition: 0.5s;
}

.slide .item:nth-child(1)::before,
.slide .item:nth-child(2)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 33%;
    height: 100%;
    background-color: #000;
    z-index: 1;
}

.slide .item:nth-child(1) .content,
.slide .item:nth-child(2) .content {
    z-index: 2;
}

.slide .item:nth-child(1),
.slide .item:nth-child(2) {
    top: 0;
    left: 0;
    transform: translate(0, 0);
    border-radius: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    background-position: right center;
}

.slide .item:nth-child(3) {
    width: 130px;
    height: 98px;
    left: calc(100% - 365px);
    top: calc(100% - 118px);
    transform: none;
    border-radius: 10px;
}

.slide .item:nth-child(4) {
    width: 130px;
    height: 98px;
    left: calc(100% - 215px);
    top: calc(100% - 118px);
    transform: none;
    border-radius: 10px;
}

.slide .item:nth-child(5) {
    width: 130px;
    height: 98px;
    left: calc(100% - 65px);
    top: calc(100% - 118px);
    transform: none;
    border-radius: 10px;
}

/* items > 5 will be hidden behind the edge */
.slide .item:nth-child(n + 6) {
    left: calc(50% + 660px);
    opacity: 0;
}

.item .content {
    position: absolute;
    top: 50%;
    left: 40px;
    width: 260px;
    text-align: left;
    color: #eee;
    transform: translate(0, -50%);
    font-family: 'system-ui', sans-serif;
    display: none;
}

.slide .item:nth-child(2) .content {
    display: block;
}

.content .name {
    font-size: 40px;
    text-transform: uppercase;
    font-weight: bold;
    opacity: 0;
    animation: showcontent 1s ease-in-out 1 forwards;
}

.content .des {
    margin-top: 10px;
    margin-bottom: 20px;
    opacity: 0;
    animation: showcontent 1s ease-in-out 0.3s 1 forwards;
    font-size: 14px;
    line-height: 1.6;
}

@keyframes showcontent {
    from {
        opacity: 0;
        transform: translate(0, 100px);
        filter: blur(33px);
    }

    to {
        opacity: 1;
        transform: translate(0);
        filter: blur(0);
    }
}

.retail-slider-button {
    width: 100%;
    text-align: center;
    position: absolute;
    bottom: 20px;
    z-index: 10;
}

.retail-slider-button button {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 2px solid #fff;
    cursor: pointer;
    margin: 0 5px;
    transition: 0.3s;
    background-color: transparent;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.retail-slider-button button:hover {
    background: #fff;
    color: #000;
}

.retail-slider-button button:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* ================================================
   RESPONSIVE MOBILE STYLES
   ================================================ */

/* TABLET LANDSCAPE & SMALLER DESKTOPS (max-width: 1024px) */
@media (max-width: 1024px) {
    .retail-slider-container {
        width: 95%;
        height: 450px;
        margin-top: 50px;
    }

    .content .name {
        font-size: 32px;
    }

    .content .des {
        font-size: 13px;
    }

    .slide .item:nth-child(3) {
        width: 100px;
        height: 75px;
        left: calc(100% - 290px);
        top: calc(100% - 95px);
    }

    .slide .item:nth-child(4) {
        width: 100px;
        height: 75px;
        left: calc(100% - 170px);
        top: calc(100% - 95px);
    }

    .slide .item:nth-child(5) {
        width: 100px;
        height: 75px;
        left: calc(100% - 50px);
        top: calc(100% - 95px);
    }
}

/* TABLETS (max-width: 768px) */
@media (max-width: 768px) {
    .retail-slider-wrapper {
        min-height: auto;
        padding: 30px 0;
    }

    .retail-slider-container {
        width: 100%;
        height: 350px;
        margin-top: 30px;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .item .content {
        left: 20px;
        width: calc(100% - 40px);
    }

    .content .name {
        font-size: 24px;
        line-height: 1.3;
    }

    .content .des {
        font-size: 12px;
        margin-bottom: 15px;
    }

    .slide .item:nth-child(3) {
        width: 80px;
        height: 60px;
        left: calc(100% - 240px);
        top: calc(100% - 80px);
    }

    .slide .item:nth-child(4) {
        width: 80px;
        height: 60px;
        left: calc(100% - 140px);
        top: calc(100% - 80px);
    }

    .slide .item:nth-child(5) {
        width: 80px;
        height: 60px;
        left: calc(100% - 40px);
        top: calc(100% - 80px);
    }

    .retail-slider-button {
        bottom: 15px;
    }

    .retail-slider-button button {
        width: 40px;
        height: 40px;
        margin: 0 3px;
    }
}

/* PHONES & SMALL TABLETS (max-width: 480px) */
@media (max-width: 480px) {
    .retail-slider-wrapper {
        padding: 20px 0;
    }

    .retail-slider-container {
        height: 280px;
        margin-top: 20px;
        padding: 0 10px;
    }

    .item .content {
        left: 15px;
        width: calc(100% - 30px);
        top: 50%;
        transform: translate(0, -50%);
    }

    .content .name {
        font-size: 18px;
        line-height: 1.3;
    }

    .content .des {
        font-size: 11px;
        display: none;
    }

    .slide .item:nth-child(3) {
        width: 65px;
        height: 49px;
        left: calc(100% - 180px);
        top: calc(100% - 65px);
    }

    .slide .item:nth-child(4) {
        width: 65px;
        height: 49px;
        left: calc(100% - 105px);
        top: calc(100% - 65px);
    }

    /* Hide 5th thumbnail on very small screens */
    .slide .item:nth-child(5) {
        display: none;
    }

    .retail-slider-button {
        bottom: 10px;
    }

    .retail-slider-button button {
        width: 36px;
        height: 36px;
        margin: 0 2px;
        font-size: 14px;
    }
}
