﻿/* IMAGE */
.cms_image p img, .cms_image img {
  width: 100%;
  vertical-align: top;
}

/* ALL */
.cms_content, .cms_band, .cms_rows, .cms_row, .cms_column, .cms_module, .cms_video {
  box-sizing: border-box;
  position: relative
  /* overflow: hidden */
}

.cms_module {
  z-index: 2
}

.cms_slideshow {
  position: relative;
}

  .cms_slideshow > .cms_row {
    opacity: 0
  }

  .cms_slideshow > .cms_slideshowNav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Font Awesome 5 Free';
    z-index: 500;
    font-weight: 600;
    font-size: 30px;
    color: rgba(255,255,255,.6);
    text-decoration:none
  }

  .cms_slideshow > .cms_slideshowLeftArrow {
    left: 5px;
  }

    .cms_slideshow > .cms_slideshowLeftArrow::before {
      content: '\f053'
    }

  .cms_slideshow > .cms_slideshowRightArrow {
    right: 5px;
  }

    .cms_slideshow > .cms_slideshowRightArrow::before {
      content: '\f054'
    }

.cms_row {
  display: grid;
}

.cms_content .cms_vid, .cms_video iframe {
  width: 100%;
}

.cms_module .button {
  width: 100%;
  box-sizing: border-box;
}

.cms_video {
  position: relative;
}

  .cms_video iframe {
    vertical-align: top
  }

.cms_text {
  margin: 1px
}

/* background videos */
video.cms_backgroundVideo {
  box-sizing: border-box;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1
}

