/**********/
/* MODALS */
/**********/
@keyframes fadeOff {
    0%, 75% {
        opacity: 1;
        transition-delay: 4s;
        visibility: visible;
    }

    100% {
        opacity: 0;
    }
}

.modal {
    position: fixed;
    width: 100%;
    height: 0;
    top: -120vh;
    left: 0;
    z-index: 10;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
    padding: 80px var(--padding-h) var(--padding-h);
    display: flex;
    transition:height 0ms 400ms ease, top 400ms ease, bottom 400ms ease;
}
.modal--down {
    bottom: -120%;
    top: inherit;
    align-items: flex-end;
    padding:var(--padding-h) var(--padding-h) 0;

}

.modal--desaparece {
    top: 0;
    visibility: hidden;
    opacity: 0;
    animation-name: fadeOff;
    animation-iteration-count: 1;
    animation-timing-function: ease-in;
    animation-duration: 4s;
}

.modal--active {
    top: 0;
    height: 100vh;
	transition:height 0ms ease, top 400ms ease, bottom 400ms ease;
}
.modal--down.modal--active {
    top: inherit;
    bottom:0;
}
.modal__bg {
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #000;
    opacity: .8;
}
.modal--down .modal__bg {
    opacity:1;
    background: linear-gradient(to top, rgba(0,0,0, 0.7) 60%,rgba(0,0,0,0) 100%);
}

.modal__inner {
    width: 100%;
    position: absolute;
    position: relative;
    max-height: 86vh;
    background: #fff;
    border-radius: var(--radius1);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    max-width: 680px;
}

.modal--down .modal__inner {
    border-radius: var(--radius1) var(--radius1) 0 0;
    max-height:calc(100svh - 100px)
}

.modal__info {
    flex: 1;
    overflow:auto;
    padding: var(--padding-h);
}

#modal-360 .modal__inner {
    max-width:100%;
    border-radius: var(--radius1);
}
.modal__iframe {
    overflow: hidden;
    border-radius: var(--radius1);
}

.modal__iframe iframe{
    height:90vh;
    width:100%;
}

.modal__close {
    position: absolute;
    transform: translateY(-100%);
    right: 0;
    top: 0;
    font-size:2.6rem;
    padding:0.5rem 0;
    line-height: 100%;
    color:#fff;
    cursor: pointer;
    z-index: 3;
}

.modal--down .modal__close {
    left: 0;
    right: 0;
    margin: 0 auto;
    text-shadow: 0px 0px 8px rgb(0 0 0 / 80%);
    text-align:center;
}
.modal--down p{
    text-align:center;
}