/* Homepage publications carousel - edge fields and arrows */
.home-book-carousel-wrap {
    position: relative;
}

.home-carousel-arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 40;
    width: 20px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgba(88, 92, 98, 0.4);
    box-shadow: none;
    color: #243040;
    cursor: pointer;
}

.home-carousel-arrow-prev {
    left: 0;
    right: auto;
}

.home-carousel-arrow-next {
    right: 0;
    left: auto;
}

.home-carousel-arrow:hover,
.home-carousel-arrow:focus {
    background: rgba(88, 92, 98, 0.4);
    color: #243040;
    box-shadow: none;
    outline: none;
}

.home-carousel-arrow:focus-visible {
    outline: 2px solid rgba(36, 48, 64, 0.45);
    outline-offset: -2px;
}

.home-carousel-arrow-edge,
.home-carousel-arrow-in {
    position: absolute;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.4);
    color: #243040;
    pointer-events: none;
}

/* Semicircle fills the grey field. The curve faces the same way as the arrow. */
.home-carousel-arrow-edge {
    width: 100%;
    height: 40px;
    font-size: 0.6rem;
    line-height: 1;
    transform: translateY(-50%);
}

.home-carousel-arrow-prev .home-carousel-arrow-edge {
    left: 0;
    right: auto;
    border-radius: 20px 0 0 20px;
    justify-content: flex-start;
    padding-left: 0.05rem;
}

.home-carousel-arrow-next .home-carousel-arrow-edge {
    right: 0;
    left: auto;
    border-radius: 0 20px 20px 0;
    justify-content: flex-end;
    padding-right: 0.05rem;
}

/* Full circle shown inward, over the book, while the grey field is hovered. */
.home-carousel-arrow-in {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    font-size: 1.05rem;
    opacity: 0;
    transition: opacity 0.18s ease;
}

.home-carousel-arrow-prev .home-carousel-arrow-in {
    left: calc(100% + 1.35rem);
    right: auto;
    transform: translateY(-50%);
}

.home-carousel-arrow-next .home-carousel-arrow-in {
    right: calc(100% + 1.35rem);
    left: auto;
    transform: translateY(-50%);
}

.home-carousel-arrow:hover .home-carousel-arrow-in {
    opacity: 1;
}

html[dir="rtl"] .home-carousel-arrow-prev {
    left: auto;
    right: 0;
}

html[dir="rtl"] .home-carousel-arrow-next {
    right: auto;
    left: 0;
}

html[dir="rtl"] .home-carousel-arrow-prev .home-carousel-arrow-edge {
    left: auto;
    right: 0;
    border-radius: 0 20px 20px 0;
    justify-content: flex-end;
    padding-left: 0;
    padding-right: 0.05rem;
}

html[dir="rtl"] .home-carousel-arrow-next .home-carousel-arrow-edge {
    right: auto;
    left: 0;
    border-radius: 20px 0 0 20px;
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 0.05rem;
}

html[dir="rtl"] .home-carousel-arrow i {
    transform: scaleX(-1);
}

html[dir="rtl"] .home-carousel-arrow-prev .home-carousel-arrow-in {
    left: auto;
    right: calc(100% + 1.35rem);
}

html[dir="rtl"] .home-carousel-arrow-next .home-carousel-arrow-in {
    right: auto;
    left: calc(100% + 1.35rem);
}

/* Nest Hub Max (1280) and similar widths: keep slider text inside the screen. */
@media (max-width: 1399.98px) {
    .home-book-carousel-wrap {
        overflow: hidden;
    }

    .home-book-carousel .book {
        height: auto;
        max-width: none;
    }

    .home-book-carousel .book > .row {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }

    .home-book-carousel .book-info {
        min-width: 0;
        padding-right: 1.75rem;
        overflow-wrap: break-word;
    }

    .home-book-carousel .book-title,
    .home-book-carousel .book-title a {
        overflow: visible;
        text-overflow: unset;
        white-space: normal;
        height: auto;
    }

    .home-book-carousel .book-short-description {
        max-height: none;
        overflow: visible;
    }

    .home-book-list .book-list .book .book-title,
    .home-book-list .book-list .book .book-title a {
        overflow: visible;
        text-overflow: unset;
        white-space: normal;
        height: auto;
    }
}

@media (max-width: 575.98px) {
    .home-carousel-arrow {
        width: 18px;
    }

    .home-carousel-arrow-edge {
        height: 36px;
        font-size: 0.55rem;
    }

    .home-carousel-arrow-prev .home-carousel-arrow-edge,
    html[dir="rtl"] .home-carousel-arrow-next .home-carousel-arrow-edge {
        border-radius: 18px 0 0 18px;
    }

    .home-carousel-arrow-next .home-carousel-arrow-edge,
    html[dir="rtl"] .home-carousel-arrow-prev .home-carousel-arrow-edge {
        border-radius: 0 18px 18px 0;
    }

    .home-carousel-arrow-in {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.9rem;
    }

    .home-carousel-arrow-prev .home-carousel-arrow-in {
        left: calc(100% + 0.65rem);
    }

    .home-carousel-arrow-next .home-carousel-arrow-in {
        right: calc(100% + 0.65rem);
    }
}

.library-seo-title {
    margin: 0 0 0.75rem;
    font-size: 1.75rem;
    line-height: 1.3;
    font-weight: 600;
}
