/* ==========================
   Prototype Grid Wrapper
========================== */

.prototype-row{
    position:relative;
}

/* ==========================
   Main Card
========================== */

.prototype-card{
    height:420px;
    background:#fff;
    border:1px solid #eaeaea;
    border-radius:24px;
    padding:30px;
    cursor:pointer;
    position:relative;
    overflow:visible;
    transition:
    transform .3s ease,
    box-shadow .3s ease;
    box-shadow:
    0 10px 35px rgba(0,0,0,.06);
}

.prototype-card:hover{
    transform:
    translateY(-6px);
    z-index:50;
    box-shadow:
    0 20px 60px rgba(0,0,0,.12);
}

/* ==========================
   Initial Card View
========================== */

.prototype-preview{
    height:100%;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.prototype-preview h3{
    font-size:24px;
    font-weight:700;
    margin-bottom:15px;
    line-height:1.3;
}

.prototype-preview p{
    color:#777;
    margin:0;
    line-height:1.7;
}

/* ==========================
   Expanded Overlay
========================== */
.prototype-overlay{
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:420px;
    opacity:0;
    visibility:hidden;
    overflow:hidden;
    padding:30px;
    background:#fff;
    border-radius:24px;
    transform:
    translateY(15px);
    transition:
    opacity .35s ease,
    transform .35s ease;
    box-shadow:
    0 25px 80px rgba(0,0,0,.14);
    z-index:999;
}

.prototype-card:hover
.prototype-overlay{
    opacity:1;
    visibility:visible;
    transform:
    translateY(0);
}

/* ==========================
   Overlay Position Logic
========================== */

/* first card */
.col-lg-4:nth-child(3n+1)
.prototype-overlay{
    width:calc(300% + 32px);
    left:0;
}


/* middle card */
.col-lg-4:nth-child(3n+2)
.prototype-overlay{
    width:calc(300% + 32px);
    left:calc(-100% - 16px);
}

/* last card */
.col-lg-4:nth-child(3n)
.prototype-overlay{
    width:calc(300% + 32px);
    left:calc(-200% - 32px);
}

/* ==========================
   Expanded Content Layout
========================== */
.prototype-overlay .row{
    height:100%;
    align-items:center;
    padding-top:10px;
    padding-bottom:10px;
}

.prototype-overlay h3{
    font-size:24px;
    margin-bottom:15px;
    font-weight:700;
}

.prototype-overlay p{
    color:#666;
    line-height:1.8;
}

/* ==========================
   Image Column
========================== */
.prototype-overlay .col-lg-4:nth-child(2){
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
}


/* image */
.prototype-img{
    max-width:350px;
    max-height:350px;
    width:auto;
    height:auto;
    display:block;
    margin:auto;
    object-fit:contain;
    border-radius:14px;
}

/* ==========================
   Right Side Content
========================== */
.prototype-right{
    height:100%;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
}

.prototype-right h6{
    font-size:14px;
    font-weight:700;
    margin-bottom:15px;
    text-transform:uppercase;
    letter-spacing:1px;
}

.prototype-right p{
    margin-bottom:10px;
}

.prototype-right a{
    align-self:flex-end;
    margin-top:auto;
    border: 1px solid;
}

.prototype-right a:hover{
    border: 1px solid;
}

/* ==========================
   Tablet
========================== */
@media(max-width:991px){
    .prototype-card{
        height:auto;
        min-height:420px;
        padding:25px;
    }

    .prototype-preview{
        min-height:250px;
    }

    .prototype-overlay{
        position:relative;
        width:100%!important;
        left:auto!important;
        height:auto;
        opacity:1;
        visibility:visible;
        display:none;
        box-shadow:none;
        transform:none;
        padding:25px 0 0;
        overflow:hidden;
    }

    .prototype-card:hover
    .prototype-overlay{
        display:block;
    }

    .prototype-overlay .row{
        height:auto;
    }

    .prototype-img{
        max-width:180px;
        max-height:180px;
        margin:20px auto;
    }

    .prototype-right{
        margin-top:20px;
        gap:20px;
    }
}


/* ==========================
   Mobile
========================== */
@media(max-width:576px){
    .prototype-card{
        padding:20px;
        min-height:auto;
    }

    .prototype-preview h3{
        font-size:20px;
    }

    .prototype-overlay h3{
        font-size:20px;
    }

    .prototype-preview p,
    .prototype-overlay p{
        font-size:14px;
    }

    .prototype-img{
        max-width:150px;
        max-height:150px;
    }

    .prototype-right a{
        width:100%;
        text-align:center;
    }
}


/* ==========================
   Extra Small Devices
========================== */
@media(max-width:320px){
    .prototype-card{
        padding:15px;
    }
}