/*******************************************************
 *
 * Testimonials V2
 *
 *******************************************************/
.ip-banner {
    display: none;
}

footer.footer {
    padding-top: 0;
}

#inner-page-wrapper {
    margin-bottom: 0;
}

#inner-page-wrapper > .container {
    width: 100%;
    padding: 0;
}

.custom-banner, .custom-banner-img, .custom-banner-img canvas {
    display: block;
    position: relative;
}

.custom-banner-img canvas {
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: .65;
    min-height: 250px;
}

.custom-banner-img,.custom-banner-img canvas {
    border-bottom-left-radius: 80px;
    border-bottom-right-radius: 80px;
}

.custom-banner:before {
    position: absolute;
    content: '';
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background-color: #fcf7f3;
    z-index: -1;
    pointer-events: none;
}

.custom-banner-img {
    background-color: #000;
}

.custom-breadcrumbs {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 1390px;
    margin: 0 auto;
    padding: 0 15px;
    z-index: 5;
}

.custom-breadcrumbs p#breadcrumbs {
    color: #fff;
    text-transform: uppercase;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.200em;
}

.custom-breadcrumbs p#breadcrumbs a {
    color: inherit;
    -webkit-transition: 0.3s all ease-in-out;
    -o-transition: 0.3s all ease-in-out;
    transition: 0.3s all ease-in-out;
}

.custom-breadcrumbs p#breadcrumbs a:hover {
    color: var(--primary);
}

.custom-breadcrumbs span.breadcrumb_last {
    color: var(--primary);
}

.ss-smi {
    position: fixed;
    top: 0;
    bottom: 0;
    text-align: center;
    color: #fff;
    right: 50px;
    z-index: 1000;
}

.ss-smi-inner {
    position: relative;
}

.ss-smi a {
    display: block;
    font-size: 20px;
    color: inherit;
    margin-bottom: 26px;
    -webkit-transition: color var(--default-transition);
    -o-transition: color var(--default-transition);
    transition: color var(--default-transition);
    text-shadow: 0 2px 3px rgba(0,0,0,.50);
}

.ss-smi a:hover {
    color: var(--primary);
}

.ss-smi a i.ai-font-phone {
    font-size: 16px;
}

.ss-smi a i.ai-font-envelope-f {
    font-size: 10px;
}

.ss-smi a:last-child {
    margin-bottom: 0;
}

.ss-smi .-line {
    width: 1px;
    height: 50px;
    display: block;
    margin: 0 auto 30px;
    background: #fff;
    -webkit-box-shadow: 0 2px 3px rgba(0,0,0,.50);
    box-shadow: 0 2px 3px rgba(0,0,0,.50);
}

[class*="ai-icon-"] {
    display: inline-block;
    vertical-align: middle;
    width: auto;
    height: auto;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    -webkit-transition: all var(--default-transition);
    -o-transition: all var(--default-transition);
    transition: all var(--default-transition);
}

.attachment-scroll {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.attachment-scroll canvas {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.site-img {
    display: block;
    position: relative;
}

.site-img canvas {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.site-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center;
    object-position: center;
    z-index: 1;
    -webkit-transition: all var(--default-transition);
    -o-transition: all var(--default-transition);
    transition: all var(--default-transition);
}

#ip-testimonials {
    font-size: 0;
    letter-spacing: normal;
    line-height: 1;
    background-color: #fcf7f3;
}

.ip-testi-container, .ip-testi-main, .ip-testi-title, .ip-testi-list, .ip-testi-list-item, .ip-testi-item, .ip-testi-item a, .ip-testi-content {
    display: block;
    position: relative;
}

.ip-testi-main {
    width: 100%;
}

.ip-testi-title {
    text-align: center;
    margin-bottom: 60px;
}

.ip-testi-item {
    height: 100%;
}

.ip-testi-content {
    padding: 50px 30px;
    height: 100%;
}
.ip-testi-item .ip-testi-content a {
    display: inline;
    background: none;
}


.aiosp-content.aios-popup-body div {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    letter-spacing: 0.02em;
    line-height: 30px;
    color: #000;
    margin: 30px 0;   
    padding: 0 30px

}

.ip-testi-container {
    padding: 110px 0 70px;
}

.ip-testi-title h2 {
    display: inline-block;
    position: relative;
}

.ip-testi-title h2 small {
    display: inline-block;
    position: relative;
    font-size: 24px;
    line-height: 1;
    letter-spacing: 0.500em;
    color: #333333;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.ip-testi-title h2 span {
    display: block;
    font-size: 120px;
    line-height: 1;
    font-family: var(--font-family-title);
    color: #333333;
}

.ip-testi-title h2 span em {
    color: var(--primary);
}

.ip-testi-title h2 small:before, .ip-testi-title h2 small:after {
    position: absolute;
    content: '';
    top: 50%;
    right: calc(100% + 20px);
    height: 1px;
    width: 200px;
    background-color: var(--secondary);
}

.ip-testi-title h2 small:after {
    right: auto;
    left: calc(100% + 20px);
}

.ip-testi-col {
    display: inline-block;
    vertical-align: middle;
    width: 50%;
    position: relative;
    padding: 0 32px;
}

.ip-testi-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 100%;
    max-width: 1384px;
    margin: 0 auto;
}

