/*-----------------------------  Attachment General ------------------------------*/
#tlp-cookies-popup{
    z-index: 50;
}
html, body {
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
.attachment header, .attachment footer,
.product-tags-container-list{
    display: none;
}

.attachment > .wrap-wide{
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding-top: 22px;
    padding-bottom: 15px;
}
.attachment-body{
    display: flex;
    height: calc(100% - 40px);
    width: 100%;
    align-content: space-between;
    justify-content: space-between;
}

.show-map .attachment-body {
	display: none;
}

/*-----------------------------  Attachment Top Section ------------------------------*/
.attachment-header{
    height: 43px;
    text-align: right;
}
.attachment-close-link{
    display: inline-block;
    margin-right: 0;
    position: relative;
    top: 1px;
    vertical-align: middle;
}
.attachment-close-text{
    display: inline-block;
    margin-right: 11px;
    position: relative;
    top: 1px;
    vertical-align: middle;
}
.attachment-close-button{
    display: inline-block;
    height: 25px;
    position: relative;
    vertical-align: middle;
    width: 25px;
    overflow: hidden;
}
.attachment-close-button:before{
    background: #202020;
    bottom: 12px;
    content: "";
    height: 1px;
    left: 0px;
    position: absolute;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    width: 28px;
}
.attachment-close-button:after{
    background: #202020;
    content: "";
    height: 1px;
    left: 0;
    position: absolute;
    top: 12px;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    width: 28px;
}

/*-----------------------------  Attachment Main Col ------------------------------*/
.attachment-main-col{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 71%;
}
#result-container{
    display: flex;
    flex-direction: column;
    height: calc(100% - 200px);
    position: relative;
}
.show-video #result-container{
	display: none;
}
.attachment-image-section{
    height: 100%;
    overflow: hidden;
}
#current-attachment-container{
    height: 100%;
}
.image-wrapper{
    height: 100%;
}
.image-wrapper img{
    height: 100%;
    width: 100%;
}
.portrait-image-wrapper img,
.landscape-image-wrapper img {
    object-fit: contain;
}
#image-navigation{
    bottom: 32px;
    right: 20px;
}
#image-navigation .nav-links{
    height: 100%;
    width: 100%;
}
#image-navigation .previous-image{
    float: left;
    height: 100%;
    margin-left: 4%;
    width: 46%;
}
#image-navigation .next-image{
    float: right;
    height: 100%;
    margin-right: 4%;
    width: 46%;
}
#image-navigation .slick-prev{
    position: static;
    transform: none;
}
#image-navigation .slick-next{
    position: static;
    transform: translate(-1px, 0);
}

