/* ==========================================================================
   Portfolio Carousel css styling
   ========================================================================== */

.portfolio.gallery1 {
    width: 80%;
    height:800px;
    margin: 0 auto;
    justify-items: center;
    align-content: center;
}

.portfolio.gallery2 {
    width: 80%;
    height:800px;
    margin: 0 auto;
    justify-items: center;
    align-content: center;
}

.portfolio.testimonial {
    width: 80%;
    height: 700px;
    margin: 0 auto;
    justify-items: center;
    align-content: center;
}

.carousel-container{
    position:relative;
    height: 100%;
    width:100%;
    max-width:1200px;
    margin: 0px auto;
}

.carousel-stage{
    position:relative;
    width:100%;
    height: 100%;
    /*height:700px;*/
    perspective:1200px;
    cursor: grab;
    user-select: none;
}

.carousel-stage:active{
    cursor: grabbing;
}

.carousel-btn{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    z-index:10;
    width:60px;
    height:60px;
    border:none;
    border-radius:50%;
    background:rgba(0,0,0,.8);
    color:white;
    font-size:2rem;
    cursor:pointer;
}

.prevBtn{
    left:-80px;
}

.nextBtn{
    right:-80px;
}

.project-card-top {
    position: relative;
}

.project-card-top img{
    width:100%;
    height:400px;
    object-fit:cover;
    display:block;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.project-card-top button {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, -10%);
}

.portfolio-video {
    margin: 10px 0px;
    background:rgba(0,0,0,0.25);
}

.project-card-text {
    padding: 10px 5%;
    padding-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 2px;
}

/* project-card */
.project-card{
    position:absolute;
    width: 100%;
    max-width: 800px;
    background:#111;
    border-radius:20px;
    overflow:hidden;
    /*transition: all .6s cubic-bezier(.25,.46,.45,.94);*/
    transition: transform .45s cubic-bezier(.22,.61,.36,1), opacity .45s ease;
    touch-action: none;
    will-change: transform;
}

.project-card.drop{
    box-shadow: 1px 1px 3px rgba(255,255,255,.3), 5px 5px 150px rgba(255,255,255,.5);
}

.project-card.showreels{
    position: relative;
    width: auto;
    max-width: 100%;
    background: none;
    border-radius:0px;
}

.project-card h4 {
    font-size: 16px;
    color: var(--white-40);
}

.project-card p {
    padding: 10px 0px;
}

/* Centre */
.project-card.active{
    left:50%;
    top:50%;
    transform: translate(-50%,-50%) scale(1);
    z-index:3;
    opacity:1;
}

/* Left */
.project-card.prev{
    left:15%;
    top:50%;
    transform: translate(-50%,-50%) scale(.75) rotateY(20deg);
    opacity:.35;
    z-index:2;
}

/* Right */
.project-card.next{
    left:85%;
    top:50%;
    transform: translate(-50%,-50%) scale(.75) rotateY(-20deg);
    opacity:.35;
    z-index:2;
}

/* Hide all others */
.project-card.hidden{
    top:50%;
    left:50%;
    transform: translate(-50%,-50%) scale(.75) rotateY(0deg);
    opacity:0;
    pointer-events:none;
}

/* ==========================================
   Portfolio Tags

    <div id="projectTags">
        <span class="tag">Maya</span>
        <span class="tag">Arnold</span>
        <span class="tag">Product Visualisation</span>
    </div>

#projectTags{
    margin:15px 0;
}

.tag{
    display:inline-block;
    padding:6px 12px;
    margin:5px;
    border-radius:30px;
    background:#222;
}
  ========================================== */
.youtubeModal{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.4);
    z-index:1000;
    justify-content:center;
    align-items:center;
}

.youtubeModal.modal-content{
    position:relative;
    width:100%;
    height:auto;
    max-width:1400px;
    margin: 0 auto;;
}

.youtubeFrame{
    width:100%;
    aspect-ratio:16/9;
    border:none;
    border-radius:20px;
    box-shadow: 0 20px 80px rgba(0,0,0,.5);
}

.youtubeCloseBtn{
    position:absolute;
    top:-60px;
    right:10px;
    background:none;
    border:none;
    color:white;
    font-size:50px;
    font-weight: 500;
    cursor:pointer;
    z-index:1000;
}

.youtubeCloseBtn:hover{
    opacity:.7;
}