/* ######################### */
/* container */
/* ######################### */
@media all {
    [class*=ce-type-grid] {
        margin-bottom: 0;
    }

    .ce-type-grid-expandable,
    [class*="ce-type-grid-fullwidth"],
    [class*="ce-type-grid-slick"] {
        margin-bottom: var(--gap-10);
    }

    .ce-type-grid-fullwidth-content + .ce-type-grid-fullwidth-content {
        margin-top: calc(var(--gap-10) * -1);
    }

    .content-main > .ce-type-grid-fullwidth-content:last-child {
        margin-bottom: 0;
    }

    [class*=ce-type-grid].ce-layout-box>.ce-layout-box-outer>.ce-layout-box-inner>.ce-element:last-child {
        margin-bottom: 0;
    }

    .ce-grid-equal-height-children>[class^=col] {
        display: grid;
    }

    .ce-grid-equal-height-children > [class^=col] > .ce-element > [class*="container"],
    .ce-grid-equal-height-children > [class^=col] > .ce-element.ce-layout-box > [class*="container"] > .ce-layout-box-outer {
        display: grid;
        grid-template-columns: auto;
    }

    .ce-grid-equal-height-children>[class^=col]>[class*=ce-layout] {
        display: grid;
        grid-template-columns: auto;
    }

    .ce-grid-equal-height-children>[class^=col]>[class*=ce-layout]>[class*=ce-layout] {
        display: grid;
        grid-template-columns: auto;
    }

    .ce-grid-equal-height-children>[class^=col]>[class*=ce-layout]>[class*=ce-layout] [class*=ce-layout] {
        width: 100%;
    }
}

/* ######################### */
/* content-menu */
/* ######################### */
@media all {
    .ce-content-menu {
        --ce-content-menu-trigger-offset: -7.5rem;
    }

    .ce-content-menu .ce-content-menu-menu {
        position: sticky;
        top: calc(var(--height-logo) + var(--padding-logo) + var(--gap-2));
    }

    .ce-content-menu-trigger {
        position: absolute;
        top: var(--ce-content-menu-trigger-offset);
    }
}

/* ######################### */
/* accordion || fold-up */
/* ######################### */
@media all {

    .ce-type-grid-fold-up + .ce-type-grid-fold-up .ce-accordion {
        margin-top: calc(var(--gap-6) * -1);
    }

    .ce-accordion {
        display: flex;
        flex-direction: column;
        margin-bottom: var(--gap-10);
        box-shadow: var(--box-shadow);
        border-radius: var(--border-radius-half);
        overflow: hidden;
    }

    .ce-type-grid-fold-up .ce-accordion {
        box-shadow: var(--box-shadow);
        border-radius: var(--border-radius-half);
        overflow: hidden;
        border: var(--border);
    }

    .accordion-item:first-of-type,
    .accordion-item:last-of-type,
    .accordion-item {
        overflow: hidden;
        border: 0 none transparent;
    }

    .accordion-item + .accordion-item {
        border-top: .125rem solid rgba(var(--color-accent-rgb),.05);
    }

    .accordion-button {
        padding: calc(var(--gap-2) * 1.5) var(--gap-5);
    }

    .content .accordion-button {
        font-size: inherit;
        outline: 0 none transparent;
    }

    .content .accordion-button:focus {
        box-shadow: none;
    }

    .accordion-button:not(.collapsed) {
        color: var(--color-primary);
        background-color: transparent;
        box-shadow: none;
    }

    .accordion-body {
        padding: 0 var(--gap-5) var(--gap-4);
    }

    .ce-accordion .accordion-body>.ce-element:last-child {
        margin-bottom: 0;
    }

    .accordion-button::after {
        background-image: none;
        content:"\f0d7";
        font-weight: 900;
        font-family: "Font Awesome 6 Free";
        width: auto;
        height: auto;
        font-size: 1.25rem;
    }

    .accordion-button:not(.collapsed)::after {
        background-image: none;
    }
}

