/* Let the native phone player determine the height inside the padded frame. */
@media (max-width: 997px) {
    .competition-invitation__video--box {
        height: auto;
        aspect-ratio: auto;
        overflow: visible;
    }
    .competition-invitation__video {
        height: auto;
    }
    .competition-invitation__video video {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: contain;
    }
}

/* Keep the full first-screen content available at every responsive breakpoint. */
@media (max-width: 997px) {
    .competition-hero > .competition-hero__container {
        display: block;
    }

    .competition-hero__banner {
        order: -1;
    }
}

/* Let the flyer frame follow the dimensions of any image selected in WordPress. */
.competition-prize__flyer {
    align-self: flex-start;
    aspect-ratio: auto;
    height: fit-content;
    padding: 0;
    line-height: 0;
}

@media (max-width: 997px) {
    .competition-prize__flyer {
        align-self: center;
    }
}

.competition-prize__flyer-image {
    width: 100%;
    height: auto;
    object-fit: initial;
    vertical-align: top;
}

/* Responsive competition statistics. Source: competition-stats.scss */
.competition-process__banner {
  container-type: inline-size;
  container-name: competition-stats;
  padding: clamp(16px, 2vw, 24px);
}

.competition-process__stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(4, 20px minmax(0, 1fr));
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.competition-process__stat {
  display: grid;
  grid-template-columns: 48px max-content minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.competition-process__stat-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.competition-process__stat-value {
  font-size: 28px;
  line-height: 1.1;
}

.competition-process__stat-label {
  min-width: 0;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.competition-process__stats > .competition-process__stat-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin: 0;
  transform: none;
}

@container competition-stats (max-width: 1080px) {
  .competition-process__stat {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    align-content: start;
    align-self: stretch;
    gap: 8px;
    text-align: center;
  }
  .competition-process__stats {
    gap: 8px;
  }
  .competition-process__stats > .competition-process__stat-arrow {
    align-self: start;
    margin-top: 14px;
  }
}
@container competition-stats (max-width: 620px) {
  .competition-process__stats {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .competition-process__stat {
    grid-template-columns: 48px 2.5ch minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    gap: 16px;
    text-align: left;
    font-size: 28px;
  }
  .competition-process__stat-value {
    justify-self: center;
  }
  .competition-process__stats > .competition-process__stat-arrow {
    width: 18px;
    height: 18px;
    margin: 0 0 0 15px;
    transform: rotate(90deg);
  }
}
