@supports (-webkit-touch-callout: none) {
    /* CSS specific to iOS devices */
    .uk-background-fixed {
        background-attachment: scroll !important;
    }
}
@supports (-webkit-touch-callout: none) {
  /* CSS specific to iOS devices */ 
	.uk-background-fixed {
		background-attachment:scroll!important; /* usually fixed but not working on iOS */
	}
}
/* small screens */
@media (max-width:576px) {

    .overlay h1, .overlay h2 {
        font-size: 1.2rem;
    }

    .reverse-order .position-center {
        transform: initial !important;
    }
}

/* medium screens */
@media (min-width:576px) and (max-width:768px) {
    #relatedArticles h3.mt-2 {
        font-size: 1rem;
    }
}

@media (max-width: 992px) {
    .position-center, .position-center-left, .position-center-right {
        top: 50%;
        left: 0;
        transform: translate(0, -50%) !important;
        width: max-content;
        max-width: 100%;
        box-sizing: border-box;
        position: inherit !important;
    }

    .overlay {
        max-width: 90% !important;
    }

    .media img {
        width: 100%;
    }

    .container-fluid .media {
        padding: 0 !important;
    }

    .container-fluid .video, .container-fluid .media {
        margin-bottom: 0 !important;
    }
}

/*desktop */
@media (min-width: 993px) {
    .position-center, .position-center-left, .position-center-right {
        top: 50%;
        transform: translate(-50%, -50%);
        width: max-content;
        max-width: 100%;
        /*padding: inherit;*/
        box-sizing: border-box;
        position: absolute !important;
    }

    .position-center {
        left: 50%;
    }

    .position-center-left {
        transform: translate(10%, -50%);
    }

    .position-center-right {
        transform: translate(-10%, -50%);
        right: 0;
        left: auto;
    }
}


/* all */
.overlay {
    background-color: #f7f7f7;
    width: max-content;
    margin: auto;
    padding: 1.25rem;
    border-radius: 1.25rem;
    opacity: 0.8;
    max-width: fit-content;
}

.bg-secondary a {
    color: #fff;
}

.video-wrapper iframe {
    width: 100%;
}

/* full width settings */
.container-fluid .image > img, .container-fluid .media img, .container-fluid.grid-row div[class*="bg-"] {
    border-radius: 0 !important;
}

.container-fluid.px-0 .col-12 {
    padding-left: 0;
    padding-right: 0;
}

.container-fluid .row {
    height: 100%;
    margin-right: 0;
    margin-left: 0;
}
/* --- end ---*/

.shaddow {
    -webkit-box-shadow: 2px 9px 10px -3px rgba(0,0,0,.5);
    -moz-box-shadow: 2px 9px 10px -3px rgba(0,0,0,.5);
    box-shadow: 2px 9px 10px -3px rgba(0,0,0,.5);
}

.gjennomsiktig {
    opacity: 0.8;
}

.background-fixed {
    background-attachment: fixed;
    backface-visibility: hidden;
}

.mt-neg-100 {
    margin-top: -82px;
}

blockquote {
    padding-top: 35px;
    padding-bottom: 35px;
}

/* content width */
.content-width-small {
    width: 200px !important;
}

.content-width-medium {
    width: 350px !important;
}

@media (min-width: 634px) {
    .content-width-large {
        width: 634px !important
    }
}

/* position */
.position-bottom {
    bottom: 0;
    left: 0;
    right: 0;
    position: absolute !important;
}

.uk-background-fixed {
    background-attachment: fixed;
    backface-visibility: hidden;
}


/* test removing alle padding in bottom */
.column p:last-of-type {
    margin-bottom: 0 !important;
}

.container > div {
    border-radius: 15px;
}

.credits-container {
    z-index: 150;
    width: 100%;
    isplay: block;
}

.grid-row div[class*="bg-"] {
    border-radius: 10px;
}

.display-inline {
    display: inline-block;
    position: relative;
    max-width: 100%;
    vertical-align: middle;
    -webkit-backface-visibility: hidden;
}

/* credits */
.credits {
    width: 100%;
    position: relative;
    right: 0;
    bottom: 0;
    margin-right: 18px;
}

.credits-container .credits .credits-toggle {
    position: absolute;
    right: 10px;
    bottom: 5px;
    cursor: pointer;
    height: 30px;
    width: 30px;
    margin-right: 15px;
    background-color: rgba(247, 247, 247, 0.5);
    border-radius: 50%;
    -webkit-mask-image: -webkit-radial-gradient(circle, white 100%, black 100%);
    z-index: 151;
    padding: 4px;
}

.credits-toggle[aria-expanded=true] {
    background-color: rgba(247, 247, 247, 0) !important;
}

.credits-text {
    background-color: rgba(247, 247, 247, 0.8);
    margin-right: 20px !important;
    padding: 3px 50px 3px 20px;
    border-radius: 25px;
    margin-left: 15px;
    width: fit-content;
    float: right;
    margin-bottom: 5px;
    border: 1px solid rgba(0,0,0,0.5);
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 150;
}

.credits-container .credits .credits-toggle:before {
    content: 'i';
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    -khtml-border-radius: 50%;
    margin: 4px 15px 4px 4px;
    font-size: 20px;
    color: #000;
    border: 2px solid #000;
    height: 22px;
    line-height: 18px;
    width: 22px;
    text-align: center;
    padding: 0;
    text-shadow: none;
    display: table-cell;
}

/* QUOTE */
.quote-bubble {
    margin-bottom: 18px;
    display: inline-block;
    position: relative;
    min-width: 150px;
    height: auto;
    background-color: #ffe500;
    line-height: 1.2;
    border-radius: 70px !important;
    -webkit-border-radius: 70px !important;
    -moz-border-radius: 70px !important;
    box-shadow: 4px 4px 0 1px #000;
}

    .quote-bubble:after {
        content: ' ';
        position: absolute;
        width: 0;
        height: 0;
        left: 13px;
        right: auto;
        top: auto;
        bottom: -13px;
        border: 22px solid;
        border-color: transparent transparent transparent #ffe500;
        transform: rotate(15deg);
    }

    .quote-bubble.bg-secondary:after {
        border-color: transparent transparent transparent #6c207b !important;
    }

    .quote-bubble:before {
        content: ' ';
        position: absolute;
        width: 0;
        height: 0;
        left: 18px;
        right: auto;
        top: auto;
        bottom: -10px;
        border: 10px solid;
        border-color: #000 transparent transparent #000;
        transform: rotate(15deg);
    }

    .quote-bubble .px-5 {
        padding-top: 3em;
        padding-bottom: 3em;
    }


/* video */
.video-background {
    position: relative;
    background-color: #000;
    height: calc(100vh - 75px);
    min-height: 25rem;
    width: 100%;
    overflow: hidden;
}

    .video-background video {
        position: absolute;
        top: 50%;
        left: 50%;
        min-width: 100%;
        min-height: 100%;
        width: auto;
        height: auto;
        z-index: 0;
        -ms-transform: translateX(-50%) translateY(-50%);
        -moz-transform: translateX(-50%) translateY(-50%);
        -webkit-transform: translateX(-50%) translateY(-50%);
        transform: translateX(-50%) translateY(-50%);
    }