div.cms_backgroundVideo {
  animation: cms_backroundVideo-fadeIn 1s ease 2s forwards;
  opacity: 0;
  box-sizing: border-box;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

  div.cms_backgroundVideo iframe {
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

@keyframes cms_backroundVideo-fadeIn {
  100% {
    opacity: 1;
  }
}

.cms_dependant {
  display: none;
}

.cms_emptyModule {
  background-color: white;
  text-align: center;
  padding: 5px;
  color: gray;
  border: 2px dashed silver;
  margin: 3px;
}

.cms_iframe {
  width: 100%;
  border: none;
}

.cms_parallax {
  background-attachment: fixed
}
/* ========================================================= */
/* ANIMATION =============================================== */
/* ========================================================= */
.cms_animate {
  opacity: 0;
}

/* ========================================================= */
/* ACCORDIONS =============================================== */
/* ========================================================= */
.cms_accordionHeader {
  cursor: pointer;
  position: relative
}

.cms_accordion .cms_accordionheader {
  cursor: pointer;
}

  .cms_accordion .cms_accordionheader.plusminus::before,
  .cms_accordion .cms_accordionheader.carets::before {
    font-family: 'Font Awesome 5 Free';
    margin-right: 5px;
    font-weight: 600;
  }

  .cms_accordion .cms_accordionheader.plusminus::before {
    font-size: 12px;
    content: '\f067';
    margin-top: 1px
  }

  .cms_accordion .cms_accordionheader.active.plusminus::before {
    content: '\f068'
  }

  .cms_accordion .cms_accordionheader.carets::before {
    font-size: 14px;
    width: 10px;
    margin-top: 1px;
    text-align: center;
    content: '\f0da'
  }

  .cms_accordion .cms_accordionheader.active.carets::before {
    content: '\f0d7'
  }

/*SOCIAL SHARING*/
.cms_socialSharingIcons {
  display: grid;
  grid-template-columns: repeat(4, [col-start] max-content [col-end])
}

/* ========================================================= */
/* GRID LAYOUT ============================================= */
/* ========================================================= */
.one, .two.mobile, .three.mobile, .four.mobile, .five.mobile, .six.mobile,
.two-one.mobile, .one-two.mobile,
.three-two.mobile, .two-three.mobile,
.three-one.mobile, .one-three.mobile,
.three-one-one.mobile, .one-one-three.mobile, .one-three-one.mobile,
.two-one-one.mobile, .one-one-two.mobile,
.three-one-one-one.mobile, .one-one-one-three.mobile {
  grid-template-columns: minmax(0, 1fr);
}

.two, .four.tablet, .five.smaller, .six.smaller,
.two-one.tablet, .one-two.tablet,
.three-two.tablet, .two-three.tablet,
.three-one.tablet, .one-three.tablet {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.three, .five.tablet, .six.tablet {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
}

.four,
.two-one-one, .one-one-two {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.six,
.three-one-one-one, .one-one-one-three {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.three-one-one, .one-one-three, .one-three-one {
  grid-template-columns: repeat(10, minmax(0, 1fr));
}

.two-one {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.one-two {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}

.three-two {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}

.two-three {
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
}

.three-one {
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
}

.one-three {
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
}

.three-one-one.mobile > div:nth-child(1), .three-one-one.mobile > div:nth-child(2), .three-one-one.mobile > div:nth-child(3),
.one-one-three.mobile > div:nth-child(1), .one-one-three.mobile > div:nth-child(2), .one-one-three.mobile > div:nth-child(3),
.one-three-one.mobile > div:nth-child(1), .one-three-one.mobile > div:nth-child(2), .one-three-one.mobile > div:nth-child(3),
.two-one-one > div:nth-child(2), .two-one-one > div:nth-child(3),
.one-one-two > div:nth-child(1), .one-one-two > div:nth-child(2),
.two-one-one.mobile > div:nth-child(1), .two-one-one.mobile > div:nth-child(2), .two-one-one.mobile > div:nth-child(3),
.one-one-two.mobile > div:nth-child(1), .one-one-two.mobile > div:nth-child(2), .one-one-two.mobile > div:nth-child(3),
.three-one-one-one.mobile > div:nth-child(1), .three-one-one-one.mobile > div:nth-child(2),
.three-one-one-one.mobile > div:nth-child(3), .three-one-one-one.mobile > div:nth-child(4),
.one-one-one-three.mobile > div:nth-child(1), .one-one-one-three.mobile > div:nth-child(2),
.one-one-one-three.mobile > div:nth-child(3), .one-one-one-three.mobile > div:nth-child(4) {
  grid-column: span 1;
}

.three-one-one > div:nth-child(2), .three-one-one > div:nth-child(3),
.one-one-three > div:nth-child(1), .one-one-three > div:nth-child(2),
.one-three-one > div:nth-child(1), .one-three-one > div:nth-child(3),
.two-one-one > div:nth-child(1), .one-one-two > div:nth-child(3),
.two-one-one.tablet > div:nth-child(2), .two-one-one.tablet > div:nth-child(3),
.one-one-two.tablet > div:nth-child(1), .one-one-two.tablet > div:nth-child(2),
.three-one-one-one.tablet > div:nth-child(2), .three-one-one-one.tablet > div:nth-child(3), .three-one-one-one.tablet > div:nth-child(4),
.one-one-one-three.tablet > div:nth-child(1), .one-one-one-three.tablet > div:nth-child(2), .one-one-one-three.tablet > div:nth-child(3) {
  grid-column: span 2;
}

.three-one-one-one > div:nth-child(1),
.one-one-one-three > div:nth-child(4) {
  grid-column: span 3;
}

.two-one-one.tablet > div:nth-child(1),
.one-one-two.tablet > div:nth-child(3) {
  grid-column: span 4;
}

.three-one-one.tablet > div:nth-child(2), .three-one-one.tablet > div:nth-child(3),
.one-one-three.tablet > div:nth-child(1), .one-one-three.tablet > div:nth-child(2),
.one-three-one.tablet > div:nth-child(1), .one-three-one.tablet > div:nth-child(3) {
  grid-column: span 5;
}

.three-one-one > div:nth-child(1),
.one-one-three > div:nth-child(3),
.one-three-one > div:nth-child(2),
.three-one-one-one.tablet > div:nth-child(1),
.one-one-one-three.tablet > div:nth-child(4) {
  grid-column: span 6;
}

.three-one-one.tablet > div:nth-child(1),
.one-one-three.tablet > div:nth-child(3),
.one-three-one.tablet > div:nth-child(2) {
  grid-column: span 10;
}

.one-three-one.tablet > div:nth-child(1),
.one-three-one.mobile > div:nth-child(1) {
  order: 2
}

.one-three-one.tablet > div:nth-child(2),
.one-three-one.mobile > div:nth-child(2) {
  order: 1
}

.one-three-one.tablet > div:nth-child(3),
.one-three-one.mobile > div:nth-child(3) {
  order: 3
}

.order2-1 > div:nth-child(1),
.order2-3-1 > div:nth-child(3),
.order3-1-2 > div:nth-child(1),
.order1-3-2 > div:nth-child(3),
.order1-2-3 > div:nth-child(2),
.order2-3-4-1 > div:nth-child(3),
.order4-1-2-3 > div:nth-child(1) {
  order: 2 !important
}

.order2-1 > div:nth-child(2),
.order2-3-1 > div:nth-child(2),
.order3-1-2 > div:nth-child(3),
.order1-3-2 > div:nth-child(1),
.order1-2-3 > div:nth-child(1),
.order2-3-4-1 > div:nth-child(2),
.order4-1-2-3 > div:nth-child(4) {
  order: 1 !important
}

.order2-3-1 > div:nth-child(1),
.order3-1-2 > div:nth-child(2),
.order1-3-2 > div:nth-child(2),
.order1-2-3 > div:nth-child(3),
.order2-3-4-1 > div:nth-child(4),
.order4-1-2-3 > div:nth-child(2) {
  order: 3 !important
}

.order2-3-4-1 > div:nth-child(1),
.order4-1-2-3 > div:nth-child(3) {
  order: 4 !important
}

/* ---------------------- MULTI ROW ---------------------- */
.V3rd-h-H, .V3rd-H-h, .V3rd-eq-eq {
  grid-template-columns: 1fr 2fr;
}

.h-H-V3rd, .H-h-V3rd, .eq-eq-V3rd {
  grid-template-columns: 2fr 1fr;
}

.V5th-h-H, .V5th-H-h {
  grid-template-columns: 2fr 3fr;
}

.h-H-V5th, .H-h-V5th {
  grid-template-columns: 3fr 2fr;
}

.V3rd-h-H > div:first-child,
.V3rd-H-h > div:first-child,
.V5th-h-H > div:first-child,
.V5th-H-h > div:first-child,
.V3rd-eq-eq > div:first-child {
  grid-area: 1 / 1 / 3 / 2;
}

.h-H-V3rd > div:nth-child(3),
.H-h-V3rd > div:nth-child(3),
.h-H-V5th > div:nth-child(3),
.H-h-V5th > div:nth-child(3),
.eq-eq-V3rd > div:nth-child(3) {
  grid-area: 1 / 2 / span 2 / span 1;
}
