.tiles {
  --gapTiles: 1rem;
  --tilesBodyPadding: 1rem;
  --tilesImageWidth: 100%;
  --tilesTitleColor: var(--mainColor, #333);
  --tilesHoverFontColor: var(--secondaryColor, #333);
  --tilesTextAlign: center;
  --tilesBgColor: #fff;
  --tilesHoverBgColor: var(--tilesBgColor);
  --tilesTitleFontSize: 1.5em;
  --tilesFontWeight: 700;
  --tilesImageHeight: auto;
  --tilesBorderColor: transparent;
  --tilesFontColor: #333;
  --tilesBorderWidth: 0;
  --tilesBoxShadow: 2px 2px 6px 0 rgba(0, 0, 0, 0.25);
  display: flex;
  flex-wrap: wrap;
  clear: both;
  justify-content: flex-start;
  gap: var(--gapTiles);
  margin: 0;
  margin-bottom: 2rem;
}
.tiles.frame-200 {
  --tilesHoverBgColor: #fff;
  --tilesHoverFontColor: var(--secondaryColor, #333);
}
.tiles.frame-201 {
  --tilesBoxShadow: none;
}
.tiles.frame-205 {
  --tilesHoverBgColor: var(--secondaryColor);
  --tilesHoverFontColor: var(--mainColor);
}
.tile {
  flex: 0 1 calc(100% / var(--numTiles, 3) - var(--gapTiles) * (var(--numTiles, 3) - 1) / var(--numTiles, 3));
  text-align: var(--tilesTextAlign);
  box-shadow: var(--tilesBoxShadow);
  background-color: var(--tilesBgColor);
  position: relative;
  border: var(--tilesBorderWidth) solid var(--tilesBorderColor);
  color: var(--tilesFontColor);
}
.tile .tile--image {
  display: flex;
  flex-basis: 100%;
  align-items: stretch;
  justify-content: center;
  height: var(--tilesImageHeight);
  overflow: hidden;
}
.tile .tile--image img {
  display: inline-block;
  width: var(--tilesImageWidth);
  object-fit: cover;
  height: var(--tilesImageHeight);
}
.tile:hover,
.tile:focus {
  --tilesFontColor: var(--tilesHoverFontColor);
  --tilesBgColor: var(--tilesHoverBgColor);
}
.tile:hover .tile--title,
.tile:focus .tile--title {
  color: var(--tilesHoverFontColor);
  background-color: var(--tilesHoverBgColor);
}
.tile--label {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.25em 1em;
  color: #fff;
  font-size: 0.9em;
  font-weight: var(--tilesFontWeight);
  line-height: 1.2;
  background: #80b83f;
  z-index: 1;
}
.tile--title {
  margin: 0;
  hyphens: auto;
  width: 100%;
  padding: 1em 0 1em 0;
  font-weight: var(--tilesFontWeight);
  font-size: var(--tilesTitleFontSize);
  color: var(--tilesTitleColor);
  text-align: var(--tilesTextAlign);
}
.tile--title:after {
  content: '\a0\bb';
  content: none;
}
.tile--header {
  text-align: var(--tilesTextAlign);
  flex-basis: 100%;
  padding: 0 var(--tilesBodyPadding);
}
.tile--content {
  text-align: var(--tilesTextAlign);
  padding: 0 var(--tilesBodyPadding);
  padding-bottom: 1em;
  color: var(--tilesFontColor);
  font-weight: normal;
}
.tile > a {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  text-align: var(--tilesTextAlign);
  font-style: normal;
  hyphens: auto;
  text-decoration: none;
}
.tile > a:hover,
.tile > a:focus {
  text-decoration: none;
}
.tile--date {
  color: var(--tilesFontColor);
  padding-left: var(--tilesBodyPadding);
  font-weight: 300;
  font-size: 0.6em;
}
.tile--date + .tile--title {
  padding-top: 0;
}
.tile--link {
  z-index: 1;
  pointer-events: auto;
}
.tile--link .tile--title {
  background-color: var(--tilesBgColor);
}
.tile--link:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}
@media (max-width: 836px) {
  :root {
    --numTiles: 2;
  }
}
@media (max-width: 480px) {
  :root {
    --numTiles: 1;
  }
}
