/* 
 * 	Author: Piotr Elmanowski
 *  Company: Frontoes.com
 *  Distributed and described: css-workshop.com
 *	v1.0
 */

.hvrbox,
.hvrbox * {
    box-sizing: border-box;
}

.hvrbox {
    position: relative;
    display: inline-block;
    overflow: hidden;
    max-width: 100%;
    height: auto;
}

    .hvrbox img {
        max-width: 100%;
    }

h6 {
    font-size: 16px;
    font-weight: normal
}

.box-description {
    display: inline-block;
    width: 100%;
    padding: 5px;
    line-height: 24px;
}

.hvrbox_background {
    width: auto;
    height: auto;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hvrbox .hvrbox-layer_bottom {
    display: block;
}

.hvrbox .hvrbox-layer_top {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 80%;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 0px;
    -moz-transition: all 0.4s ease-in-out 0s;
    -webkit-transition: all 0.4s ease-in-out 0s;
    /*-ms-transition: all 0.4s ease-in-out 0s;*/
    transition: all 0.4s ease-in-out 0s;
}

.hvrbox .hvrbox-layer_top2 {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 1);
    color: #000;
    padding: 0px;
    -moz-transition: all 0.4s ease-in-out 0s;
    -webkit-transition: all 0.4s ease-in-out 0s;
    /*-ms-transition: all 0.4s ease-in-out 0s;*/
    transition: all 0.4s ease-in-out 0s;
}

.hvrbox .hvrbox-layer_top3 {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 80%;
    background: rgba(0, 56, 102, 1);
    color: #fff;
    padding: 0px;
    -moz-transition: all 0.4s ease-in-out 0s;
    -webkit-transition: all 0.4s ease-in-out 0s;
    /*-ms-transition: all 0.4s ease-in-out 0s;*/
    transition: all 0.4s ease-in-out 0s;
}

.hvrbox:hover .hvrbox-layer_top3,
.hvrbox.active .hvrbox-layer_top3 {
    opacity: 1;
}

.hvrbox:hover .hvrbox-layer_top2,
.hvrbox.active .hvrbox-layer_top2 {
    opacity: 1;
}

.hvrbox:hover .hvrbox-layer_top,
.hvrbox.active .hvrbox-layer_top {
    opacity: 1;
}

.hvrbox .hvrbox-text {
    text-align: center;
    width: 95%;
    display: inline-block;
    position: absolute;
    top: 50%;
    left: 50%;
    height: 100%;
    -moz-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.hvrbox .hvrbox-text_mobile {
    font-size: 15px;
    border-top: 1px solid rgb(179, 179, 179); /* for old browsers */
    border-top: 1px solid rgba(179, 179, 179, 0.7);
    margin-top: 5px;
    padding-top: 2px;
    display: none;
}

.hvrbox.active .hvrbox-text_mobile {
    display: block;
}

.hvrbox .hvrbox-layer_image {
    padding: 0;
    background: none;
}

.hvrbox .hvrbox-layer_slideup {
    -moz-transform: translateY(100%);
    -webkit-transform: translateY(100%);
    -ms-transform: translateY(100%);
    transform: translateY(100%);
}

.hvrbox:hover .hvrbox-layer_slideup,
.hvrbox.active .hvrbox-layer_slideup {
    -moz-transform: translateY(0);
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
}

.hvrbox .hvrbox-layer_slidedown {
    -moz-transform: translateY(-100%);
    -webkit-transform: translateY(-100%);
    -ms-transform: translateY(-100%);
    transform: translateY(-100%);
}

.hvrbox:hover .hvrbox-layer_slidedown,
.hvrbox.active .hvrbox-layer_slidedown {
    -moz-transform: translateY(0);
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
}

.hvrbox .hvrbox-layer_slideleft {
    -moz-transform: translateX(100%);
    -webkit-transform: translateX(100%);
    -ms-transform: translateX(100%);
    transform: translateX(100%);
}

.hvrbox:hover .hvrbox-layer_slideleft,
.hvrbox.active .hvrbox-layer_slideleft {
    -moz-transform: translateX(0);
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
}

.hvrbox .hvrbox-layer_slideright {
    -moz-transform: translateX(-100%);
    -webkit-transform: translateX(-100%);
    -ms-transform: translateX(-100%);
    transform: translateX(-100%);
}

.hvrbox:hover .hvrbox-layer_slideright,
.hvrbox.active .hvrbox-layer_slideright {
    -moz-transform: translateX(0);
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
}

.hvrbox .hvrbox-layer_scale {
    border-radius: 50%;
    -moz-transform: scale(0);
    -webkit-transform: scale(0);
    -ms-transform: scale(0);
    transform: scale(0);
}

.hvrbox:hover .hvrbox-layer_scale,
.hvrbox.active .hvrbox-layer_scale {
    border-radius: 0%;
    -moz-transform: scale(1);
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
}

.hvrbox .hvrbox-layer_rotate {
    border-radius: 50%;
    -moz-transform: rotateZ(0);
    -webkit-transform: rotateZ(0);
    -ms-transform: rotateZ(0);
    transform: rotateZ(0);
}

.hvrbox:hover .hvrbox-layer_rotate,
.hvrbox.active .hvrbox-layer_rotate {
    border-radius: 0%;
    -moz-transform: rotateZ(360deg);
    -webkit-transform: rotateZ(360deg);
    -ms-transform: rotateZ(360deg);
    transform: rotateZ(360deg);
}

.hvrbox .hvrbox-layer_scale-rotate {
    border-radius: 50%;
    -moz-transform: scale(0) rotateZ(0);
    -webkit-transform: scale(0) rotateZ(0);
    -ms-transform: scale(0) rotateZ(0);
    transform: scale(0) rotateZ(0);
}

.hvrbox:hover .hvrbox-layer_scale-rotate,
.hvrbox.active .hvrbox-layer_scale-rotate {
    border-radius: 0%;
    -moz-transform: scale(1) rotateZ(360deg);
    -webkit-transform: scale(1) rotateZ(360deg);
    -ms-transform: scale(1) rotateZ(360deg);
    transform: scale(1) rotateZ(360deg);
}

@media only screen and (min-device-width : 375px) and (max-device-width : 812px) and (-webkit-device-pixel-ratio : 3) { /* STYLES GO HERE */
    .box-description {
        font-size: 1vw;
    }
}
/* iphone 6, 7, and 8 in portrait & landscape*/
@media only screen and (min-device-width : 375px) and (max-device-width : 667px) { /* STYLES GO HERE */
    .hvrbox-text {
        display: none;
    }
}
/*iPhone 6, 7, & 8 in landscape*/
@media only screen and (min-device-width : 375px) and (max-device-width : 667px) and (orientation : landscape) { /* STYLES GO HERE */
    .box-description {
        width: 250px;
    }
}


/*iPhone 6, 7, & 8 in portrait**/
@media only screen and (min-device-width : 375px) and (max-device-width : 667px) and (orientation : portrait) { /* STYLES GO HERE */
    .box-description {
        width: 180px;
    }
}

/* iPhone 2G-4S in portrait & landscape*/
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) { /* STYLES GO HERE */
    .box-description {
        width: 180px;
    }
}


