﻿
.umb-container {
  position: relative;
  display: var(--umb-container-display, grid);
  grid-template-columns: repeat(var(--umb-grid-columns, 1), minmax(0, 1fr));
  grid-auto-flow: row;
  grid-auto-rows: minmax(0, min-content);
  column-gap: var(--umb-container-column-gap, 0);
  row-gap: var(--umb-container-row-gap, 0);
}

.umb-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-item-col-span, 1) * 12), var(--umb-grid-columns));
  grid-row: span var(--umb-item-row-span, 1);
  height: var(--umb-item-height);
  background-color: var(--umb-item-bg-color, transparent);
  background-image: var(--umb-item-bg-image, none);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--bs-body-color);
  display: flex;
  align-items: var(--section-align-items);
}

  .umb-item > .umb-item-inner {
    width: 100%;
    height: var(--umb-item-height);
  }

@media (max-width: 992px) {
  .mobile-reverse .umb-container,
  .mobile-reverse .umb-container > .umb-item {
    transform: rotate(180deg);
  }
}


/*@media (max-width: 1024px) {
  .umb-item {
    --umb-item-col-span: 12 !important;
  }
}*/

.umb-item a:not([class]):not(:hover) {
  color: var(--umb-item-link-color, var(--bs-link-color));
}



.umb-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--umb-row-columns, var(--umb-grid-columns, 1)), minmax(0, 1fr));
  grid-auto-flow: row;
  grid-auto-rows: minmax(50px, min-content);
  column-gap: var(--umb-row-column-gap, 0);
  row-gap: var(--umb-row-row-gap, 0);
}

.umb-column {
  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-column-col-span, 1) * 3), var(--umb-row-columns));
  grid-row: span var(--umb-column-row-span, 1);
}

@media (min-width:992px) {
  .umb-item {
    grid-column-end: span min(var(--umb-item-col-span, 1), var(--umb-grid-columns));
  }

  .umb-column {
    grid-column-end: span min(var(--umb-column-col-span, 1), var(--umb-row-columns));
  }
}


/**** Custom additions to the default Grid Layout Stylesheet: ****/

.umb-grid {
  container-type: inline-size;
  --container-padding: 0 -var(--ps-column-gutter-x);
}

@container (min-width: 720px) {
  .umb-container {
    --container-padding: 0 -var(--ps-column-gutter-x);
  }
}


/* additional CSS options for area-container and areas: */
.umb-row {
  padding: var(--container-padding);
  margin-left: auto;
  margin-right: auto;
  height: 100%;
  align-content: var(--section-align-items);
  /* We add gap for Areas in general: */
  --umb-row-column-gap: 20px;
  --umb-row-row-gap: 20px;
}

@container (min-width: 720px) {
  .umb-row {
    --umb-row-column-gap: 20px;
    --umb-row-row-gap: 20px;
  }
}


/** Specificly for sectionBlock we add block colum-gap/row-gap. Notice this is different from the Area Gaps added above. */
.umb-item[data-module-alias="sectionBlock"] .umb-container {
  --umb-container-column-gap: var(--umb-item-column-gap, var(--ps-column-gutter-x));
  --umb-container-row-gap: var(--umb-item-column-gap, var(--ps-column-gutter-y));
}

.umb-container .umb-item {
  --umb-container-row-gap: var(--ps-module-gutter-y);
}

/**** My custom website styles: ****/

.umb-section {
  padding-top: var(--gutter-top, var(--ps-section-gutter-y));
  padding-bottom: var(--gutter-bottom, var(--ps-section-gutter-y));
  background-color: var(--umb-section-bg-color, transparent);
  background-image: var(--umb-section-bg-image, none);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/*  section[bright-contrast],
  div[bright-contrast] {
    color: white;
    --my-bright-contrast:;
  }*/

.module + .module {
  margin-top: var(--ps-module-gutter-y);
}

/** Image */
img.module_image {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

.module_image_text {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: rgb(0 0 0 / 45%);
  color: #fff;
  padding: 0 4px;
}

/** 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 {
    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 .umb-grid {
  width: 100%;
  padding: 2rem;
  --bs-gutter-y: 0;
}

  .module_banner ._content .umb-grid .umb-item {
    --bs-gutter-y: 0;
  }

.module_banner ._content {
  padding: 0;
  border-radius: var(--bs-border-radius);
  width: 45%;
  display: flex;
  word-break: break-word;
}

@media (min-width: 991px) {
  .module_banner ._content-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 1rem;
  }
}

@media (max-width: 991px) {
  .module_banner ._content-wrapper {
    height: 100%;
    align-items: start;
    justify-content: start;
  }
}

@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%;
    height: 100%;
    padding: 1rem;
    align-self: start;
    align-items: start;
  }
}

/** Slideshow */
.module_slideshow .swiper-slideshow {
  padding-bottom: 25px;
  --swiper-pagination-bottom: -5px;
}

.module_slideshow .module_banner {
  height: 100%;
}

@media (max-width: 992px) {
  .module_slideshow .swiper-button-next, .module_slideshow .swiper-button-prev {
    display: none;
  }
}

/** Button */
.umb-item[data-content-element-type-alias="buttonBlock"] {
  text-decoration: none;
}
