/*------------------------- TILE BOX -------------------------*/

/*--- WRAPPER OR CONTAINER TO CONTAIN THE TILES ---*/
.tile-wrapper {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
}

@media only screen and (max-width: 56.25em) {
  .tile-wrapper {
    flex-wrap: wrap;
  }
}

@media only screen and (max-width: 27.5em) {
  .tile-wrapper {
    flex-direction: column;
    flex-wrap: nowrap;
  }
}

/*--- TILE COMPONENT ---*/
.tile {
  cursor: pointer;
  height: 50rem;
  border-radius: 3px;
  overflow: hidden;
  padding: 3.5rem;
  position: relative;
  background-image: linear-gradient(to bottom, rgba(23, 62, 98, 0.6) 0%, rgba(23, 62, 98, 0.6) 100%);

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
}

@media only screen and (max-width: 85.375em) {
  .tile {
    height: 40rem;
  }
}

@media only screen and (max-width: 56.25em) {
  .tile {
    flex: 0 0 calc(50% - 1.5rem);
  }
}

@media only screen and (max-width: 27.5em) {
  .tile {
    flex: 1;
  }
}

/*--- IMAGE AS A BACKGROUND ---*/
.tile__img-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.tile__img {
  width: 100%;
  height: 100%;
  transition: scale 0.3s;
}

.tile:hover .tile__img {
  scale: 1.05;
}

/*--- TILE CONTENT ---*/
.tile__content {
  color: var(--color-white);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

@media only screen and (max-width: 85.375em) {
  .tile__content {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
}

.tile__highlighted-text {
  font-family: var(--font-primary);
  font-size: 7rem;
  opacity: 0.2;
  transition: all 0.3s;
}

.tile:hover .tile__highlighted-text {
  opacity: 1;
}

/*------------------------- TILE BOX -------------------------*/
