/* RELATED INFOGRAPHIC COVER 800x421*/

.related-graphic .left {background-image: url("https://multimedia.scmp.com/infographics/news/hong-kong/article/3180601/subdivided-flats/img/cover.jpg");}

article {
  margin-bottom: 40px;
  margin-top: 0px;
  background-image: url("../img/intro-img.jpg");
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: top;
}

.blank1, .blank2 {
    display: block;
    width: 100%;
}

section.intro h1, section.intro p {
    width: 40%;
}

section.intro h1 {
    text-shadow: 1px 1px 20px #fff, 1px 1px 20px #fff, 1px 1px 20px #fff
}

.intro .author {
    width: 50%;
    margin: 0 auto
}

.text h3 {
    font-size:18px;
    text-transform:none;
}

.text p {
    font-family: Merriweather, serif;
    line-height: 26px;
    font-weight: 300;
}

.painting {
    font-size: 15px;
    font-weight: 300;
    line-height: 24px;
    text-align: center;
    padding: 10px;
}

.building-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.qing-ming {
    width: 100%;
    overflow: scroll;
}

.building2 {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
    opacity: 0;
    transition: opacity 0.5s;
}

.building2.fadeIn, #building-img1.fadeIn, #building-img2.fadeIn, #building-img3.fadeIn, #building-img4.fadeIn, #building-img5.fadeIn, #building-img6.fadeIn, .scaffolder2.fadeIn, #type2.fadeIn, #type2.fadeIn, #type3.fadeIn{opacity: 1;}

.building2.fadeOut, #building-img1.fadeOut, #building-img2.fadeOut, #building-img3.fadeOut, #building-img4.fadeOut, #building-img5.fadeOut, #building-img6.fadeOut, .scaffolder2.fadeOut, #type2.fadeOut, #type2.fadeOut, #type3.fadeOut{opacity: 0;}

.building-img {
    position: absolute;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    opacity: 0;
    transition: opacity 0.5s;
}

#building-img1 {top: 13%; right: 5%;}
#building-img2 {top: 26%; left: 5%;}
#building-img3 {top: 39%; right: 5%;}
#building-img4 {top: 52%; left: 5%;}
#building-img5 {top: 65%; right: 5%;}
#building-img6 {top: 78%; left: 5%;}

.building-txtbox {
    font-family: Roboto,sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 20px;
    text-align: left;
    padding: 10px 13px;
    background-color:rgb(255,255,255);
    border-radius: 10px;
    margin-top: 10px;
}

.building-txt {background: rgba(255, 255, 255, 0.9);}

ul.requirements {
    
    font-size:15px;
    line-height:24px;
    color:#4d4d4d;
    letter-spacing:0;
    font-weight:400;
    margin-left: 20px;
    list-style-type:disc;
}

.scaffolder, .type, .equipment {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
    opacity: 0;
    transition: opacity 0.5s;
}

.equipmenttxt {
    position: fixed;
    font-family: Roboto,sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 20px;
    text-align: left;
    padding: 10px 10px;
    background-color:rgb(255,255,255);
    border-radius: 10px;
    width: 200px;
    left: 30%;
    display: none;
}

.equipmenttxt.active, .typetxt.active {
	display: inline-block;
}
.equipmenttxt.inactive, .typetxt.inactive {
	display: none;
}

.equipment.fadeIn{opacity: 1;}

.equipment.fadeOut{opacity: 0;}

.goldthread {
  position: relative;
  width: 660px;
  overflow: hidden;
  height: 380px;
  margin: 50px auto
}

.responsive-iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.typetxt {
    position: fixed;
    font-family: Roboto,sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 20px;
    text-align: left;
    padding: 10px 10px;
    background-color:rgb(255,255,255);
    border-radius: 10px;
    width: 260px;
    left: 15%;
    display: none
}

.video-container {
    position: absolute;
    top: 30%;
    right: 3%;
    width: 320px;
    height: 320px;
    overflow: hidden;
    margin: 0 auto;
    border-radius: 50%;
    border: 2px solid #fd3c00;
}

#rooftop {
    width: 340px;
    margin-top: -10px;
}

.roofpointer {
    position: absolute;
    top: 0;
    left: 0;
}

.roofcaption {
    position: absolute;
    bottom: 2%;
    left: 2%;
    font-size: 15px;
    font-weight: 300;
    line-height: 20px;
    text-align: left;
    padding: 10px;
    width: 45%;
}

.max240 {
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
}


.clear20 {height: 20px}
.clear40 {height: 40px}
.clear60 {height: 60px}
.clear80 {height: 80px}
.show-mobile {display: none;}

.author-bottom {
    margin-bottom: -10px;
}
    
.prof-pic {
    position: relative;
    width: 90px;
    margin: 15px 0;
    border-radius: 50%;
    display: inline-block;
}

.info {
    position: relative;
    display: inline-block;
    left: 0;
    top: 0;
    margin: 30px 0;
    margin-left: 32px;
    vertical-align: top;
}

/*------------------------- | KEYFRAMES | -----------------------------*/





/*------------------------- | MEDIA QUERIES | -----------------------------*/

@media only screen and (max-width: 1200px){
    .blank1 {width: 88%}
    .blank2 {width: 80%}
}

@media only screen and (max-width:1025px) {
    .blank2 {width: 0%}
    .typetxt {left: 10%}
}

@media only screen and (max-width:770px) {
    .blank1 {width: 78%}
    .building-img {max-width: 220px;}
    .typetxt {left: 5%}
}

@media only screen and (max-width:660px) {
    .goldthread {
        width: 100%;
        height: auto;
        padding-top: 56.25%; /* 16:9 Aspect Ratio */
    }
}

@media only screen and (max-width:600px) {
    .addbyline {padding: 0 20px}
}

@media only screen and (max-width:500px) {
    section.intro h1, section.intro p {width: 60%;}
    section.intro p {width: 100%;}
    .blank1 {width: 83%}
    .blank3 {width: 75%}
    .equipmenttxt {
        position: absolute;
        left: 50%;
        transform: translate(-50%, 0);
        width: 320px;
        top: 100%
    }
    .building-txtbox {font-size: 12px;line-height: 15px;margin-top: 0px;}
    .building-img {max-width: 120px;}
    .typetxt {left: 20%}
    .show-desktop {display: none;}
    .show-mobile {display: block;}
    .roofcaption {
        bottom: -2%;
        left: 2%;
        font-size: 12px;
        line-height: 15px;
        width: 55%;
    }
}

@media only screen and (max-width:420px) {
    .blank3 {width: 0%}
}

@media only screen and (max-width:360px) {
    .typetxt {left: 15%}
    .info {margin-left: 15px;}
}