.books__module {
    margin-bottom: 70px;
}

.books__books-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.books__book {
    width: 100%;
    max-width: 320px;
    padding: 0 20px;
    cursor: pointer;
    text-align: center;
}

.books__imgwrap {
    width: 100%;
    height: auto;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.books__book img {
    display: block;
    width: 100%;
    max-width: 240px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
    position: relative;
}

.books__book-title {
    margin-top: 12px;
    margin-bottom: 5px;
    font-weight: 450;
    text-align: center;
}

.books__book-author {
    margin-top: 0;
    text-align: center;
}

.books__book .ModuleEditLink.flexi-item-edit {
    position: relative;
    display: inline-block;
    margin: 0 auto;
}


/* Modal */
.books-modal {
    z-index: 99999;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    overflow: hidden;
}

.books-modal .modal-header {
    min-height: 45px;
    padding: 15px 18px 0;
    border: 0;
}

.books-modal .close {
    font-size: 30px;
    font-weight: 300;
    opacity: .45;
    transition: opacity .2s ease;
}

.books-modal .close:hover,
.books-modal .close:focus {
    opacity: 1;
}

.books-modal .modal-body {
    padding: 15px 20px 30px;
}

.books-modal-left {
    padding-left: 15px;
    padding-right: 15px;
}

.books-modal-photo {
    width: 100%;
    max-width: 285px;
    aspect-ratio: 1752 / 2560;
    margin: 0 auto 25px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .18);
}

.books-modal-book-info-wrap {
    width: 100%;
    max-width: 285px;
    margin: 0 auto;
}

.books-modal-book-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.4;
}

.books-modal-book-info i {
    flex: 0 0 16px;
    width: 16px;
    margin-top: 3px;
    text-align: center;
}

.books-modal-book-info span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.books-modal-book-info strong {
    margin-bottom: 2px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.books-modal-content {
    margin-top: 30px;
    padding-left: 15px;
    padding-right: 15px;
    text-align: center;
}

.books-modal-eyebrow {
    margin-bottom: 7px;
    color: #c18f59;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.books-modal-title {
    margin: 0 0 22px;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.books-modal-description {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.books-modal-description p {
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
}

.books-modal-buy {
    display: inline-block;
    margin-top: 5px;
    padding: 12px 28px;
    background: #c18f59;
    border: 1px solid #c18f59;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .04em;
    transition: background .2s ease, border-color .2s ease;
}

.books-modal-buy:hover,
.books-modal-buy:focus {
    background: #8f6a42;
    border-color: #8f6a42;
    color: #fff;
    text-decoration: none;
}


/* Larger phones */
@media (min-width: 480px) {

    .books__book {
        max-width: 360px;
    }

    .books__book img {
        max-width: 270px;
    }

    .books-modal .modal-body {
        padding: 20px 25px 35px;
    }
}


/* Tablets */
@media (min-width: 768px) {

    .books__module {
        margin-bottom: 90px;
    }

    .books__books-group {
        flex-flow: row wrap;
        align-items: flex-start;
        justify-content: center;
        column-gap: 30px;
        row-gap: 45px;
    }

    .books__book {
        flex: 0 1 calc(50% - 15px);
        width: calc(50% - 15px);
        max-width: none;
        padding: 0 20px;
    }

    .books__book img {
        width: 100%;
        max-width: 260px;
        height: auto;
    }

    .books-modal .modal-body {
        padding: 20px 30px 40px;
    }

    .books-modal-left {
        padding-left: 15px;
        padding-right: 20px;
    }

    .books-modal-content {
        margin-top: 30px;
        padding-left: 20px;
        padding-right: 15px;
        text-align: left;
    }

    .books-modal-description {
        margin-left: 0;
        margin-right: 0;
    }

    .books-modal-title {
        font-size: 26px;
    }

    .books-modal-description p {
        font-size: 16px;
    }
}


/* Desktop */
@media (min-width: 992px) {

    .books__module {
        margin-bottom: 120px;
    }

    .books__books-group {
        column-gap: 0;
        row-gap: 30px;
    }

    .books__book {
        flex: 0 1 25%;
        width: 25%;
        padding: 0 22px;
    }

    .books__book img {
        width: 100%;
        max-width: 280px;
        height: auto;
    }

    .books-modal .modal-body {
        padding: 20px 45px 45px;
    }

    .books-modal-left {
        padding-left: 15px;
        padding-right: 35px;
    }

    .books-modal-content {
        margin-top: 0;
        padding-left: 30px;
        padding-right: 15px;
        text-align: left;
    }

    .books-modal-title {
        font-size: 28px;
    }

    .books-modal-description p {
        font-size: 17px;
    }
}