/* Francophonie: news tags, contact layout and campus gallery. */
.fp-card .fp-card-tag {
  background: var(--red);
  color: #fff;
}

.fp-main:has(.fp-article .fp-post-cover) .fp-hero-inner .fp-eyebrow.is-rose {
  display: inline-block;
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  padding: 5px 11px;
}

.fp-contact-layout-single > div > .fp-map { margin-top: 24px; }
@media (min-width: 761px) {
  .fp-contact-layout-single > div:has(> .fp-contact-list + .fp-map) {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    grid-template-areas: "map contact";
    gap: clamp(20px, 3vw, 44px);
    align-items: stretch;
  }
  .fp-contact-layout-single > div > .fp-contact-list { grid-area: contact; min-width: 0; }
  .fp-contact-layout-single > div > .fp-map {
    grid-area: map;
    margin: 0;
    position: relative;
    min-height: 360px;
  }
  .fp-contact-layout-single > div > .fp-map > iframe {
    position: absolute;
    inset: 0;
    height: 100%;
  }
}

.fp-gal:has(> .fp-gal-tile img[src*="/media/optimized/campus-"]) {
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: auto;
  gap: clamp(12px, 1.5vw, 20px);
}
.fp-gal:has(> .fp-gal-tile img[src*="/media/optimized/campus-"]) > .fp-gal-tile {
  grid-area: auto;
  min-width: 0;
  aspect-ratio: 4 / 3;
}
@media (min-width: 561px) and (max-width: 920px) {
  .fp-gal:has(> .fp-gal-tile img[src*="/media/optimized/campus-"]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fp-gal:has(> .fp-gal-tile img[src*="/media/optimized/campus-"]) > .fp-gal-tile:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 8;
    max-height: 390px;
  }
}
@media (min-width: 921px) {
  .fp-gal:has(> .fp-gal-tile img[src*="/media/optimized/campus-"]) {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: clamp(235px, 22vw, 330px);
  }
  .fp-gal:has(> .fp-gal-tile img[src*="/media/optimized/campus-"]) > .fp-gal-tile {
    grid-column: span 4;
    aspect-ratio: auto;
  }
  .fp-gal:has(> .fp-gal-tile img[src*="/media/optimized/campus-"]):has(> .fp-gal-tile:nth-child(7):last-child) > .fp-gal-tile:is(:nth-child(1), :nth-child(7)) { grid-column: span 7; }
  .fp-gal:has(> .fp-gal-tile img[src*="/media/optimized/campus-"]):has(> .fp-gal-tile:nth-child(7):last-child) > .fp-gal-tile:is(:nth-child(2), :nth-child(6)) { grid-column: span 5; }
}

@media (max-width: 560px) {
  .fp-gal:has(> .fp-gal-tile img[src*="/media/optimized/campus-"]) > .fp-gal-tile:is(:first-child, :last-child) { aspect-ratio: 16 / 9; }
}