﻿.modal {
    --modal-bg-color: #333e48;
    --modal-text-color: #fff;
    position: fixed;
    z-index: 10000;
}

.modal-light {
    --modal-bg-color: #fff;
    --modal-text-color: #333e48;
}

@media (min-width: 1000px) {
    .modal {
        --container-width: 100vw;
    }
}

.modal-overlay {
    position: absolute;
    z-index: -1;
    background-color: rgba(0,0,0,.7);
}

.modal-close {
    width: 35px;
    height: 35px;
    display: flex;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='4' y1='4' x2='20' y2='20'/%3E%3Cline x1='20' y1='4' x2='4' y2='20'/%3E%3C/svg%3E") center no-repeat #fff;
    background-size: 20px;
    margin: 10px;
}

.can-hover .modal-close:hover .icon, [data-whatintent=keyboard] .modal-close:focus .icon {
    transform: scale(.87);
}

.modal-content {
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    width: 90%;
    height: calc(100vh - 220px);
    max-height: calc(100vh - 220px);
    color: var(--modal-text-color) !important;
    background: var(--modal-bg-color);
    -webkit-overflow-scrolling: touch;
    margin: 110px auto;
    box-shadow: 0 0 44px rgba(0,0,0,.50196);
}

.modal-content h3 {
    color: var(--modal-text-color) !important;)
}

@media screen and (min-device-width: 280px) and (max-device-width:1170px) and (orientation:landscape) {
    .modal-content {
        height: calc(100vh - 100px);
        max-height: calc(100vh - 100px);
        margin: 80px auto 0;
    }
}

@media (min-width: 1170px) {
    .modal-content {
        max-width: 1664px;
        height: calc(100vh - 240px);
        max-height: calc(100vh - 240px);
        margin: 120px auto;
    }
}

@media (min-width: 1170px) and (max-height:850px) {
    .modal-content {
        height: calc(100vh - 50px);
        max-height: calc(100vh - 50px);
        margin: 25px auto;
    }
}

.modal-content::-webkit-scrollbar {
    width: 12px;
}

.modal-content::-webkit-scrollbar-track {
    background: #333e48;
}

.modal-content::-webkit-scrollbar-thumb {
    background-color: #fff;
    border-radius: 20px;
    border: 3px solid #333e48;
}

.modal-content.is-scrollable + .modal-close {
    right: 15px;
}

.modal, .modal-overlay {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal-header {
    --btn-width: 80px;
    position: relative;
    background: #48525b;
    padding: 20px var(--btn-width) 20px 20px;
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 1000px) {
    .modal-header {
        --btn-width: 176px;
        min-height: 180px;
        padding: 20px var(--btn-width) 20px var(--btn-width);
    }
}

@media (min-width: 1000px) and (max-height:900px) {
    .modal-header {
        min-height: 120px;
    }
}

.modal-header-name {
    font-size: 2.125rem;
    line-height: 1;
    padding-bottom: 10px;
}

@media (min-width: 1000px) {
    .modal-header-name {
        font-size: 3.75rem;
    }
}

.modal-header-close {
    position: absolute;
    right: 0;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 1000px) {
    .modal-header-close {
        padding: 70px 66px;
    }
}