/*******************************************************
 *
 * American Dream TV
 *
 *******************************************************/

.img-photo{
    position: relative;
    overflow: hidden;
}
.img-photo canvas{
    display: block;
    width: 100%;
    height: auto;
}
.img-photo img{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    -o-object-fit: cover;
       object-fit: cover;
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
}
.img-photo iframe,
.img-photo video {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0
    }

.ip-content-insider-heading h2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.site-title strong {
    font-weight: 600 !important;
}
.page-template-american-dream #inner-page-wrapper > .container {
    width: 100%;
    padding: 0;
}
.page-template-american-dream #inner-page-wrapper {
    margin: 0;
}
/*Welcome*/
.ip-adtv-welc {
    padding: 0 15px;
}
.ip-adtv-welc:before {
    position: absolute;
    content: '';
    width: 94px;
    height: 660px;
    left: 0;
    top: 85px;
    background: url('../../images/american-dream/welc-accent.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    z-index: -1;
}
.ip-adtv-welc-inner {
    width: 100%;
    max-width: max(1270px, 79.375vw);
    margin: 0 auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: start;
    padding: 85px 0 0;
}
.ip-adtv-welc-left {
    width: calc(100% - calc((691/1270)*100%));
    padding-left: clamp(20px, 3.75vw,60px);
    padding-right: clamp(20px, 3.75vw,60px);
    padding-top: 40px;
    padding-bottom: 40px;
    background: #fff;
}
.ip-adtv-welc-right {
    width: calc((691/1270)*100%);
    position: relative;
}

.ip-adtv-welc-text p {
    line-height: 30px;
    margin-top: 28px;
}
.ip-adtv-welc-right:before {
    content: '';
    position: absolute;
    width: calc(100% - 4px);
    height: 100%;
    right: -58px;
    bottom: -70px;
    background: url('../../images/american-dream/welcome-photo-accent.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.ip-adtv-welc-btn a {
    margin: 0 auto;
}
.ip-adtv-welc-btn {
    display: block;
    text-align: center;
    margin: 30px auto;
}
/*behind*/
.ip-adtv-bts-gallery {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    padding-top: 80px;
    margin-top: 70px;
    position: relative;
}
.ip-adtv-bts-gallery:before {
    position: absolute;
    content: '';
    top: 0;
    right: 0;
    width: calc((1316/1600)*100%);
    height: 220px;
    background: url('../../images/american-dream/gallery-accent-min.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.bts-gallery-col {
    width: calc((525/1600)*100%);
}
.bts-gallery-photo {
    margin-bottom: clamp(8px, 0.938vw,15px);
}
.ip-adtv-bts-inner .site-title {
    margin: 0 auto;
    display: block;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
}
.ip-adtv-bts {
    padding-top: 85px;
}
/*video*/

.adtv-video-main {
    position: relative;
    padding: 0 20px;
}
.adtv-video-main:before {
    position: absolute;
    content: '';
    width: 100%;
    height: calc((539/900)*100%);
    bottom: 0;
    left: 0;
    background: url('../../images/american-dream/vid-accent-min.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.adtv-video-main-inner {
    width: 100%;
    max-width: max(1270px, 79.375vw);
    margin: 0 auto;
    padding: 110px 0 60px;
}
.video-main-nav {
    margin-top: 70px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}
.video-main-nav .vid-nav-prev {
    -webkit-transform: rotateY(180deg);
            transform: rotateY(180deg);
}
.video-main-nav > div {
    margin: 0 30px;
}
.play-video {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
    width: 135px;
    height: 135px;
    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;
    border-radius: 50%;
    border: 2px solid #fff;
    background: rgba(0,0,0,0.3);
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
}
.adtv-video-main-item:hover .play-video {
    background: #000;
    border-color: #000;
}
.play-video span {
    color: #fff;
    font-size: 38px;
    -webkit-transform: rotateX(40deg);
            transform: rotateX(40deg);
    padding-left: 10px;
}

.adtv-video-thumb-inner {
    width: 100%;
    max-width: max(1270px, 79.375vw);
    margin: 0 auto;
}
.adtv-video-thumb-group {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
}
.adtv-video-thumb-item {
    width: calc((394/1270)*100%);
    margin-bottom: 35px;
}
.adtv-video-thumb-title {
    text-align: center;
    padding: 20px;
    font-size: 18px;
}

.adtv-video-thumb-item .play-video {
    width: 90px;
    height: 90px;
}
.adtv-video-thumb-item .play-video span {
    font-size: 25px;
    padding-left: 5px;
}
.adtv-video-thumb-item:hover .play-video {
    background: #000;
    border-color: #000;
}
.video-thumb-nav {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    margin-top: 50px;
}
.video-thumb-nav .vid-nav-prev {
    -webkit-transform: rotateY(180deg);
            transform: rotateY(180deg);
}
.video-thumb-nav > div {
    margin: 0 30px;
}
.adtv-video-thumb {
    padding: 105px 20px 70px;
}
.adtv-video-main-items:not(.slick-initialized) .adtv-video-main-item:nth-child(n+2),
.adtv-video-thumb-items:not(.slick-initialized) .adtv-video-thumb-group:nth-child(n+2) {
    display: none !important;
}

/* Form */
.ip-content-insider-inner {
    position: relative;
    max-width: 1415px;
    margin: 126px auto 46px;
    padding: 94px 20px 100px;
    background-color: #fff;
    border: 1px solid #85786f;
}
.ip-content-insider-inner::before {
    content: "";
    position: absolute;
    bottom: -78px;
    left: -90px;
    width: 309px;
    height: 274px;
    background-image: url('../../images/sellers/sellers-form3-accent.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: -1;
}
.ip-content-insider-heading {
    text-align: center;
}
.ip-content-insider-heading p {
    font-size: 16px;
    font-weight: 400;
    color: #444444;
    margin-top: 22px;
}
.ip-content-insider-form {
    position: relative;
    max-width: 1040px;
    margin: 77px auto 0;
}
.ip-content-insider-form-field {
    display: inline-block;
    vertical-align: top;
    width: 50%;
}
.ip-content-insider-form-field.pad-left {
    padding-left: 35px;
}
.ip-content-insider-form-field.pad-right {
    padding-right: 35px;
}
.ip-content-insider-form-field label {
    display: block;
    font-size: 16px;
    font-weight: 400;
    color: #a3a3a3;
    color: #767676;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.ip-content-insider-form-field input {
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    border: none;
    font-size: 13px;
    font-weight: 400;
    color: #000;
    letter-spacing: 0.04em;
    width: 100%;
    height: 30px;
    background-color: transparent;
    border-bottom: 1px solid #7f7f7f;
}
.ip-content-insider-form-submit {
    margin-top: 80px;
    text-align: center;
}
#site-git {
    display: none !important;
}
.ip-content-insider-form form {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
}
.ip-content-insider.section-wrap {
    padding: 0 20px;
}
.ip-content-insider-form {
    position: relative;
    max-width: 1040px;
    margin: 77px auto 0;
}
.ip-content-insider-form-submit {
    margin: 80px auto 0;
}
/* Form */
.adtv-video-main-photo.img-photo,
.adtv-video-thumb-photo.img-photo {
    padding-top: 56.25%;
}
.adtv-video-main-photo.img-photo canvas,
.adtv-video-thumb-photo.img-photo canvas {
    display: none;
}

/*Popup*/
html.popup-active {
    overflow: hidden;
}
.ip-popup-container {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.80);
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    -webkit-transition: all 0.6s ease;
    -o-transition: all 0.6s ease;
    transition: all 0.6s ease;
    overflow: hidden;
    font-size: 0;
}
.ip-popup-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    padding: 50px 15px;
    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;
}
.ip-popup-main {
    position: relative;
    width: 100%;
    max-width: 650px;
    margin: 0 auto 0;
    -webkit-transition: all 0.6s ease;
    -o-transition: all 0.6s ease;
    transition: all 0.6s ease;
    -webkit-transform: scale(0.7);
    -ms-transform: scale(0.7);
    transform: scale(0.7);
    opacity: 0;
    background: #fff;
    padding: 75px 30px;
}
.ip-popup-main:before {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 10px;
    border: 1px solid #000;
}

.ip-popup-container.active .ip-popup-main {
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
    opacity: 1;
}
.ip-popup-container.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
button.ip-popup-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 20px;
    line-height: 1;
    color: #000;
    border: none;
    background-color: transparent;
    padding: 0;
    -webkit-transition: 0.3s all ease-in-out;
    -o-transition: 0.3s all ease-in-out;
    transition: 0.3s all ease-in-out;
}
button.ip-popup-close:hover {
    color: rgba(var(--primary),1);
}
#inner-page-wrapper {
    z-index: auto;
}
.ip-popup-content{
    display: block;
    position: relative;
    text-align: center;
    margin-bottom: 55px;
}
.ip-popup-content p{
    font-size: 21px;
    line-height: 1.5;
    color: #000;
}
.ip-popup-content-btn{
    display: block;
    position: relative;
    text-align: center;
}
/*******************************************************
 *
 * Mobile styles and other media queries
 *
 *******************************************************/
 
