.at-carouselBlock {
    overflow: hidden; /** To hide vertical borders */
    background: #f2f9fb;
}

.at-carouselBlock__head {
    position: relative;
    padding: 0 5% 15px;
}

.at-carouselBlock__head::before {
    content: '';
    position: absolute;
    left: calc(50% - 15px);
    bottom: -16px;
    width: 0;
    height: 0;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-top: 16px solid #0081ab;
    z-index: 1;
}

.at-carouselBlock__textWrapper {
    overflow: hidden;
    max-width: 42em;
    margin: 0 auto;
    text-align: center;
}

.at-carouselBlock__title {
    font-size: 1.5em;
}

@media screen and (min-width: 1200px) {
    .at-carouselBlock__head {
        padding-bottom: 45px;
    }

    .at-carouselBlock__head::before {
        left: calc(50% - 35px);
        bottom: -35px;
        border-left-width: 35px;
        border-right-width: 35px;
        border-top-width: 35px;
    }
}

.at-carouselBlock__head strong {
    color: #eaaf0f;
}

/**
 * Slider
 */

.has-js .at-carouselBlock__content {
    overflow: hidden;
    min-height: 100%;
    position: relative;
}

.at-carouselBlock__content {
    -webkit-overflow-scrolling: touch;
    padding: 45px 0;
    white-space: normal;
    position: relative;
}

@media screen and (min-width: 1200px) {
    .at-carouselBlock__content {
        padding-top: 60px;
    }
}

/**
*   Items
*/

.at-carouselBlock__item {
    padding: 0 3%;
}

