:root {
    --chapman-orange: #EC6828;
    --chapman-tan: #FBFAF3;
    --popup-text: #231F20;
    --button-color: #e8e5cb;
}
#book-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform:translate(-50%,-50%);
    width: 40%;
    padding: 10px;
    background-color: var(--chapman-tan);
    background-image: url('https://www.barrywehmiller.com/images/default-source/default-album/popup-bg.png');
    background-position: bottom right;
    background-repeat: no-repeat;
    font-family:'merel';
    font-weight:400;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    z-index:999999999;
}
#book-popup > div {
    position: relative;
    padding: 30px;
    border: 10px solid var(--chapman-orange);
}
#book-popup .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: transparent;
    font-size: 20px;
    font-weight: bold;
}
#book-popup .popup-header {
    line-height: 48px;
    font-family: baskerville-display-pt, serif;
    font-size: 48px;
    color: var(--popup-text);
    text-align: center;
}
#book-popup .popup-body {
    display: flex;
    flex-wrap: nowrap;
}
#book-popup .popup-body > div:first-of-type {
    width: 30%;
}
#book-popup .popup-body > div:first-of-type p {
    margin-bottom: 0;
    text-align: center;
}
#book-popup .popup-body > div:first-of-type p img {
    max-height: 250px;
}
#book-popup .popup-body > div:last-of-type {
    width: 70%;
    padding-top: 10px;
    text-align: left;
}
#book-popup .popup-body > div:last-of-type p {
    line-height: normal;
    color: var(--popup-text);
    font-size: 18px;
}
#book-popup .popup-body > div:last-of-type a {
    display: inline-block;
    padding: 10px 30px;
    border-radius: 12px;
    background-color: var(--chapman-orange);
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
}

/* --- Max Width 1500px --- */
@media all and (max-width: 1500px) {
    #book-popup {
        width: 60%;
    }
}

/* --- Max Width 1000px --- */
@media all and (max-width: 1000px) {
    #book-popup {
        width: 80%;
    }
}

/* --- Max Width 500px --- */
@media all and (max-width: 500px) {
    #book-popup {
        width: 90%;
        top: 30px;
        transform: translate(-50%,0);
    }
    #book-popup .close-button {
        top: 0px;
        right: 0px;
        width: 36px;
        height: 36px;
        border-radius: 50px;
        background-color: var(--button-color);
        color: var(--chapman-tan);
    }
    #book-popup > div {
        border: none;
        padding: 30px 10px 20px;
    }
    #book-popup .popup-header {
        line-height: 24px;
        font-size: 24px;
    }
    #book-popup .popup-body {
        flex-wrap: wrap;
    }
    #book-popup .popup-body > div:first-of-type, #book-popup .popup-body > div:last-of-type {
        width: 100%;
    }
    #book-popup .popup-body > div:first-of-type p img {
        max-height: 140px;
    }
    #book-popup .popup-body > div:last-of-type a {
        display: block;
        text-align: center;
    }
    #book-popup .no-mobile {
        display: none;
    }
}