:root {
    --butterfly-color: #0095DA;
}

.rhinepro .site-header .site-navigation.fullscreen .menu.main-menu > li.menu-item a[page="butterfly"]:hover::before,
.rhinepro .site-header .site-navigation.fullscreen .menu.main-menu > li.menu-item a[page="butterfly"]:focus-visible::before {
    color: var(--butterfly-color);
}

/* The existing .next-project-section supplies the image wipe and touch scroll states. */
.rhinepro .wrapper-full.tint-series-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rhinepro .wrapper-full.tint-series-grid::after {
    content: none;
    display: none;
}

/* Override the inherited four- and five-up column widths on all series pages. */
.rhinepro .wrapper-full.tint-series-grid > .c-col-3 {
    float: none;
    width: auto !important;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.tint-series-grid .to-butterfly .next-project-section:not(:hover):not(.hovered) .next-project-title {
    color: var(--butterfly-color) !important;
}

.tint-series-grid .to-butterfly .next-project-image {
    background-color: #101010;
}

.rhinepro .tint-series-grid .to-butterfly .next-project-image img {
    object-fit: cover;
    object-position: right center;
}

.tint-series-grid .to-butterfly .next-project-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgb(6 20 28 / 76%), transparent 28%);
    pointer-events: none;
}

@media (max-width: 576px) {
    .rhinepro .wrapper-full.tint-series-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.rhinepro #footer .social-list-widget ul li a.footer-butterfly:hover,
.rhinepro #footer .social-list-widget ul li a.footer-butterfly:focus-visible {
    color: var(--butterfly-color);
}
