/* V18: bounded mobile opening photograph, followed by the current offer and events.
   The approved photographs, copy, lunch data and media schedule stay unchanged. */
.hero-opening { display: contents; }

/* A text-only hours link needs no empty video canvas. */
.hours-video-card:not(.has-scheduled-film) {
  aspect-ratio: auto;
  min-height: 84px;
}
.hours-video-card:not(.has-scheduled-film) .today-hours {
  position: relative;
  inset: auto;
  height: auto;
  min-height: 82px;
  justify-content: center;
  padding: 16px 38px 16px 17px;
}
.hours-video-card:not(.has-scheduled-film) .hours-tile-arrow {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}

@media (max-width: 800px) {
  /* This wrapper establishes the image height. Lunch and events no longer
     stretch a landscape photograph into one very tall, narrow crop. */
  .home-page .hero,
  .home-page .hero:has(.seasonal-promo:not([hidden])),
  .home-page .hero.lunch-active {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: none;
    height: auto;
    background: var(--green);
    padding-bottom: 28px;
  }
  .hero-opening {
    display: block;
    position: relative;
    isolation: isolate;
    overflow: hidden;
  }
  .hero-opening .hero-image,
  .hero-opening .hero-shade { z-index: -1; }
  .hero-opening .hero-image {
    height: 100%;
    object-position: 48% 50%;
  }
  .hero-opening .hero-image[src*="restauracja-bar-"] { object-position: 52% 50%; }
  .hero-opening .hero-image[src*="restauracja-sztuka-"] { object-position: 62% 50%; }
  .hero-opening .hero-shade {
    background: linear-gradient(180deg,rgba(13,33,23,.22) 0%,rgba(13,33,23,.12) 20%,rgba(13,33,23,.6) 38%,rgba(13,33,23,.78) 78%,rgba(36,60,48,.94) 100%);
  }
  .home-page .header:not(.is-compact) .brand {
    width: 132px;
    height: 132px;
    top: 4px;
  }
  .home-page .header:not(.is-compact) .brand-descriptor {
    top: 139px;
    width: calc(100vw - 48px);
    max-width: 520px;
    font-size: 11px;
    line-height: 1.7;
    letter-spacing: .045em;
  }
  .home-page .header:not(.is-compact) .header-right { display: none; }
  .home-page .header:not(.is-compact) .menu-toggle {
    left: auto;
    right: 22px;
    top: 29px;
  }
  .home-page .header:not(.is-compact)::after { display: none; }
  .home-page .hero .hero-content,
  .hero:has(.hero-message-controls:not([hidden])) .hero-content,
  .hero.lunch-active .hero-content {
    max-width: none;
    width: 100%;
    padding: 198px 25px 20px;
  }
  .hero-opening #hero-message {
    display: flex;
    flex-direction: column;
  }
  .hero-opening #hero-message-copy { order: 0; }
  .hero-opening .hero-message-controls,
  .hero.lunch-active .hero-message-controls {
    position: static;
    order: 1;
    margin-top: 16px;
    gap: 8px;
  }
  .hero-opening .hero-message-controls button { min-height: 40px; min-width: 40px; }
  .hero-opening h1 { font-size: 56px; }
  .hero-opening .hero-description {
    font-size: 15px;
    line-height: 1.65;
    margin-top: 17px;
    max-width: 440px;
  }
  .hero-opening .hero-description br { display: none; }
  .hero-opening .hero-buttons,
  .hero.lunch-active .hero-buttons {
    display: flex;
    margin-top: 18px;
  }
  /* Reservation remains immediately available in the fixed mobile action bar. */
  .hero-opening .hero-buttons [data-dialog="reservation"] { display: none; }
  .hero-opening .hero-buttons .button { min-height: 48px; }
  .hero-opening .hours-video-card {
    position: relative;
    inset: auto;
    transform: none;
    z-index: 1;
    width: calc(100% - 50px);
    max-width: 360px;
    margin: 0 25px;
  }
  .hero-opening .hours-video-card.has-scheduled-film { aspect-ratio: 16 / 9; }
  .hero-opening .hours-video-card .today-hours { padding: 13px 16px; }
  .hero-opening .hours-video-current > span,
  .hero-opening .hours-video-preview > span { font-size: 12px; line-height: 1.4; }
  .hero-opening .hours-video-card .today-hours strong { font-size: 21px; line-height: 1.3; }
  .hero-opening .hours-video-lunch > span:first-child { font-size: 14px; }
  .hero-opening .hours-video-lunch > span:last-child { font-size: 13px; }
  .hero-opening .hours-video-card:not(.has-scheduled-film) { min-height: 78px; }
  .hero-opening .hours-video-card:not(.has-scheduled-film) .today-hours {
    min-height: 76px;
    padding: 13px 38px 13px 16px;
  }
  .hero-opening .hours-video-toggle { width: 36px; height: 36px; padding: 7px; top: 7px; right: 7px; }
  .hero-opening .hero-bottom {
    position: relative;
    inset: auto;
    margin: 20px 25px 24px;
    padding-top: 14px;
  }
  .hero-opening .hero-controls button { width: 44px; height: 44px; }
  .hero-opening .hero-scroll { font-size: 12px; gap: 8px; }
  .hero-opening .hero-controls { gap: 7px; }
  .hero-opening .hero-controls > span { margin-right: 0; }
  .hero > .lunch-today,
  .hero.lunch-active > .lunch-today,
  .has-hours-video .hero.lunch-active > .lunch-today {
    position: relative;
    z-index: 1;
    margin: 4px 25px 24px;
    width: auto;
    max-width: none;
  }
  .hero .event-board,
  .hero.lunch-active .event-board,
  .has-hours-video .hero:not(.lunch-active) .event-board {
    position: relative;
    inset: auto;
    margin: 4px 25px 0;
    width: auto;
  }
}
@media (min-width: 601px) and (max-width: 800px) {
  /* Tablets do not have the phone's fixed reservation bar. */
  .hero-opening .hero-buttons [data-dialog="reservation"] { display: inline-flex; }
  .home-page .hero .hero-content,
  .hero:has(.hero-message-controls:not([hidden])) .hero-content,
  .hero.lunch-active .hero-content { padding: 192px 6% 24px; }
  .hero-opening .hero-image { object-position: 50% 65%; }
  .hero-opening .hero-shade { background: linear-gradient(90deg,rgba(13,33,23,.76),rgba(13,33,23,.38) 64%,rgba(13,33,23,.14)); }
  .hero-opening .hero-description { font-size: 16px; }
  .hero-opening .hours-video-card { margin-inline: 6%; }
  .hero-opening .hero-bottom { margin-inline: 6%; }
  .hero > .lunch-today,
  .hero.lunch-active > .lunch-today,
  .has-hours-video .hero.lunch-active > .lunch-today,
  .hero .event-board,
  .hero.lunch-active .event-board,
  .has-hours-video .hero:not(.lunch-active) .event-board { margin-left: 6%; margin-right: 6%; }
}
@media (max-width: 360px) {
  .home-page .header:not(.is-compact) .brand { width: 120px; height: 120px; }
  .home-page .header:not(.is-compact) .brand-descriptor { top: 128px; width: calc(100vw - 40px); font-size: 10px; }
  .home-page .hero .hero-content,
  .hero:has(.hero-message-controls:not([hidden])) .hero-content,
  .hero.lunch-active .hero-content { padding: 186px 20px 20px; }
  .hero-opening h1 { font-size: 50px; }
  .hero-opening .hero-description { font-size: 14px; }
  .hero-opening .hours-video-card { width: calc(100% - 40px); margin-inline: 20px; }
  .hero-opening .hero-bottom { margin-inline: 20px; }
  .hero > .lunch-today,
  .hero.lunch-active > .lunch-today,
  .has-hours-video .hero.lunch-active > .lunch-today,
  .hero .event-board,
  .hero.lunch-active .event-board,
  .has-hours-video .hero:not(.lunch-active) .event-board { margin-left: 20px; margin-right: 20px; }
}
