.ebooks h1 {
    width: 100%; max-width: 1200px; margin: 94px auto 0 auto;
}

.ebooks p {
    width: 100%; max-width: 1200px; margin: 0 auto 20px auto;
}

.ebook_list {
    width: 1200px; margin: 0 auto 100px auto; display: flex; flex-wrap: wrap; gap: 20px;
}

.ebook_list .ebook {
    width: calc(25% - 16px); border: solid 1px var(--card-border); padding: 16px; border-radius: 8px; box-sizing: border-box; transition: 0.3s; text-align: center;
}

.ebook_list .ebook:hover {
    background: var(--card-border); transition: 0.3s;
}

.ebook_list .ebook:hover img {
    filter: drop-shadow(0px 16px 18px var(--black)); transition: 0.3s;
}

.ebook_list .ebook img {
    width: 100%; max-width: 250px; filter: drop-shadow(0px 6px 8px var(--black)); transition: 0.3s; margin: 0 auto; display: block;
}

.ebook_list .ebook .title {
    font-size: 14px; font-weight: 700; margin-bottom: 16px; line-height: 22px;
}

.ebook_list .ebook .buy {
   display: flex; flex-direction: column; gap: 4px; margin-top: 20px; align-items: center;
}

.ebook_list .ebook .buy a {
    color: var(--primary); font-weight: 700; font-size: 20px;
}

@media only screen and (max-width: 1224px) {
    .ebooks h1 {
       width: calc(100% - 24px); 
    }
    
    .ebook_list {
        width: calc(100% - 24px);
    }
    
    .ebook_list .ebook {
        width: calc(33% - 16px);
    }
}

@media only screen and (max-width: 900px) {
    .ebook_list .ebook {
        width: calc(50% - 16px);
    }
}

@media only screen and (max-width: 660px) {
    .ebook_list .ebook {
        width: 100%;
    }
}