.ip-testi-content p {
    font-size: 14px;
    line-height: 30px;
    letter-spacing: 0.020em;
    color: #666666;
    width: 100%;
    max-width: 498px;
    margin: 0 auto;
}

.ip-testi-item.is-video a, .ip-testi-content, .ip-testi-vid-img, .ip-testi-vid-img canvas, .ip-testi-vid-img img, .ip-testi-vid-img:before {
    border-radius: 20px;
}

.ip-testi-content {
    border: 1px solid #002349;
    text-align: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.ip-testi-author {
    font-size: 24px;
    line-height: 1;
    font-style: italic;
    color: var(--secondary);
    font-family: var(--font-family-title);
    display: block;
    margin: 40px auto 10px;
}

.ip-testi-content img {
    max-width: 100%;
    height: auto;
}

.ip-testi-vid-img span.ai-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
    width: 107px;
    height: 107px;
    z-index: 5;
    background-color: rgba(193,154,61,.80);
    border-radius: 50%;
}

.ip-testi-vid-img span.ai-play-btn:before {
    position: absolute;
    content: '';
    top: 50%;
    left: 54%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-top: 19px solid transparent;
    border-bottom: 19px solid transparent;
    border-left: 25px solid #fff;
}

.ip-testi-vid-img span.ai-play-btn:after {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: -10px;
    border: 1px solid rgba(255,255,255,.50);
    border-radius: 50%;
}

.ip-testi-vid-img {
    background-color: #000;
    overflow: hidden;
    height: 100%;
    width: 100%;
}

.ip-testi-item a:hover .ip-testi-vid-img img {
    opacity: .75;
}

.ip-testi-item a {
    background-color: #000;
    height: 100%;
    width: 100%;
}

.ip-testi-vid-img img {
    -webkit-transform: scale(1.11);
    -ms-transform: scale(1.11);
    transform: scale(1.11);
    opacity: .90;
}

.ip-testi-control {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin: 70px auto 0;
}

.ip-testi-pagination ul li {
    display: inline-block;
    vertical-align: middle;
    position: relative;
}

.ip-testi-pagination ul li a {
    font-size: 14px;
    line-height: 1;
    color: #676767;
    font-weight: 500;
    -webkit-transition: 0.3s all ease-in-out;
    -o-transition: 0.3s all ease-in-out;
    transition: 0.3s all ease-in-out;
}

.ip-testi-pagination ul li:not(:last-child) {
    margin-right: 20px;
}

.ip-testi-pagination ul li.active a, .ip-testi-pagination ul li:hover a {
    color: var(--primary);
}

.ip-testi-pagination ul li.active, .ip-testi-pagination ul li.ellipsis {
    pointer-events: none;
}

.ip-testi-pagination {
    display: inline-block;
    vertical-align: middle;
    position: relative;
    margin: 0 28px;
}

.ip-testi-control button,
.ip-testi-control .btn {
    display: inline-block;
    vertical-align: middle;
    position: relative;
}