/* ######################### */
/* fullwidth */
/* ######################### */
@media all { 

    .ce-grid-fullwidth > div > [class*="ce-type-grid"]:last-child .ce-element:last-child, 
    .ce-grid-fullwidth > [class*="ce-type-grid"]:last-child .ce-element:last-child, 
    .ce-grid-fullwidth > div > .ce-element:last-child {
        margin-bottom: 0;
    }

    .ce-grid-fullwidth [class*="ce-type-grid"] .row {
        row-gap: var(--gap-10);
    }

    .ce-grid-fullwidth-bg {
        background-color: var(--ce-color-bg);
        padding-top: var(--gap-10);
        padding-bottom: var(--gap-10);
    }

    .ce-grid-fullwidth-bg .ce-grid-bg {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--ce-color-bg);
        background-position: center center;
        background-size: cover;
    }

    .ce-grid-fullwidth-content {
        background-color: rgba(var(--color-accent-rgb), .2);
    }

    .ce-grid-fullwidth-content {
        background-color: rgba(var(--color-primary-rgb), .05);
    }

    .ce-grid-fullwidth-content .ce-textmedia-outer {
        width:100%;
    }

    .ce-grid-fullwidth-content .ce-textmedia-inner {
        padding: var(--gap-10) var(--gap-5) 0;
    }

    .ce-grid-fullwidth-content .ce-type-grid-50-50 > div > .row:not(.flex-column-reverse) > .col-md-6:last-child > .ce-type-textmedia:not(.ce-image-set) {
        padding-bottom: var(--gap-10);
    }

    .ce-grid-fullwidth-largeimage {
        padding-top: calc(var(--gap-10) * 2);
        padding-bottom: calc(var(--gap-10) * 2);
    }

    .ce-grid-fullwidth-bg .ce-grid-bg-fixed {
        background-attachment: fixed;
    }

    .ce-grid-fullwidth-bg>div>.ce-element {
        background-color: transparent;
    }

    .is-ios .ce-grid-bg-fixed {
        background-attachment: scroll !important;
    }

    .ce-grid-fullwidth-bgcolor-black {
        background-color: rgb(0, 0, 0) !important;
    }

    .ce-grid-fullwidth-bgcolor-white {
        background-color: rgb(255, 255, 255) !important;
    }

    .js .ce-grid-bg {
        transition: opacity 1s;
    }

    .js .ce-grid-bg.lazyload {
        opacity: 0;
    }

    .js .ce-grid-bg.lazyloaded.ce-grid-bg-opacity-100 {
        opacity: 1;
    }

    .js .ce-grid-bg.lazyloaded.ce-grid-bg-opacity-75 {
        opacity: 0.75;
    }

    .js .ce-grid-bg.lazyloaded.ce-grid-bg-opacity-50 {
        opacity: 0.5;
    }

    .js .ce-grid-bg.lazyloaded.ce-grid-bg-opacity-25 {
        opacity: 0.25;
    }
    
    .ce-type-grid-slickslider .ce-media-caption {
        background: var(--color-primary);
        width: 100%;
        padding: var(--gap-5);
    }
}

@media(min-width:62rem) {
    .ce-grid-fullwidth-content .ce-textmedia-inner {
        padding: var(--gap-6) var(--gap-7);
        max-width: var(--width-content-sm);
    }

    .ce-grid-fullwidth-content .ce-type-grid-50-50 > div > .row > .col-lg-6:first-child .ce-element:not(.ce-image-set) .ce-textmedia-inner {
        margin-left: auto;
    }

    .ce-grid-fullwidth-content .ce-type-grid-50-50 > div > .row > .col-lg-6:first-child > :is(.ce-image-set,.ce-type-grid-slickslider) {
        margin-right: calc(var(--gap-5) * -.5);
    }

    .ce-grid-fullwidth-content .ce-type-grid-50-50 > div > .row > .col-lg-6:last-child > :is(.ce-image-set,.ce-type-grid-slickslider) {
        margin-left: calc(var(--gap-5) * -.5);
    }

    .ce-type-grid-slickslider .ce-media-caption {
        position: absolute;
        bottom:0;
        right:0;
        width: 100%;
        padding: var(--slick-dot-padding);
        background: linear-gradient(0, rgba(var(--color-primary-rgb),.8), rgba(var(--color-primary-rgb),0));
    }

    .ce-type-grid-slickslider .ce-media-caption .ce-media-caption-inner {
        display: block;
        margin-left: auto;
        width: 65%;
    }
}


@media(min-width: 75rem) {
    .ce-grid-fullwidth-bg {
        overflow-x: clip;
        position: relative;
    }
}

/* ######################### */
/* expandable */
/* ######################### */
@media all {
    .ce-expandable .ce-expandable-bottom {
        display: none;
    }

    .ce-expandable.ce-expandable-enabled {
        position: relative;
    }

    .ce-expandable.ce-expandable-enabled .ce-expandable-inner {
        overflow: hidden;
        max-height: var(--height);
    }

    .ce-expandable.ce-expandable-enabled .ce-expandable-bottom {
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: calc(var(--height) / 2);
        background: linear-gradient(180deg, rgba(var(--bs-body-bg-rgb), 0) 0%, rgba(var(--bs-body-bg-rgb), 1) 66%);
        text-align: center;
    }

    .ce-expandable.ce-expandable-enabled.ce-open .ce-expandable-bottom {
        height: 0;
    }

    .ce-expandable.ce-expandable-enabled .ce-show-opened {
        display: none;
    }

    .ce-expandable.ce-expandable-enabled.ce-open .ce-expandable-inner {
        max-height: none !important;
    }

    .ce-expandable.ce-expandable-enabled.ce-open .rc-expandable-bottom {
        position: static;
    }

    .ce-expandable.ce-expandable-enabled.ce-open .ce-show-opened {
        display: inline;
    }

    .ce-expandable.ce-expandable-enabled.ce-open .ce-show-closed {
        display: none;
    }
}