﻿/***********************************
BLOCK GRID DEFAULTS 
***********************************/
.umb-block-grid__layout-container {
  position: relative;
  display: var(--grid-display, grid);
  grid-template-columns: repeat(var(--umb-block-grid--grid-columns, 1), minmax(0, 1fr));
  grid-auto-flow: row;
  grid-auto-rows: minmax(1px, min-content);
  column-gap: var(--umb-block-grid--column-gap, 0);
  row-gap: var(--umb-block-grid--row-gap, 0);
}

.umb-block-grid__layout-item {
  position: relative;
  /* For small devices we scale columnSpan by three, to make everything bigger than 1/3 take full width: */
  grid-column-end: span min(calc(var(--umb-block-grid--item-column-span, 1) * 3), var(--umb-block-grid--grid-columns));
  grid-row: span var(--umb-block-grid--item-row-span, 1);
  align-self: var(--grid-modules-vertical-position, stretch);
  background-color: var(--item-bg-color, none);
}


.umb-block-grid__area-container, .umb-block-grid__block--view::part(area-container) {
  --umb-block-grid--areas-column-gap: var(--ps-column-gutter-x);
  --umb-block-grid--areas-row-gap: var(--ps-column-gutter-y);
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--umb-block-grid--area-grid-columns, var(--umb-block-grid--grid-columns, 1)), minmax(0, 1fr));
  grid-auto-flow: row;
  grid-auto-rows: minmax(1px, min-content);
  column-gap: var(--umb-block-grid--areas-column-gap, 0);
  row-gap: var(--umb-block-grid--areas-row-gap, 0);
}

.umb-block-grid__area {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  /* For small devices we scale columnSpan by three, to make everything bigger than 1/3 take full width: */
  grid-column-end: span min(calc(var(--umb-block-grid--area-column-span, 1) * 3), var(--umb-block-grid--area-grid-columns));
  grid-row: span var(--umb-block-grid--area-row-span, 1);
}

@media (min-width:992px) {
  .umb-block-grid__layout-item {
    grid-column-end: span min(var(--umb-block-grid--item-column-span, 1), var(--umb-block-grid--grid-columns));
  }

  .umb-block-grid__area {
    grid-column-end: span min(var(--umb-block-grid--area-column-span, 1), var(--umb-block-grid--area-grid-columns));
  }
}

