@media (max-width: 700px) and (hover: none) and (pointer: coarse) {
  html:has(body.mobile-prototype), body.mobile-prototype {
    overflow: hidden;
    overscroll-behavior: none;
  }
  .mobile-prototype #navigation {
    position: sticky; top: 0; z-index: 100; display: grid;
    grid-template-columns: 1fr 1fr; align-items: center;
    width: 100%; height: 56px; min-height: 0;
    background: #fff url('/images/logo/barre.jpg') repeat-x left bottom;
  }
  .mobile-prototype #navigation::after {
    content: ''; position: absolute; z-index: 2; top: 17px; left: 50%; width: 19px; height: 20px;
    background: url('/images/logo/logo.jpg') no-repeat center; transform: translateX(-50%);
  }
  .mobile-prototype #navigation .lmenu {
    position: relative; z-index: 1; grid-column: 1; box-sizing: border-box; width: 100%;
    height: 56px; padding: 0 20px 0 6px; background: none;
    font-size: clamp(17px, 4.8vw, 19px); line-height: 54px; text-align: center; white-space: nowrap;
  }
  .mobile-prototype #navigation .rmenu { display: none; }
  .mobile-menu-trigger {
    position: relative; z-index: 1; grid-column: 2; display: block; width: 100%; max-width: 100%;
    height: 56px; padding: 0 6px 0 20px; border: 0; background: transparent;
    color: #000; font: 300 clamp(17px, 4.8vw, 19px)/54px Lato, sans-serif;
    letter-spacing: .5px; text-align: center; white-space: nowrap;
  }
  .mobile-menu-trigger[hidden] { display: none; }
  .mobile-menu-panel {
    position: fixed; z-index: 99; inset: 56px 0 0; display: none; overflow-y: auto;
    overscroll-behavior: contain; background: #fff;
  }
  .mobile-menu-panel,
  .mobile-work-list {
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }
  body.mobile-works-page .mobile-menu-panel,
  body.mobile-section-page .mobile-menu-panel { top: 56px; }
  body.mobile-works-page #navigation.menu-open,
  body.mobile-section-page #navigation.menu-open { background-image: none; }
  .mobile-menu-panel.is-open { display: block; }
  .mobile-menu-panel ul { margin: 0; padding: 0; list-style: none; }
  .mobile-menu-panel a {
    display: block; min-height: 52px; box-sizing: border-box; padding: 12px 24px;
    color: #000; font-size: 21px; line-height: 28px; letter-spacing: 1px;
    text-align: center; text-decoration: none;
  }
  body.mobile-home main {
    position: relative; display: block; box-sizing: border-box; height: calc(100dvh - 56px);
    min-height: 0; margin: 0; padding: 0; overflow: hidden;
  }
  body.mobile-home .featured-work {
    position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-height: none;
    aspect-ratio: auto; border: 0;
  }
  body.mobile-home .featured-work img {
    position: absolute; top: 50%; left: 50%; width: auto; height: auto;
    max-width: 100%; max-height: 100%; object-fit: contain; transform: translate(-50%, -50%);
  }
  body.mobile-simple-page #content {
    box-sizing: border-box; width: 100%; height: calc(100dvh - 56px);
    margin: 0; padding: 22px 18px 46px; overflow-x: hidden; overflow-y: auto;
    overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch;
  }
  body.mobile-simple-page #content .contact {
    float: none; box-sizing: border-box; width: 100%; height: auto; margin: 0 0 28px;
    overflow-wrap: anywhere; line-height: 1.45; text-align: center;
  }
  body.mobile-simple-page #content .contact img {
    max-width: 100%; height: auto; object-fit: contain;
  }
  body.mobile-simple-page #content iframe { max-width: 100%; }
  body.mobile-contact #content {
    display: grid; align-content: start; padding-top: 24px;
    overflow: hidden; overscroll-behavior: none; touch-action: none;
  }
  body.mobile-section-page #content2 {
    box-sizing: border-box; width: 100%; height: calc(100dvh - 108px);
    margin: 52px 0 0; padding: 18px 18px 42px; overflow-x: hidden; overflow-y: auto;
    overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch;
  }
  body.mobile-section-page #content2 > .left { display: none; }
  body.mobile-section-page #content2 .right,
  body.mobile-section-page #content2 .bio2 {
    float: none; box-sizing: border-box; width: 100%; margin: 0; padding: 0;
  }
  body.mobile-section-page #content2 .accroche,
  body.mobile-section-page #content2 .texte,
  body.mobile-section-page #content2 .blocperso {
    float: none; box-sizing: border-box; width: 100%; max-width: none;
  }
  body.mobile-section-page #content2 .accroche {
    margin: 0 0 18px; padding: 15px 0 7px; scroll-margin-top: 12px;
    text-align: center;
  }
  body.mobile-section-page #content2 .accroche:first-child { padding-top: 0; }
  body.mobile-section-page #content2 #curri,
  body.mobile-section-page #content2 #interview,
  body.mobile-section-page #content2 #a2025 { display: none; }
  body.mobile-section-page #content2 .texte { margin: 0 0 26px; line-height: 1.45; text-align: left; }
  body.mobile-section-page #content2 .texte img { max-width: 100%; height: auto; }
  body.mobile-section-page #content2 .texte,
  body.mobile-section-page #content2 .blocperso,
  body.mobile-section-page #content2 .date,
  body.mobile-section-page #content2 .expo {
    text-align: left !important;
    text-justify: auto;
    word-spacing: normal !important;
    letter-spacing: normal !important;
    white-space: normal;
  }
  body.mobile-section-page #content2 .blocperso {
    display: grid; grid-template-columns: 54px minmax(0, 1fr);
    column-gap: 8px; row-gap: 0; margin: 0 0 12px; line-height: 1.45;
  }
  body.mobile-section-page #content2 .date,
  body.mobile-section-page #content2 .expo { float: none; width: auto; }
  body.mobile-section-page #content2 .blocperso > .date { grid-column: 1; }
  body.mobile-section-page #content2 .blocperso > .expo {
    grid-column: 2;
    min-width: 0;
    overflow-wrap: normal;
    word-break: normal;
    text-align: left !important;
  }
  body.mobile-section-page #content2 .blocperso > .date:not(:first-child),
  body.mobile-section-page #content2 .blocperso > .date:not(:first-child) + .expo {
    padding-top: 10px;
  }
  .mobile-section-control {
    position: fixed; top: 56px; left: 0; z-index: 98; display: flex; align-items: center;
    justify-content: center; box-sizing: border-box; width: 100%; height: 52px;
    background: #fff;
  }
  .mobile-section-trigger {
    width: calc(100% - 36px); height: 51px; padding: 0;
    border: 0; border-bottom: 1px solid #d4e3f5; background: transparent;
    color: #000; font: 300 22px/51px Lato, sans-serif; text-align: center;
  }
  .mobile-section-list {
    position: fixed; z-index: 101; inset: 56px 0 0; display: none;
    overflow-y: auto; overscroll-behavior: contain; background: #fff;
    touch-action: pan-y; -webkit-overflow-scrolling: touch;
  }
  .mobile-section-list.is-open { display: block; }
  .mobile-section-list button {
    display: block; width: 100%; height: 52px; padding: 0 24px;
    border: 0; background: #fff; color: #000;
    font: 300 22px/52px Lato, sans-serif; text-align: center;
  }
  .mobile-section-list button:active { background: #d4e3f5; }
  body.mobile-expos #content2 .vues {
    float: none; box-sizing: border-box; width: 100%; margin: 0 0 30px;
    line-height: 1.45; letter-spacing: normal; text-align: left;
  }
  body.mobile-expos #content2 iframe { max-width: 100%; }
  body.mobile-expos #content2 .mobile-expo-gallery {
    position: relative; box-sizing: border-box; width: 100%; height: min(64vw, 330px);
    margin: 12px 0 20px; overflow: hidden; background: #fff; aspect-ratio: auto;
  }
  .mobile-expo-track {
    display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    scrollbar-width: none; touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch;
  }
  .mobile-expo-track::-webkit-scrollbar { display: none; }
  .mobile-expo-track img,
  .mobile-expo-track img.slide {
    position: static !important; display: block !important; flex: 0 0 100%;
    box-sizing: border-box; width: 100% !important; height: 100% !important;
    object-fit: contain; scroll-snap-align: start;
  }
  .mobile-expo-arrow {
    position: absolute; z-index: 2; top: 0; width: 38px; height: 100%; padding: 0;
    border: 0; background: transparent; color: #9ec7f5;
    font: 300 38px/1 Arial, sans-serif; text-align: center;
  }
  .mobile-expo-arrow.is-prev { left: 0; }
  .mobile-expo-arrow.is-next { right: 0; }
  .mobile-expo-arrow[hidden] { display: none; }
  .mobile-expo-lightbox {
    position: fixed; z-index: 300; inset: 0; display: none; overflow: hidden; background: #fff;
  }
  .mobile-expo-lightbox.is-open { display: block; }
  .mobile-expo-lightbox-track {
    display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; overscroll-behavior: contain;
    scrollbar-width: none; touch-action: pan-x; -webkit-overflow-scrolling: touch;
  }
  .mobile-expo-lightbox-track::-webkit-scrollbar { display: none; }
  .mobile-expo-lightbox-slide {
    display: grid; flex: 0 0 100%; box-sizing: border-box; width: 100%; height: 100%;
    padding: 0 0 44px; place-items: center; scroll-snap-align: start; background: #fff;
  }
  .mobile-expo-lightbox-slide img {
    display: block; width: 100%; height: 100%; object-fit: contain;
    transform-origin: center; user-select: none; -webkit-user-drag: none; will-change: transform;
  }
  .mobile-expo-lightbox-arrow {
    position: fixed; z-index: 302; top: 0; width: 38px; height: calc(100% - 44px); padding: 0;
    border: 0; background: transparent; color: #9ec7f5;
    font: 300 38px/1 Arial, sans-serif; text-align: center;
  }
  .mobile-expo-lightbox-arrow.is-prev { left: 0; }
  .mobile-expo-lightbox-arrow.is-next { right: 0; }
  .mobile-expo-lightbox-arrow[hidden] { display: none; }
  .mobile-expo-lightbox.is-zoomed .mobile-expo-lightbox-track {
    overflow: hidden; scroll-snap-type: none; touch-action: none;
  }
  .mobile-expo-lightbox.is-zoomed .mobile-expo-lightbox-arrow { display: none; }
  .mobile-expo-lightbox-close { z-index: 303; }
  body.mobile-works-page .works-layout,
  body.mobile-works-page #work-info,
  body.mobile-works-page #photo-viewer { display: none; }
  #mobile-works {
    position: relative; box-sizing: border-box; height: calc(100dvh - 56px); min-height: 0;
    overflow: hidden; background: #fff;
  }
  .mobile-project-track {
    width: 100%; height: 100%; overflow-x: hidden; overflow-y: auto;
    scroll-snap-type: y mandatory; overscroll-behavior-y: contain;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .mobile-project-track::-webkit-scrollbar { display: none; }
  .mobile-project-pane {
    --series-photo-height: min(50vw, calc(100dvh - 190px));
    display: flex; flex-direction: column;
    box-sizing: border-box; width: 100%; height: 100%; min-height: 100%;
    padding-bottom: 8px; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always;
  }
  .mobile-project-control {
    position: relative; display: flex; align-items: center; justify-content: center;
  }
  .mobile-project-title {
    padding: 0 4px; border: 0; background: transparent; color: #000;
    font: 300 22px/50px Lato, sans-serif;
  }
  .mobile-project-info {
    width: 28px; height: 44px; padding: 0; border: 0;
    background: transparent url('/images/oeuvres/texte.png') no-repeat center;
    background-size: 14px 19px; font-size: 0;
  }
  .mobile-project-arrow { display: none; }
  .mobile-photo-stage {
    position: relative; flex: 0 0 calc(var(--series-photo-height) + 8px);
    height: calc(var(--series-photo-height) + 8px); margin: 7px 0 0; overflow: hidden;
  }
  .mobile-photo-track {
    display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
    scrollbar-width: none; touch-action: auto; -webkit-overflow-scrolling: touch;
  }
  .mobile-photo-track::-webkit-scrollbar { display: none; }
  .mobile-photo-slide {
    flex: 0 0 100%; display: flex; flex-direction: column; align-items: center;
    justify-content: flex-start; box-sizing: border-box; width: 100%; height: 100%;
    padding: 8px 34px 0; overflow: hidden; scroll-snap-align: center; scroll-snap-stop: always;
  }
  .mobile-slide-media { display: contents; }
  .mobile-photo {
    flex: 0 0 auto; display: block; width: auto; height: var(--series-photo-height);
    max-width: none; max-height: none; object-fit: contain;
  }
  .mobile-photo-arrow {
    position: absolute; z-index: 2; top: 8px; width: 34px;
    height: var(--series-photo-height); padding: 0; border: 0;
    background-color: transparent; background-position: center;
    background-repeat: no-repeat; background-size: 25px auto;
  }
  .mobile-photo-prev { left: 0; background-image: url('../oeuvres/assets/sprite_prev.png'); }
  .mobile-photo-next { right: 0; background-image: url('../oeuvres/assets/sprite_next.png'); }
  .mobile-photo-arrow[hidden] { display: none; }
  .mobile-photo-caption {
    position: relative; flex: 0 0 34px; height: 34px; margin: 10px 34px 0;
    overflow: hidden; font-size: 10px; line-height: 1.25; letter-spacing: .35px;
    text-align: center;
  }
  .mobile-caption-line {
    position: absolute; inset: 0; opacity: 0; transform: translateY(-7px);
    transition: opacity 180ms ease, transform 180ms ease;
  }
  .mobile-caption-line.is-current { opacity: 1; transform: translateY(0); }
  .mobile-caption-line.is-leaving { opacity: 0; transform: translateY(7px); }
  .mobile-video-slide { padding: 0 34px; }
  .mobile-video-slide iframe { width: 100%; height: auto; max-height: 100%; aspect-ratio: 16 / 9; border: 0; }
  .mobile-work-list {
    position: fixed; z-index: 101; inset: 108px 0 0; display: none; overflow-y: auto;
    overscroll-behavior: contain; background: #fff;
  }
  .mobile-work-list.is-open { display: block; }
  .mobile-work-list button {
    display: block; width: 100%; min-height: 48px; padding: 10px 24px; border: 0;
    background: #fff; color: #000; font: 300 19px/1.3 Lato, sans-serif; text-align: center;
  }
  .mobile-work-list button.is-current { background: #d4e3f5; }
  .mobile-info-panel {
    position: fixed; z-index: 210; inset: 56px 0 0; display: none; overflow-y: auto;
    box-sizing: border-box; padding: 28px 28px 70px; background: #fff;
  }
  .mobile-info-panel.is-open { display: block; }
  .mobile-info-panel h2 { margin: 0 0 20px; font-size: 18px; font-weight: 300; text-align: center; }
  .mobile-info-panel p { font-size: 14px; line-height: 1.45; text-align: center; }
  .mobile-info-close,
  .mobile-detail-close {
    position: fixed; right: 10px; bottom: max(9px, env(safe-area-inset-bottom));
    width: 30px; height: 30px; padding: 0; border: 0;
    background: transparent url('../oeuvres/assets/sprite.png') no-repeat 2px 1px; font-size: 0;
  }
  #mobile-detail {
    position: fixed; z-index: 200; inset: 0; display: none; box-sizing: border-box; background: #fff;
  }
  #mobile-detail.is-open { display: block; }
  .mobile-detail-viewport {
    position: absolute; inset: 0 0 48px; display: grid; place-items: center;
    overflow: hidden; touch-action: none;
  }
  .mobile-detail-image {
    display: block; max-width: 100%; max-height: 100%; transform-origin: center;
    user-select: none; -webkit-user-drag: none; will-change: transform;
  }
  #mobile-detail.is-panoramic .mobile-detail-image {
    width: auto; max-width: none; height: 100%; max-height: 100%;
  }
  #mobile-detail.is-full-height .mobile-detail-viewport {
    display: block; overflow-x: auto; overflow-y: hidden; touch-action: pan-x;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  #mobile-detail.is-full-height .mobile-detail-viewport::-webkit-scrollbar { display: none; }
  #mobile-detail.is-full-height .mobile-detail-image {
    display: block; width: auto; max-width: none; height: 100%; max-height: none;
    margin: 0 auto; transform: none !important;
  }
}
