.ebooksPage__header {
padding-bottom: 2em;
}
.ebooksPage__featured__pic {
position: relative;
text-align: center;
}
.ebooksPage__featured__pic a {
display: inline-block;
}
.ebooksPage__featured__pic img {
border-radius: 25px;
width: 100%;
max-width: 400px;
display: block;
margin: auto;
box-shadow: 0 15px 34px 0 rgba(0, 0, 0, 0.18), 0 15px 34px 0 rgba(0, 0, 0, 0.1);
transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.ebooksPage__featured__pic img:hover {
transform: translateY(-4px);
box-shadow: 0 15px 34px 0 rgba(0, 0, 0, 0.28), 0 15px 34px 0 rgba(0, 0, 0, 0.1);
}
.ebooksPage__list {
display: flex;
flex-wrap: wrap;
gap: 20px;
margin-top: 20px;
}
.ebooksPage__item {
margin-top: 40px;
}
.ebooksPage__item img {
display: block;
}
.ebooksPage__item figure {
width: 100%;
overflow: hidden;
border-radius: 25px;
box-shadow: 0 15px 34px 0 rgba(0, 0, 0, 0.18), 0 15px 34px 0 rgba(0, 0, 0, 0.1);
transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
margin: 0;
padding: 0;
}
.ebooksPage__item:hover figure {
transform: translateY(-4px);
box-shadow: 0 15px 34px 0 rgba(0, 0, 0, 0.28), 0 15px 34px 0 rgba(0, 0, 0, 0.1);
}
@media (max-width: 767px) {
.ebooksPage__item {
flex: 1 0 calc(50% - 20px);
max-width: calc(50% - 20px);
}
.ebooksPage__featured__pic a {
margin-top: 1em;
}
}
@media (min-width: 768px) {
.ebooksPage__item {
flex: 1 0 calc(25% - 15px);
max-width: calc(25% - 15px);
}
}