﻿/* ----------------------------------------------------------------

	Layouts.scss

-----------------------------------------------------------------*/
/* ----------------------------------------------------------------
	Bootstrap Adjustments
-----------------------------------------------------------------*/
@media (prefers-reduced-motion: no-preference) {
    :root {
        scroll-behavior: auto;
    }
}

[class*=col-]:not([class*=sticky-]):not([class*=position-]) {
    position: relative;
}

@media (max-width: 575.98px) {
    .card-columns {
        -moz-column-count: 3;
        column-count: 3;
        -moz-column-gap: 1.25rem;
        column-gap: 1.25rem;
        orphans: 1;
        widows: 1;
    }

        .card-columns.grid-2 {
            -moz-column-count: 2;
            column-count: 2;
        }

        .card-columns > * {
            display: inline-block;
            width: 100%;
        }
}

.form-group {
    margin-bottom: 1rem;
}

/*	Custom Bootstap Columns */
.col-1-5 {
    flex: 0 0 auto;
    width: 20%;
}

@media (min-width: 576px) {
    .col-sm-1-5 {
        flex: 0 0 auto;
        width: 20%;
    }
}

@media (min-width: 768px) {
    .col-md-1-5 {
        flex: 0 0 auto;
        width: 20%;
    }
}

@media (min-width: 992px) {
    .col-lg-1-5 {
        flex: 0 0 auto;
        width: 20%;
    }
}

@media (min-width: 1200px) {
    .col-xl-1-5 {
        flex: 0 0 auto;
        width: 20%;
    }
}

@media (min-width: 1400px) {
    .col-xxl-1-5 {
        flex: 0 0 auto;
        width: 20%;
    }
}

#wrapper {
    position: relative;
    float: none;
    width: 100%;
    margin: 0 auto;
    background-color: var(--cnvs-body-bg);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

@media (min-width: 1200px) {
    body:not(.stretched) #wrapper {
        max-width: 1200px;
    }
}

@media (min-width: 1400px) {
    body:not(.stretched) #wrapper {
        max-width: 1400px;
    }
}

.stretched #wrapper {
    width: 100%;
    margin: 0;
    box-shadow: none;
}

/* ----------------------------------------------------------------
	Sections
-----------------------------------------------------------------*/
.section {
    position: relative;
    width: 100%;
    margin: var(--cnvs-section-margin) 0;
    padding: var(--cnvs-section-padding) 0;
    background-color: var(--cnvs-section-bg);
    overflow: hidden;
}

    .section .container {
        z-index: 2;
    }

        .section .container + .video-wrap {
            z-index: 1;
        }

.parallax {
    --cnvs-parallax-ratio: 2;
    --cnvs-parallax-width: 100%;
    --cnvs-parallax-height: calc(1px * (var(--cnvs-scroll-height) + ((var(--cnvs-parallax-ratio) * 100))));
    --cnvs-parallax-factor: -1px;
    --cnvs-parallax-value: calc(var(--cnvs-parallax-factor) * var(--cnvs-parallax-ratio) * var(--cnvs-scroll-percent));
    overflow: hidden;
    will-change: transform;
    position: relative;
}

.parallax-bg {
    position: absolute !important;
    z-index: -1;
    left: 0;
    top: 0;
    max-width: none !important;
    width: var(--cnvs-parallax-width) !important;
    height: var(--cnvs-parallax-height) !important;
    -o-object-fit: cover;
    object-fit: cover;
    transform: translate3d(0px, var(--cnvs-parallax-value), 0px);
    transition: transform 0.1s linear;
    will-change: transform;
}

.parallax[data-parallax-to=bottom] {
    --cnvs-parallax-factor: 1px;
}

    .parallax[data-parallax-to=bottom] .parallax-bg {
        top: auto;
        bottom: 0;
    }

.parallax[data-parallax-direction=horizontal] {
    --cnvs-parallax-width: calc(1px * (var(--cnvs-scroll-width) + ((var(--cnvs-parallax-ratio) * 100))));
    --cnvs-parallax-height: 100%;
}

    .parallax[data-parallax-direction=horizontal] .parallax-bg {
        transform: translate3d(var(--cnvs-parallax-value), 0px, 0px);
    }

    .parallax[data-parallax-direction=horizontal][data-parallax-to=right] {
        --cnvs-parallax-factor: 1px;
    }

        .parallax[data-parallax-direction=horizontal][data-parallax-to=right] .parallax-bg {
            left: auto;
            right: 0;
        }

.mobile-parallax,
.video-placeholder {
    background-size: cover !important;
    background-attachment: scroll !important;
    background-position: center center !important;
}

.revealer-image {
    position: relative;
    bottom: -100px;
    transition: bottom 0.3s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
    .revealer-image {
        transition: none;
    }
}

.section:hover .revealer-image {
    bottom: -50px;
}

/* ----------------------------------------------------------------
	Columns & Grids
-----------------------------------------------------------------*/
.postcontent,
.sidebar {
    position: relative;
}
