/**
 * Theme Name:     Jupiter - Aller
 * Theme URI: 		http://demos.artbees.net/jupiter5
 * Description:    Child theme of the Jupiter theme, with Aller Media corrections
 * Author:         Aller
 * Version:        1.0.0
 * Author URI:     http://aller.dk/
 * Theme URI: 		http://themeforest.net/user/artbees
 * Template:       jupiter
 * Text Domain:    mk_framework
 * Domain Path:    /languages/
 */

/* Quick fixes / Grid Corrections */
#theme-page {
    overflow-x: hidden;
}
#mk-footer strong {
    color: #ffffff;
}
.mk-fancy-title {
    text-shadow: 0 0 1rem rgba(0, 0, 0, 0.1);
}
#theme-page .theme-page-wrapper {
    margin: 0 auto 20px;
}
#theme-page .theme-page-wrapper .theme-content {
    padding: 0px 20px 30px;
}
.header-style-1.header-align-left .header-logo {
    float: inherit;
}
@media handheld, only screen and (max-width: 960px) {
    .theme-page-wrapper:not(.full-width-layout) .theme-content:not(.no-padding) {
        padding: 0 0 25px !important;
    }
}
.wpb_gmaps_widget.wpb_content_element .wpb_wrapper {
    padding: 0;
}
.header-toolbar-contact a:hover {
    color: black;
}

#mk-footer .widget:not(.widget_social_networks) a:hover {
    color: white !important;
}

/** 
 * Author: Andreas Olesen
 * Date: 30-05-2018 / 06-06-2018
 * Elements, structure & classes.
 */

