/* Steak Gallery tour (steak-tour.js). Everything applies only once the globe is live (.is-live); until then, and
   without WebGL, the exhibits keep their usual two-column layout. */
.mdb-page .mdb-steak-tour__stage { display: none; }

.mdb-page .mdb-steak-tour.is-live { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.mdb-page .mdb-steak-tour.is-live .mdb-steak-tour__stage { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + 88px); display: grid; place-items: center; height: min(78vh, 680px); transition: top .26s ease; }
.mdb-page .mdb-steak-tour__globe { display: block; max-width: 100%; aspect-ratio: 1; cursor: default; }
.mdb-page .mdb-steak-tour.is-live .mdb-steak-exhibits { grid-template-columns: minmax(0, 1fr) !important; }
/* The current exhibit is marked by a gold edge and a lifted background; text keeps full contrast on every card. */
.mdb-page .mdb-steak-tour.is-live .mdb-steak-exhibit { min-height: min(46vh, 420px); transition: border-color .45s ease, background-color .45s ease, box-shadow .45s ease; }
.mdb-page .mdb-steak-tour.is-live .mdb-steak-exhibit.is-current { border-top-color: var(--mdb-gold, #c9ae79); background-color: rgb(201 174 121 / 6%); box-shadow: inset 2px 0 0 var(--mdb-gold, #c9ae79); }

/* Caption under the globe: number, cut, country and distance to Tirana. */
.mdb-page .mdb-steak-tour__caption { position: absolute; inset: auto 0 4%; display: grid; justify-items: center; gap: 4px; margin: 0 !important; text-align: center; pointer-events: none; }
.mdb-page .mdb-steak-tour__no { font-family: var(--mdb-ui-font, Geist, Inter, sans-serif); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--mdb-gold, #c9ae79); }
.mdb-page .mdb-steak-tour__name { font-family: var(--mdb-display-font, "Cormorant Garamond", Georgia, serif); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; color: #f0eee7; }
.mdb-page .mdb-steak-tour__route { font-size: 13px; letter-spacing: .02em; color: #8e958d; font-variant-numeric: tabular-nums; }
.mdb-page .mdb-steak-tour__caption > span { animation: mdb-tour-caption .5s ease both; }
@keyframes mdb-tour-caption { from { opacity: 0; transform: translateY(6px); } }

/* Phones and narrow tablets: the globe sits above the exhibits and stays at the top while they scroll by. */
@media (max-width: 899px) {
  .mdb-page .mdb-steak-tour.is-live { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .mdb-page .mdb-steak-tour.is-live .mdb-steak-tour__stage { top: calc(var(--wp-admin--admin-bar--height, 0px) + 64px); z-index: 5; height: min(40svh, 340px); margin-inline: calc(50% - 50vw); padding: 8px 0 58px; background: #121514; }
  /* Soft edge below the stage, so cards slide under it without a hard line; the caption sits on solid ground. */
  .mdb-page .mdb-steak-tour.is-live .mdb-steak-tour__stage::after { content: ""; position: absolute; inset: 100% 0 auto; height: 28px; background: linear-gradient(#121514, rgb(18 21 20 / 0)); pointer-events: none; }
  .mdb-page .mdb-steak-tour__caption { inset: auto 0 6px; gap: 2px; }
  .mdb-page .mdb-steak-tour__name { font-size: 22px; }
  .mdb-page .mdb-steak-tour__route { font-size: 12px; }
  .mdb-page .mdb-steak-tour.is-live .mdb-steak-exhibits { margin-top: 16px !important; }
  .mdb-page .mdb-steak-tour.is-live .mdb-steak-exhibit { min-height: 0; }
}
/* The header slides away while scrolling down: the globe takes its place, as the category bars do. */
body:has(.mdb-header.is-scrolling-down:not(:focus-within)) .mdb-page .mdb-steak-tour.is-live .mdb-steak-tour__stage { top: calc(var(--wp-admin--admin-bar--height, 0px) + 24px); }
@media (max-width: 899px) {
  body:has(.mdb-header.is-scrolling-down:not(:focus-within)) .mdb-page .mdb-steak-tour.is-live .mdb-steak-tour__stage { top: var(--wp-admin--admin-bar--height, 0px); }
}

@media (prefers-reduced-motion: reduce) {
  .mdb-page .mdb-steak-tour.is-live .mdb-steak-exhibit, .mdb-page .mdb-steak-tour.is-live .mdb-steak-tour__stage { transition: none; }
  .mdb-page .mdb-steak-tour__caption > span { animation: none; }
}
