/* Hide Bootstrap default SVG icons */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    display: none !important;
    background-image: none !important;
}

/* Fix forced white color from Bootstrap */
.carousel-control-prev,
.carousel-control-next {
    color: inherit !important; /* stop Bootstrap from forcing white */
}

/* Final arrow styling with variable */
.custom-arrow {
    font-size: 45px;
    font-weight: bold;
    color: var(--arrow-color, #000000) !important;  /* FORCE chosen color */
    cursor: pointer;
    user-select: none;
    opacity: 1 !important; /* fix bootstrap transparency */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

/* Reduce space between arrow and carousel edge */
.carousel-control-prev .custom-arrow {
    left: 30px; /* closer to the left edge */
}

.carousel-control-next .custom-arrow {
    right: 30px; /* closer to the right edge */
}
@media (max-width: 767px) {

    /* Move arrow containers away from slide */
    .carousel-control-prev,
    .carousel-control-next {
        display: flex;
        align-items: center;
        width: 44px;
    }

    /* Remove absolute overlay positioning */
    .custom-arrow {
        position: relative;
        top: auto;
        transform: none;
        font-size: 28px;
    }

    /* Add space between arrows & slide */
    .carousel-control-prev {
        margin-left: -45px;
    }

    .carousel-control-next {
        margin-right: -45px;
    }
}
