.book-gallery {
    width: 100%;
    height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
    background-color: #f5f5f5;
    overflow: hidden;
}

.book-gallery h2 {
    margin-bottom: 10px;
    font-family: Arial, sans-serif;
    font-size: 24px;
    text-align: center;
}

.book-container {
    width: 100%;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    flex-wrap: nowrap;
    gap: 5px;
}

.book-container input[type="radio"] {
    display: none;
}

.book-container label {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    max-height: 400px;
    transition: transform 0.3s ease;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.book-container input[type="radio"]:checked + label {
    transform: scale(1.05);
    z-index: 2;
}

.book1 { background-image: url('cover/cover1.png'); }
.book2 { background-image: url('cover/cover2.png'); }
.book3 { background-image: url('cover/cover3.png'); }
.book4 { background-image: url('cover/cover4.png'); }
.book5 { background-image: url('cover/cover5.png'); }

@media (max-width: 900px) {
.book-gallery {
    height: 400px;
 }
.book-gallery h2 {
    font-size: 20px;
 }
}

@media (max-width: 600px) {
.book-gallery {
    height: auto;
    padding: 20px 10px;
 }
.book-container {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 1px;
 }
.book-container label {
    width: 250px;
    height: 350px;
    flex: 0 0 auto;
    max-height: none;
 }
}