/*-----------------------------  Slider Navigation Row ------------------------------*/
.attachment-navslider-outer{
    position: relative;
}
.show-video .attachment-navslider-outer {
	display: none;
}
.navslider-arrow{
    background-color: #fff;
    cursor: pointer;
    height: 100%;
    position: absolute;
    transition: all 0.2s ease;
    top:0;
    width: 60px;
    z-index: 150;
}
.navslider-arrow:before{
    content: '';
    background-image: url("../images/Nav arrow-right.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    display: block;
    height: 15px;
    margin: 53px auto;
    width: 15px;
}
.navslider-arrow-prev{
    left: 0;
}
.navslider-arrow-prev:before{
    transform: rotate(180deg);
}
.navslider-arrow-next{
    right: 0;
}
.hide-arrow-prev .navslider-arrow-prev, 
.hide-arrow-prev .navslider-arrow-next {
    width: 0;
}
.hide-arrow-next .navslider-arrow-next:before, .hide-arrow-prev .navslider-arrow-prev:before {
	background-image: url();
}
.attachment-navslider-inner{
    display: inline-flex;
    cursor: pointer;
    flex-flow: nowrap;
}
.navslider-item {
    height: 120px;
    display: inline-block;
    margin-bottom: 35px;
    margin-right: 15px;
}
.navslider-item img{
    height: 120px;
    width: auto;
}
.scrollbar-macosx > .scroll-element.scroll-x{
    left: 0;
    width: 100%;
}
/*-----------------------------  Mid-slider ads ------------------------------*/

.advert-slide {
    display: flex;
    height: 100%;
    width: 100%;
}
.advert-slide img{
    height: 100%;
    object-fit: contain;
    width: 100%;
}

/*----------------------------- Attachment Sidebar ------------------------------*/
.attachment-sidebar{
    display: flex;
    flex-direction: column;
    font-family: "Suisse Intl", sans-serif;
    justify-content: space-between;
    padding-bottom: 30px;
    padding-right: 40px;
    max-width: 22.5%;
}
.attachment-share{
    margin: 30px 0 23px;
}
.attachment-share-title {
    margin-bottom: 14px;
}
.attachment-title-block{
    font-size: 18px;
    line-height: 21.5px;
}
.attachment-subtitle, 
.attachment-credits-value{
    font-weight: 300;
}
.attachment-credits{
    font-size: 14px;
    line-height: 22px;
}


/*----------------------------- Attachment Popup ------------------------------*/


.last-slide .attachment-image-section{
    padding: 0;
}
.last-slide #current-attachment-container{
    max-width: none;
}
.attachment-pop-up{
    width: 50%;
}
.attachment-pop-up.prev{    
    float: left;
}
.attachment-pop-up.prev .post-adjacent-link-wrapper{
    border-right: 1px solid #ccc;
    padding: 0 26px 0 0;
}
.attachment-pop-up.next{
    float: right;
}
.attachment-pop-up.next .post-adjacent-link-wrapper{
    padding: 0 0 0 26px;
}
.attachment-pop-up .post-adjacent-title{
    margin-top: 1.17em;
}
.attachment-pop-up .post-adjacent-link-wrapper{
    float: none;
    margin-bottom: 20px;
    margin-top: 8.7%;
    width: 100%;
}
.attachment-pop-up .post-adjacent-link-wrapper .image-set-container{
    width: 338px; 
}

/*---- Map and Video -------*/
#video-container, #map-container {
	display: none;
}
.show-video #video-container, 
.show-map #map-container {
	display: block;
}


.show-video .attachment-main-col{
    justify-content: space-around;
}


#video-container{
    height: 0;
    padding-bottom: 66%;
    position: relative;
}
#video-container iframe{
    height: 100%;
    width: 100%;
}
.intro-video{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}


#map-container {
    height: 100%;
    width: 100%;
}
#map-container iframe{
    height: calc( 100vh - 130px );
    width: 100%;
}


.wrap-wide .tag-gallery,
.show-map .tag-map, 
.show-video .tag-video,
.show-plan .tag-plan {
	background-color: #7C1913;
    border-color: #7C1913;
    color: #fff;
}

.show-map .tag-gallery, 
.show-video .tag-gallery,
.show-plan .tag-gallery {
	background-color: #FFF;
    border-color: #666;
	color: #666;
}

/*---- Estate tags -------*/
.attachment-header .attachment-estate-controls {
    display: none;
}
.show-map .attachment-header .attachment-estate-controls {
    display: inline-flex;
    align-items: self-end;
    min-height: 65px;
}
.show-map .attachment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 33px;
}
.attachment-sidebar .attachment-estate-controls{
    margin-bottom: 60px;
}

.agent-badge{
    margin-top: 28px;
}
.agent-badge-title{
    font-size: 14px;
    font-weight: 450;
}
.agent-badge-name{
    color: #202020;
    font-size: 14px;
    font-weight: 300;
    margin-bottom: 18px;
    margin-top: 10px;
}
.agent-badge-button a{
    font-size: 14px;
    min-width: 150px;
    width: 150px;
}

.show-plan[data-has-plan="1"] .landscape-image-wrapper img {
    object-fit: contain;
}

/*---- Scrolbar -------*/

.scrollbar-macosx > .scroll-element.scroll-x .scroll-bar{
    background-color: #666;
}
.scrollbar-macosx > .scroll-element .scroll-element_track{
    background-color: #ccc;
}
.scrollbar-macosx > .scroll-element.scroll-x .scroll-bar,
.scrollbar-macosx > .scroll-element .scroll-element_track {
    height: 4px;
    top: 6px;
}

/*---- Product Tags -------*/

.product-tags-container{
    position: absolute;
}
.article-image-buttons i{
    display: none;
}
.article-image-buttons .image-product-tags-button a{
    background-color: transparent;
    height: 35px;
    width: 35px;
}

