/*
 * COMMON
 */

.media-caption {
    margin:-30px 0 40px;

    text-align:center;
    color:#777; font-weight:300; letter-spacing:0.5px;
}
.media-caption:before, .media-caption:after{
    content: ' ';
    display: table;
}

.media-wide { margin-left:-20px; margin-right:-20px; }
.media-wide img { /*box-shadow:none;*/ }
@media (min-width: 768px) {
    .media-wide { margin-left:-50px; margin-right:-50px; }
}

.container-nopadding {
    padding-left:0; padding-right:0;
}
.container-nopadding h4 { margin-top:30px; }
.container-nopadding h4:first-child { margin-top:0; }




/*
 * SAFARI BROWSER
 */

.media-safari {
    position:relative;
    margin:30px auto 50px auto;

    border-radius:5px;

    -webkit-box-shadow:0 0 10px rgba(0, 0, 0, 0.3);
    -moz-box-shadow:0 0 10px rgba(0, 0, 0, 0.3);
    box-shadow:0 0 10px rgba(0, 0, 0, 0.3);
}

.media-safari:before {
    content:'';
    position:absolute; top:0; left:0;
    height:38px; width:177px;
    background:url(../img/safari-header-left.png) left top no-repeat;
    background-size:contain;
}
.media-safari:after {
    content:'';
    position:absolute; top:0; right:0;
    height:38px; width:92px;
    background:url(../img/safari-header-right.png) top right no-repeat;
    background-size:contain;
}

.safari-header {
    position: relative; z-index: 1;
    margin:0 92px 0 177px;
    height:37px; width:auto;
    background-size:contain;
    background:url(../img/safari-header-bg.png) top center repeat-x;
    background-size:contain;
    overflow:hidden;
    text-align:center;
}

.safari-header-address {
    position:relative; display:block;
    margin:8px;
    height:23px; line-height:22px;
    background:url(../img/safari-address-center.png) top center repeat-x;
    background-size:contain;
    /*font-family:"Helvetica Neue", Helvetica, Arial, sans-serif;*/
    font-size:11px; color:black !important; text-decoration:none;
    white-space:nowrap;
}
.safari-header-address:hover,
.safari-header-address:visited,
.safari-header-address:focus {
    text-decoration:none;
    color:black;
}

.safari-header-address:before {
    content:''; z-index:100;
    position:absolute; top:0; left:-4px;
    height:23px; width:5px;
    background:url(../img/safari-address-left.png) top left no-repeat;
    background-size:contain;
}

.safari-header-address:after {
    content:''; z-index:100;
    position:absolute; top:0; right:-5px;
    height:23px; width:6px;
    background:url(../img/safari-address-right.png) top right no-repeat;
    background-size:contain;
}

.media-safari img {
    border:1px rgba(0,0,0,0.2) solid; border-top:none;
    width:100%; height:auto;
    border-radius:0 0 5px 5px;
}

@media (min-width: 768px) {
    .safari-header-address {
        margin-right:20%; margin-left:20%;
    }
}

@media (max-width: 550px) {
    .safari-header {
        margin:0 4px 0 132px;
    }
}

/*
 * LOGO
 */

.media-logo {
    display:block;
    max-width:50%;
    margin:0 auto 20px auto;
}
@media (min-width: 768px) {
    .media-logo {
        float:left;
        max-width:300px;
        margin:0 20px 20px 0;
    }
    [class^="col-"] .media-logo {
        width:auto; max-width:100%;
    }
}



/*
 * ILLUSTRATION
 */

.media-illustration {
    width:100%; height:auto;
    display:block;
    margin:30px 0 50px;

    -webkit-box-shadow:0 0 10px rgba(0, 0, 0, 0.3);
    -moz-box-shadow:0 0 10px rgba(0, 0, 0, 0.3);
    box-shadow:0 0 10px rgba(0, 0, 0, 0.3);
}



/*
 * FIGURE
 */

.media-figure {
    margin:30px 0 50px 0;
    clear:both;
}
.media-figure:after {
    display:table;content:' ';
    clear:both;
}

.media-figure img {
    float:left; display:block;
    max-width:100%; height:auto;
    margin-bottom:10px;

    -webkit-box-shadow:0 0 10px rgba(0, 0, 0, 0.3);
    -moz-box-shadow:0 0 10px rgba(0, 0, 0, 0.3);
    box-shadow:0 0 10px rgba(0, 0, 0, 0.3);
}

.media-figure .media-caption {
    text-align:left;
    float:left; margin: 0;
}

@media (min-width: 768px) {
    .media-figure img { max-width:70%; }
    .media-figure .media-caption {
        width: 30%;
        padding-left: 20px;
    }
}
@media (min-width: 992px) {
    .media-figure img { max-width:580px; }
}



/*
 * DEVICES
 */

.media-device {
    position:relative;
    width:auto; height:auto;
    margin:30px -20px 30px -20px;
    overflow:hidden;
    cursor: -webkit-grab;
    cursor: hand;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
}
@media (min-width: 768px) {
    .media-device { margin-left:-50px; margin-right:-50px; }
}

.device {
    position:relative;
    margin:auto;
}
.device:after {
     display:table;content:' ';
     clear:both;
}

.device .device-background {
    position:relative; z-index:5;
    width:100%; height:auto;
    visibility:hidden;
}

