.ilmh-pagination {
    width: 100%;
    margin: 40px 0 0;
}

.ilmh-pagination__inner {
    display: grid;
    grid-template-columns: minmax(72px, 1fr) auto minmax(72px, 1fr);
    align-items: center;
    gap: 24px;
}

.ilmh-pagination__edge {
    display: flex;
    align-items: center;
}

.ilmh-pagination__edge--prev {
    justify-content: flex-end;
}

.ilmh-pagination__edge--next {
    justify-content: flex-start;
}

.ilmh-pagination__pages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ilmh-pagination__item {
    margin: 0;
    padding: 0;
}

.ilmh-pagination__item--dots {
    color: #111;
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
}

.ilmh-pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    color: #111;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
}

.ilmh-pagination__link--current {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    font-size: 16px;
}

.ilmh-pagination__arrow {
    position: relative;
    display: block;
    width: 62px;
    height: 25px;
    color: #111;
    text-decoration: none;
}

.ilmh-pagination__arrow::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 62px;
    height: 25px;
    background-color: currentColor;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='62' height='25' viewBox='0 0 62 25' fill='none'%3E%3Cpath d='M11.6783 0.337891L0.678345 12.3379L11.6783 24.3379' stroke='black'/%3E%3Cpath d='M1.17834 12.3379H61.6783' stroke='black'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='62' height='25' viewBox='0 0 62 25' fill='none'%3E%3Cpath d='M11.6783 0.337891L0.678345 12.3379L11.6783 24.3379' stroke='black'/%3E%3Cpath d='M1.17834 12.3379H61.6783' stroke='black'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
}

.ilmh-pagination__arrow--next::before {
    transform: rotate(180deg);
}

.ilmh-pagination__arrow--disabled {
    opacity: .24;
    pointer-events: none;
}

@media (max-width: 767px) {
    .ilmh-pagination {
        margin-top: 32px;
    }

    .ilmh-pagination__inner {
        grid-template-columns: 56px auto 56px;
        gap: 16px;
    }

    .ilmh-pagination__pages {
        gap: 10px;
    }

    .ilmh-pagination__arrow {
        width: 52px;
        height: 21px;
    }

    .ilmh-pagination__arrow::before {
        width: 52px;
        height: 21px;
    }
}
