/***
Template Style: Media
***/

.custom-ip-banner {
    margin-bottom: 6px;
    background-size: cover !important;
    position: relative;
    background-position: center;
    background-size: cover;
}

.custom-ip-banner:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
}

.custom-ip-banner canvas {
    width: 100%;
    display: block;
    min-height: 250px;
}

.custom-breadcrumbs {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
  }

.custom-breadcrumbs p {
    font-size: 14px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 24px 0;
}

#content h2 {
    font-size: 65px;
    padding: 0 !important;
    font-weight: 400;
    letter-spacing: 0;
    color: #000;
}

#content h2::after {
    top: -15px;
    left: 0;
}

/*#content h2::after {
    display: none;
}*/

#content h2 span:nth-child(1) {
    padding-left: 0;
}

#content h2 span {
    font-size: 24px;
    letter-spacing: 0.1em;
    font-weight: 500;
    font-family: var(--font-family-default);
    color: #000;
    margin-bottom: 10px;
}

.media-title {
    margin-top: -15px;
}

.media-title #content h2 {
    margin-bottom: 20px;
}

#content .entry-title {
    margin-top: 21px;
    display: flex;
}

.media-text .primary-btn {
    padding: 21px 74px;
    margin-top: 27px;
}

.media-slider {
    max-width: 1447px;
    margin: 77px auto 150px;
    display: flex;
    align-items: center;
    overflow: hidden;
} 

.ms-left {
    width: 54%;
}

.ms-img-slider {
    width: 100%;
}

.ms-item {
    padding: 1px;
    -webkit-transform: scaleY(0.88); 
    transform: scaleY(0.88);
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.ms-item a {
    position: relative;
    display: block;
}

.ms-item a:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.55);
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.ms-img-slider .slick-active .ms-item a:before {
    opacity: 0;
}

.ms-item img {
    -webkit-transition: filter 0.3s ease-in-out;
    transition: filter 0.3s ease-in-out;
}

.ms-item a:hover img, .ms-item a:focus img {
    -webkit-filter: grayscale(1); 
    filter: grayscale(1);
}

.ms-img-slider .slick-current.slick-active.slick-center .ms-item {
    -webkit-transform: scaleY(1); 
    transform: scaleY(1);
}

.ms-right {
    width: 46%;
    padding-left: 63px;
}

.ms-info-item h3 a {
    font-size: 48px;
    font-family: var(--font-family-title);
    color: #000;
}

#content .ms-info-item h3 {
    margin-bottom: 0;
}

.ms-info-item h3 a:hover, .ms-info-item h3 a:focus {
    color: var(--accent-color);
}

#content .ms-info-item p {
    line-height: 1.5 !important;
    margin-top: 4px;
}

#content .ms-info-item ul {
    list-style: none;
    margin-left: 21px;
}

#content .ms-info-item li {
    position: relative;
    margin: 8px 0;
}

#content .ms-info-item li:before {
    content: '';
    position: absolute;
    top: 11px;
    left: -21px;
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
}

.ms-nav {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.ms-nav > button {
    border: 3px solid #cbcbcb;
    width: 73px;
    height: 71px;
    background: transparent;
    position: relative;
    font-size: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ms-nav > button:before {
    content: '';
    width: 12px;
    height: 14px;
    background: url(../../images/media/media-arrow.png) no-repeat;
    display: inline-block;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.ms-nav > button.ms-slider-next:before {
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
}

.ms-nav > button.ms-slider-prev {
    margin-right: 9px;
}

.ms-nav > button:hover, .ms-nav > button:focus {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.ms-nav > button:hover:before, .ms-nav > button:focus:before {
    -webkit-filter: invert(1);
    filter: invert(1);
}

.ms-mag {
    display: flex;
    max-width: 1282px;
    margin: 83px auto;
    overflow: hidden;
}

.ms-mag.mag-rev {
    flex-direction: row-reverse;
}

.ms-mag-left {
    width: 51%;
}

.ms-mag-right {
    width: 49%;
}

.ms-mag p {
    line-height: 1.5 !important;
    margin: 24px 0 !important;
}

#content .ms-mag h2 {
    margin-bottom: 23px;
}

.ms-mag a.primary-btn {
    padding: 21px 62px;
    margin-top: 30px;
}

.ms-mag-left {
    padding-right: 50px;
}

.ms-mag.mag-rev .ms-mag-left {
    padding-right: 0;
    padding-left: 65px;
}

.ms-top {
    margin-top: 102px;
}

#content .ms-top h2 {
    display: block;
    margin-bottom: 58px;
}

#content .ms-top p {
    margin-top: 44px;
}

.ms-mm {
    margin: 114px 0 80px;
}

.ms-mm .primary-btn {
    padding: 22px 47px;
}

#content .ms-mm p {
    max-width: 980px;
    margin: 26px auto 55px;
}

