.rst-content .section ul.tiles {
  margin: 0; /* override */
  list-style: none; /* override */

  display: block;
  line-height: 1em;

  --description-reduced-size: 12px;
}

.rst-content .section ul.tiles.small {
  columns: 2;
  -webkit-columns: 2;
  -moz-columns: 2;
}

.rst-content .section ul.tiles.very-small {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
}

.rst-content .section ul.tiles li.tile {
  margin: 0; /* override */
  list-style: none; /* override */

  display: flex;
  justify-content: center;
  align-items: stretch;
  min-height: 112px;
  margin-bottom: 12px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  position: relative;
}

.rst-content .section ul.tiles.very-small li.tile {
  display: inline-block;
  min-height: 94px;
  height: 94px;
  width: 94px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  position: relative;
}

.rst-content .section ul.tiles li.tile:hover {
  background-color: var(--grey);
}

/* Overlay the tile with the link. */
.rst-content a.tile-target {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  color: transparent !important;
}

/* Hide the link text. */
.rst-content a.tile-target::selection {
  background-color: transparent;
}

.wy-nav-content .tile-icon {
  margin: 0 !important; /* override */

  width: 112px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.wy-nav-content .tiles.very-small .tile-icon {
  width: 100%;
}

.wy-nav-content .tile-text {
  margin: 0 !important; /* override */

  flex: 1;
  padding: 14px 24px 14px 0px;
  position: relative;
}

.wy-nav-content .no-icon .tile-text {
  padding-left: 16px;
}

.wy-nav-content .tiles.very-small .tile-text {
  padding: 0;
  padding-bottom: 8px;
  text-align: center;
}

.wy-nav-content .tiles .tile.no-icon .tile-icon,
.wy-nav-content .tiles.small .tile.no-icon .tile-icon {
  visibility: collapse;
}

.wy-nav-content .tiles.very-small .tile.no-icon .tile-icon {
  visibility: hidden;
  height: 60px;
}

.wy-nav-content .tile-text ul {
  columns: 3;
  -webkit-columns: 3;
  -moz-columns: 3;
}

.wy-nav-content .tile-text ul li {
  list-style-type: disc !important;
}

.wy-nav-content .tile-text p {
  margin: 0 !important; /* override */
  line-height: 1.5em;
}

.wy-nav-content p.tile-title {
  font-weight: bold;
  padding-bottom: 12px !important;
}

.wy-nav-content .tile-icon img {
  display: block;
  margin: auto;
  width: 60px;
  height: 60px;
}

@media screen and (max-width: 1050px) {
  .wy-nav-content .tile-text ul {
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
  }
}

@media screen and (max-width: 880px) {
  .wy-nav-content .tile-text ul {
    columns: 1;
    -webkit-columns: 1;
    -moz-columns: 1;
  }

  .wy-nav-content p.tile-description {
    font-size: var(--description-reduced-size);
  }
}

@media screen and (max-width: 768px) {
  .wy-nav-content .tile-text ul {
    columns: 3;
    -webkit-columns: 3;
    -moz-columns: 3;
  }
}

@media screen and (max-width: 700px) {
  .wy-nav-content .tile-text ul {
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
  }
}

@media screen and (max-width: 550px) {
  .wy-nav-content .tile-text ul {
    columns: 1;
    -webkit-columns: 1;
    -moz-columns: 1;
  }

  .wy-nav-content p.tile-description {
    font-size: var(--description-reduced-size);
  }
}
