/* Real media layout. Crops preserve subjects and keep captions out of photographs. */
.hero-image-frame {
  display: contents;
}

.home-hero .hero-photo {
  object-position: 69% 47%;
}

.home-hero .credit {
  color: var(--cream);
  margin-top: 1rem;
  font-size: 0.85rem;
}

.recap.has-photo {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  background: var(--ink);
}

.recap.has-photo .recap-photo {
  position: static;
  width: 100%;
  height: 100%;
  min-height: 260px;
  max-height: 365px;
  object-fit: cover;
  object-position: 54% 53%;
  clip-path: polygon(0 0, 100% 0, 87% 100%, 0 100%);
}

.recap.has-photo .recap-copy {
  max-width: none;
  padding-inline: clamp(0.95rem, 1.65vw, 1.8rem);
}

.recap.has-photo .credit {
  font-size: 0.8rem;
}

.news-card .cover,
.news-list > .featured .cover {
  aspect-ratio: 16 / 10;
}

.news-card .cover-image {
  object-position: center;
}

.cover-crest {
  background: var(--cream2);
}

.cover-crest .cover-image {
  object-fit: contain;
  padding: 1.25rem;
}

.club-photo {
  width: min(100%, 900px);
  margin: 1rem 0 1.6rem;
}

.club-photo > img {
  max-width: 100%;
  max-height: 580px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.article-visual {
  margin-bottom: 2.25rem;
}

.article-visual > img[data-asset-id="news/meaning-of-the-crest-cover"] {
  max-height: 206px;
  width: auto;
}

.heritage-visual .cover {
  aspect-ratio: 16 / 9;
}

.heritage-visual .cover-image {
  object-position: 52% center;
}

.ground-map {
  max-width: 256px;
}

.ground-photo {
  margin-top: 2rem;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.gallery-tile {
  margin: 0;
  background: white;
  min-width: 0;
  border-bottom: 1px solid var(--line);
}

.gallery-tile > a {
  display: block;
}

.gallery-tile img {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}

.gallery-tile img[data-asset-id="social/post-01"] {
  object-position: 50% 63%;
}

.gallery-tile img[data-asset-id="social/post-04"] {
  object-position: 50% 25%;
}

.gallery-tile figcaption {
  padding: 0.62rem 0.7rem 0.78rem;
  font-size: 0.9rem;
  line-height: 1.25;
}

.gallery-tile .credit {
  margin-top: 0.35rem;
  font-size: 0.8rem;
}

.community-content {
  display: block;
}

.pathway-tile.programme-link {
  background: white;
  border-top: 3px solid var(--m800);
  color: var(--ink);
  min-height: 0;
  display: block;
}

.pathway-tile.programme-link::after {
  display: none;
}

.programme-link .card-title {
  color: var(--m800);
  margin-bottom: 0.55rem;
}

.programme-link p {
  font-size: 0.94rem;
}

.media-unavailable {
  background-color: var(--cream2);
}

@media (max-width: 765px) {
  .recap.has-photo .recap-photo {
    max-height: 300px;
  }

  .photo-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 599px) {
  .home-hero .hero-photo {
    object-position: center 47%;
    min-height: 200px;
    height: auto;
    aspect-ratio: 2 / 1;
  }

  .recap.has-photo {
    grid-template-columns: minmax(0, 1fr);
  }

  .recap.has-photo .recap-photo {
    aspect-ratio: 16 / 9;
    min-height: 0;
    height: auto;
    width: 100%;
    object-position: center 48%;
    clip-path: none;
  }

  .recap.has-photo .recap-copy {
    padding: 1.15rem;
  }

  .gallery-tile figcaption {
    min-height: 5.1rem;
  }
}

.home-news-grid {
  align-items: start;
}

.video-slot iframe {
  min-height: 200px;
}
