/**
 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.
 */
.gallery {
  margin-bottom: var(--component-margin-bottom);
}

.gallery__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gutter);
}
@media (min-width: 768px) {
  .gallery__inner {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.gallery__item img {
  aspect-ratio: 1/1;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
}

.gallery__item picture {
  height: 100%;
}

@media (min-width: 768px) {
  .gallery__item.item-nth-first {
    grid-row: span 2;
  }
}
@media (min-width: 768px) {
  .gallery__item.item-nth-first, .gallery__item.item-nth-ninth {
    grid-column: 1/3;
  }
}
@media (min-width: 768px) {
  .gallery__item.item-nth-tenth {
    grid-column: 3/5;
  }
}
@media (min-width: 768px) {
  .gallery__item.item-nth-eleventh {
    grid-column: 1/-1;
  }
}

.gallery:has(+ .call-to-action) {
  margin-bottom: var(--gutter);
}

@media (min-width: 768px) {
  .gallery--large .gallery__item img {
    aspect-ratio: 345/420;
  }
}
@media (min-width: 768px) {
  .gallery--large .item-nth-fourth {
    grid-column: 3/5;
  }
  .gallery--large .item-nth-fourth img {
    aspect-ratio: unset;
  }
}
@media (min-width: 768px) {
  .gallery--large .item-nth-ninth img,
  .gallery--large .item-nth-tenth img {
    aspect-ratio: 710/800;
  }
}
@media (min-width: 768px) {
  .gallery--large .item-nth-eleventh img {
    aspect-ratio: 1440/860;
  }
}