.ms-imgs {
    display: flex;
    max-width: 1337px;
    margin: 114px auto 57px;
    position: relative;
    justify-content: space-between;
}

.ms-img:nth-child(2) {
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    margin: auto;
    z-index: 1;
}

.ms-img {
    width: 41%;
}

.ms-img a {
    display: block;
    border: 2px solid #fff;
    font-size: 0;
    position: relative;
}

.ms-img a:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: transparent url(../../images/media/media-logo.png) center center no-repeat;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    opacity: 0.8;
}

.ms-img a:hover:before, .ms-img a:focus:before {
    background-color: rgba(22, 55, 136, 0.6);
}

/* SIGN UP POPUP FORM */
.page-template-media .aiosp-wrap .aiosp-container .aios-popup-body {
    /*max-width: 600px;*/
    min-height: auto;
    padding: 50px 20px;
    text-align: center;
}
.media_form_logo {
    font-size: 0;
}
    .media_form_logo img {
        filter: brightness(1) invert(1);
    }
.media_form_title {
    margin: 30px 0;
}
.media_contact_form {
    font-size: 0;
    position: relative;
}
    .signup_field {
        width: 75%;
        padding-right: 20px;
        display: inline-block;
        vertical-align: top;
    }
        .media_contact_form input[type=email] {
            width: 100%;
            height: 73px;
            border: none;
            background: transparent;
            border-bottom: 1px solid #000000;
            padding: 0 10px;
            font-size: 14px;
            letter-spacing: 0.05em;
            color: #000000;
        }
     .signup_submit {
        width: 25%;
        display: inline-block;
        vertical-align: top;
    }
        .media_contact_form input[type=submit] {
            width: 100%;
            height: 73px;
            font-size: 16px;
            border: 3px solid #000000;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            display: flex;
            align-items: center;
            justify-content: center;
            background: transparent;
            color: #000000;
        }
        .media_contact_form input[type=submit]:hover,
        .media_contact_form input[type=submit]:focus {
            background: #000;
            border-color: #000;
            color: #fff;
        }
    .media_contact_form .ajax-loader, .media_contact_form .wpcf7-spinner {
        position: absolute;
        left: 0;
        right: 0;
        margin: 0 auto !important;
        bottom: -50px;
    }
    .media_contact_form .wpcf7-form-control-wrap {
        display: block;
    }
    .media_contact_form .use-floating-validation-tip span.wpcf7-not-valid-tip {
        width: auto;
        max-width: 100%;
        font-size: 12px;
        position: absolute;
        top: 10px;
    }
    .media_contact_form div.wpcf7-response-output,
    .media_contact_form .wpcf7 form .wpcf7-response-output {
        position: absolute;
        left: 0;
        right: 0;
        margin: 3px auto 0;
        color: #000000 !important;
        font-size: 12px;
        text-align: center;
    }


/*** POPUP ***/
.aiosp-content.aios-popup-body {
    max-width: 963px;
}

.sellers-popup-logo img {
    filter: invert(1);
}

.sellers-popup-heading h3 {
    font-size: 29px;
    font-family: var(--font-family-title);
    color: #000;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.2;
    margin-top: 36px;
}

.sellers-popup-heading h3 span {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-family: var(--font-family-default);
    letter-spacing: 0.1em;
}

.wpcf7-response-output {
    color: #000 !important;
}

.sellers-popup-heading h3 span::after {
    content: '';
    width: 62px;
    height: 2px;
    background: #2359e0;
    margin-left: 13px;
}

