
.house { text-transform: uppercase;}
.house .house__name { font-size: 1.25rem;text-align: right; margin: 0;}
.house .house__motto {margin: .5em 0 0;}
.house__name { font-weight: 400;}
.house__motto span { display: inline-block; line-height: .8;}
.house__motto .line { display: block; margin-top:180px; background-color:#000; padding:15px;}
.house__motto a{ color:#fff; font-weight:bold;}

@media screen and (min-width: 380px) {
.house .house__name { font-size: 1.5rem; }
}

/* ------------------------------------------------------------
  Layout
------------------------------------------------------------ */
*,
*:before,
*:after {box-sizing: border-box;}

.great-houses { display: flex; flex-direction: column; margin: 0 auto;min-width: 100%; max-width: 100%;}

.house { cursor: pointer; display: flex; align-items: center; margin-top: 0; overflow: hidden; position: relative; text-align: center; vertical-align: center; min-height: 18rem; z-index: 2;}
.house:after {box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.8); content: ''; display: block; pointer-events: none; position: absolute; top: 0; bottom: 0; left: 0; right: 0; z-index: 10;}

.house__name { background-repeat: no-repeat; position: absolute; top: 0; bottom: 0; left: 0; transition: all .4s ease-in; z-index: 1;}
.house__name span {position: absolute; right: 1em;  z-index: 2; background-color:#778899; color:#FFF; padding:10px;}

.house__motto {flex: 1; padding: 1rem 0;background-image:url(../images/b-logo.png); background-repeat:no-repeat; background-position:center center; width:100%; height:100%;}
.house:hover .house__name {left: -100%;}

@media screen and (min-width: 380px) {
.house__name span { right: 15%; text-align: center;}
}
@media screen and (max-width: 500px) {
.house__name {width: 100%; }
.house__name:before, .house__name:after { display: block; position: absolute; right: 0; width: 20%;height: 100%; z-index: 0;}
.house__name:before { top: -50%;transform-origin: right bottom; transform: rotate(30deg);}
.house__name:after { top: 50%; transform-origin: right top; transform: rotate(-30deg);}
.house__name span {margin: -.5em auto 0; bottom: 3%; right: 0%; background-color:#000; color:#FFF; padding:10px;}
}
@media screen and (min-width: 500px) {
.great-houses {flex-direction: row; flex-wrap: wrap; width: 90%; }
.house { margin: .5rem 1%; width: 48%;}
.house__name {width: 100%;}
.house__name span { bottom: 3%; right: 0%; background-color:#000; font-weight:bold; text-align:right; font-size:18px;}
}
@media screen and (min-width: 900px) {
.house { width: 31.33333333%;}

@media screen and (min-width: 1200px) {
.house__motto {background-image:url(../images/b-logo.png); background-repeat:no-repeat; background-position:center center; width:100%; height:100%;}
}

.is--targaryen { background-color: #fff; background-position: 0 100%; color: #fff;}
.is--targaryen .house__name { background-color: #778899;}
.is--targaryen .house__name:before, .is--targaryen .house__name:after { background: #000;}
.is--targaryen .house__name { background-position: -35px 40px, 0 0; color: #fff; font-weight: bold;}


@media screen and (min-width: 500px) {
.is--targaryen .house__name {background-position: -60px 5px, 0 0;}
}
@media screen and (min-width: 1200px) {
.is--targaryen .house__name {background-position: -30px 20px, 0 0;}
}