/* Header and navigation */

@media (max-width: 46.875rem) {
  body {
    min-width: 0;
  }

  header {
    --logo-width: min(35vw, 16rem);
    height: calc(var(--logo-width) * 1.14 + 1.5rem);
    padding: 1rem;
  }

  header img {
    position: fixed;
    width: var(--logo-width);
    transform: none;
    margin: 0 auto;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
  }

  nav {
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0;
    padding: 0.75rem 1rem;
  }

  section {
    padding: 2rem 1rem;
  }

  .text-card {
    padding: 2rem;
  }

  .schedule-card {
    padding: 0;
  }

  .schedule-card-title {
    padding: 1.25rem;
  }

  .schedule-card-content {
    padding: 0 1.25rem 1.25rem;
  }
}

/* About */

@media (max-width: 50rem) and (orientation: portrait) {
  .about-grid {
    display: block;
  }

  #about-image-container {
    overflow: hidden;
    position: sticky;
    top: 6rem;
    align-self: start;
    z-index: 1;
    height: auto;
    aspect-ratio: 10 / 12;
  }

  .about-image {
    display: block;
    width: 100%;
    height: calc(100% + 150px);
    transform: translateY(-150px);
    object-fit: scale-down;
    z-index: -1;
  }

  .about-logo {
    left: 1rem;
    top: 1rem;
    max-width: 30%;
    bottom: auto;
    opacity: 0.18;
    transition: opacity 0.5s ease;
  }

  .about-card {
    max-width: none;
    width: 100%;
    margin: -8rem auto 0;
    position: relative;
    z-index: 1;
    border-top: #e3a702 5px solid;
    height: auto;
    min-height: 0;
    aspect-ratio: 10 / 12;
    padding: 0rem clamp(2rem, 6vw, 3rem);
  }

  .about-card h3 {
    text-align: center;
  }
}

@media (max-width: 40rem) {
  #about-grid {
    height: auto;
    aspect-ratio: 10 / 14;
  }

  .about-card {
    height: auto;
    min-height: 0;
    aspect-ratio: 10 / 14;
    padding: 2rem;
  }
}

@media (max-width: 30rem) {
  .content-card h3 {
    font-size: 0.9rem;
  }

  .content-card p {
    font-size: 0.8rem;
  }

  .text-card {
    padding: 2rem;
  }

  .about-card {
    aspect-ratio: auto;
  }

  nav a {
    font-size: 0.8rem;
  }

  .cta {
    padding: 2rem 0rem;
  }

  .cta p {
    font-size: 0.7rem;
  }
}

@media (max-width: 25rem) {
  nav {
    padding: 0.75rem 0.5rem;
  }
  nav a {
    font-size: 0.7rem;
  }
}

/* Sports */

@media (max-width: 56.25rem) {
  .sports-grid {
    grid-template-columns: 1fr;
  }
}

/* News */

@media (max-width: 50rem) {
  #news-image {
    height: auto;
  }
}

@media (max-width: 46.875rem) {
  #news-image {
    height: auto;
  }
}

@media (max-width: 39.0625rem) {
  .news-card {
    flex-direction: column;
  }

  #news-image {
    order: -1;
    width: 100%;
    height: clamp(6.25rem, 35vw, 20rem);
    object-fit: cover;
    object-position: center;
  }

  .news-card-content {
    font-size: 0.8rem;
  }
}

/* Schedule */

@media (max-width: 68.75rem) {
  .schedule-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .schedule-grid .schedule-card {
    grid-column: span 2;
  }

  .schedule-grid .schedule-card:nth-child(n + 4) {
    grid-column: span 3;
  }
}

@media (max-width: 37.5rem) {
  .schedule-grid {
    display: flex;
    flex-direction: column;
  }

  .schedule-grid .schedule-card {
    width: 100%;
  }
}

/* Contact */

@media (max-width: 57.8125rem) and (orientation: portrait) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  contact-info-heading {
    font-size: 1.25rem;
  }

  .contact-item {
    font-size: 0.9rem;
  }

  .contact-icon {
    width: 1.2rem;
    height: 1.2rem;
  }
  .contact-info-card {
    padding: 2rem;
  }
}

@media (max-width: 37.5rem) {
}