.ip-testi-control button,
.ip-testi-control .btn {
    border: none;
    padding: 0;
    background-color: transparent;
    -webkit-transition: 0.3s all ease-in-out;
    -o-transition: 0.3s all ease-in-out;
    transition: 0.3s all ease-in-out;
}

.ip-testi-control button:hover,
.ip-testi-control .btn:hover {
    opacity: .75;
}

.ip-testi-control button em.ai-icon-arrow,
.ip-testi-control .btn em.ai-icon-arrow {
    background-image: url(../../images/about-amber-anderson-v2/ai-arrow-icon.png);
    width: 30px;
    height: 13px;
}

.ip-testi-control .prev {
    -webkit-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    transform: rotate(180deg);
}

.ip-testi-control .prev em.ai-icon-arrow {
    -webkit-filter: invert(1) brightness(0);
    filter: invert(1) brightness(0);
}

.ip-testi-vid-img:before {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary);
    z-index: 3;
}

.ip-testi-list-item:nth-child(even) .ip-testi-row {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: reverse;
    -ms-flex-direction: row-reverse;
    flex-direction: row-reverse;
}

.ip-testi-list-item:nth-child(even):before {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-color: var(--secondary);
    border-top-left-radius: 90px;
    border-top-right-radius: 90px;
}

.ip-testi-list-item:nth-child(even) .ip-testi-content {
    border-color: rgba(255,255,255,.40);
}

.ip-testi-list-item:nth-child(even) .ip-testi-content p {
    color: #fff;
}

.ip-testi-list-item:nth-child(even) .ip-testi-author {
    color: #fff;
}

.ip-testi-list-item {
    padding: 113px 0;
}

.ip-testi-list-item:first-child {
    padding-top: 0;
}

.ip-testi-list-item:last-child {
    padding-bottom: 0;
}

.ip-testi-list-item:last-child .ip-testi-col:last-child .ip-testi-content p {
    max-width: 530px;
}

/*******************************************************
 *
 * Mobile styles and other media queries
 *
 *******************************************************/
@media only screen and (max-width: 1560px) {
    .custom-breadcrumbs {
        max-width: 1280px;
    }

    .ss-smi {
        right: 30px;
    }

    .ip-testi-col {
        padding: 0 25px;
    }

    .ip-testi-row {
        max-width: 1318px;
    }

    .ip-testi-title h2 span {
        font-size: 100px;
    }

    .ip-testi-title h2 small {
        font-size: 20px;
    }
}

@media only screen and (max-width: 1440px) {
    .ip-testi-col {
        padding: 0 20px;
    }

    .ip-testi-list-item {
        padding: 100px 0;
    }

    .ip-testi-row {
        max-width: 100%;
        padding: 0 70px;
    }

    .ip-testi-content p {
        font-size: 13px;
        line-height: 2;
    }

    .ip-testi-content {
        padding: 40px 20px;
    }
}

@media only screen and (max-width: 1366px) {
    .custom-breadcrumbs {
        max-width: 1200px;
    }

    .ss-smi {
        right: 20px;
    }

    .ip-testi-col {
        padding: 0 15px;
    }

    .ip-testi-row {
        padding: 0 60px;
    }

    .ip-testi-author {
        font-size: 20px;
        margin: 30px auto 10px;
    }

    .ip-testi-title h2 span {
        font-size: 90px;
    }

    .ip-testi-title h2 small {
        font-size: 18px;
    }

    .ip-testi-title h2 small:before, .ip-testi-title h2 small:after {
        width: 145px;
    }
}

@media only screen and (max-width: 1280px) {
    .custom-breadcrumbs {
        max-width: 1140px;
    }

    .ss-smi {
        right: 20px;
    }

    .ip-testi-row {
        padding: 0 50px;
    }

    .ip-testi-list-item {
        padding: 90px 0;
    }

    .ip-testi-content p {
        font-size: 12px;
    }

    .ip-testi-content {
        padding: 30px 15px;
    }
}