/* Global Usage - Custom Classes */
.aller_relative {
    position: relative;
}
.aller_coverlink {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* Aller Item - Global rules */
/* Read more - Button */
.aller_item .readmore {
    font-size: 1rem;
    position: absolute;
    bottom: 0;
    background-color: black;
    padding: 10px 30px;
    font-family: 'Droid Serif', serif;
    text-transform: uppercase;
    font-style: italic;
    color: white;
    -webkit-transition: ease-in-out 300ms;
    transition: ease-in-out 300ms;
}
.aller_item:hover .readmore {
    background-color: #990000;
}

/* Default Title style*/
.aller_item .aller_title {
    text-align: center;
    margin: 15px 0;
    font-family: 'Droid Serif', serif;
    color: black;
    text-transform: uppercase;
    font-style: italic;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    font-size: 1rem;
}

/* Default Description style */
.aller_item .aller_desc {
    font-size: 14px;
    color: #8a8a8a;
    line-height: 1.66em;
    font-weight: 400;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Default Image handling */
.aller_item .aller_image {
    position: relative;
    text-align: center;
}

/* Default Item Wrapper style */
.aller_item .aller_item_wrapper {
    margin: 15px;
    position: relative;
}

.aller_component .heading {
    padding-left: 15px;
    padding-right: 15px;
}

/* Area Defaults */
/* Entry Item */
.aller_entry_item {
    margin: 0;
    -webkit-box-flex: 0;
    -ms-flex: 0 1 auto;
    flex: 0 1 auto;
}
.aller_entry_item .aller_item_wrapper {
    margin-left: 0;
    margin-right: 0;
}

/* Related Pages */
/* Grid fix */
.aller_related_pages .aller_item_wrapper {
    position: relative;
    margin: 15px;
}
.aller_related_pages ul {
    padding: 0;
    margin: 0;
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    list-style: none;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    -webkit-box-pack: flex-start;
    -ms-flex-pack: flex-start;
    justify-content: flex-start;
    margin-left: -15px;
    margin-right: -15px;
}
.aller_related_pages ul li {
    margin: 0;
    width: 16.66%;
    padding: 0;
    -webkit-box-flex: 0;
    -ms-flex: 0 1 auto;
    flex: 0 1 auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    position: relative;
}
.aller_related_pages .aller_title {
    background-color: black;
    display: inline-block;
    padding: 4px 20px;
    position: absolute;
    bottom: 0;
    left: 0;
    color: white;
    font-family: 'Droid Serif', serif;
    text-transform: uppercase;
    font-style: italic;
    font-size: .75rem;
    transition: ease-in-out 300ms;
}
.aller_related_pages .aller_related_item:hover .aller_title {
    background-color: #990000;
}
.aller_related_pages .heading {
    padding-left: 0;
    padding-right: 0;
}

/* Related Pages Express */
/* Grid fix */
.aller_related_pages_express {
    margin-left: -15px;
    margin-right: -15px;
}
.aller_related_pages_express ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}
.aller_related_pages_express .aller_related_item {
    margin: 0;
    width: 25%;
    -webkit-box-flex: 0;
    -ms-flex: 0 1 auto;
    flex: 0 1 auto;
}
.aller_related_pages_express .heading {
    padding: 20px 15px;
}
.aller_related_pages_express .heading .title {
    font-size: 42px;
    border-bottom: 1px solid #ebebeb;
    padding-bottom: 20px;
    margin-bottom: 0;
}

/* Employees Component */
/* Default style */
.aller_employee {
    margin-left: -15px;
    margin-right: -15px;
}
.aller_employee ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}
.aller_employee .aller_employee_item {
    margin: 0;
    width: 25%;
    -webkit-box-flex: 0;
    -ms-flex: 0 1 auto;
    flex: 0 1 auto;
}
.aller_employee .thumb {
    position: relative;
}
.aller_employee .details {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    z-index: 2;
}
.aller_employee .emp_overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.2);
    visibility: hidden;
    opacity: 0;
    -webkit-transition: ease-in-out 300ms;
    transition: ease-in-out 300ms;
}
.aller_employee .emp_person {
    padding: 1rem 0;
    text-align: center;
}
.aller_employee .aller_item_wrapper:hover .emp_overlay {
    visibility: visible;
    opacity: 1;
}
.aller_employee .call {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    height: 4rem;
    background-color: rgba(153, 0, 0, .8);
    width: 100%;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    max-height: 0;
    overflow: hidden;
    -webkit-transition: ease-in-out 300ms;
    transition: ease-in-out 300ms;
    opacity: 0;
}
.aller_employee .aller_phone {
    color: white;
}
.aller_employee .aller_phone:hover {
    color: #ddd;
}
.aller_employee .networks {
    height: 100%;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin-top: 2rem;
}
.aller_employee .networks li {
    margin-left: 0px;
    width: 3rem;
    height: 3rem;
    display: inline-block;
    border: 2px solid white;
    border-radius: 50%;
    overflow: hidden;
    line-height: 1;
    box-shadow: 0 0 2rem rgba(0, 0, 0, 0.1);
    -webkit-transition: ease-in-out 200ms;
    transition: ease-in-out 200ms;
}
.aller_employee .networks a {
    color: white;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    -webkit-transition: ease-in-out 300ms;
    transition: ease-in-out 300ms;
}
.aller_employee .networks li:hover {
    background-color: white;
}
.aller_employee .networks li:hover a {
    color: #990000
}
.aller_employee .aller_item_wrapper:hover .details {
    visibility: visible;
    opacity: 1;
}
.aller_employee .aller_item_wrapper:hover .details .social {
    max-height: 100%;
    opacity: 1;
}
.aller_employee .aller_item_wrapper:hover .details .call {
    max-height: 100%;
    opacity: 1;
}
.aller_employee .social {
    max-height: 0;
    overflow: hidden;
    -webkit-transition: ease-in-out 300ms;
    transition: ease-in-out 300ms;
    opacity: 0;
}
.aller_employee .networks li+li {
    margin-left: 15px !important;
}

/* Employee - Boxed */
.aller_employee_box {
    padding: 0 15px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 30px;
}
.aller_employee_box .emp_details {
    padding: 30px;
}
.aller_employee_box .position {
    color: black;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 10px;
}
.aller_employee_box .emp_details ul {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}
.aller_employee_box .emp_details ul li {
    margin: 0;
    padding: 5px 0;
}
.aller_employee_box .emp_details ul li .fa {
    margin-right: 5px;
}

