*,
::before,
::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.modal-trigger{
    background: url("https://images.pexels.com/photos/355508/pexels-photo-355508.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500");
    color: white;
    padding: 1.8rem;
    font-size: 18px;
    margin-left: 90px;
    /*margin: 100px auto;*/
    display: block;
    min-width: 150px;
    cursor: pointer;
}

.modal-container {
    visibility: hidden;
    position: fixed;
    top: 0;
    width: 22vw;
    height: 90vh;
}
.modal-container.active {
    visibility: visible;
}


.modal{
    opacity: 0;
    width: 95%;
    max-width: 500px;
    min-width: 300px;
    padding: 30px;
    background: grey;
    border-radius: 5px;
    position: absolute;
    top: 45%;
    left: 75%;
    transform: translate(-50%, calc(-50% - 50px));
    transition: opacity 0.4s ease-out,
    transform 0.4s ease-out;
}

.modal-container.active .modal {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.close-button {
    padding: 8px 10px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    background: #ff365e;
    color: #fff;
}
.modal h1 {
    margin-bottom: 10px;
    font-family: Montserrat, sans-serif;
    font-weight: 500;
    color: #ff365e;
}
.modal p {
    line-height: 1.4;
    margin-bottom: 5px;
    color: #111111;
}

@media only screen and (max-width: 1600px) {
    .modal{
        top: 60%;
        left: 110%;
    }
}