@media (max-width:992px) {
  .umb-block-grid__layout-container {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

.umb-block-grid {
  container-type: inline-size;
}

.umb-block-grid__area {
  justify-content: var(--ps-grid-area-justify-content, start);
}

.umb-block-grid__layout-item[data-module-alias="sectionBlock"] .umb-block-grid__layout-container {
  --umb-block-grid--column-gap: var(--grid-gap, var(--ps-column-gutter-x));
  --umb-block-grid--row-gap: var(--grid-gap, var(--ps-column-gutter-y));
}

/***********************************
Custom Section 
***********************************/
.ps-grid-section {
  background-color: var(--section-bg-color, transparent);
  background-image: var(--section-bg-image, none);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: var(--section-padding-lg, var(--ps-section-gutter-y) 0 var(--ps-section-gutter-y) 0);
  margin: var(--section-margin-lg, 0);
}

  /* Parallax BG */
  .ps-grid-section.parallax-bg {
    background-attachment: fixed;
  }

  /* Blurred BG */
  .ps-grid-section.blurred-bg:before {
    content: "";
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(3px) brightness(.6) contrast(1.1);
  }

  .ps-grid-section.fade-bg:after {
    content: "";
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    z-index:0;
    background: var(--background-fade);
  }

  .ps-grid-section.fade-bg .ps-grid-container {
    z-index: 1;
    position: relative;
  }
/* Invert colors */
.ps-grid-section.text-invert {
  --bs-body-color: #fff;
  --bs-heading-color: #fff;
  --bs-link-color: var(--ps-link-inverted-color-rgb) !important;
  --bs-link-color-rgb: var(--ps-link-inverted-color-rgb);
  --bs-link-hover-color-rgb: var(--ps-link-inverted-hover-color-rgb);
  color: var(--bs-body-color);
}

  /* Equal modules height */
  .ps-grid-section.modules-equal .umb-block-grid__layout-item {
    display: grid;
  }

  /* Equal modules height */
  .ps-grid-section.grid-disabled .umb-block-grid__layout-item {
    flex: 1 1 auto !important;
  }

@media (max-width: 992px) {
  .ps-grid-section {
    padding: var(--section-padding-sm, var(--ps-section-gutter-y) 0 var(--ps-section-gutter-y) 0);
    margin: var(--section-margin-sm, 0);
  }
      /* Reverse on mobile */
      .ps-grid-section.reverse-mobile .umb-block-grid__layout-container {
        --grid-display: flex;
        flex-direction: column-reverse;
      }
}

/***********************************
Custom Collection 
***********************************/
.ps-grid-collection {
  background-color: var(--collection-bg-color, transparent);
  background-image: var(--collection-bg-image, none);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: var(--collection-padding-lg, var(--bs-card-spacer-y) var(--bs-card-spacer-x));
  margin: var(--collection-margin-lg, 0);
}

  .ps-grid-collection.card {
    background-color: var(--collection-bg-color, var(--bs-card-bg));
  }

  /* Parallax BG */
  .ps-grid-collection.parallax-bg {
    background-attachment: fixed;
  }

  /* Invert colors */
  .ps-grid-collection.text-invert {
    --bs-body-color: #fff;
    --bs-card-color: #fff;
    --bs-link-color: var(--ps-link-inverted-color-rgb) !important;
    --bs-link-color-rgb: var(--ps-link-inverted-color-rgb);
    --bs-link-hover-color-rgb: var(--ps-link-inverted-hover-color-rgb);
  }

/***********************************
MODULES 
***********************************/

.module + .module {
  margin-top: var(--ps-module-gutter-y);
}

/** Image */
img.module_image {
  object-fit: cover;
  height: 100%;
  width: 100%;
  border-radius: var(--bs-border-radius);
}

/** Banner */

.umb-item[data-content-element-type-alias="bannerBlock"] .umb-row {
  padding: 0;
}

.module_banner {
  position: relative;
  width: 100%;
  border-radius: var(--bs-border-radius);
}

  .module_banner[bright-contrast] {
    color: white;
    --my-bright-contrast:;
  }

  .module_banner img {
    border-radius: 0 var(--bs-border-radius) var(--bs-border-radius) 0 !important;
    object-fit: cover;
    height: 100%;
    width: 100%;
  }

@media (max-width: 991px) {
  .module_banner img {
    border-radius: var(--bs-border-radius) var(--bs-border-radius) 0 0 !important;
  }
}


.module_banner ._content {
  padding: 2rem;
  border-radius: var(--bs-border-radius) 0 0 var(--bs-border-radius);
  width: 45%;
  display: flex;
  align-items: center;
  word-break: break-word
}

    .module_banner ._content .umb-grid {
      width: 100%;
     
    }

@media (min-width: 991px) {
  .module_banner ._content {
    width: 60%;
  }
}

@media (min-width: 1200px) {
  .module_banner ._content {
    width: 35%;
  }
}
@media (max-width: 991px){
  .module_banner ._content {
    border-radius: 0 0 var(--bs-border-radius) var(--bs-border-radius);
    width: 100%;
  }
}

/** Slideshow */
.module_slideshow .swiper-slideshow {
  padding-bottom: 25px;
  --swiper-pagination-bottom: -5px;
}

.module_slideshow .module_banner {
  height:100%;
}

@media (max-width: 1399px) {
  .module_slideshow .swiper-button-next, .module_slideshow .swiper-button-prev {
    display: none;
  }
}

@media (min-width: 1440px) {
  .module_slideshow .swiper-button-next {
    right: -20px;
  }
  
  .module_slideshow .swiper-button-prev {
    left: -20px;
  }
}

  /** Button */
.umb-item[data-content-element-type-alias="buttonBlock"] {
  text-decoration: none;
}

  /** Image with text */
  .module_image_with_text {
    border-radius: var(--bs-border-radius);
    overflow: hidden;
  }

  @media(min-width:768px) {
    .module_image_with_text {
      display: grid;
      grid-template-columns: 1fr 1fr;
    }
  }

.module_image_with_text ._image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  height: 100%;
}

  @media(max-width:768px) {
    .module_image_with_text ._image {
      aspect-ratio: 16 / 9;
    }
  }

  .module_image_with_text ._image img {
    position: absolute;
    object-fit: cover;
    height: 100%;
    width: 100%;
  }

  .module_image_with_text ._content {
    padding: 2rem;
  }