/* RSS Reader */
/* Default style */
.aller_rss_reader {
    margin-bottom: 35px;
}
.aller_rss_reader .feed_item {
    width: 33.33%;
}
.aller_rss_reader.loading {
    background-color: #eee;
    height: 300px;
}
.aller_rss_reader.loading * {
    visibility: hidden;
    opacity: 0;
}

/* Buttons */
/* Aller Button - Global rules */
.aller_button .mk-svg-icon {
    height: 24px;
    opacity: 0;
    -webkit-transition: ease-in-out 300ms;
    transition: ease-in-out 300ms;
}
.aller_button {
    margin-bottom:30px;
}
.aller_button .btn_main {
    text-align: center;
    padding: 20px;
    color: white;
    text-transform: uppercase;
}
.aller_button .btn_full {
    display: block;
}

/* Aller button - Slide Style */
.btn_style_slide {
    position: relative;
    text-align: center;
    width: 100%;
    display: block;
    border: 3px solid white;
}
.btn_style_slide a {
    -webkit-transition: ease-in-out 300ms;
    transition: ease-in-out 300ms;
}
.btn_style_slide a:after {
    position: absolute;
    content: '';
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    max-width: 0%;
    background-color: white;
    -webkit-transition: ease-in-out 300ms;
    transition: ease-in-out 300ms;
    z-index: -1;
}
.btn_style_slide:hover a:after {
    max-width: 100%;
}
.btn_style_slide:hover a {
    color: black;
}

/* Aller button - Icon Style */
.btn_style_icon {
    position: relative;
    text-align: center;
    width: 100%;
    display: block;
    border: 3px solid #2c3e50;
    background-color: #2c3e50;
}
.btn_style_icon .btn_main {
    padding: 30px 20px;
}
.btn_style_icon .btn_text {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin-top: 0px;
    -webkit-transition: ease-in-out 300ms;
    transition: ease-in-out 300ms;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}
.btn_style_icon .btn_overlay {
    padding: 20px;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 100%;
    visibility: hidden;
    opacity: 0;
    -webkit-transition: ease-in-out 300ms;
    transition: ease-in-out 300ms;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}
.btn_style_icon:hover .btn_overlay {
    visibility: visible;
    opacity: 1;
    bottom: 0;
}
.btn_style_icon:hover .btn_text {
    opacity: 0;
    top: 100%;
}
.btn_style_icon:hover .mk-svg-icon {
    opacity: 1;
}

/* Responsive rules */
@media (max-width: 1140px) {
    .aller_related_pages {
        padding-left: 15px;
        padding-right: 15px;
    }
    .aller_related_pages ul li {
        width: 25%;
    }
}
@media (max-width: 1000px) {
    .aller_employee .aller_employee_item,
    .aller_related_pages_express .aller_related_item {
        width: 33.3%;
    }
    .aller_rss_reader .feed_item {
        width: 33.33%;
    }
}
@media (max-width: 768px) {
    .aller_employee .aller_employee_item,
    .aller_related_pages_express .aller_related_item {
        width: 50%;
    }
    .aller_related_pages ul li {
        width: 33%;
    }
    .uc_icon_hover_effect_button .uc_color-5 .uc_btn {
        height: auto !important;
        padding-left: .5rem !important;
        padding-right: .5rem !important;
        font-size: 1rem !important;
    }
    .aller_rss_reader .feed_item {
        width: 50%;
    }
}
@media (max-width: 568px) {
    .aller_employee_box {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
}
@media (max-width: 480px) {
    .aller_employee .aller_employee_item,
    .aller_related_pages_express .aller_related_item {
        width: 100%;
    }
    .aller_related_pages ul li {
        width: 50%;
    }
    .aller_rss_reader .feed_item {
        width: 100%;
    }
    .aller_rss_reader .flickity-page-dots {
        display: none;
    }
}