.polaroids-container {
    width: 100%;
    overflow: hidden;
    background: #0D0D0D;
}

.polaroids-wrapper {
    display: flex;
    max-width: 172rem;
    margin: auto;
    height: 92rem;
    gap: 4rem;
}


.title-list {
    display: flex;
    flex-direction: column;
    max-width: 76rem;
    width: 100%;
    padding-left: 15rem;
    padding-top: 14rem;
    gap: .8rem;
}

.title-polaroid.active h2 {
    color: #D4A896;
    font-family: Prata !important;
    font-weight: 300 !important;
    font-size: 7.6rem;
    line-height: 10.1rem;
    letter-spacing: 0%;
    background-size: 0 4px;
}

.title-polaroid.active h2 a {
    color: #D4A896 !important;
}

.title-polaroid h2 {
    cursor: pointer;
    font-family: Helvetica Neue !important;
    font-weight: 400;
    font-style: Italic;
    font-size: 3.688rem;
    line-height: 4.89rem;
    text-decoration: none;
    display: inline;
    padding-bottom: 0px;
    background-image: linear-gradient(to right, #D4A896 0%, #D4A896 100%);
    background-repeat: no-repeat;
    background-position: 0 50%;
    transition: 
        background-size 0.35s linear,
        font-size       0.5s ease-in-out,
        color           0.5s ease-in-out,
        line-height     0.5s ease-in-out;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    background-size: 100% 4px;
    color: #ffff;
}

.title-polaroid h2 a {
     color: #ffff !important;
}

.polaroids-content {
    position: relative;
    height: 100%;
    flex: 1;
}



.polaroid-item {
    position: absolute;
    top: 0;
    left: 0;
    background-position: center;
    transition: transform .5s ease, opacity .5s ease;
    background-repeat: no-repeat;
}

.polaroid-item.front {
    transform: translate(0rem, 15rem) scale(1);
    z-index: 3;
    width: 52rem;
    height: 51rem;
    opacity: 1;
}
.polaroid-item.middle {
    transform: translate(25rem, 35rem) scale(0.7) rotate(-20deg);
    z-index: 2;
    width: 52rem;
    height: 51rem;
    opacity: 1;
}
.polaroid-item.back {
    transform: translate(24rem, 0rem) scale(0.6) rotate(20deg);
    z-index: 1;
    width: 52rem;
    height: 51rem;
    opacity: 1;
}
.polaroid-item.hide-top {
    transform: translate(0rem, -55rem) scale(1);
    opacity: 0;
}
.polaroid-item.hide-right {
    transform: translate(105rem, 0rem) scale(0.6) rotate(0deg);
    opacity: 0;
}



@media (max-width: 767px) {
    .polaroids-wrapper {
        display: flex;
        gap: 0;
        flex-direction: column;
        height: 77rem;
    }
    .title-list {
        display: flex;
        flex-direction: column;
        padding-left: 2.5rem;
        padding-top: 3.4rem;
        gap: .8rem;
    } 
    .title-polaroid h2 {
        font-size: 1.8rem;
        line-height: 2.5rem;
    }
    .title-polaroid.active h2 {
        font-size: 4rem;
        line-height: 4rem;
    }
    .polaroid-item.front {
        right: 50%;
        left: auto;
        transform: translate(35%, 5rem) scale(1);
        z-index: 3;
        width: 26rem;
        height: 27rem;
        opacity: 1;
    }
    .polaroid-item.middle {
        right: 36%;
        left: auto;
        transform: translate(70%, 0rem) scale(0.7) rotate(20deg);
        z-index: 2;
        width: 21rem;
        height: 25rem;
        opacity: 1;
    }
    .polaroid-item.back {
        transform: translate(70%, 13rem) scale(0.7) rotate(-20deg);
        right: 36%;
        left: auto;
        z-index: 1;
        opacity: 1;
        width: 21rem;
        height: 25rem;
    }
    .polaroid-item.hide-top {
        transform: translate(-200%, 10rem) scale(1);
        width: 26rem;
        height: 27rem;
    }
    
    .list-and-description .item-title:hover h3, .list-and-description .item-title.active h3 {
        font-size: 2.4rem;
    }
    .list-and-description .item-title h3 {
        font-size: 2rem;
        line-height: 4rem;
    }
    
    .polaroids-content:before {
        content: '';
        position: absolute;
        height: 19rem;
        width: 100%;
        background: RED;
        bottom: 0;
        background: linear-gradient(270deg, #040707 8.21%, #d4a896e8 47.92%);
    }
}