.at-carouselBlock__item:before {
    content:'';
    position: absolute;
    bottom: -100%;
    top: -100%;
    width: 1px;
    margin-left: -3%;
    background-image: linear-gradient(to top, #002b5a 20%, rgba(255, 255, 255, 0) 0%);
    background-position: left;
    background-size: 1px 5px;
    background-repeat: repeat-y;
}

.at-carouselBlock__item--first:before {
    display: none;
}

.at-carouselBlock__item {
    display: inline-block;
    vertical-align: top;
    font-size: 21px;
    line-height: 1.25;
    width: 100%;
}

@media screen and (min-width: 480px) and (max-width: 699px) {
    .l-width--50:first-child .at-carouselBlock__item,
    .l-width--50:only-child .at-carouselBlock__item,
    .l-width--50 + .l-width--50 .at-carouselBlock__item,
    .l-width--75:not(.at-carouselBlock--smaller) .at-carouselBlock__item,
    .l-width--100 .at-carouselBlock__item {
        width: 50%;
    }
}

@media screen and (min-width: 700px) and (max-width: 1199px) {
    .l-flexItem:only-child .at-carouselBlock--3 .at-carouselBlock__item,
    .l-flexItem:only-child .at-carouselBlock--4 .at-carouselBlock__item,
    .l-flexItem:only-child .at-carouselBlock--5 .at-carouselBlock__item,
    .l-width--50:first-child .at-carouselBlock__item,
    .l-width--75 .at-carouselBlock--3 .at-carouselBlock__item,
    .l-width--100 .at-carouselBlock--3 .at-carouselBlock__item,
    .l-width--75 .at-carouselBlock--4 .at-carouselBlock__item,
    .l-width--100 .at-carouselBlock--4 .at-carouselBlock__item,
    .l-width--75 .at-carouselBlock--5 .at-carouselBlock__item,
    .l-width--100 .at-carouselBlock--5 .at-carouselBlock__item {
        width: 33.333%
    }

    .at-carouselBlock__item,
    .l-width--50:only-child .at-carouselBlock__item,
    .l-width--75.at-carouselBlock--smaller .at-carouselBlock--3 .at-carouselBlock__item,
    .l-width--75.at-carouselBlock--smaller .at-carouselBlock--4 .at-carouselBlock__item,
    .l-width--75.at-carouselBlock--smaller .at-carouselBlock--5 .at-carouselBlock__item {
        width: 50%;
    }
}

@media screen and (min-width: 1200px) {
    .at-carouselBlock__item {
        width: 50%;
    }

    .at-carouselBlock--3 .at-carouselBlock__item,
    .at-carouselBlock--4 .at-carouselBlock__item,
    .at-carouselBlock--5 .at-carouselBlock__item {
        width: 33.333%
    }

    .l-width--100 .at-carouselBlock--4 .at-carouselBlock__item,
    .l-flexItem:only-child .at-carouselBlock--4 .at-carouselBlock__item {
        width: 25%
    }

    .l-width--100 .at-carouselBlock--5 .at-carouselBlock__item,
    .l-flexItem:only-child .at-carouselBlock--5 .at-carouselBlock__item {
        width: 20%
    }
}

.at-carouselBlock__itemTitle {
    overflow: hidden;
    height: 2.5em; /** line-height x 2 */
    margin: 0.7em 0;
    text-align: center;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: initial;
    white-space: pre-wrap;
}

.at-carouselBlock__imageWrapper {
    margin: 0 auto;
    transition: 0.2s;
}

.at-carouselBlock__imageWrapper--photo {
    width: 160px;
    height: 160px;
}

.at-carouselBlock__imageWrapper--icon {
    width: 90px;
    height: 90px;
}

.at-carouselBlock__imageWrapper--roundedIcon {
    padding: 15px;
    border-radius: 50%;
    background-color: #fff;
}

.theme-white .at-carouselBlock__imageWrapper--roundedIcon {
    background-color: #d9ecf3;
}

.at-carouselBlock__image {
    display: block;
    margin: 0;
}

.at-carouselBlock__image--rounded {
    border-radius: 50%;
}

.at-carouselBlock__itemContent {
    margin-top: 30px;
    padding-top: 28px;
    font-size: 0.85em;
    background: transparent url(../../img/wave-blue.png) repeat-x 0 0;
    background-size: 14px;
    white-space: normal;
}

.at-carouselBlock__item p {
    margin-bottom: 0.75em;
}

/**
*   Optimize links
*/

.at-carouselBlock__item a {
    position: relative;
    max-width: 100%;
    margin-left: 1em;
    overflow: hidden;
    border-bottom: 1px solid;
    font-family: 'Futurapt Bold', sans-serif;
    font-size: 0.85em;
    text-overflow: ellipsis;
    text-decoration: none;
    color: #0081ab;
    cursor: pointer;
}

.at-carouselBlock__item a::before {
    content: '\27a1';
    display: inline-block;
    font-family: 'icons';
    margin-left: -1em;
    margin-right: .2em;
    transition: 0.15s;
}

.at-carouselBlock__item a:hover::before {
    transform: translate(0.15em, 0);
}

.at-carouselBlock__item a[target=_blank]::before {
    content: '\2197';
    margin-right: -0.1em;
}

.at-carouselBlock__item a[target=_blank]:hover::before {
    transform: translate(0.15em, -0.15em);
}

/**
 * lory styles
*/

.frame {
    white-space: nowrap;
    font-size: 0;
    line-height: 0;
    min-height: 100%;
}

.slides {
    display: inline-block;
    width: 100%;
    padding-left: 0;
    min-height: 100%;
}

.no-js .slides {
    overflow: auto;
}

/**
 * Next and previous arrows
 */

.at-carouselBlock .prev,
.at-carouselBlock .next {
    position: absolute;
    top: 0;
    bottom: 0;
    display: block;
    width: 45px;
    margin-top: -25px;
    cursor: pointer;
    background-color: inherit;
    text-align: center;
}

.at-carouselBlock .next {
    right: 0;
}

.at-carouselBlock .prev {
    left: 0;
}

.at-carouselBlock .next svg,
.at-carouselBlock .prev svg {
    width: 25px;
    position: absolute;
    top: 50%;
    transform:  translateY(-50%);
    left: 10px;
}

@media screen and (min-width: 480px) {
    .at-carouselBlock__content--noHidden3 .prev,
    .at-carouselBlock__content--noHidden3 .next {
        display: none;
    }
}

@media screen and (max-width: 699px) {
    .l-width--100 .at-carouselBlock__content--noHidden3 .prev,
    .l-width--100 .at-carouselBlock__content--noHidden3 .next {
        display: block;
    }
}

/** show arrows for more than .. items */
@media screen and (max-width: 1199px) {
    .at-carouselBlock__content--noHidden4 .frame,
    .at-carouselBlock__content--noHidden5 .frame {
        position: relative;
        left: 45px;
        margin-right: 90px;
    }
}

@media screen and (min-width: 480px) and (max-width: 1199px) {
    .at-carouselBlock__content--noHidden2 .prev,
    .at-carouselBlock__content--noHidden2 .next {
        display: none;
    }
}

@media screen and (min-width: 1200px) {
    .at-carouselBlock__content--noHidden .prev,
    .at-carouselBlock__content--noHidden .next {
        display: none;
    }
}

/**
 * Extra space for arrows
 */

.at-carouselBlock__content--hasHidden .frame {
    position: relative;
    left: 45px;
    margin-right: 90px;
}

@media screen and (max-width: 479px) {
    .at-carouselBlock__content .frame {
        position: relative;
        left: 45px;
        margin-right: 90px;
    }
}