/* iPad(landscape) | iPad(landscape) | Galaxy Tab 4 (landscape) | Galaxy Tab 3 (landscape) */ 
@media only screen and (max-width: 1199px) {
} 
/* iPad(portrait) | Galaxy Tab 4(portrait)  */ 
@media only screen and (max-width: 991px) {
    .ip-adtv-welc-inner > div {
        width: 100%;
        text-align: center;
    }
    .ip-adtv-welc-inner {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
    }
    .ip-adtv-welc-right {
        max-width: 600px;
    }
    .ip-adtv-bts {
        /* margin-top: 85px; */
    }
    .ip-adtv-welc-btn {
        margin: 120px auto 30px;
    }
    .adtv-video-thumb-item{
        width: 49%;
    }
    .ip-content-insider-heading p{
        line-height: 26px;
    }
    
.adtv-video-thumb {
    padding: 50px 20px 50px;
}
.adtv-video-main-inner {
    padding: 90px 0 50px;
}
    .ip-popup-content p {
    font-size: 18px;
}
.ip-popup-main {
    padding: 75px 20px;
}
    
} 
/* Galaxy Tab 3(portrait) | Galaxy S5(landscape) */ 
@media only screen and (max-width: 767px) {
      .ip-adtv-bts-gallery {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
    }
    .bts-gallery-col {
        width: 100%;
        max-width: 600px;
    }
    .ip-content-insider-form-field {
        padding: 0 !important;
        width: 100%;
        margin-bottom: 40px;
    }
    .ip-content-insider-form-field.pad-left {
        margin-bottom: 0;
    }
}
/* Galaxy S5(portrait) | iPod Touch(landscape) | iPod Touch(portrait) */ 
@media only screen and (max-width: 480px) {
    .adtv-video-thumb-item{
        width: 100%;
    }
    .play-video{
        width: 90px;
        height: 90px;
    }
}
 

@media only screen and (max-height: 600px) {
    .ip-popup-wrapper {
    display: block;
}
.ip-popup-main {
    margin: 50px auto;
}
} 