/* HubLAC — Modal (caixa sobreposta) e suas animações */

/*
BOX MODAL
*/

html.modal-active, body.modal-active {overflow: hidden;}
  
#box-container {
    position: fixed;
    display: table;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    transform: scale(0);
    z-index: 9999;
}

#box-container.active {transform: scale(1);}

#box-container.active .box-modal-background {
    background: rgba(0, 0, 0, 0);
    animation: fadeIn 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

#box-container.active .box-modal-background .box-modal {
    opacity: 0;
    animation: scaleUp 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

#box-container.active + .content {animation: scaleBack 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;}

#box-container.out {animation: quickScaleDown 0s 0.5s linear forwards;}

  #box-container.out .box-modal-background {
    animation: fadeOut 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
  }
  #box-container.out .box-modal-background .box-modal {
    animation: scaleDown 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
  }
  #box-container.out + .content {
    animation: scaleForward 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
  }

#box-container.active .box-modal-background {
    display: table-cell;
    background: rgba(0, 0, 0, 0.8);
    text-align: center;
    vertical-align: middle;
}

#box-container.active .box-modal-background .box-modal {
    color: var(--global--color-black);
    padding: 0;
    border-radius: 20px;
    display: grid;
    position: relative;
    margin: 20px auto;
    justify-content: space-between;
    overflow: hidden;
    text-align: left;
}

.home #box-container.active .box-modal-background .box-modal {
    background: var(--global--color-white);
    grid-template-columns: 100%;
    margin: 20px auto;
    height: auto;
    max-width: 500px;
    padding: 30px;
}

.page-template-team #box-container.active .box-modal-background .box-modal {
    background: var(--global--color-yellow);
    grid-template-columns: auto 300px;
    margin: 20px auto;
    height: 70vh;
    max-width: 900px;
}

.box-col-1 {
    padding: 30px;
    display: grid;
    grid-template-rows: 80px auto 60px;
}

.box-modal .box-header {margin-bottom: 20px;}

.box-modal h4 {font-weight: 600;}

.home .box-modal h4 {
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
}
  
.box-modal label {
    display: block;
    margin-top: 20px;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.5;
}
  
.box-modal p {
    margin: 0;
    line-height: 1.5;
}

.box-modal .socials {margin-top: 30px;}
  
.box-modal .socials ul {
    display: flex;
    align-items: center;
}

.box-modal .socials ul .team-icon {color: var(--global--color-black);}

.box-modal .socials ul a:hover,
.box-modal .socials ul .team-icon:hover {color: var(--global--color-white);}
  
.box-modal .close {
    position: absolute;
    top: 20px;
    right: calc(30% + 50px);
    color: var(--global--color-black);
    user-select: none;
    cursor: pointer;
    transition: 0.3s all;
}

.home .box-modal .close {
    position: absolute;
    top: 30px;
    right: 30px;
}

.box-modal .close span {font-size: var(--global--font-size-xl);}

.home .box-modal .close span {font-size: var(--global--font-size-lg);}

.box-modal .close:hover {color: var(--global--color-white);}

.home .box-modal .close:hover {color: var(--global--color-yellow);}

.box-col-2 {
    width: 100%;
    height: 70vh;
}

.box-col-2 .box-img {
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: var(--global--color-gray);
}

#the-post-content {
    max-height: calc(70vh - 60px - 120px);
    overflow-y: auto;
}

#the-post-content::-webkit-scrollbar {
    width: 8px;
    background-color: #ffffff4a;
    border-radius: 20px;
}

#the-post-content::-webkit-scrollbar-thumb {
    background-color: #ffffff96;
    border: none;
    border-radius: 20px;
}

#the-post-content::-webkit-scrollbar-track {
    -webkit-box-shadow: none;
    background-color: transparent;
    border-radius: 20px;
}

@keyframes fadeIn {
    0% {
      background: rgba(0, 0, 0, 0);
    }
    100% {
      background: rgba(0, 0, 0, 0.7);
    }
  }
  @keyframes fadeOut {
    0% {
      background: rgba(0, 0, 0, 0.7);
    }
    100% {
      background: rgba(0, 0, 0, 0);
    }
  }
  @keyframes scaleUp {
    0% {
      transform: scale(0.8) translateY(1000px);
      opacity: 0;
    }
    100% {
      transform: scale(1) translateY(0px);
      opacity: 1;
    }
  }
  @keyframes scaleDown {
    0% {
      transform: scale(1) translateY(0px);
      opacity: 1;
    }
    100% {
      transform: scale(0.8) translateY(1000px);
      opacity: 0;
    }
  }
  @keyframes scaleBack {
    0% {
      transform: scale(1);
    }
    100% {
      transform: scale(0.85);
    }
  }
  @keyframes scaleForward {
    0% {
      transform: scale(0.85);
    }
    100% {
      transform: scale(1);
    }
  }
  @keyframes quickScaleDown {
    0% {
      transform: scale(1);
    }
    99.9% {
      transform: scale(1);
    }
    100% {
      transform: scale(0);
    }
  }

/* ---- Responsivo (celular) ---- */
@media (max-width: 767px) {

    .home #box-container.active .box-modal-background .box-modal {
        margin: 20px;
        padding: 20px;
    }

    .home .box-modal .close {
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .page-template-team #box-container.active .box-modal-background .box-modal {
        background: var(--global--color-yellow);
        grid-template-columns: 100%;
        margin: 20px;
        height: 90vh;
        max-width: 900px;
    }

    .box-col-1 {
        padding: 20px;
        display: grid;
        grid-template-rows: 50px auto 40px;
        height: calc(90vh - 340px);
    }

    .box-col-2 .box-img {
        height: 300px;
        background-position: top;
    }

    
    .box-modal .socials {
        margin-top: 10px;
    }

    .box-modal .close {
        position: absolute;
        top: 20px;
        right: 20px
    }

}
