/*
Theme Name: Adsbøll
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
:root {
    --font-family: Arial, sans-serif;
    --font-size-sm: .8rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.5rem;
    --font-size-xl: 30px;

    --grey: #f2f2f2;
}


/* TYPOGRAPHY */
#wrapper * {
    font-family: var(--font-family);
}

#wrapper h1 {
    font-size: var(--font-size-xl);
}

/*#wrapper p:last-of-type {
    margin-bottom: 0;
}*/
/* END TYPOGRAPHY */


/* GENERAL  */
.overflow-hidden * {
    overflow: hidden;
}

.col.padding-10-percent {
    padding: 60px 10% !important;
}

#wrapper a.button:not(.back-to-top) {
    font-weight: 400;
    padding: 0.5em 1.5em;
}
#wrapper a.button.is-simple,
#wrapper a.button.is-outline:not(.back-to-top) {
    min-width: 200px;
}

#wrapper .social-icons a.button {
    min-width: unset !important;
    padding: 0.5em 1em;
}

a.button.white.is-outline:hover {
    color: var(--primary-color) !important;
}

/*.slider-nav-light .flickity-page-dots .dot.is-selected,*/
.flickity-page-dots .dot.is-selected {
    background-color: var(--primary-color);
}

/*.slider-nav-light .flickity-page-dots .dot,*/
.flickity-page-dots .dot {
    border-color: var(--primary-color);
}

iframe {
    border: none;
}

.icon-twitch:before {
    content: "";
}
/* END GENERAL */

/* HEADER */
.header-nav-main {
    justify-content: center;
}

.header-nav ul.sub-menu a:hover,
.header-nav ul.sub-menu a.active {
    color: var(--primary-color);
}

.nav-line-bottom>li>a:before,
.nav-line-grow>li>a:before,
.nav-line>li>a:before {
    top: unset;
    bottom: 0;
    height: 2px;
}

a.nav-top-link {
    color: #888;
}

.header-block-block-1 img {
    height: 30px;
}

/* END HEADER */

/* FOOTER */
#footer ul.menu li {
    border: none;
    font-size: .8rem;
}

#footer ul.menu li a {
    padding-bottom: .2em;
    color: #000;
    transition: .1s ease-in-out;
}

#footer ul.menu li a:hover {
    color: var(--primary-color);
    transition: .1s ease-in-out;
}
/* END FOOTER */

/* HERO SECTION */
.hero-section .flickity-viewport {
    max-height: calc(100vh - 85px) !important;
    min-height: 400px;
}

.hero-section.sub-page .flickity-viewport {
    max-height: calc(70vh - 85px) !important;
}

#wrapper .hero-section h1 {
    font-size: var(--font-size-md);
}

#wrapper .hero-section p {
    font-size: var(--font-size-xl);
    font-weight: 700;
    line-height: calc(var(--font-size-xl) + 4px );
    margin: 2rem auto;
}

#wrapper .hero-section .subheading p {
    font-size: var(--font-size-md);
    font-weight: 400;
    line-height: calc(var(--font-size-md) + 4px );
}

.hero-section .flickity-viewport .img img {
    width: unset;
    max-width: unset;
    min-height: 100%;
    min-width: 100%;
}

.hero-section .overlay {
    background-color: transparent;
}

/* END HERO SECTION */

/* FULL WIDTH SECTIONS WITH IMAGE */
section.full-width-image .row.align-middle.row-full-width {
    align-items: stretch !important;
}

section.full-width-image .row-full-width .col-inner,
section.full-width-image .row-full-width .img,
section.full-width-image .row-full-width #map {
    height: 100% !important;
}

section.full-width-image .row-full-width #map,
section.full-width-image .row-full-width .img-inner {
    padding: 0 !important;
    height: 100% !important;
    min-height: 500px;
}

section.full-width-image .row-full-width #map {
    height: calc(100vh - 85px) !important;
}

section.full-width-image .row-full-width .padding-10-percent .col-inner {
    display: flex;
    flex-flow: column;
    justify-content: center;
}
/* END FULL WIDTH SECTIONS WITH IMAGE */

/* TESTIMONIALS */
.testimonial img {
    border-radius: 100%;
    border: 10px solid var(--primary-color);
}

.testimonial .testimonial-text p::before {
    content: "";
    background: #fff;
    width: 15px;
    height: 15px;
    display: block;
    position: absolute;
    left: -5px;
    transform: rotate(45deg);
    bottom: 1em;
}

.testimonials .slider-nav-outside .flickity-page-dots {
    bottom: -16px;
}
/* END TESTIMONIALS */

/* REFERENCER */
.portfolio-element-wrapper .col-inner {
    border-radius: 5px;
    overflow: hidden;
}

.portfolio-box {
    position: relative;
    min-height: 350px;
}

.portfolio-box .box-text {
    position: unset;
}

.portfolio-element-wrapper .filter-nav {
    padding-bottom: 55px;
}

.portfolio-box .portfolio-box-title {
    color: #000;
    text-transform: initial;
}

.portfolio-box-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #fff;
    opacity: 1;
    padding: .5em 1em;
    border-radius: 3px;
    text-transform: initial;
    font-size: var(--font-size-sm);
}

.portfolio-box .show-on-hover {
    opacity: 1;
}

