/* Keep the title, listening controls and the artwork together on small screens. */
@media screen and (max-width: 700px) {
  :is(.client-prestige, .sag-artwork-ivory) .collection-breadcrumbs {
    margin: 3px 12px 0;
    width: auto;
    max-width: none;
  }
  :is(.client-prestige, .sag-artwork-ivory) .collection-breadcrumbs ol {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    overflow: hidden;
  }
  :is(.client-prestige, .sag-artwork-ivory) .collection-breadcrumbs li {
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
  }
  :is(.client-prestige, .sag-artwork-ivory) .collection-breadcrumbs li a,
  :is(.client-prestige, .sag-artwork-ivory) .collection-breadcrumbs li > span {
    min-width: 0;
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  :is(.client-prestige, .sag-artwork-ivory) .collection-breadcrumbs li:first-child,
  :is(.client-prestige, .sag-artwork-ivory) .collection-breadcrumbs li:nth-child(2) {
    flex-shrink: 0;
  }

  .client-prestige .client-shell .client-prestige-hero {
    padding: 10px 12px 6px;
    margin: 0;
  }
  .client-prestige .client-prestige-hero .client-ornament,
  .sag-artwork-ivory #app .hero .ornament { display: none; }
  .client-prestige .client-prestige-hero h1,
  .sag-artwork-ivory #app .hero h1 {
    font-size: clamp(27px, 7.7vw, 35px);
    line-height: 1.1;
    margin: 5px 0;
    overflow-wrap: anywhere;
  }
  .client-prestige .client-prestige-hero .client-signature-artist {
    font-size: 20px;
    line-height: 1.2;
    margin: 0 0 5px;
  }
  .client-prestige .client-prestige-hero .client-audio-intro {
    margin: 0;
    padding: 0;
  }
  .client-prestige .client-prestige-hero .sag-listen,
  .sag-artwork-ivory #app .hero .sag-listen { margin-top: 6px; }
  .client-prestige .client-shell .client-signature-nav {
    margin: 0;
    padding: 2px 6px;
  }
  .client-prestige .client-signature-nav a {
    min-height: 44px;
    font-size: 13px;
  }
  .client-prestige .client-gallery .client-main-frame {
    min-height: 0;
    height: auto;
  }

  .sag-artwork-ivory #app .hero {
    padding: 9px 12px 6px;
    margin: 0 auto;
  }
  .sag-artwork-ivory #app .hero .eyebrow {
    font-size: .73rem;
    letter-spacing: .06em;
    line-height: 1.3;
    margin: 0;
  }
  /* The same reference is printed in the eyebrow above the title. */
  .sag-artwork-ivory #app .hero:has(> .eyebrow) > .reference { display: none; }
  .sag-artwork-ivory #app .sag-collector-nav-slot { min-height: 52px; }
  .sag-artwork-ivory #app .sag-collector-path {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    max-width: 100%;
    margin: 0;
    padding: 2px 12px;
    overflow-x: auto;
    scroll-padding-inline: 12px;
  }
  .sag-artwork-ivory #app .sag-collector-path > a {
    flex: 0 0 auto;
    width: auto;
    min-height: 44px;
    white-space: nowrap;
  }
  .sag-artwork-ivory #app .mobile-essentials {
    margin-block: 4px;
    padding: 6px 10px;
    gap: 3px 8px;
  }
  .sag-artwork-ivory #app .mobile-essentials .art-delivery-summary {
    display: block !important;
    margin: 0;
    font-size: .85rem;
    line-height: 1.4;
  }
  .sag-artwork-ivory #app .mobile-essentials .art-delivery-summary > span {
    display: inline !important;
    width: auto;
    font-size: inherit;
    line-height: inherit;
  }
  .sag-artwork-ivory #app .mobile-essentials .art-delivery-summary > span + span:not(:empty)::before { content: " · "; }
}

/* SwissArtGallery: collector navigation cues and client artist link for mobile */
@media(max-width:700px){
  .sag-artwork-ivory #app .sag-collector-nav-slot--cues{position:relative}
  .sag-artwork-ivory #app .sag-collector-nav-cue{
    display:flex;align-items:center;justify-content:center;
    position:absolute;top:0;z-index:3;
    width:40px;height:52px;min-width:40px;min-height:44px;
    padding:0;border:0;cursor:pointer;
    color:#765526;background:linear-gradient(90deg,#faf5e9,#f7f0e1);
    font:500 30px/1 Georgia,serif;
  }
  .sag-artwork-ivory #app .sag-collector-nav-cue--previous{
    left:0;border-right:1px solid #c4ae83;box-shadow:5px 0 9px rgba(42,28,12,.11)
  }
  .sag-artwork-ivory #app .sag-collector-nav-cue--next{
    right:0;border-left:1px solid #c4ae83;box-shadow:-5px 0 9px rgba(42,28,12,.11)
  }
  .sag-artwork-ivory #app .sag-collector-nav-cue[hidden]{display:none!important}
  .sag-artwork-ivory #app .sag-collector-nav-cue:focus-visible{
    outline:3px solid #ac8238;outline-offset:-3px
  }
  .client-prestige a[data-sag-client-artist-link]{
    display:inline-flex;align-items:center;justify-content:center;
    min-height:44px;padding-block:10px;
  }
}


/* Keep the photograph controls usable with a single tap and with a keyboard. */
@media screen and (max-width: 560px) {
  .sag-artwork-ivory #zoomViewer .zoom-nav:not([hidden]) {
    display: grid;
    place-items: center;
    top: max(14px, env(safe-area-inset-top));
    bottom: auto;
    right: auto;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    background: #29251e;
    color: #fff;
    font: 32px/1 Georgia, serif;
  }
  .sag-artwork-ivory #zoomViewer .zoom-nav--previous { left: max(12px, env(safe-area-inset-left)); }
  .sag-artwork-ivory #zoomViewer .zoom-nav--next { left: calc(max(12px, env(safe-area-inset-left)) + 52px); }
  .sag-artwork-ivory #zoomViewer .zoom-toolbar {
    display: flex;
    bottom: max(12px, env(safe-area-inset-bottom));
    max-width: calc(100% - 16px);
  }
  .sag-artwork-ivory #zoomViewer .zoom-toolbar button {
    flex: 0 0 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    font-size: 24px;
    line-height: 1;
  }
  .sag-artwork-ivory #zoomViewer button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
  }
}

@media screen and (max-width: 700px) {
  .sag-artwork-ivory #app .mobile-essentials {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
  .sag-artwork-ivory #app .mobile-essentials > .status { flex: 0 0 auto; max-width: 100%; }
  .sag-artwork-ivory #app .mobile-essential-price {
    margin-inline-start: auto;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .sag-artwork-ivory #app .mobile-essentials > :not(.status, .mobile-essential-price) { flex-basis: 100%; }
  .sag-artwork-ivory #app .similar .section-title,
  .sag-artwork-ivory #app .info-panel { overflow-wrap: anywhere; }
  .sag-artwork-ivory #app .share-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sag-artwork-ivory #app .share-row > * { min-width: 0; overflow-wrap: anywhere; }
}


@media screen and (max-width: 700px) {
  .sag-artwork-ivory #app .info-panel::after { width: auto; max-width: calc(100% - 32px); }
  .sag-artwork-ivory #zoomViewer .zoom-level { white-space: nowrap; }
}

