/* RESET RULES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
:root {
    --lightgray: #efefef;
    --blue: steelblue;
    --white: #fff;
    --black: rgba(0, 0, 0, 0.8);
    --bounceEasing: cubic-bezier(0.51, 0.92, 0.24, 1.15);
}

* {
    padding: 0;
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    background: transparent;
    border: none;
    outline: none;
    font-size: inherit;
}

/*body {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    height: 100vh;*/
/*    font: 16px/1.5 sans-serif;*/
/*}*/

.btn-group {
    text-align: center;
}


.cta {
    display: inline-block;
    font-weight: bold;
    background: var(--blue);
    color: var(--white);
    padding: 0.75rem 1.75rem;
    margin-bottom: 1rem;
    border-radius: 5px;
}

/* MODAL
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.modal-custom {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--black);
    cursor: pointer;
    visibility: hidden;
    opacity: 0;
    transition: all 0.35s ease-in;
    z-index: 9999;
}

.modal-custom.is-visible {
    visibility: visible;
    opacity: 1;
}

.modal-dialog-custom {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    background: var(--white);
    overflow: auto;
    cursor: default;
}

.modal-dialog-custom .modal-content-custom {
    display: flex;
}

.modal-dialog-custom .modal-content-custom > * {
    flex: 1;
}

.modal-dialog-custom .modal-content-custom img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--lightgray);
}

.modal-dialog-custom .modal-content-custom .text {
    display: grid;
    place-items: center;
    padding: 40px;
}

.modal-dialog-custom .modal-content-custom .text *:not(:last-child) {
    margin-bottom: 20px;
}

.modal-dialog-custom .modal-content-custom .text .cta {
    margin-bottom: 0;
}

.modal-dialog-custom .close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    z-index: 1;
}

/* ANIMATIONS
–––––––––––––––––––––––––––––––––––––––––––––––––– */
[data-animation] .modal-dialog-custom {
    opacity: 0;
    transition: all 0.5s var(--bounceEasing);
}

[data-animation].is-visible .modal-dialog-custom {
    opacity: 1;
    transition-delay: 0.2s;
}

[data-animation="slideInOutDown"] .modal-dialog-custom {
    transform: translateY(100%);
}

[data-animation="slideInOutTop"] .modal-dialog-custom {
    transform: translateY(-100%);
}

[data-animation="slideInOutLeft"] .modal-dialog-custom {
    transform: translateX(-100%);
}

[data-animation="slideInOutRight"] .modal-dialog-custom {
    transform: translateX(100%);
}

[data-animation="zoomInOut"] .modal-dialog-custom {
    transform: scale(0.2);
}

[data-animation="rotateInOutDown"] .modal-dialog-custom {
    transform-origin: top left;
    transform: rotate(-1turn);
}

[data-animation="mixInAnimations"].is-visible .modal-dialog-custom {
    animation: mixInAnimations 2s 0.2s linear forwards;
}

[data-animation="slideInOutDown"].is-visible .modal-dialog-custom,
[data-animation="slideInOutTop"].is-visible .modal-dialog-custom,
[data-animation="slideInOutLeft"].is-visible .modal-dialog-custom,
[data-animation="slideInOutRight"].is-visible .modal-dialog-custom,
[data-animation="zoomInOut"].is-visible .modal-dialog-custom,
[data-animation="rotateInOutDown"].is-visible .modal-dialog-custom {
    transform: none;
}

@keyframes mixInAnimations {
    0% {
        transform: translateX(-100%);
    }

    10% {
        transform: translateX(0);
    }

    20% {
        transform: rotate(20deg);
    }

    30% {
        transform: rotate(-20deg);
    }

    40% {
        transform: rotate(15deg);
    }

    50% {
        transform: rotate(-15deg);
    }

    60% {
        transform: rotate(10deg);
    }

    70% {
        transform: rotate(-10deg);
    }

    80% {
        transform: rotate(5deg);
    }

    90% {
        transform: rotate(-5deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

/* MQ
–––––––––––––––––––––––––––––––––––––––––––––––––– */
@media (max-width: 850px) {
    .modal-dialog-custom .modal-content-custom {
        flex-direction: column;
    }
}

/* FOOTER
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.page-footer {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
}

.page-footer span {
    color: #e31b23;
}
