.custom-repeater-widget {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Clickable card */
.custom-repeater-widget .repeater-link {
    display: block;
    text-decoration: none;
    color: inherit;
    max-width: 390px;
    flex-basis: 100%;
    width: 100%;
}

/* Image wrapper */
.custom-repeater-widget .repeater-image {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

/* Image */
.custom-repeater-widget .repeater-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
	min-height:260px;
	max-height:260px;
}

.custom-repeater-widget .repeater-image {
    max-height: 191px;
}

/* Heading overlay container */
.custom-repeater-widget .repeater-heading-wrap {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 86px;
    padding: 10px;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 10px;

    border-radius: 0 0 16px 16px;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.00) -6.8%,
            rgba(0, 0, 0, 0.40) 46.2%);
    padding-bottom: 15px;
    padding-left: 30px;
}

/* Heading text */
.custom-repeater-widget .repeater-heading {
    margin: 0;
    color: #fff;
    font-size: 18px;
    line-height: 1.2;
}

/* Ensure clipping */
.custom-repeater-widget .repeater-image {
    overflow: hidden;
}

/* Smooth image zoom */
.custom-repeater-widget .repeater-image img {
    transition: transform 0.35s ease;
    will-change: transform;
}

/* Darker overlay on hover */
.custom-repeater-widget .repeater-heading-wrap {
    transition: background 0.35s ease;
}

/* Hover state */
.custom-repeater-widget .repeater-link:hover .repeater-image img {
    transform: scale(1.06);
}

.custom-repeater-widget .repeater-link:hover .repeater-heading-wrap {
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.00) -6.8%,
            rgba(0, 0, 0, 0.65) 46.2%);
}

.repeater-item {
    position: relative;
}

.custom-repeater-widget {
    column-gap: 16px;
    row-gap: 16px;
}

/* Hide items after 3 unless expanded */
.custom-repeater-widget:not(.expanded) .repeater-link:nth-of-type(n+4) {
    display: none;
}

/* Toggle button */
.custom-repeater-widget .repeater-toggle {
    margin-top: 16px;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

#repeater-toogle-id.repeater-toggle {
    color: #0E395C;
    text-align: center;
    font-family: Inter;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 36px;
    letter-spacing: 0.07px;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
    text-transform: capitalize;
    background: none;
    box-shadow: none;
}

@media (min-width: 480px) {
    .custom-repeater-widget .repeater-link {

        flex-basis: 45%;
        width: 45%;
    }

    .custom-repeater-widget {
        column-gap: 35px;
        row-gap: 20px;
    }

    .custom-repeater-widget:not(.expanded) .repeater-link:nth-of-type(n+4) {
        display: block;
    }
}

/* Desktop image height */
@media (min-width: 768px) {
    .custom-repeater-widget .repeater-image {
        max-height: 263px;
    }

    .custom-repeater-widget {
        column-gap: 45px;
        row-gap: 20px;
    }

    /* Show all items */
    .custom-repeater-widget:not(.expanded) .repeater-link {
        display: block;
    }

    .custom-repeater-widget:not(.expanded) .repeater-link:nth-of-type(n+7) {
        display: none;
    }

    /* Hide toggle button */
    .custom-repeater-widget .repeater-toggle {
        /* display: none; */
    }
}

@media (min-width: 980px) {
    .custom-repeater-widget .repeater-link {
        flex-basis: 30%;
        width: 30%;
    }
}

@media (min-width: 1366px) {
    .custom-repeater-widget {
        column-gap: 75px;
        row-gap: 40px;
    }
}