/* page
======================================================================================================================*/
body.modal-opened {
    overflow: hidden;
}

body.modal-opened #primary {
    -webkit-filter: blur(4px);
    filter: blur(4px);
}

/* modal
    https://gist.github.com/ghosh/4f94cf497d7090359a5c9f81caf60699#file-micromodal-html
======================================================================================================================*/
.modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 800;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;

    display: flex;
    justify-content: center;
    align-items: center;

    background-color: rgba(0, 0, 0, 0.75);
    will-change: transform;
}

.modal-container {
    max-width: 768px;
    width: 100%;
    max-height: 100vh;
    padding: 32px;

    color: white;
    will-change: transform;
}

.modal-header {
    text-align: center;
}

.modal-title {
    margin-top: 0;
}

.modal-form .modal-input {
    padding: 12px 24px;
}

@-webkit-keyframes mmfadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes mmfadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@-webkit-keyframes mmfadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes mmfadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@-webkit-keyframes mmslideIn {
    from {
        transform: translateY(15%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes mmslideIn {
    from {
        transform: translateY(15%);
    }
    to {
        transform: translateY(0);
    }
}

@-webkit-keyframes mmslideOut {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-10%);
    }
}

@keyframes mmslideOut {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-10%);
    }
}

.modal-slide {
    display: none;
}

.modal-slide.is-open {
    display: block;
}

.modal-slide[aria-hidden="false"] .modal-overlay {
    -webkit-animation: mmfadeIn 0.3s cubic-bezier(0, 0, 0.2, 1);
    animation: mmfadeIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.modal-slide[aria-hidden="false"] .modal-container {
    -webkit-animation: mmslideIn 0.3s cubic-bezier(0, 0, 0.2, 1);
    animation: mmslideIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.modal-slide[aria-hidden="true"] .modal-overlay {
    -webkit-animation: mmfadeOut 0.3s cubic-bezier(0, 0, 0.2, 1);
    animation: mmfadeOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.modal-slide[aria-hidden="true"] .modal-container {
    -webkit-animation: mmslideOut 0.3s cubic-bezier(0, 0, 0.2, 1);
    animation: mmslideOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}

/* masthead
======================================================================================================================*/
.masthead-modal-form {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.modal-input.masthead-modal-input {
    height: 50px;
    width: 100%;
    border-radius: 0;
    border: 0;
}

.masthead-modal-submit {
    height: 50px;
    width: 150px;
    padding-left: 0;
    padding-right: 0;
    border-radius: 0;
    border: 0;

    font-size: 18px;
    font-weight: 600;
    text-align: center;
}