@media all and (min-width: 1025px) and (max-height: 1249px){
    .attachment-image-section{
        width: calc(100% - 100px);
    }
}
@media all and (max-width: 1024px){
    #image-navigation{
        bottom: 0;
    }
    #result-container{
        height: calc(100% - 180px);
    }
    .attachment-image-section{
        height: calc(100% - 55px);
    }
}
@media all and (max-width: 768px){

/*--------- General Styles ---------*/

    html{
        margin: 0 !important;
    }
    #result-container,
    .navslider-arrow, 
    #image-navigation {
        display: none;
    }
    .attachment > .wrap-wide{
        height: 100dvh;
        padding: 0;
    }
    .attachment-header, 
    .show-map .attachment-header {
        height: 9dvh;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        margin-bottom: 0;
        padding: 0 3.4vw;
        text-align: right;
    }
    .attachment-close-link{
        top: -3px;
    }
    .attachment-close-text{
        font-size: 11px;
        margin-right: 6px;
    }
    .attachment-close-button {
        height: 11px;
        width: 11px;
    }
    .attachment-close-button:after {
        left: -4px;
        top: 10px;
    }
    .attachment-close-button:before {
        bottom: 9px;
        left: -4px;
    }
    .attachment-body {
        flex-direction: column-reverse;
        height: calc(100% - 9dvh);
    }
    .attachment-body > div {
        max-width: 100%;
        width: 100%;
    }
    
    .attachment-estate-controls .tile-tag {
        line-height: 14px;
    }


/*--------- Sidebar ---------*/
    
    .attachment-sidebar {
        padding: 0 4vw;
        height: 43.5dvh;
    }
    .attachment-sidebar-header{
        display: flex;
        flex-direction: column;
        height: 100%;
        justify-content: space-between;
        padding-bottom: 15.5%;
    }
    .tile-tag {
        font-size: 11px;
        height: 19px;
        margin-right: 2px;
        margin-bottom: 0;
    }
    .attachment-sidebar .attachment-estate-controls {
        margin-bottom: 0;
    }
    .attachment-share {
        margin: 0;
    }
    .attachment-share-title {
        font-size: 14px;
        margin-bottom: 11px;
    }
    .agent-badge-button a {
        font-size: 10px;
        letter-spacing: 0.02em;
        min-width: 110px;
        width: 110px;
    }
    .agent-badge-name{
        margin-bottom: 20px;
        margin-top: 8px;
    }
    .attachment-title-block.listing-address-block{
        display: none;
    }
    
/*--------- Image Slider ---------*/

    .attachment-main-col {
        height: 45dvh;
    }
    .navslider-item{
        margin-bottom: 0;
        margin-right: 0;
        overflow: hidden;
        position: relative;
        text-align: center;
        width: 100vw;
    }
    .navslider-item img {
        display: inline-block;
        left: 0;
        object-fit: contain;
        position: absolute;
        top: 0;
        width: 100%;
    }
    .attachment-navslider-inner, 
    .navslider-item, 
    .navslider-item img {
        height: 39.2dvh;
    }
    .scrollbar-macosx > .scroll-element.scroll-x{
        bottom: 0;
        height: 3.7dvh;
        left: 4vw;
        top:auto;
        width: 92vw;
    }
    .attachment-navslider-outer,
    .scroll-wrapper{
        height: 45dvh;
    }
    .scrollbar-macosx > .scroll-element.scroll-x .scroll-bar, 
    .scrollbar-macosx > .scroll-element .scroll-element_track {
        height: 1px;
        top: 0;
    }
    .scrollbar-macosx > .scroll-element.scroll-x .scroll-element_outer{
        left: 0;
    }
	/*.scroll-wrapper > .attachment-navslider.scroll-content{
		overflow: hidden !important;
	}*/

/*--------- Map Popup ---------*/
    .show-map .attachment-body {
        height: 43.5dvh;
    }
    .show-map #map-container{
        height: 47.5dvh;
    }
    #map-container iframe{
        height: 40dvh;
    }
    .show-map .attachment-header .attachment-estate-controls,
    .show-map .attachment-main-col{
        display: none;
    }
    .show-map .attachment-body {
        display: flex;
    }
}