/* Phone layouts share the desktop markup and the original photographs. */
@media (hover: none) and (pointer: coarse) and (max-width: 1024px) and (max-height: 1024px) and ((max-width: 600px) or (max-height: 600px)) {
  html.phone-navigation {
    overflow: hidden;
    overscroll-behavior: none;
    scroll-behavior: auto;
  }

  .phone-navigation main { touch-action: pinch-zoom; }
  .phone-navigation #cesare { min-height: 100svh; }
  html.phone-navigation .a-nav,
  html.phone-navigation #s6 .a-nav,
  html.phone-navigation .navdots { display: none !important; }

  .phone-navigation .work-gallery { background: #000; }
  .phone-navigation .work-gallery .work-photo { object-fit: contain; }
  .phone-navigation .work-controls #about-open { font-size: 20.4px; }

  .phone-navigation #about {
    background-position: 42% 50%;
  }

  .phone-navigation #about .composition { display: none; }
  .phone-navigation #about .about-mobile {
    position: absolute;
    inset: 0;
    display: block;
    container-type: size;
  }

  .phone-navigation #about .about-mobile .phrase {
    position: absolute;
    left: 6.45%;
    top: var(--line-top);
    margin: 0;
    white-space: nowrap;
    font: 400 var(--line-size)/1 Arial, sans-serif;
    --final-opacity: .56;
  }

  .phone-navigation #about-close {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    width: 48px;
    height: 48px;
    padding: 0;
    background: transparent;
    border: 0;
  }

  .phone-navigation #about-close:focus-visible { outline: none; }
  .phone-navigation #about-close:focus-visible svg {
    filter: drop-shadow(0 0 3px #fff);
    opacity: 1;
  }
  .phone-navigation #about-close svg { width: 30px; height: 30px; opacity: .92; }
}

@media (hover: none) and (pointer: coarse) and (max-width: 1024px) and (max-height: 1024px) and ((max-width: 600px) or (max-height: 600px)) and (orientation: portrait) {
  .phone-navigation .work-gallery {
    height: 50svh;
    min-height: 0;
  }

  .phone-navigation .work-gallery .work-photo {
    height: calc(100% - 7px);
  }

  .phone-navigation .work-gallery:nth-of-type(even) .work-photo {
    object-position: center top;
    top: 7px;
  }

  .phone-navigation .work-gallery:nth-of-type(odd) .work-photo {
    object-position: center bottom;
  }
}

@media (hover: none) and (pointer: coarse) and (max-width: 1024px) and (max-height: 1024px) and ((max-width: 600px) or (max-height: 600px)) and (orientation: landscape) {
  .phone-navigation #about .about-mobile {
    width: min(100%, 100svh * 1.25);
    margin-inline: auto;
  }
}



