/* format-compare */
.tcc-fmt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.tcc-fmt h3 {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}
.tcc-fmt__price {
  font-family: var(--wa-font-family-body);
  font-weight: 700;
  color: var(--tcc-accent);
  font-size: .95rem;
}
.tcc-fmt ul {
  margin: 12px 0 0;
  padding-left: 1.1em;
  color: var(--tcc-muted);
  font-size: .95rem;
}
.tcc-fmt li + li {
  margin-top: 4px;
}

/* optional pictures across the top of a card, inside its padding so they line up with the text:
   the first one large on the left, the next two stacked on the right */
.tcc-fmt__media {
  margin: 0 0 18px;
}
.tcc-fmt__strip {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
}
/* each picture is a box the image or video fills
   (a video sized directly would stretch the grid row) */
.tcc-fmt__pic {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
/* the lead picture fills both rows; its height comes from the two beside it */
.tcc-fmt__pic:first-child {
  grid-row: span 2;
  aspect-ratio: auto;
  border-top-left-radius: 8px;
}
/* only the block's top corners are rounded */
.tcc-fmt__pic:nth-child(2) {
  border-top-right-radius: 8px;
}
/* small pictures that tcc-fmt.js has made clickable */
.tcc-fmt__pic[role="button"] {
  cursor: zoom-in;
}
.tcc-fmt__pic[role="button"] > * {
  transition: filter .15s;
}
.tcc-fmt__pic[role="button"]:hover > * {
  filter: brightness(1.12);
}
.tcc-fmt__pic[role="button"]:focus-visible {
  outline: 2px solid var(--tcc-mint);
  outline-offset: 2px;
}
.tcc-fmt__pic img,
.tcc-fmt__pic video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0; /* the site rounds all images; here the box does the rounding */
}
/* e.g. which venue the photos show, under the list so both headings line up */
.tcc-fmt__caption {
  margin-top: 14px;
  font-size: .85rem;
  color: var(--tcc-muted);
}

@media (max-width: 900px) {
  .tcc-fmt {
    grid-template-columns: 1fr;
  }
}