/* iPad(landscape) | iPad(landscape) | Galaxy Tab 4 (landscape) | Galaxy Tab 3 (landscape) */
@media only screen and (max-width: 1199px) {
    .custom-breadcrumbs {
        max-width: 900px;
    }

    .ss-smi {
        right: 20px;
    }

    .ip-testi-vid-img span.ai-play-btn {
        width: 90px;
        height: 90px;
    }

    .ip-testi-vid-img span.ai-play-btn:before {
        border-top: 16px solid transparent;
        border-bottom: 16px solid transparent;
        border-left: 22px solid #fff;
    }

    .ip-testi-vid-img span.ai-play-btn:after {
        margin: -8px;
    }

    .ip-testi-container {
        padding: 70px 0 50px;
    }

    .ip-testi-title h2 small {
        font-size: 16px;
    }

    .ip-testi-title h2 span {
        font-size: 80px;
    }

    .ip-testi-row {
        padding: 0 40px;
    }

    .ip-testi-list-item {
        padding: 70px 0;
    }

    .ip-testi-list-item:nth-child(even):before {
        border-top-left-radius: 80px;
        border-top-right-radius: 80px;
    }

    .ip-testi-author {
        font-size: 18px;
        margin: 25px auto 5px;
    }

    .ip-testi-control {
        margin: 50px auto 0;
    }

    .ip-testi-content p {
        line-height: 1.8;
    }

    .ip-testi-content {
        padding: 20px 15px;
    }

    .ip-testi-col {
        padding: 0 10px;
    }
}

/* iPad(portrait) | Galaxy Tab 4(portrait)  */
@media only screen and (max-width: 991px) {
    .custom-banner-img, .custom-banner-img canvas {
        border-bottom-left-radius: 50px;
        border-bottom-right-radius: 50px;
    }

    .custom-breadcrumbs {
        max-width: 100%;
        padding: 0 30px;
    }

    .custom-breadcrumbs p#breadcrumbs {
        letter-spacing: 0.150em;
        font-size: 11px;
    }

    .ss-smi {
        display: none;
    }

    .ip-testi-title h2 span {
        font-size: 45px;
    }

    .ip-testi-title h2 small {
        font-size: 14px;
        letter-spacing: 0.300em;
        margin-bottom: 6px;
    }

    .ip-testi-title h2 small:before, .ip-testi-title h2 small:after {
        width: 60px;
        right: calc(100% + 10px);
    }

    .ip-testi-title h2 small:after {
        right: auto;
        left: calc(100% + 10px);
    }

    .ip-testi-row {
        padding: 0 15px;
        max-width: 500px;
        margin: 0 auto;
        display: block;
    }

    .ip-testi-col {
        padding: 0;
        width: 100%;
    }

    .ip-testi-vid-img canvas, .ip-testi-content {
        min-height: 300px;
    }

    .ip-testi-col:not(:last-child) {
        margin-bottom: 40px;
    }

    .ip-testi-list-item {
        padding: 40px 0;
    }

    .ip-testi-list-item:nth-child(even):before {
        border-top-left-radius: 50px;
        border-top-right-radius: 50px;
    }

    .ip-testi-control {
        margin: 40px auto 0;
    }

    .ip-testi-pagination {
        margin: 0 25px;
    }

    .ip-testi-pagination ul li:not(:last-child) {
        margin-right: 15px;
    }

    .ip-testi-title {
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .ip-testi-vid-img span.ai-play-btn {
        width: 70px;
        height: 70px;
    }

    .ip-testi-vid-img span.ai-play-btn:before {
        border-top: 14px solid transparent;
        border-bottom: 14px solid transparent;
        border-left: 20px solid #fff;
    }

    .ip-testi-title h2 span {
        font-size: 40px;
    }

    .ip-testi-title h2 small:before, .ip-testi-title h2 small:after {
        width: 50px;
    }

    .ip-testi-content {
        padding: 40px 15px;
    }

    .ip-testi-author {
        font-size: 22px;
    }

    .ip-testi-content p {
        font-size: 13px;
    }

    .ip-testi-container {
        padding: 60px 0 50px;
    }
}

/* Galaxy Tab 3(portrait) | Galaxy S5(landscape) */
@media only screen and (max-width: 767px) {
}

/* Galaxy S5(portrait) | iPod Touch(landscape) | iPod Touch(portrait) */
@media only screen and (max-width: 480px) {
    .ip-testi-vid-img canvas {
        min-height: 250px;
    }
}
