.rswpbs-author-search-form button {
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    flex-shrink: 0 !important;
}

/* Make sure the form layout doesn't squeeze it */
.rswpbs-author-search-form {
    display: flex;
    gap: 10px;
}

.rswpbs-author-search-form input[type="text"] {
    flex: 1;
}
.rswpbs-author-search-form button[type="submit"] {
    background-color: #34586e !important; /* your color */
    color: #ffffff !important;
    border: none !important;
}
.rswpbs-load-more-wrapper button,
.rswpbs-load-more-wrapper .button {
    background-color: #34586e !important; /* your desired color */
    color: #ffffff !important;
    border: none !important;
}
.rswpbs-grid-item {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.rswpbs-grid {
  column-count: 3;
  column-gap: 20px;
}
.rsbs-wrapper,
.rsbs-grid {
    border: none !important;
}


/* Hide Published Year row */
.rsbs-book-meta .rsbs-meta-published-year,
.rsbs-book-meta .published year{
    display: none !important;
}

/* Override RS WP Books Showcase white text */
.rswpbs-book-information-container .information-list .information-content h4 a,
.rswpbs-book-loop-content-wrapper .book-title a,
.rswpbs-book-loop-content-wrapper .book-author a,
.rswpbs-book-content-wrapper .book-ratings,
.rswpbs-book-information-container .information-list .information-content .star-rating-inner {
    color: #000000 !important;
}

/* Force hover states too */
.rswpbs-book-loop-content-wrapper .book-title a:hover,
.rswpbs-book-loop-content-wrapper .book-author a:hover {
    color: #000000 !important;
}
/* 1. Force consistent book cover height safely */
.rswpbs-book-loop-image img {
    height: 300px !important;
    width: auto !important;
    display: block;
    margin: 0 auto;
}

/* 2. Give the text area a minimum height so buttons line up */
.rswpbs-book-information-container {
    min-height: 220px; /* adjust until buttons align */
}

/* 3. Add consistent spacing above button */
.rswpbs-button-wrapper {
    margin-top: 20px;
}
/* Force uniform author image sizing */
.rswpbs-single-author-wrapper .author-profile-picture-container {
    width: 250px;
    height: 250px;
    overflow: hidden;
}

/* Crop all author images to same square */
.rswpbs-single-author-wrapper .author-profile-picture-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Target the 4th block based on your HTML structure */
.rswpbs-book-information-container .information-list:nth-of-type(4) {
    display: none !important;
}/* ONLY Books By section — DO NOT change layout/grid */
.rswpbs-book-author-page-book-container-section-title
+ .rswpbs-books-showcase-area.default .rswpbs-book-loop-image {
    height: 300px !important;
    width: 100% !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fix image without affecting grid */
.rswpbs-book-author-page-book-container-section-title
+ .rswpbs-books-showcase-area.default .rswpbs-book-loop-image img {
    height: 100% !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
}
/* UNIVERSAL RS WP Showcase cover fix */
.rswpbs-book-loop-image img,
.rswpbs-book-image img,
.rswpbs-book img,
.rsbs-book-cover img,
.rswpbs-grid-item img {
    width: auto !important;
    max-width: 100% !important;
    height: 300px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
}
/* Prevent image wrapper stretching */
.rswpbs-book-loop-image,
.rswpbs-book-image,
.rsbs-book-cover {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 300px !important;
    overflow: hidden !important;
} 
/* Remove light boxes around book covers */
.rswpbs-grid-item,
.rswpbs-book-loop-item,
.rswpbs-book-loop-image,
.rsbs-book-cover,
.rswpbs-book {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}
/* Remove all inner wrapper borders */
.rswpbs-grid-item * {
    border-color: transparent !important;
    box-shadow: none !important;
}
/* Remove card outlines completely */
.rswpbs-grid-item,
.rswpbs-grid-item > div,
.rswpbs-grid-item::before,
.rswpbs-grid-item::after,
.rswpbs-book-loop-item,
.rswpbs-book-loop-item > div {
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    background: transparent !important;
}
/* Remove plugin card styling */
.rswpbs-grid-item {
    padding: 0 !important;
}

/* Remove gray box around book cards */
.rswpbs-book-container.book-grid-layout {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 !important;
}
/* =========================================================
   KADENCE SEARCH RESULTS - FORCE FULL UNIFORM CARDS
   ========================================================= */

/* 1. Main outer grid container */
body.search-results #archive-container {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px 20px !important;
    width: 100% !important;
}

/* 2. Reset the article element */
body.search-results article.entry {
    display: block !important;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 3. Kill Kadence internal side-by-side grid tracks */
body.search-results article .entry-content-wrap,
body.search-results article .post-summary-component-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    width: 100% !important;
}

/* 4. Force full cover size (300px height, full-width container) */
body.search-results article .post-thumbnail,
body.search-results article .post-thumbnail a {
    display: block !important;
    width: 100% !important;
    height: 300px !important;
    margin-bottom: 1px !important;
}

body.search-results article .post-thumbnail img {
    width: 100% !important;
    max-width: 100% !important;
    height: 300px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
}

/* 5. Center title text full width under cover */
body.search-results article .entry-header,
body.search-results article .entry-title {
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.search-results article .entry-title a {
    color: #000000 !important;
    font-size: 17px !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
    display: block !important;
    text-align: center !important;
}

/* 6. Remove Read More buttons and excerpts */
body.search-results article .entry-actions,
body.search-results article .more-link,
body.search-results article .entry-summary,
body.search-results article .entry-content,
body.search-results article .entry-meta,
body.search-results article .post-footer {
    display: none !important;
}

/* Mobile responsive layout */
@media (max-width: 768px) {
    body.search-results #archive-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
.rswpbs-book-information-container .information-content h4 {
    text-transform: capitalize !important;
}
/* Hides book category links in RS WP Books Showcase grid view */
.rswpbs-book-category,
.rswpbs-book-categories,
.rswpbs-category-list {
    display: none !important;
}
/* Fix cropped book covers on RS WP Books Showcase author pages only */
.tax-book-author .rswpbs-book-loop-container .rswpbs-book-image img,
.tax-book-author .rswpbs-single-book-thumbnail img,
.tax-book-author .entry-content-asset img {
    object-fit: contain !important;
    height: auto !important;
    width: 100% !important;
    max-height: none !important;
}
/* Fix book cover cropping, overlap, and alignment on book-author pages only */
body[class*="book-author"] .entry-content-asset,
body[class*="book-author"] .post-thumbnail,
body[class*="book-author"] .kadence-thumbnail-ratio,
body[class*="book-author"] [class*="book-image"],
body[class*="book-author"] [class*="thumbnail"] {
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-end !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 15px !important;
    aspect-ratio: auto !important;
    overflow: visible !important;
}

body[class*="book-author"] .entry-content-asset img,
body[class*="book-author"] .post-thumbnail img,
body[class*="book-author"] [class*="book"] img,
body[class*="book-author"] article img {
    position: static !important;
    display: block !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 320px !important; /* Keeps books of different heights aligned in a clean row */
    aspect-ratio: auto !important;
}