/* The wide card is a layout variant of the carousel's shared show card. */
.shows-catalog { --shows-radius: 1.875rem; padding-block: 1.875rem clamp(2rem, 4.214286vw, 3.6875rem); }
.shows-catalog .shows__stage { width: 100%; margin-top: 0; }
.shows-catalog__item { min-width: 0; container: show-card / inline-size; }
.shows-catalog .shows__card-link { border-color: rgb(104 104 104 / 22%); overflow-wrap: anywhere; }
.shows-catalog .shows__card-link::before { aspect-ratio: 558 / 296; }
.shows-catalog .shows__card-description { opacity: .7; }
.shows-catalog .shows__card-caption { grid-column: 1; font-size: .875rem; font-weight: 500; line-height: 1.2142857; opacity: .4; }
@media (min-width: 48rem) {
  .shows-catalog .shows__stage { display: contents; }
  .shows-catalog__list { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 2.125rem 2.5rem; padding: 0; overflow: visible; scroll-snap-type: none; }
  .shows-catalog .shows__navigation, .shows-catalog .shows__edge-decoration { display: none; }
}
@media (width < 48rem) {
  /* Match the home rail, keeping the complete catalog in one native list.
     Every card takes the height of the tallest one, as on desktop
     (client request 23.10.2026): photos share one square, titles and
     descriptions start on one line, price and arrow keep to the bottom
     (rules at the end of this file). */
  .shows-catalog { --page-gutter: var(--compact-page-gutter); --shows-radius: 1.25rem; width: 100%; }
  .shows-catalog__list { align-items: stretch; }
  .shows-catalog .shows__nav-button {
    /* The narrow card photo fills the whole card, so the arrows keep the
       shared rail centring and overlap only the card's side padding. */
    width: 44px;
    height: 44px;
    padding: 2px;
  }
  .shows-catalog .shows__nav-button img { width: 40px; height: 40px; }
  @container shows (width < 16em) {
    /* Enlarged text fills the card's lower half: center over the photo
       before its 2.5rem text overlap so descriptions never sit behind arrows. */
    .shows-catalog .shows__nav-button { top: calc(min(21.25rem, 84cqw) * .375 - .875rem - 22px); }
  }
}
@media (min-width: 75rem) {
  @container services-page (min-width: 70em) {
    .shows-catalog { padding-top: 0; }
  }
}
/* Narrow catalogue cards (two tablet columns, phones), as the home show rail
   (client request 21.10.2026): a square frame at the photo's full height,
   anchored to its right edge where every desktop export places the subject,
   so the subject sits in the middle of the card without the former strong
   zoom. Its lower edge dissolves into the card colour (sampled from that
   edge) and the copy follows below. Cards in a row share one height; the
   copy keeps to the bottom of the shorter ones. */
@container show-card (max-width: 29.99em) {
  .shows-catalog .shows__card { height: 100%; }
  .shows-catalog .shows__card-link { height: 100%; }
  .shows-catalog .shows__card-link::before { aspect-ratio: 1; }
  .shows-catalog .shows__card-image { inset: 0 0 auto; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: right center; }
  .shows-catalog .shows__card-link::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    z-index: -1;
    aspect-ratio: 1;
    background: linear-gradient(transparent 62%, color-mix(in srgb, var(--show-surface) 60%, transparent) 84%, var(--show-surface));
    pointer-events: none;
  }
  .shows-catalog .shows__card-body { flex: 1; align-content: end; padding-top: 1rem; }
}
@container show-card (min-width: 30em) {
  .shows-catalog .shows__card-link { width: 100%; min-height: 18.625rem; aspect-ratio: 560 / 298; }
  .shows-catalog .shows__card-link::before { display: none; }
  /* The card's minimum height can exceed the photo's ratio; cover keeps the
     photo flush with the bottom edge instead of leaving a strip of colour. */
  .shows-catalog .shows__card-image { height: calc(100% + 2px); object-fit: cover; object-position: right top; }
  .shows-catalog .shows__card-body { display: flex; flex-direction: column; flex: 1; min-height: 18.5rem; gap: 0; padding: 1.4375rem 1.5rem 1rem; }
  .shows-catalog .shows__price { order: 0; align-self: start; min-height: 1.77975rem; margin-bottom: 1.97025rem; padding: .34225rem .6845rem; border: 1.095px solid rgb(255 255 255 / 31%); font-size: .8214375rem; line-height: 1.11; backdrop-filter: blur(27.381px); }
  .shows-catalog .shows__card-body h3 { order: 1; max-width: var(--show-title-width, 14.5625rem); font-size: 1.5625rem; line-height: 1.75rem; }
  .shows-catalog .shows__card-description { order: 2; max-width: var(--show-description-width, 14rem); margin-top: var(--show-description-gap, .890625rem); font-size: .875rem; line-height: 1.0625rem; }
  .shows-catalog .shows__card-caption { order: 3; margin-top: .6875rem; }
  .shows-catalog .shows__card-arrow { order: 4; flex: none; align-self: start; margin-top: auto; margin-left: -.25rem; }
}
/* Phone rail: equal-height cards (see above) align their copy to the top of
   the body under the shared photo square; price and arrow keep to the bottom.
   The single-column card at enlarged text keeps its own stacking. */
@media (width < 48rem) {
  @container show-card (13em <= width < 30em) {
    .shows-catalog .shows__card-body { align-content: stretch; grid-template-rows: auto auto auto minmax(0, 1fr); }
    .shows-catalog .shows__card-body h3 { grid-row: 1; }
    .shows-catalog .shows__card-description { grid-row: 2; }
    .shows-catalog .shows__card-caption { grid-row: 3; }
    .shows-catalog .shows__price { grid-row: 4; align-self: end; }
    .shows-catalog .shows__card-arrow { grid-row: 2 / 5; }
  }
}
