.book-gallery-container {
    /*margin: 20px 0;
    padding: 20px;*/
    /* background: #f8f9fa; */
    /*border-radius: 10px;*/
}

.book-gallery-header {
    text-align: center;
    margin-bottom: 30px;
}

.gallery-title {
    color: #2c5530;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.gallery-subtitle {
    color: #dc3545;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
}

.book-gallery-wrapper {
    position: relative;
    overflow: hidden;
}

.book-gallery {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease;
    padding: 10px 0;
}

.book-item {
/*    flex: 0 0 200px;*/
    flex: 0 0 142px;
    /* background: white; */
    /* border-radius: 10px; */
    /* box-shadow: 0 4px 8px rgba(0,0,0,0.1); */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.book-cover {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.book-image {
    width: 100%;
    height: 160px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.book-item:hover .book-image {
    transform: scale(1.05);
}

.book-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.book-item:hover .book-overlay {
    opacity: 1;
}

.book-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-view {
    background: #28a745;
    color: white;
}

.btn-view:hover {
    background: #218838;
    color: white;
}

.btn-read {
    background: #007bff;
    color: white;
}

.btn-read:hover {
    background: #0056b3;
    color: white;
}

.book-info {
    padding: 15px;
}

.book-title {
    font-size: 14px;
    /* color: #393939; */
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 400;
    font-size: 14px;
    text-align: center;
    position: relative;
    cursor: pointer;
}

.book-author {
    font-size: 12px;
    color: #666;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-views {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #888;
}

.gallery-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.nav-btn {
    background: rgba(255,255,255,0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-btn:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.nav-btn i {
    color: #333;
    font-size: 16px;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.no-books-message {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}


.book-title-wrapper {
    position: relative;
    overflow: visible;
    z-index: 10;
}