.image-buttons {
    position: relative;
    overflow-x: hidden;
}

.image-button-flex {
    padding: 0 !important;
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1px;
}

.image-button-item::before {
    display: none;
}

.image-button-item {
    margin: 0;
    padding: 0 0 1px 1px;
}

.image-button-flex li {
    width: 50%;

}

.image-button-flex li:last-child {
    width: 100%;
}


section.image-buttons.count-image-4 .image-button-flex li {
    width: 50%;
}

.image-button {
    position: relative;
    display: block;
    width: 100%;
    height: 205px;
    overflow: hidden;

}

.image-button:hover .image-button__cta:after {
    color: #fff;
}

.image-button__img {
    position: absolute;
    z-index: 1;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    -o-object-position: center 25%;
    object-position: center 25%;
    -o-object-fit: cover;
    object-fit: cover;
}

.image-button__hover:after {
    content: '';
    position: absolute;
    z-index: 2;
    bottom: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(25, 40, 70, 1) 0%, rgba(168, 191, 213, .13) 100%);
    opacity: 1;
    pointer-events: none;
    transition: all 0.5s ease-in-out;

}

/* .image-button__hover.disable-overlay::after {
    background: transparent;
} */

.image-button__hover {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 16px;
    color: #fff;
    height: 100%;
    display: flex;
    align-items: end;
    width: 100%;
    flex-shrink: 0;
    flex-direction: column;
    justify-content: end;
}

.image-button__title,
.image-button__hidden {
    position: relative;
    z-index: 3;
}

.image-button__title {
    font-size: 20px;
    padding: 0;
    line-height: 1.1em;
    color: #fff;
    width: 100%;
    flex-shrink: 0;
    text-shadow: 2px 1px 4px rgba(0, 0, 0, 0.5);
}

.image-button__description {
    font-weight: normal;
    font-size: 16px;
    margin-top: 8px;
    padding-bottom: 10px;
}

.image-button__cta {
    color: #fff;
    font-size: 16px;
}

.js-image-button-slider .slick-slide {
    width: 256px;
    margin: 0 1px;
}

.js-image-button-slider .image-button {
    height: 200px;
}

.js-image-button-slider .image-button__hover:after {
    height: 200px;
}

.image-buttons-left-content {
    padding: 0 22px 32px;
}

.image-buttons-right-content {
    padding: 0 0 0 22px;
}

.js-image-button-slider .image-button__hover {
    padding: 32px 0 32px 32px;
}

.image-buttons-left-content .btn {
    margin-top: 16px;
}

.slider-progress-bar {
    width: 100%;
    margin-top: 9px;
}

.progress-media {
    display: block;
    width: 100%;
    height: 4px;
    border-radius: 99px;
    overflow: hidden;
    background-color: #C9D0D9;
    background-image: linear-gradient(to right, var(--teal), var(--teal));
    background-repeat: no-repeat;
    background-size: 0 100%;
    transition: background-size .4s ease-in-out;
    margin-left: 0;
}

.image-buttons-innerpage {
    margin-bottom: 48px;
}

.js-image-button-slider.slick-no-slide {
    margin-right: var(--bs-gutter-x, 21px);
}

.slick-no-slide+.slider-progress-bar {
    display: none;
}


/* Custom */
.image-button__hidden {
    margin-right: auto;
}

.image-button__hover::after {
    content: '';
    position: absolute;
    z-index: 2;
    bottom: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(25, 40, 70, 1) 0%, rgba(168, 191, 213, .13) 100%);
    opacity: 1;
    pointer-events: none;
    transition: all 0.5s ease-in-out;
}



@media (min-width: 768px) {

    .image-button-item {
        padding: 1px;
    }

    .image-button-flex li {
        width: 33.33%;

    }

    .image-button-flex li:nth-child(4),
    .image-button-flex li:last-child {
        width: 50%;
    }

    .image-buttons.count-image-4 .image-button-flex li,
    .image-buttons.count-image-4 .image-button-flex li:last-child {
        width: 50%;
    }

    .image-button {
        height: 200px;
    }

    .image-button__hover:after {
        height: 200px;

    }

    .image-button__hover {
        padding: 32px 24px;
        width: 100%;
    }

    .image-buttons-left-content .btn {
        margin-top: 0;
    }

    .image-buttons-left-content {
        padding: 0 52px 32px;
    }

    .image-buttons-right-content {
        padding: 0 0 0 52px;
    }

    .image-buttons-innerpage {
        margin-bottom: 64px;
    }

    .js-image-button-slider.slick-no-slide {
        margin-right: var(--bs-gutter-x, 52px);
    }
}