.single-featured_item #wrapper .hero-section h1 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    line-height: calc(var(--font-size-xl) + 1rem );
    margin-top: 1rem;
}

.single-featured_item #wrapper .hero-section span.category {
    border: 2px solid #fff;
    padding: .5em;
    border-radius: 3px;
}

.hero-section.sub-page.header-video iframe {
    pointer-events: none;
}

.portfolio-single-page {
    background: #fff;
}

.reference-gallery .flickity-viewport {
    max-height: 293.469px;
}

.reference-gallery .flickity-page-dots {
    bottom: -45px;
}

.project-details ul {
    list-style-type: none;
    width: calc(100% / 3);
    min-width: 250px;
}

.project-details ul li {
     margin-left: 0;
}

.project-details .col-inner {
    display: flex;
    flex-flow: row wrap;
}

.single-featured_item #wrapper .portfolio-inner {
    margin: 2em auto;
}

.single-featured_item #wrapper .portfolio-inner table.qr-codes {
    width: unset;
}

.single-featured_item #wrapper .portfolio-inner table.qr-codes td {
    width: 175px;
    border-bottom: 0;
}

.single-featured_item #wrapper .portfolio-inner table.qr-codes td p {
    font-weight: 600;
    color: #000;
}

.single-featured_item #wrapper .portfolio-inner img {
    width: unset;
}

.single-featured_item #wrapper .portfolio-inner .qr-codes img {
    max-width: 125px;
}

.featured-title {
    background: transparent !important;
}

.single-featured_item #wrapper .portfolio-inner ul li {
    margin-left: 1.5em;
    margin-bottom: 0;
}

/*.portfolio-element-wrapper.has-filtering .large-featured .portfolio-box {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

.portfolio-element-wrapper.has-filtering .large-featured .portfolio-box .box-image {
    width: 125%;
}

.portfolio-element-wrapper.has-filtering .large-featured .portfolio-box .box-image .image-zoom.image-cover[style] {
    padding-top: 109% !important;
}*/

.references-archive > .col {
    position: relative;
}

.references-archive > .col .portfolio-box .export-selection {
    position: absolute;
    top: 1em;
    right: 1em;

    width: 2em;
    height: 2em;
    border-radius: 100%;
    background: #fff;
    opacity: .7;
    color: #fff;
    cursor: pointer;
    z-index: 1;
    transition: .3s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.references-archive > .col .portfolio-box.selected .export-selection {
    background: var(--primary-color);
    opacity: 1;
    transition: .3s ease-in-out;
}

.references-archive h6.uppercase.portfolio-box-title {
    min-height: 82px;
}

/* filter  */
#sidebar ul.nav[class*="filter-nav"] {
    flex-direction: column;
    align-items: flex-start;
}

#sidebar {
    background: #fff;
    padding: 2em;
    word-break: break-all;
    border-radius: 5px;
    position: sticky;
}

#sidebar ul.nav[class*="filter-nav"]+ul.nav[class*="filter-nav"] {
    margin-top: 2em;
}

#sidebar ul.nav[class*="filter-nav"] li {
    margin: 0 !important;
}

#sidebar ul.nav[class*="filter-nav"] li::after {
    content: '';
    position: absolute;
    display: block;
    height: 2px;
    width: 0;
    border-radius: 99px;
    transition: .3s ease-in-out;
}

#sidebar ul.nav[class*="filter-nav"] li:hover::after,
#sidebar ul.nav[class*="filter-nav"] li.active::after {
    width: 100%;
    background: var(--primary-color);
    transition: .3s ease-in-out;
}

#sidebar ul.nav[class*="filter-nav"] li a {
    padding-bottom: 0;
    color: #000;
    font-weight: 400;
}

#sidebar ul.nav[class*="filter-nav"] li:first-child a {
    font-weight: 700;
    font-size: .9rem;
}
/* end filter */
/* END REFERENCER */

/* KONTAKT */
.team .member .col-inner {
    overflow: hidden;
}

.team .member h4 {
    text-transform: initial;
}
/* END KONTAKT */

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
    /* HERO SECTION */
    #wrapper .hero-section p {
        font-size: var(--font-size-md);
        font-weight: 700;
        line-height: calc(var(--font-size-md) + 4px );
    }


    .hero-section .overlay {
        padding: 2em;
    }

    .hero-section .flickity-viewport .img,
    .hero-section .flickity-viewport .img .img-inner {
        height: 100% !important;
        max-height: 100% !important;
    }
    /* END HERO SECTION */


    /* REFERENCER */
    .single-featured_item #wrapper .hero-section h1 {
        font-size: var(--font-size-md);
        font-weight: 700;
        line-height: calc(var(--font-size-md) + 4px );
    }

    /* END REFERENCER */

}

@media only screen and (max-width: 549px) {
    .hero-section.sub-page .flickity-viewport {
        height: calc(100vh - 85px) !important;
        max-height: calc(100vh - 85px) !important;
    }

    /* TESTIMONIALS */
    .testimonial .testimonial-text p::before {
        left: calc(50% - 7.5px);
        bottom: -7px;
    }
    /* END TESTIMONIALS */

    /* FOOTER */
    #footer section > .section-content > .row > .col:first-child * {
        margin: 0 auto;
        margin-bottom: 1em;
        text-align: center;
    }
    /* END FOOTER */
}