.device .device-screen {
    position:absolute; z-index:10;
    overflow:hidden;
    visibility:hidden;
}
@media (min-width: 768px) {
    .device .device-background { visibility:visible; }
    .device .device-screen { visibility:visible; }
}

.device .screenshots {
    position:relative;
    height:100%; width:525%;
}
.device .screenshot {
    display:block; float:left;
    height:100%; width:20%;
}
/*.device .screenshot:last-child {*/
    /*margin-right:0;*/
/*}*/

.device .device-underlay {
    position:absolute; z-index:1;
}
@media (min-width: 768px) {
    .device .device-underlay {
        opacity:0.1;
    }
}
.media-device img {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

.media-device .device-captions {
    position:relative; z-index:15;
}

.media-device .device-captions .caption {
    position: relative;
    top: 50%;
    -webkit-transform: translateY(-52%);
    -ms-transform: translateY(-52%);
    transform: translateY(-52%);
    display:none;
}
.media-device .device-captions .caption:first-child {
    display:block;
}

.media-device .device-captions h5 {
    font-size:14px; font-weight:700;
    margin-top:0; margin-bottom:10px;
}
.media-device .device-captions p {
    font-size:12px;
}
@media (min-width: 500px) {
    .media-device .device-captions h5 {
        font-size:18px; font-weight:700;
        margin-top:0; margin-bottom:14px;
    }
    .media-device .device-captions p {
        font-size:14px;
        line-height:24px;
    }
}



/* IPHONE */

.iphone6 {
    width:40%; height:auto;
}
@media (min-width: 768px) {
    .iphone6 { width:40%; }
}
@media (min-width: 992px) {
    .iphone6 { width:30%; }
}
@media (min-width: 1200px) {
    .iphone6 { width:25%; }
}

.iphone6 .device-screen {
    top:11.9%; left:6%;
    width:88%; height:75.9%;
}

.iphone6 .screenshot {
    width:19%;
    margin-right:1%;
}

.iphone6 .device-underlay {
    top: 0; left: 10%;
    height: 100%; width: 100%;
}

.iphone6 .device-underlay .screenshots {
    left: 13.5%;
    height: 100%; width: 606%; top: 0;
}
.iphone6 .device-underlay .screenshot {
    width:19%;
    margin-left:1%; margin-right:0;
}
.iphone6 .device-underlay .screenshot:first-child {
    margin-left:0;
}
@media (min-width: 768px) {
    .iphone6 .device-underlay {
        top:11.9%; left:6%;
        height:75.9%; width:88%;
    }
    .iphone6 .device-underlay .screenshots {
        height:74%; width:487%; top:14%;
    }
    .iphone6 .device-underlay .screenshot {
        width:15%;
        margin-right:5%; margin-left:0 !important;
    }
}


.media-iphone .device-captions {
    position:absolute;
    top:0; left:0;
    height:100%; width:39.5%;
    text-align:right;
    padding:0 20px;
    background-color:rgba(255,255,255,0.5);
}
@media (min-width: 768px) {
    .media-iphone .device-captions {
        top:25%; left:4.5%; width:22%; height:54%;
        padding:0;
        background-color:transparent !important;
    }
}
@media (min-width: 992px) {
    .media-iphone .device-captions { left:5%; width:27.5%; }
}
@media (min-width: 1200px) {
    .media-iphone .device-captions { left:8%; }
}



/*
 * GALLERY
 */

.media-gallery {
    margin:30px auto 50px auto;
}

.media-gallery .gallery-item {
    display:block; float:left; position:relative;
    height:auto;
    background-size:cover;
}
.media-gallery .gallery-item.item-lg { width:100%; }
.media-gallery .gallery-item.item-md { width:100%; }
.media-gallery .gallery-item.item-sm { width:100%; }
@media (min-width: 500px) {
    .media-gallery .gallery-item.item-lg { width:100%; }
    .media-gallery .gallery-item.item-md { width:100%; }
    .media-gallery .gallery-item.item-sm { width:50%; }
}
@media (min-width: 768px) {
    .media-gallery .gallery-item.item-lg { width:100%; }
    .media-gallery .gallery-item.item-md { width:50%; }
    .media-gallery .gallery-item.item-sm { width:25%; }
}
@media (min-width: 992px) {
    .media-gallery .gallery-item.item-lg { width:100%; }
    .media-gallery .gallery-item.item-md { width:50%; }
    .media-gallery .gallery-item.item-sm { width:25%; }
}

.media-gallery .gallery-item img {
    width:100%; height:auto;
}
.media-gallery .item-caption {
    position:absolute;
    top:0; left:0; right:0; bottom:0;
    opacity:0; transition:.3s opacity;
}
.media-gallery .item-caption:hover {
    opacity:1;
}
.media-gallery .item-caption .caption {
    padding:10px; padding-bottom:18px;
    text-align:center;
    background-color:rgba(0,0,0,0.5);
}



/*
 * ROLES
 */
 
dl.media-roles {
	background-color: #eee;
	border: #d8d8d8 dotted 1px;
	border-radius: 5px;
	padding:13px 10px 13px 13px;
	color: #333 !important;
	margin:20px 0;
}

dl.media-roles dt {
	width:20px;
    float: left;
}

dl.media-roles dt img {
	height:20px; margin-bottom: -5px;
	vertical-align: baseline;
}

dl.media-roles dd {
	margin-left: 25px;
}

dl.media-roles dd .roles-user {
	font-weight: 600;
}