.sellers-popup-contacts {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sellers-popup-contacts ul {
    font-size: 0;
}

.sellers-popup-contacts {
    font-size: 14px;
    letter-spacing: 0.1em;
    margin-top: 12px;
}

.sellers-popup-contacts a:hover,
.sellers-popup-contacts a:focus {
    color: #2359e0;
}

.sellers-popup-contacts i {
    font-size: 11px;
    margin-right: 16px;
    color: #2359e0;
}

.sellers-popup-contacts > div {
    margin-right: 22px;
}

.sellers-popup-contacts ul i {
    font-size: 17px;
    margin-right: 0;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.sellers-popup-contacts ul a :hover i,
.sellers-popup-contacts ul a :focus i {
    color: #515151;
}

.sellers-popup-contacts ul li:not(:last-of-type) {
    margin-right: 15px;
}

.sellers-popup {
    padding: 35px 0 67px;
}

.sellers-popup-form {
    max-width: 695px;
    margin: 30px auto 0;
}

.sellers-popup-form .wpcf7-response-output {
    color: #000;
}

.spu-row {
    display: flex;
    justify-content: space-between;
}

.spu-row > div {
    width: calc(50% - 12px);
}

.sellers-popup-form input, .sellers-popup-form textarea {
    width: 100%;
    border: none;
    font-size: 14px;
    letter-spacing: 0.05em;
    padding: 0;
    height: 65px;
    border-bottom: 2px solid #515151;
}

.sellers-popup-form input[type="checkbox"] {
    width: 100%;
    border: none;
    font-size: 14px;
    letter-spacing: 0.05em;
    padding: 0;
    height: auto;
    border-bottom: 2px solid #515151;
}

.sellers-popup-form textarea {
    padding-top: 24px;
    resize: none;
}

.sellers-popup-form input[type="submit"] {
    font-size: 14px;
    background: #fff;
    border: 2px solid #cbcbcb;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    width: 100%;
    max-width: 185px;
    margin: 36px auto 0;
    padding: 15px;
}

.aiosp-bg {
    background: #000 !important;
}

.ms-left-l {
    width: 70%;
}
.ms-right-s {
    width: 30%;
}

.ms-right-s img {
    margin-top: 40px;
}

/*** Media Queries ***/
@media only screen and (max-width: 1199px) {
    .media-slider {
        align-items: flex-start;
    }

    .ms-left {
        margin-top: 70px;
    }
}

@media only screen and (max-width: 991px) {
    .media-slider {
        align-items: center;
        flex-direction: column;
    }

    .media-slider {
        margin: 0 auto 150px;
    }

    .ms-left {
        width: 100%;
        max-width: 500px;
        font-size: 0;
    }

    .ms-right {
        width: 100%;
        padding-left: 0;
        max-width: 500px;
        margin-top: 0;
    }

    #content .ms-info-item h3 {
        text-align: center;
        margin-top: 0;
    }

    #content .ms-info-item p {
        text-align: center;
    }

    .ms-nav {
        justify-content: center;
    }

    .ms-mag, .ms-mag.mag-rev {
        flex-direction: column-reverse;
        text-align: center;
    }

    .ms-mag-left {
        padding-right: 0;
        width: 100%;
        max-width: 800px;
        margin: auto;
    }

    .ms-mag.mag-rev .ms-mag-left {
        padding-left: 0;
    }

    .ms-mag-right {
        width: 100%;
        max-width: 500px;
        margin: auto;
    }
    
    .ms-item {
        -webkit-transform: scaleY(1);
        transform: scaleY(1);
    }

    .ms-img:nth-child(2) {
        position: relative;
        top: 0;
    }

    .ms-imgs {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .ms-img {
        width: 100%;
        max-width: 400px;
    }

    .sellers-popup-logo img {
        max-width: 60px;
    }

    .sellers-popup-contacts > div {
        margin-right: 12px;
    }

    .sellers-popup-heading h3 {
        font-size: 20px;
    }


.ms-mag img,
.ms-img img {
    width: 100%;
    height: auto;
}

}
@media only screen and (max-width: 767px) {
    .signup_field, .signup_submit {
        width: 100%;
        padding: 0;
    }
    .signup_submit {
        margin-top: 20px;
    }
    .sellers-popup-contacts {
        flex-direction: column;
        justify-content: center;
    }

    .sellers-popup-contacts > div {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .aiosp-wrap .aiosp-container .aios-popup-body {
        background: #fff;
        width: 95%;
        margin: 0 auto;
        padding: 10px 15px;
        min-height: 500px;
    }
}
@media only screen and (max-width: 480px) {
    .ms-info-item h3 a {
        font-size: 35px;
    }

    #content h2 {
        font-size: 45px;
    }

    #content h2 span {
        font-size: 18px;
    }

    #content .ms-mag h2 {
        margin-bottom: 0;
    }

    .ms-img a::before {
        background-size: 50px;
    }

    .custom-breadcrumbs p {
        margin: 10px 0;
    }

    .ms-mm .primary-btn {
        padding: 22px 22px;
        font-size: 12px;
    }
}