/*
 * Spring Show flyer gallery
 *
 * The general Spring Show design remains in ipms-spring-show.css. This file
 * contains only the layout unique to the collection of official flyers.
 */

.flyer-breadcrumbs [aria-current="page"] {
  color:var(--gold)
}

.flyers-hero {
  padding:clamp(4rem,7vw,7rem) max(4.5vw,calc((100vw - 81.875rem)/2));
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(18rem,.9fr);
  gap:clamp(2rem,7vw,7rem);
  align-items:end;
  background:var(--blue);
  color:#fff
}

.flyers-hero h1 {
  margin:1.2rem 0 0;
  font:500 clamp(4.5rem,9vw,8rem)/.82 var(--font-display);
  letter-spacing:-.04em;
  text-transform:uppercase
}

.flyers-hero h1 em {
  color:var(--gold);
  font-style:normal
}

.flyers-introduction {
  padding-left:clamp(1.5rem,4vw,4rem);
  border-left:1px solid rgba(255,255,255,.3)
}

.flyers-introduction h2 {
  margin:0 0 1.25rem;
  font:500 clamp(1.75rem,3vw,2.7rem)/1.05 var(--font-display);
  text-transform:uppercase
}

.flyers-introduction p {
  color:#d5dfeb;
  line-height:1.75
}

.flyer-gallery {
  padding:clamp(4rem,7vw,7rem) max(4.5vw,calc((100vw - 81.875rem)/2));
  background:var(--paper)
}

.flyer-gallery > header {
  margin-bottom:3rem
}

.flyer-gallery > header h2 {
  margin:.7rem 0 0;
  font:500 clamp(3.5rem,7vw,6rem)/.9 var(--font-display);
  text-transform:uppercase
}

.flyer-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(1.5rem,4vw,4rem);
  align-items:start
}

.flyer-card {
  border:1px solid var(--line);
  background:#fff;
  box-shadow:.75rem .75rem 0 var(--gold)
}

.flyer-image-link {
  min-height:24rem;
  padding:clamp(1rem,2vw,2rem);
  display:grid;
  place-items:center;
  background:#ece9e2
}

.flyer-document-preview {
  position:relative;
  height:clamp(34rem,63vw,58rem);
  min-height:24rem;
  padding:clamp(.5rem,1.25vw,1rem);
  background:#d9d5cc
}

.flyer-document-preview iframe {
  width:100%;
  height:100%;
  display:block;
  border:0;
  background:#fff;
  pointer-events:none
}

.flyer-document-open {
  position:absolute;
  z-index:2;
  inset:0;
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  padding:1.5rem;
  cursor:pointer
}

.flyer-document-open span {
  padding:.75rem 1rem;
  border:2px solid #fff;
  background:var(--ink);
  color:#fff;
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.06em;
  opacity:0;
  text-transform:uppercase;
  transition:opacity .18s ease,background .18s ease
}

.flyer-document-open:hover,
.flyer-document-open:focus-visible {
  background:rgba(23,63,120,.12);
  outline:4px solid var(--red);
  outline-offset:-4px
}

.flyer-document-open:hover span,
.flyer-document-open:focus-visible span {
  background:var(--red);
  opacity:1
}

.flyer-image-link img {
  width:100%;
  height:auto;
  max-height:70rem;
  display:block;
  object-fit:contain;
  box-shadow:0 .5rem 1.5rem rgba(16,27,51,.18)
}

.flyer-image-link:hover,
.flyer-image-link:focus-visible {
  background:#dce6f2;
  outline:4px solid var(--red);
  outline-offset:-4px
}

.flyer-card-caption {
  min-height:7rem;
  padding:1.25rem 1.5rem;
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:1rem;
  align-items:center
}

.flyer-card-caption > span {
  color:var(--red);
  font:500 1rem var(--font-display)
}

.flyer-card-caption h3 {
  margin:0;
  font:500 clamp(1.45rem,2.5vw,2.15rem)/1 var(--font-display);
  text-transform:uppercase
}

.flyer-card-caption a {
  display:inline-flex;
  gap:.6rem;
  align-items:center;
  font-size:.72rem;
  font-weight:800;
  text-decoration:underline;
  text-underline-offset:.25em
}

.flyer-card-caption a:hover,
.flyer-card-caption a:focus-visible {
  color:var(--red)
}

.flyer-empty-state {
  padding:3rem;
  border:1px solid var(--line);
  background:#fff
}

.flyer-return {
  padding:clamp(4rem,7vw,7rem) max(4.5vw,calc((100vw - 81.875rem)/2));
  display:grid;
  grid-template-columns:1fr 1fr auto;
  gap:4vw;
  align-items:center;
  background:var(--ink);
  color:#fff
}

.flyer-return h2 {
  margin:.8rem 0 0;
  font:500 clamp(3rem,6vw,5rem)/.9 var(--font-display);
  text-transform:uppercase
}

.flyer-return > p {
  color:#d5dce5;
  line-height:1.8
}

@media (max-width:800px) {
  .flyers-hero,
  .flyer-return {
    grid-template-columns:1fr
  }

  .flyers-introduction {
    padding:1.5rem 0 0;
    border-top:1px solid rgba(255,255,255,.3);
    border-left:0
  }

  .flyer-grid {
    grid-template-columns:1fr
  }

  .flyer-return .button {
    justify-self:start
  }
}

@media (max-width:520px) {
  .flyers-hero h1 {
    font-size:clamp(3.6rem,20vw,5rem)
  }

  .flyer-image-link {
    min-height:12rem;
    padding:.75rem
  }

  .flyer-document-preview {
    height:70vh;
    min-height:28rem
  }

  .flyer-card-caption {
    grid-template-columns:auto 1fr
  }

  .flyer-card-caption a {
    grid-column:2
  }
}
