/**
 * HERO
 * 
 * Contains styling for the hero app.
 */

/* General
---------------------------------------------------------*/

.jor-hero {
    position: relative;
    display: flex;
}

.jor-hero * {
    box-sizing: border-box;
}

.jor-hero__content {
    padding: 2rem;
}

.jor-hero .jor-hero__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Typography
---------------------------------------------------------*/

.jor-hero .jor-hero__heading {
    margin: 0;
    font-size: 3.75em;
    line-height: 4.4rem;
    margin-top: 0;
    margin-bottom: .4em;
    font-weight: 600;
}

.jor-hero .jor-hero__text {
    font-size: 1.3rem;
    line-height: 1.875rem;
}

/* Links
---------------------------------------------------------*/

.jor-hero .jor-hero__item-link:not(.jor-hero__heading > a) {
    margin-top: 2rem;
}

.jor-hero .jor-hero__item-link:not(.jor-hero__heading > a)::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 600;
    content: "\f054";
    display: inline-block;
    margin-left: .9rem;
}

/* Layout: Image Top
---------------------------------------------------------*/

.jor-hero.jor-hero__image-top .jor-hero__image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
}

.jor-hero.jor-hero__image-top .jor-hero__image-wrapper::after {
    position: absolute;
    z-index: 0;
    content: "";
    width: 100%;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
}

.jor-hero.jor-hero__image-top .jor-hero__content {
    position: relative;
    text-align: left;
    padding: 5.4rem 2rem;
    width: 100%;
    max-width: 1130px;
    margin-right: auto;
    margin-left: auto;
    box-sizing: border-box;
}

.jor-hero.jor-hero__image-top .jor-hero__heading,
.jor-hero.jor-hero__image-top .jor-hero__text {
    color: #fff;
    max-width: 700px;
}

.jor-hero.jor-hero__image-top .jor-hero__heading > .jor-hero__item-link,
.jor-hero.jor-hero__image-top .jor-hero__heading > .jor-hero__item-link:hover {
    color: inherit;
}

/* Layout: No Image
---------------------------------------------------------*/

.jor-hero:not(.jor-hero__hasImage) {
    position: relative;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    justify-content: center;
}

/* Layout: Image Left/Right
---------------------------------------------------------*/

.jor-hero__image-right .jor-hero__content,
.jor-hero__image-left .jor-hero__content {
    align-self: center;
    width: 50%;
}

.jor-hero__image-left .jor-hero__image-wrapper,
.jor-hero__image-right .jor-hero__image-wrapper {
    width: 50%;
}

/* Layout: Image Bottom
---------------------------------------------------------*/

.jor-hero__image-bottom {
    flex-direction: column;
}

/* Responsive
---------------------------------------------------------*/

@media (max-width: 767px) {
    .jor-hero.jor-hero__image-top .jor-hero__content,
    .jor-hero__content {
        padding: 2rem 1rem;
    }

    .jor-hero.jor-hero__image-right,
    .jor-hero.jor-hero__image-left,
    .jor-hero.jor-hero__image-bottom {
        flex-direction: column;
    }

    .jor-hero__image-right .jor-hero__content,
    .jor-hero__image-left .jor-hero__content,
    .jor-hero__image-bottom .jor-hero__content {
        width: 100%;
        order: 1;
    }

    .jor-hero__image-left .jor-hero__image-wrapper,
    .jor-hero__image-right .jor-hero__image-wrapper {
        width: 100%;
    }
}
