/**
 SASS files that don't get compiled into CSS. Do not put element selectors in here.
 Every file not starting with '_' should import this file if you want to use functions and mixins.
 */
/**
 * SASS variables
 *
 These are only used in the properties and abstract SASS files.
 */
/**
 Breakpoints and columns
 */
/**
 Text
 */
/**
Fill in the header styles, only write the properties you want to override.
 */
/**
  Buttons
 */
/**
 Breakpoints

 @param {Keyword} $breakpoint - The breakpoint name of the minimum width. Can be any of the names in the $breakpoint variable
 */
/**
  Custom column size.
  Especially handy inside other columns.

  @param {Number|string} $size - the size in columns or 'expand'/'shrink'.
  @param {number} $total - the total size in columns. Ignored when size is 'expand'/'shrink'
 */
/**
  Custom offset size.
  Especially handy inside other columns.

  @param {Number|string} $size - the size of the offset.
  @param {number} $total - the total size in columns.
  @param {string} - the side from the offset.
 */
:root {
  --text-block--grid-column: 2 / -2;
  --text-block-margin-bottom: 70px;
}
@media (min-width: 992px) {
  :root {
    --text-block--grid-column: 2 / 15;
  }
}

.text-block {
  margin-bottom: var(--text-block-margin-bottom);
}
.text-block h2 {
  margin-inline: auto;
  text-wrap: pretty;
  color: var(--secondary-color);
}

.text-block--centered {
  text-align: center;
}
@media (min-width: 992px) {
  .text-block--centered {
    --text-block--grid-column: 5 / -5;
  }
}

.text-block__content {
  grid-column: var(--text-block--grid-column);
}

.text-block:has(+ .call-to-action, + .gallery) {
  --text-block-margin-bottom: 70px;
}

.field--name-field-text-blocks > .field__items {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 40px;
}
.field--name-field-text-blocks > .field__items > .field__item {
  width: 100%;
  background-color: var(--light-gray);
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
@media (min-width: 992px) {
  .field--name-field-text-blocks > .field__items > .field__item {
    width: calc(50% - 20px);
    padding: 50px;
    min-height: 450px;
  }
}
.field--name-field-text-blocks > .field__items > .field__item .text-block {
  margin-bottom: 0px;
  display: block;
}

@media (min-width: 992px) {
  .paragraph--view-mode--_-columns .field--name-field-text-blocks > .field__items > .field__item {
    width: calc(33.3333333333% - 27px);
  }
}

.text-block + .upper-text-media {
  display: none;
}