@media (min-width: 1200px) {

    .image-button-flex {
        margin: 0;
    }

    .image-button-item {
        padding: 0;
        width: 20% !important;
    }

    .image-buttons.count-image-4 .image-button-flex li,
    .image-buttons.count-image-4 .image-button-flex li:last-child {
        width: 25% !important;
    }

    .image-button {
        height: 337px;
    }

    .image-button__hover:after {
        height: 337px;

    }

    .image-button__hover {
        padding: 32px 32px 24px;
        /* align-items: end; */
    }

    .image-button__hidden {
        opacity: 0;
        max-height: 0;
        transition: all 0.5s ease-in-out;
    }

    .image-button:hover .image-button__hidden {
        opacity: 1;
        max-height: 300px;
        transition: all 0.5s ease-in-out;
    }

    .image-button:hover .image-button__hover:after {
        opacity: 0.9;
        background: transparent linear-gradient(180deg, #192846 0%, #081633 100%) 0% 0% no-repeat padding-box;
    }

    .js-image-button-slider .slick-slide {
        width: 407px;
        margin: 0;
    }

    .js-image-button-slider .slick-slide .image-button-item {
        width: 100% !important;
    }

    .js-image-button-slider .image-button {
        height: 337px;
    }

    .js-image-button-slider .image-button__hover:after {
        height: 337px;
    }

    .image-buttons-wrapper {
        display: flex;
        align-items: flex-start;
    }

    .image-buttons-left-content {
        width: 489px;
        padding: 0 35px 0 61px;

    }

    .image-buttons-right-content {
        width: calc(100% - 489px);
        padding: 0;
    }

    .image-buttons-innerpage {
        margin-bottom: 100px;
    }

    .js-image-button-slider .image-button__hover {
        padding: 32px;
    }

    .js-image-button-slider .image-button__description {
        padding-bottom: 16px;
    }

    .image-button__cta:hover {
        color: #30638E;
    }

    .js-image-button-slider.slick-no-slide {
        margin-right: var(--bs-gutter-x, 63px);
    }
}

@media (min-width: 1600px) {
    .image-button {
        height: 473px;
    }

    .image-button__hover:after {
        height: 473px;
    }

    .image-button__title {
        font-size: 24px;
    }

    .image-button__description {
        font-size: 20px;
    }

    .image-button__cta {
        font-size: 20px;
    }

    .js-image-button-slider .image-button {
        height: 370px;
    }

    .js-image-button-slider .image-button__hover:after {
        height: 370px;
    }
}


/*
 * Thank You Image buttons
 */

.page-ty .image-buttons {
    padding: 0 22px;
    margin-bottom: var(--section-margins);
}

.page-ty .image-buttons ul.image-button-flex li {
    width: 100%;
    margin-bottom: 22px;
}

@media (min-width: 768px) {
    .page-ty .image-buttons ul.image-button-flex {
        margin-left: -16px;
        margin-right: -16px;
    }

    .page-ty .image-buttons ul.image-button-flex li {
        width: 50%;
        margin: 0;
        padding: 16px;
    }
}

@media (min-width: 1200px) {
    .page-ty .image-buttons ul.image-button-flex {
        max-width: 1200px;
        margin: 0 auto;
    }

    .page-ty .image-buttons ul.image-button-flex li {
        width: 25% !important;
    }
}

@media (min-width: 1200px) and (max-width: 1300px) {
    .image-button__description {
        max-height: 200px;
        overflow-y: auto;
        padding-right: 10px;
    }

    .image-button__description::-webkit-scrollbar {
        width: 5px;
        height: 5px;
    }

    .image-button__description::-webkit-scrollbar-thumb {
        background: var(--blue);

    }

    .image-button__description::-webkit-scrollbar-track {
        background: rgb(255, 255, 255, 0.1);
    }
}

@media(min-width:2001px) {
    .image-buttons-wrapper {
        max-width: 2000px;
        margin: 0 auto;
    }
}

@media (min-width: 1200px) {
    .image-button__hover::after {
        display: none;
    }

    .image-button--link::after,
    .image-button--link::before {
        content: "";
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: transparent linear-gradient(180deg, #192846 0%, #081633 100%) 0% 0% no-repeat padding-box;
        opacity: 0;
        z-index: 1;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.3s ease-in-out,
            opacity 0.3s ease-in-out;
    }

    .image-button--link::before {
        z-index: 2;
        background: linear-gradient(to right, rgba(25, 40, 70, 1) 0%, rgba(168, 191, 213, .13) 100%);
        opacity: 1;
        transform: scaleX(1);
        transform-origin: left;
        transition: transform 0.3s ease-in-out,
            opacity 0.3s ease-in-out;
    }

    .image-buttons-grid-popup .image-button--link::before {
        background: linear-gradient(to top, rgba(25, 40, 70, 1) 0%, rgba(168, 191, 213, .13) 25%);
    }

    .image-button--link:hover::before {
        opacity: 0;
    }

    .image-button--link:hover::after {
        opacity: 0.9;
        transform: scaleX(1);
        transition: transform 0.3s ease-in-out,
            opacity 0.6s ease-in-out;
    }
}