/*
 *  Styles for Image Containers with dynamic text inside
 */

.wazoku-image-wrapper {
    position: relative;
    background-size: cover !important;
    background-repeat: no-repeat;
    float: left;
    width: 100%;
}

.wazoku-image-limiter {
    max-width: 1400px;
    display: block;
    margin: 0 auto;
    overflow: auto;
    position: relative;
}

/* Images should be centered */
.wazoku-image-container img {
    position: relative;
    display: block;
    margin: 0 auto;
}

.wazoku-image-textcontainer {
    text-align: center;
    font-size: 1.25em;
    top: 0;
}

/* Button within the image wrapper if active */
.wazoku-image-textcontainer a {
    position: relative;
    margin: 1em auto 0 auto;
    width: 10em;
}

.wazoku-image-textcontainer p {
    line-height: 30px;
}

/* Alignments */

/* Alignment for text left images */
.wazoku-left-aligned .wazoku-image-textcontainer {
    position: absolute;
    left: 7.5%;
    max-width: 30%;
    top: 50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
}

.wazoku-left-aligned .wazoku-image-container {
    width: 60%;
    float: right;
}

/* Alignment for text right images */
.wazoku-right-aligned .wazoku-image-textcontainer {
    position: absolute;
    right: 7.5%;
    max-width: 30%;
    top: 50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
}

.wazoku-right-aligned .wazoku-image-container {
    width: 60%;
}

/* Alignment for text top images */
.wazoku-top-aligned .wazoku-image-textcontainer {
    max-width: 1400px;
    width: 80%;
    margin: 0 10%;
    padding: 5% 0 0 0;
}

/* Text alignment on text only images */
.wazoku-top-clear-aligned .wazoku-image-textcontainer {
    padding: 5%;
    width: 80%;
    margin: 0 10%;
}

/* --- Media Queries --- */
@media only screen
and (max-width: 768px) {

}

@media only screen
and (max-width: 992px) {
    .wazoku-left-aligned .wazoku-image-textcontainer,
    .wazoku-right-aligned .wazoku-image-textcontainer {
        position: relative;
        margin: 0 auto;
        max-width: initial;
        padding: 5% 0 2.5% 0;
        width: 90%;
        right: 0;
        top: 0;
        left: 0;
        transform: none;
    }

    .wazoku-image-container {
        width: 100% !important;
    }

    .wazoku-image-textcontainer h1 {
        font-size: 1.25em;
    }

    .wazoku-image-textcontainer p {
        font-size: 0.9em;
        line-height: initial;
    }
}

/* IE8 */
.ie8 .wazoku-left-aligned .wazoku-image-textcontainer,
.ie8 .wazoku-right-aligned .wazoku-image-textcontainer {

}