﻿.hp-cards {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.background-img {
    background: url(/getattachment/904b6cb5-a3fd-40a8-9293-61e4930535d9/test-carousel.aspx) !important;
    filter: blur(4px) !important;
    clip-path: polygon(0 0,1000% 0,100% 100%,0% 100%) !important;
    width: 100% !important;
}

.items {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    user-select: none;
    width: 90%;
    height: 70%;
}

    .items .item {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        width: 30%;
        max-width: 370px;
        height: 98%;
        max-height: 600px;
        border-radius: 35px;
        overflow: hidden;
        transition: all .3s ease-out;
        z-index: -1;
        opacity: 0;
    }

.item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all .2s ease-out;
}

.item.active {
    opacity: 1;
    z-index: 99;
}

.item.prevprev {
    background: rgba(210, 210, 210, 1);
    z-index: 1;
    opacity: .4;
    transform: translate(-200%,-50%) perspective(800px) rotateY(15deg) scaleY(0.85);
}

    .item.prevprev img, .item.nextnext img {
        opacity: 0;
    }

.item.prev {
    z-index: 2;
    opacity: 1;
    transform: translate(-155%,-50%) perspective(500px) rotateY(20deg) scaleY(0.9) scaleX(0.95);
    background: rgba(210, 210, 210, 1);
}

    .item.prev img, .item.next img {
        opacity: .2;
        filter: grayscale(1);
    }

.item.next {
    z-index: 2;
    opacity: 1;
    transform: translate(55%,-50%) perspective(500px) rotateY(-20deg) scaleY(0.9) scaleX(0.95);
    background: rgba(210, 210, 210, 1);
}

.item.nextnext {
    background: rgba(210, 210, 210, 1);
    z-index: 1;
    opacity: .4;
    transform: translate(100%,-50%) perspective(800px) rotateY(-15deg) scaleY(0.85);
}

.item.prev::before, .item.next::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(19, 42, 83, .85);
    content: "";
    pointer-events: none;
    z-index: 0;
    transition: all .1s ease-in;
}

.item.prev:hover::before, .item.next:hover::before {
    background: rgba(56, 84, 135, .85)
}

.card-textarea {
    position: absolute;
    left: 13%;
    width: 23%;
    z-index: 10;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

    .card-textarea p, .card-textarea a {
        color: white;
        font-weight: 100;
    }

    .card-textarea .card-title {
        margin-bottom: 2rem;
    }

    .card-textarea .page-btn-w {
        pointer-events: all;
    }





@media only screen and (min-width: 1025px) and (max-width: 1279px) {
    .card-textarea .card-title {
        margin-bottom: 1.4rem;
    }

    .card-textarea h1 {
        font-size: 2.4rem;
    }
}





/**   MOBILE   **/

@media only screen and (max-width: 1024px) {
    .card-textarea {
        width: auto;
        top: auto;
        left: 0;
        right: 0;
        bottom: 6%;
        display: block;
        padding: 1rem;
        height: auto;
    }

        .card-textarea .card-title {
            margin-bottom: 1rem;
        }

        .card-textarea h1 {
            font-size: 2rem;
        }

        .card-textarea p {
            text-align: justify;
            font-size: .9em;
        }

    .items {
        top: 50%;
    }

        .items .item {
            width: 70%;
            height: 65%;
            top: 30%;
        }

            .items .item.active::after {
                position: absolute;
                top: 0;
                bottom: 0;
                left: 0;
                right: 0;
                content: "";
                background: linear-gradient(0deg, rgba(19,42,83,0.85) 5%, rgba(255,255,255,0) 100%);
            }

    .item.prev {
        transform: translate(-150%,-50%) perspective(500px) rotateY(20deg) scaleY(0.9) scaleX(0.95);
    }

    .item.next {
        transform: translate(50%,-50%) perspective(500px) rotateY(-20deg) scaleY(0.9) scaleX(0.95);
    }
}

/**  ! MOBILE   **/




@media only screen and (min-width: 769px) and (max-width: 1024px) {
    .card-textarea {
        bottom: 5%;
    }
}