/*iPad mini in portrait & landscape*/
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (-webkit-min-device-pixel-ratio: 1) {
    /* STYLES GO HERE */
    .box-description {
        width: 180px;
    }
}


/*iPad mini in landscape*/
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) and (-webkit-min-device-pixel-ratio: 1) {
    /* STYLES GO HERE */
    .box-description {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .box-description {
        width: 100%;
        /*font-size: 1.25vw !important;*/
    }
}

/*iPad mini in portrait*/
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) and (-webkit-min-device-pixel-ratio: 1) {
    /* STYLES GO HERE */
    /*.box-description {
        font-size: 1vw;
    }*/
}

/*iPad in portrait & landscape*/
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) {
    /* STYLES GO HERE */
    /*.box-description {
        font-size: 1vw;
    }*/
}


/*iPad in landscape*/
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) {
    /* STYLES GO HERE */
    /*.box-description {
        font-size: 1vw;
    }*/
}


/*iPad in portrait*/
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) {
    /* STYLES GO HERE */
    /*.box-description {
        font-size: 1vw;
    }*/
}


/*=====iPad 3 & 4 Media Queries=====*/
/*Retina iPad in portrait & landscape*/
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (-webkit-min-device-pixel-ratio: 2) {
    /* STYLES GO HERE */
    /*.box-description {
        font-size: 1vw;
    }*/
}


/*Retina iPad in landscape*/
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) and (-webkit-min-device-pixel-ratio: 2) {
    /* STYLES GO HERE */
    /*.box-description {
        font-size: 1vw;
    }*/
}


/*Retina iPad in portrait*/
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) and (-webkit-min-device-pixel-ratio: 2) {
    /* STYLES GO HERE */
    /*.box-description {
        font-size: 1vw;
    }*/
}



/*iPad 1 & 2 in portrait & landscape*/
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (-webkit-min-device-pixel-ratio: 1) {
    /* STYLES GO HERE */
    /*.box-description {
        font-size: 1vw;
    }*/
}


/*iPad 1 & 2 in landscape*/
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) and (-webkit-min-device-pixel-ratio: 1) {
    /* STYLES GO HERE */
    /*.box-description {
        font-size: 1vw;
    }*/
}


/*iPad 1 & 2 in portrait*/
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) and (-webkit-min-device-pixel-ratio: 1) {
    /* STYLES GO HERE */
    /*.box-description {
        font-size: 1vw;
    }*/
    #sidebar {
        display: none;
    }
}

/* ----------- Non-Retina Screens ----------- */
@media screen and (min-device-width: 1200px) and (max-device-width: 1600px) and (-webkit-min-device-pixel-ratio: 1) {
    /*.box-description {
        font-size: 1vw;
    }*/
}

/* ----------- Retina Screens ----------- */
@media screen and (min-device-width: 1200px) and (max-device-width: 1600px) and (-webkit-min-device-pixel-ratio: 2) and (min-resolution: 192dpi) {
    /*.box-description {
        font-size: 1vw;
    }*/

}
