/* Galerie privée : styles repris de css/style.css (version commitée), habillés par bouk.css */
@font-face { font-family: "Material Symbols Sharp"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/material-symbols-sharp.woff2?v=6") format("woff2"); }
.photo-page { --bg: #fff; --text: #0d0d0d; --rule: #0d0d0d; --muted: #808080; --pad: calc(var(--r) * 2); }
.icon { position: relative; display: block; width: 22px; height: 22px; flex: none; pointer-events: none; }
.material-symbols-sharp {
  font-family: "Material Symbols Sharp";
  font-weight: normal;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  transition: font-variation-settings 0.15s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: none;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
}

.material-symbols-sharp.is-filled,
.material-symbols-sharp.is-fill-only {
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}
.photo-auth {
  margin: auto;
  padding: 0;
  border: 1px solid var(--rule);
  background: var(--bg);
  color: var(--text);
  max-width: min(22rem, calc(100vw - 2rem));
  width: 100%;
}

.photo-auth::backdrop {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
}

.photo-auth-form {
  padding: 20px 20px 16px;
}

.photo-auth-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
}

.photo-auth-lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.photo-auth-field {
  position: relative;
  margin: 0 0 12px;
  border-bottom: 1px solid var(--rule);
  padding: 0 0 10px;
}

.photo-auth-field input {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  caret-color: var(--text);
  font: inherit;
  font-size: 14px;
  line-height: 21px;
  appearance: none;
  -webkit-appearance: none;
}

.photo-auth-field input:focus,
.photo-auth-field input:focus-visible {
  outline: none;
}

.photo-auth-hint {
  position: absolute;
  left: 0;
  top: 0;
  color: #808080;
  font-size: 14px;
  line-height: 21px;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.photo-auth-field:focus-within .photo-auth-hint,
.photo-auth-field.has-value .photo-auth-hint {
  visibility: hidden;
}

.photo-auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.photo-auth-remember input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--text);
  cursor: pointer;
}

.photo-auth-error {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.photo-auth-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.photo-auth-cancel,
.photo-auth-submit {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  line-height: 21px;
  cursor: pointer;
}

.photo-auth-cancel {
  color: var(--muted);
}

.photo-auth-submit {
  color: var(--text);
}

body.photo-gallery-open {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

.photo-gallery {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  overflow: auto;
  overscroll-behavior: contain;
}

.photo-gallery.is-carousel .photo-masonry {
  display: none !important;
}

.photo-gallery[hidden] {
  display: none !important;
}

.photo-gallery-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px 16px;
  min-height: 64px;
  box-sizing: border-box;
  padding:
    max(10px, env(safe-area-inset-top))
    max(24px, env(safe-area-inset-right))
    10px
    max(24px, env(safe-area-inset-left));
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}

.photo-gallery-bar-start {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  justify-self: start;
}

.photo-view-switch {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.photo-bar-btn {
  margin: 0;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  height: 44px;
  box-sizing: border-box;
  box-shadow: none;
  opacity: 1;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.photo-bar-btn-icon {
  padding: 0;
  width: 44px;
  height: 44px;
  justify-content: center;
}

.photo-bar-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex: none;
  color: inherit;
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}

.photo-bar-btn:not(.photo-bar-btn-icon) .photo-bar-icon {
  width: auto;
  height: auto;
  border-radius: 0;
}

.photo-bar-icon .icon {
  font-size: 22px;
  width: 22px;
  height: 22px;
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
}

.photo-bar-text {
  white-space: nowrap;
}

.photo-view-btn {
  padding: 0 18px;
}

.photo-view-btn.is-active {
  background: var(--text);
  color: var(--bg);
}

.photo-view-btn.is-active .photo-bar-icon .icon {
  font-variation-settings: "FILL" 1, "wght" 300, "GRAD" 0, "opsz" 24;
}

.photo-gallery-heading {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.photo-gallery-total {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  color: var(--muted);
}

.photo-gallery-total[hidden] {
  display: none;
}

.photo-gallery-title {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-carousel-index {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.photo-gallery-bar-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  justify-self: end;
}

.photo-gallery-close.photo-bar-btn,
.photo-gallery-select-all.photo-bar-btn,
.photo-gallery-download-selected.photo-bar-btn {
  width: auto;
  display: inline-flex;
}

.photo-gallery-select-all.is-active .photo-bar-icon .icon {
  font-variation-settings: "FILL" 1, "wght" 300, "GRAD" 0, "opsz" 24;
}

.photo-gallery-download-selected:disabled {
  color: var(--muted);
  cursor: default;
  opacity: 0.55;
}

.photo-gallery-download-selected:disabled .photo-bar-icon {
  color: var(--muted);
}

.photo-gallery-count {
  color: var(--muted);
  font-size: 14px;
}

.lightbox-zoom {
  margin: 0;
  padding: 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  box-shadow: none;
}

.photo-tile-select,
.photo-tile-download {
  margin: 0;
  padding: 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  box-shadow: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.photo-tile-select .icon,
.photo-tile-download .icon {
  pointer-events: none;
  font-size: 20px;
  width: 20px;
  height: 20px;
  color: inherit;
}

.photo-tile.is-hover .photo-tile-select,
.photo-tile.is-hover .photo-tile-download,
.photo-tile:focus-within .photo-tile-select,
.photo-tile:focus-within .photo-tile-download,
.photo-tile.is-selected .photo-tile-select {
  background: #fff;
  color: #000;
}

.photo-tile.is-selected .photo-tile-select .icon {
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

.photo-masonry {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding:
    12px
    max(var(--pad), env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(var(--pad), env(safe-area-inset-left));
}

.photo-masonry-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.photo-tile {
  position: relative;
  margin: 0;
  background: var(--bg);
  isolation: isolate;
  content-visibility: auto;
  contain-intrinsic-size: 280px;
}

.photo-flip-ghost {
  box-shadow: none;
  background: var(--bg);
}

/* Ouverture type Finder : une seule image (le ghost) est visible */
.photo-carousel-stage.is-opening .photo-carousel-track {
  visibility: hidden;
}

.photo-gallery.is-carousel-opening .photo-carousel-strip {
  opacity: 0;
  pointer-events: none;
}

.photo-gallery.is-carousel-opening .photo-carousel-index {
  visibility: hidden;
}

.photo-tile-open {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  position: relative;
  z-index: 0;
  cursor: pointer;
}

.photo-tile-open img {
  width: 100%;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: cover;
  vertical-align: middle;
  pointer-events: none;
}

.photo-carousel {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.photo-carousel[hidden] {
  display: none !important;
}

.photo-gallery.is-carousel {
  overflow: hidden;
}

.photo-gallery.is-carousel .photo-gallery-bar {
  position: relative;
  flex: none;
}

.photo-carousel-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding: 16px 0;
  box-sizing: border-box;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: default;
  background: var(--bg);
}

.photo-carousel-select {
  position: absolute;
  top: 20px;
  left: 68px;
  z-index: 7;
  color: #fff;
}

.photo-carousel-select.is-active {
  color: #fff;
}

.photo-carousel-select.is-active .photo-bar-icon {
  background: #fff;
  color: #000;
}

.photo-carousel-side {
  position: absolute;
  top: 50%;
  z-index: 7;
  transform: translateY(-50%);
  color: var(--text);
}

.photo-carousel-prev {
  left: 12px;
}

.photo-carousel-next {
  right: 12px;
}

.photo-carousel-side.is-disabled,
.photo-carousel-side:disabled {
  opacity: 0.28;
  cursor: default;
  pointer-events: none;
}

.photo-carousel-nav-cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  display: none;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  color: var(--text);
  mix-blend-mode: difference;
  pointer-events: none;
  will-change: transform;
}

.photo-carousel-nav-cursor[hidden] {
  display: none;
}

.photo-carousel-nav-cursor .icon {
  font-size: 36px;
  width: 36px;
  height: 36px;
  line-height: 1;
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
}

@media (hover: hover) and (pointer: fine) {
  .photo-carousel-stage:not(.is-mobile-zoom) {
    cursor: default;
  }

  .photo-gallery.is-carousel-zoomed .photo-carousel-stage:not(.is-mobile-zoom),
  .photo-carousel-stage.is-mobile-zoom {
    cursor: grab;
  }
}

@media (hover: none) and (pointer: coarse) {
  .photo-carousel-side {
    display: none;
  }

  .photo-carousel-view,
  .photo-carousel-full {
    right: 0;
    left: 0;
    max-width: 100%;
  }

  .photo-carousel-strip {
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .photo-carousel-strip::-webkit-scrollbar {
    display: none;
  }

  .photo-carousel-thumb {
    height: 56px;
  }
}

.photo-carousel-track {
  display: flex;
  height: 100%;
  width: 300%;
  transform: translate3d(-33.333%, 0, 0);
  will-change: auto;
}

.photo-carousel-slide {
  position: relative;
  flex: 0 0 33.333%;
  width: 33.333%;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.photo-carousel-slide.is-empty {
  visibility: hidden;
}

.photo-carousel-slide.is-dragging-slide .photo-carousel-zoom {
  transform: scale(0.985);
  transition: transform 80ms ease-out;
}

.photo-carousel-zoom {
  position: absolute;
  inset: 0;
  display: block;
  transform-origin: center center;
}

.photo-carousel-view,
.photo-carousel-full {
  position: absolute;
  top: 0;
  right: 56px;
  bottom: 0;
  left: 56px;
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100% - 112px);
  max-height: 100%;
  margin: auto;
  object-fit: contain;
  border-radius: 0;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.photo-carousel-full {
  opacity: 0;
}

.photo-carousel-full.is-ready {
  opacity: 1;
}

.photo-carousel-stage.is-mobile-zoom,
.photo-gallery.is-carousel-zoomed .photo-carousel-stage {
  cursor: grab;
}

.photo-carousel-stage.is-dragging {
  cursor: grabbing;
}

.photo-carousel-stage.is-interacting .photo-carousel-track,
.photo-carousel-stage.is-interacting .photo-carousel-zoom {
  will-change: transform;
}

.photo-carousel-strip {
  position: relative;
  z-index: 6;
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 72px;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  padding:
    0
    max(24px, env(safe-area-inset-right))
    max(8px, env(safe-area-inset-bottom))
    max(24px, env(safe-area-inset-left));
  border-top: 1px solid var(--rule);
  background: var(--bg);
  scrollbar-width: thin;
}

.photo-carousel-thumb {
  flex: none;
  width: auto;
  height: 48px;
  aspect-ratio: 3 / 2;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: color-mix(in srgb, var(--text) 12%, transparent);
  cursor: pointer;
  scroll-snap-align: center;
  box-shadow: none;
  outline: 2px solid transparent;
  outline-offset: 3px;
  opacity: 0.45;
  transition: outline-color 0.15s ease, opacity 0.15s ease;
}

.photo-carousel-thumb:hover {
  opacity: 1;
}

.photo-carousel-thumb:active {
  opacity: 0.85;
}

.photo-carousel-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.photo-carousel-thumb.is-active {
  opacity: 1;
  outline: 2px solid #fff;
  outline-offset: -2px;
  background: transparent;
}

.photo-carousel-thumb:focus-visible {
  outline: 1px solid var(--text);
  outline-offset: 2px;
}

.photo-tile-actions {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 8px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.photo-tile.is-hover .photo-tile-actions,
.photo-tile:focus-within .photo-tile-actions,
.photo-tile.is-selected .photo-tile-actions {
  opacity: 1;
  pointer-events: auto;
}

.photo-tile-select,
.photo-tile-download {
  pointer-events: auto;
  position: relative;
  z-index: 6;
}

@media (hover: none) {
  .photo-tile-actions {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 900px) {
  .photo-gallery-bar {
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
  }

  .photo-gallery-bar-start,
  .photo-view-switch,
  .photo-gallery-bar-actions {
    justify-self: stretch;
  }

  .photo-view-switch,
  .photo-gallery-bar-actions {
    justify-content: flex-start;
  }

  .photo-carousel-stage {
    padding: 16px 0;
  }

  .photo-carousel-select {
    left: 64px;
    top: 20px;
  }

  .photo-carousel-prev {
    left: 8px;
  }

  .photo-carousel-next {
    right: 8px;
  }

  .photo-carousel-strip {
    height: 88px;
  }

  .photo-carousel-thumb {
    height: 52px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .photo-gallery :is(a, button):not(:disabled):hover .material-symbols-sharp,
  .photo-gallery :is(a, button):not(:disabled):focus-visible .material-symbols-sharp {
    transform: none;
  }

  /* Boutons labelés : fond plein au survol (visionneuse) */
  .photo-gallery .photo-bar-btn:not(.photo-bar-btn-icon):not(.is-active):hover,
  .photo-gallery .photo-bar-btn:not(.photo-bar-btn-icon):not(.is-active):focus-visible,
  .photo-gallery .photo-bar-btn:not(.photo-bar-btn-icon):not(:disabled):hover,
  .photo-gallery .photo-bar-btn:not(.photo-bar-btn-icon):not(:disabled):focus-visible {
  }

  .photo-gallery .photo-view-btn.is-active:hover,
  .photo-gallery .photo-view-btn.is-active:focus-visible {
  }

  /* Icônes seules : cercle noir, glyphe blanc */
  .photo-gallery .photo-bar-btn-icon:hover .photo-bar-icon,
  .photo-gallery .photo-bar-btn-icon:focus-visible .photo-bar-icon {
  }

  .photo-gallery .photo-carousel-select:hover .photo-bar-icon,
  .photo-gallery .photo-carousel-select:focus-visible .photo-bar-icon {
  }

  .photo-gallery .photo-bar-btn:hover .material-symbols-sharp,
  .photo-gallery .photo-bar-btn:focus-visible .material-symbols-sharp {
    transform: none;
    font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
  }

  .photo-gallery .photo-tile-select:hover,
  .photo-gallery .photo-tile-download:hover,
  .photo-gallery .photo-tile-select:focus-visible,
  .photo-gallery .photo-tile-download:focus-visible {
    transform: none;
  }

  .lightbox-zoom:hover,
  .lightbox-zoom:focus-visible {
    background: var(--bg);
    color: var(--text);
    box-shadow: none;
  }

  .back-link:hover .back-link-label {
    text-decoration: line-through;
    text-decoration-thickness: 1px;
  }

  .gallery-item:hover {
    outline: 1px solid var(--text);
    outline-offset: -1px;
    z-index: 2;
  }

  .page-card-media img {
    transition: transform 0.45s ease-in-out;
  }

  .page-card:hover .page-card-media img,
  .page-card:focus-visible .page-card-media img {
    transform: scale(1.07);
  }
}
@media (hover: none), (pointer: coarse) {
  .project-preview {
    display: none !important;
  }

  :is(a, button):not(:disabled):active .material-symbols-sharp {
    font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
  }

  .photo-gallery .photo-bar-btn:not(.photo-bar-btn-icon):active {
    background: var(--text);
    color: var(--bg);
  }

  .photo-gallery .photo-bar-btn-icon:active .photo-bar-icon {
    background: var(--text);
    color: var(--bg);
  }

  .photo-gallery .photo-tile-select:active,
  .photo-gallery .photo-tile-download:active {
    background: #fff;
    color: #000;
  }

  .lightbox-zoom:active {
    background: var(--bg);
    color: var(--text);
    box-shadow: none;
  }

  .photo-gallery .photo-view-btn:active {
    opacity: 1;
    background: transparent;
  }
}
.photo-page #lightbox, .photo-page .lightbox { display: none !important; }


/* ——— Alignement sur la charte du site (boutons arrondis, aplats gris, coins arrondis) ——— */
.photo-page .photo-gallery-bar {
  padding: var(--pad);
  gap: calc(var(--r) * 1.2) calc(var(--r) * 2);
  min-height: 0;
  border-bottom: 0;
}
.photo-page .photo-gallery-title { font-size: var(--fs-l); line-height: 1; }
.photo-page .photo-gallery-total,
.photo-page .photo-carousel-index { font-size: var(--fs-s); }
.photo-page .photo-view-switch { gap: calc(var(--r) * .6); }

.photo-page .photo-bar-btn {
  height: calc(var(--r) * 4.4);
  padding: 0 calc(var(--r) * 1.8);
  border-radius: 999px;
  background: var(--grey);
  color: var(--ink);
  font-size: var(--fs-s);
}
.photo-page .photo-bar-btn-icon { padding: 0; width: calc(var(--r) * 4.4); background: transparent; }
.photo-page .photo-bar-btn-icon .photo-bar-icon {
  width: calc(var(--r) * 4.4);
  height: calc(var(--r) * 4.4);
  background: var(--grey);
}
.photo-page .photo-bar-btn:not(.photo-bar-btn-icon) .photo-bar-icon { background: transparent; }
.photo-page .photo-bar-btn:disabled { opacity: .45; }
.photo-page .photo-view-btn.is-active,
.photo-page .photo-gallery-select-all.is-active { background: var(--ink); color: var(--white); }
.photo-page .photo-bar-icon .icon { font-size: 20px; width: 20px; height: 20px; }

.photo-page .photo-tile { border-radius: calc(var(--r) * 4); overflow: hidden; }
.photo-page .photo-tile-open,
.photo-page .photo-tile-open img { border-radius: calc(var(--r) * 4); }
.photo-page .photo-tile-select,
.photo-page .photo-tile-download { border-radius: 50%; }
.photo-page .photo-carousel-view,
.photo-page .photo-carousel-full { border-radius: calc(var(--r) * 4); }
.photo-page .photo-carousel-thumb,
.photo-page .photo-carousel-thumb img { border-radius: calc(var(--r) * 1); }

.photo-page .photo-tile-open, .photo-page .photo-tile-open * { cursor: pointer; }


/* ——— Galerie Jean & Diane : présentation et navigation, sans icônes ——— */
.photo-page .photo-gallery-title { font-size: var(--fs-xl); line-height: 1; }
.photo-page .photo-gallery-heading { gap: calc(var(--r) * .5); }
.photo-page .photo-gallery-total, .photo-page .photo-carousel-index { color: #555; }
.photo-page .photo-gallery-count {
  display: inline-grid; place-items: center;
  min-width: 1.7em; height: 1.7em; padding: 0 .4em;
  border-radius: 999px; background: var(--white); color: var(--ink); font-size: var(--fs-s);
}
.photo-page .photo-gallery-download-selected:not(:disabled) { background: var(--ink); color: var(--white); }
.photo-page .photo-masonry { gap: calc(var(--r) * 1.5); padding-top: calc(var(--r) * 1.5); }
.photo-page .photo-masonry-col { gap: calc(var(--r) * 1.5); }

/* Pastilles de sélection / téléchargement sur chaque photo */
.photo-page .photo-tile-actions { left: calc(var(--r) * 1.4); right: calc(var(--r) * 1.4); top: calc(var(--r) * 1.4); }
.photo-page .photo-tile-select, .photo-page .photo-tile-download {
  width: auto; height: calc(var(--r) * 3.8);
  padding: 0 calc(var(--r) * 1.5);
  border-radius: 999px;
  background: var(--white); color: var(--ink);
  font: inherit; font-size: var(--fs-s); line-height: 1; white-space: nowrap;
  display: inline-flex; align-items: center;
}
.photo-page .photo-tile.is-selected .photo-tile-select { background: var(--ink); color: var(--white); }
.photo-page .photo-tile.is-selected { outline: 3px solid var(--ink); outline-offset: -3px; }

/* Carrousel : commandes sous la photo */
.photo-page .photo-carousel-controls {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: calc(var(--r) * 1) calc(var(--r) * 1);
  padding: calc(var(--r) * 1.4) var(--pad);
}
.photo-page .photo-carousel-count { min-width: 5.5em; text-align: center; font-size: var(--fs-m); font-variant-numeric: tabular-nums; }
.photo-page .photo-ctl:disabled, .photo-page .photo-ctl.is-disabled { opacity: .35; cursor: default; }
.photo-page .photo-carousel-select.is-active, .photo-page #photo-carousel-select.is-active { background: var(--ink); color: var(--white); }
.photo-page .photo-carousel-stage { padding: calc(var(--r) * 1) 0; }

/* Curseur de zoom : mot au lieu d'une icône */
.photo-page .photo-carousel-nav-cursor { width: auto; height: auto; color: #fff; }
.photo-page .photo-carousel-nav-label { display: block; padding: 0 .6em; border-radius: 999px; font-size: var(--fs-m); white-space: nowrap; }

/* Flèches Garamond de chaque côté : noires, disque noir et flèche blanche au survol */
.photo-page .photo-arrow {
  position: absolute; top: 50%; z-index: 6;
  transform: translateY(-50%);
  display: grid; place-items: center;
  width: calc(var(--r) * 6.4); height: calc(var(--r) * 6.4);
  padding: 0; margin: 0;
  border: 0; border-radius: 50%;
  background: transparent; color: var(--ink);
  cursor: pointer;
}
.photo-page .photo-arrow .mi { font-size: calc(var(--r) * 4.2); }
.photo-page .photo-arrow-prev { left: calc(var(--r) * 2); }
.photo-page .photo-arrow-next { right: calc(var(--r) * 2); }
.photo-page .photo-arrow:hover, .photo-page .photo-arrow:focus-visible { background: var(--ink); color: var(--white); }
.photo-page .photo-arrow:disabled { opacity: .18; pointer-events: none; }
@media (hover: none) { .photo-page .photo-arrow { display: none; } }

/* Carrousel : curseur « zoom » natif au survol de l'image (loupe +, puis loupe − une fois zoomé) */
.photo-page .photo-carousel-stage .photo-carousel-zoom,
.photo-page .photo-carousel-stage .photo-carousel-view,
.photo-page .photo-carousel-stage .photo-carousel-full { cursor: zoom-in !important; }
.photo-page .photo-gallery.is-carousel-zoomed .photo-carousel-stage .photo-carousel-zoom,
.photo-page .photo-gallery.is-carousel-zoomed .photo-carousel-stage .photo-carousel-view,
.photo-page .photo-gallery.is-carousel-zoomed .photo-carousel-stage .photo-carousel-full { cursor: zoom-out !important; }
.photo-page .photo-carousel-stage.is-dragging .photo-carousel-zoom,
.photo-page .photo-carousel-stage.is-dragging .photo-carousel-view,
.photo-page .photo-carousel-stage.is-dragging .photo-carousel-full { cursor: grabbing !important; }
.photo-page .photo-carousel-nav-cursor { display: none !important; }

/* Icônes Material dans la barre, les commandes et les pastilles de la galerie */
.photo-page .photo-bar-btn { gap: .45em; }
.photo-page .photo-bar-btn .mi { font-size: 1.35em; margin: -.12em 0 0 -.35em; }
.photo-page .photo-tile-select .mi, .photo-page .photo-tile-download .mi { font-size: 1.3em; margin: -.12em .3em 0 -.4em; }
.photo-page .photo-tile-select span, .photo-page .photo-tile-download span { pointer-events: none; }

/* ——— Retouches de présentation ——— */
/* Barre du haut : ne se laisse plus écraser par la grille, fond blanc, plus d'air */
.photo-page .photo-gallery-bar { flex: none; background: var(--white); padding: calc(var(--r) * 2) var(--pad); gap: calc(var(--r) * 1.5) calc(var(--r) * 2); }
.photo-page .photo-masonry { padding-top: calc(var(--r) * 1.5); }

/* Boutons : fond transparent par défaut, noir au survol ; texte plus grand, icône à l'échelle du texte */
.photo-page .photo-bar-btn {
  height: calc(var(--r) * 5);
  padding: 0 calc(var(--r) * 2.2);
  background: transparent; color: var(--ink);
  font-size: var(--fs-m); gap: .4em;
}
.photo-page .photo-bar-btn .mi { font-size: 1.1em; margin: -.1em 0 0 -.25em; }
.photo-page .photo-view-btn.is-active, .photo-page .photo-bar-btn.is-active,
.photo-page .photo-gallery-download-selected:not(:disabled) { background: var(--ink); color: var(--white); }
.photo-page .photo-bar-btn:disabled { opacity: .4; }
.photo-page .photo-gallery-count { font-size: var(--fs-s); }
.photo-page .photo-carousel-controls .photo-bar-btn { background: transparent; }
.photo-page .photo-carousel-controls .photo-bar-btn.is-active { background: var(--ink); color: var(--white); }

/* Photos : léger zoom au survol ; sélection = simple icône */
.photo-page .photo-tile-open img { transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.photo-page .photo-tile:hover .photo-tile-open img { transform: scale(1.04); }
.photo-page .photo-tile-actions { justify-content: flex-start; }
.photo-page .photo-tile-select {
  width: calc(var(--r) * 4.6); height: calc(var(--r) * 4.6);
  padding: 0; justify-content: center;
  border-radius: 50%; background: var(--white); color: var(--ink);
}
.photo-page .photo-tile-select .mi { font-size: calc(var(--r) * 2.8); margin: 0; }
.photo-page .photo-tile.is-selected .photo-tile-select { background: var(--ink); color: var(--white); }

/* Barre sur une seule ligne : fermer + titre | grille / carrousel | actions */
@media (min-width: 901px) {
  .photo-page .photo-gallery-bar { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .photo-page .photo-gallery-bar-actions { display: flex; flex-wrap: nowrap; justify-content: flex-end; gap: calc(var(--r) * .8); }
  .photo-page .photo-gallery-bar-actions .photo-bar-btn { white-space: nowrap; }
}
@media (min-width: 901px) and (max-width: 1280px) {
  .photo-page .photo-bar-btn { padding-left: calc(var(--r) * 1.6); padding-right: calc(var(--r) * 1.6); }
}

/* ——— Bascule Grille / Carrousel : une piste grise, un disque noir qui glisse ——— */
.photo-page .photo-view-switch {
  --tg: calc(var(--r) * 5.6);
  position: relative;
  display: inline-flex; align-items: center; gap: 0;
  padding: 0; border-radius: 999px;
  background: transparent;
  transition: background-color .2s ease;
}
.photo-page .photo-view-switch:hover { background: var(--grey); }
.photo-page .photo-view-switch::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: var(--tg); height: var(--tg);
  border-radius: 50%; background: var(--ink);
  transition: transform .28s cubic-bezier(.22,.61,.36,1);
}
.photo-page .photo-gallery.is-carousel .photo-view-switch::before { transform: translateX(100%); }
.photo-page .photo-view-switch .photo-view-btn {
  position: relative; z-index: 1;
  width: var(--tg); height: var(--tg);
  padding: 0; justify-content: center;
  border-radius: 50%; background: transparent; color: var(--ink);
  transition: color .28s ease;
}
.photo-page .photo-view-switch .photo-view-btn:hover:not(:disabled),
.photo-page .photo-view-switch .photo-view-btn:focus-visible { background: transparent; color: var(--ink); border-radius: 50%; }
.photo-page .photo-view-switch .photo-view-btn.is-active,
.photo-page .photo-view-switch .photo-view-btn.is-active:hover { background: transparent; color: var(--white); }
.photo-page .photo-view-switch .photo-view-btn .mi { font-size: calc(var(--r) * 3); margin: 0; }

/* ——— Barre du haut : hauteur fixe (plus de tremblement grille ↔ carrousel) ——— */
.photo-page .photo-gallery-total, .photo-page .photo-carousel-index {
  margin: 0; font-size: var(--fs-s); line-height: 1.2; height: 1.2em; font-variant-numeric: tabular-nums;
}
.photo-page .photo-gallery-title { height: 1em; line-height: 1; }
.photo-page .photo-gallery-heading { min-height: calc(var(--fs-xl) + var(--fs-s) * 1.2 + var(--r) * .5); justify-content: center; }
@media (min-width: 901px) {
  .photo-page .photo-gallery-bar { height: calc(var(--r) * 11); align-items: center; }
}

/* ——— Au défilement : noir, coins inférieurs très arrondis, contenu en blanc ——— */
.photo-page .photo-gallery-bar { transition: background-color .2s ease, color .2s ease; }

/* ——— Barre bord à bord, coins inférieurs arrondis en permanence ——— */
.photo-page .photo-gallery { scrollbar-width: none; }
.photo-page .photo-gallery::-webkit-scrollbar { display: none; }
.photo-page .photo-gallery-bar {
  width: 100%; margin: 0;
  border-radius: 0 0 calc(var(--r) * 6) calc(var(--r) * 6);
}

/* Carrousel : ni titre ni compteur dans la barre */
.photo-page .photo-gallery.is-carousel .photo-gallery-heading { display: none; }

/* ——— Boutons de la galerie : gris au survol, noir au clic ——— */
.photo-page .photo-bar-btn:not(.photo-view-btn):hover:not(:disabled),
.photo-page .photo-bar-btn:not(.photo-view-btn):focus-visible { background: var(--grey); color: var(--ink); }
.photo-page .photo-bar-btn:not(.photo-view-btn):active:not(:disabled) { background: var(--ink); color: var(--white); }
/* état « sélectionnée » : reste noir, y compris au survol */
.photo-page .photo-bar-btn.is-active:not(.photo-view-btn),
.photo-page .photo-bar-btn.is-active:not(.photo-view-btn):hover:not(:disabled) { background: var(--ink); color: var(--white); }
/* rond de sélection sur les photos */
.photo-page .photo-tile-select:hover, .photo-page .photo-tile-select:focus-visible { background: var(--grey); color: var(--ink); }
.photo-page .photo-tile-select:active { background: var(--ink); color: var(--white); }
.photo-page .photo-tile.is-selected .photo-tile-select,
.photo-page .photo-tile.is-selected .photo-tile-select:hover { background: var(--ink); color: var(--white); }

/* La barre défile avec la page : elle n'est plus fixe */
.photo-page .photo-gallery-bar { position: relative; top: auto; }

/* Pastille du nombre de photos sélectionnées : centrée dans le bouton */
.photo-page .photo-gallery-count {
  box-sizing: border-box;
  width: 1.7em; height: 1.7em; min-width: 0; padding: 0;
  margin: -.15em 0 0 .1em;
  font-variant-numeric: lining-nums; line-height: 1;
}

/* Projets (hors galeries photo) : pas de sélection ni de téléchargement */
.photo-gallery.no-download .photo-gallery-bar-actions,
.photo-gallery.no-download .photo-tile-actions,
.photo-gallery.no-download #photo-carousel-select,
.photo-gallery.no-download #photo-carousel-download { display: none !important; }

/* Boutons de la galerie : même taille de texte que les autres pilules */
.photo-page .photo-bar-btn, .photo-page .photo-gallery-count { font-size: var(--fs-s); }
.photo-page .photo-carousel-count { font-size: var(--fs-s); }

/* Bande de miniatures : des espaceurs de chaque côté, pour que la photo affichée soit toujours au centre (y compris la première et la dernière) */
.photo-carousel-strip::before,
.photo-carousel-strip::after {
  content: "";
  flex: 0 0 50%;
  min-width: 0;
  height: 1px;
}

/* Plus de mode grille dans la visionneuse : la grille est la page elle-même */
.photo-view-switch { display: none !important; }

/* Galerie privée : page masquée tant que l'accès n'est pas validé */
body.is-locked .stack-root { visibility: hidden; }

/* Galerie privée : pictos de sélection sur la grille + menu volant */
.shot { position: relative; }
.shot-select {
  position: absolute; top: calc(var(--r) * 1.4); right: calc(var(--r) * 1.4);
  z-index: 3;
  width: calc(var(--r) * 4.6); height: calc(var(--r) * 4.6);
  display: grid; place-items: center;
  padding: 0; border: 0; border-radius: 50%;
  background: #fff; color: #000;
  font-size: calc(var(--r) * 2.6);
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s ease, background .15s ease, color .15s ease;
}
.shot-select .mi { font-size: 1.15em; margin: 0; }
.shot:hover .shot-select, .shot:focus-within .shot-select, .shot.is-selected .shot-select { opacity: 1; }
.shot-select:hover { background: #000; color: #fff; }
.shot.is-selected .shot-btn { outline: 3px solid #fff; outline-offset: -3px; }
@media (hover: none) { .shot-select { opacity: 1; } }

.gal-bar {
  position: fixed; left: 50%; bottom: calc(var(--r) * 3);
  transform: translateX(-50%);
  z-index: 60;
  display: flex; gap: 0;
  filter: drop-shadow(0 6px 22px rgba(0, 0, 0, .22));
  max-width: calc(100vw - var(--pad) * 2);
}
.gal-bar .pill { height: calc(var(--r) * 5); padding: 0 calc(var(--r) * 2.4); font-size: var(--fs-l); }
.gal-bar .pill:disabled { opacity: .55; cursor: default; }
.gal-bar .pill:disabled:hover { background: var(--white); color: var(--ink); }
body.is-locked .gal-bar, body.photo-gallery-open .gal-bar { display: none; }
@media (max-width: 767px) { .gal-bar .pill { padding: 0 calc(var(--r) * 1.6); } }

/* Menu volant : ce sont des boutons, pas des pastilles → un vrai écart */
.gal-bar { gap: calc(var(--r) * 1.2); }

/* Télécharger, tant que rien n'est sélectionné : gris sur gris, sans transparence */
.gal-bar .pill:disabled, .gal-bar .pill:disabled:hover { opacity: 1; background: var(--grey); color: var(--grey-d); }

/* Inactif : aucun survol (ni inclinaison) ni effet de clic */
.gal-bar .pill:disabled { pointer-events: none; transform: none; }

/* Liseré de sélection : calque au-dessus de l'image (l'outline passait dessous au survol, quand l'image grossit) */
.shot.is-selected .shot-btn { outline: 0; position: relative; }
.shot.is-selected .shot-btn::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  border: 3px solid #fff; border-radius: inherit;
  pointer-events: none;
}

/* Bouton de sélection plus grand */
.shot-select {
  width: calc(var(--r) * 6.6); height: calc(var(--r) * 6.6);
  top: calc(var(--r) * 1.8); right: calc(var(--r) * 1.8);
}
.shot-select .mi { font-size: calc(var(--r) * 3.6); }

/* Menu volant : visible seulement quand la grille est à l'écran, transition douce */
.gal-bar {
  opacity: 0;
  transform: translate(-50%, calc(var(--r) * 2));
  pointer-events: none;
  transition: opacity .35s cubic-bezier(.22,.61,.36,1), transform .35s cubic-bezier(.22,.61,.36,1);
}
.gal-bar.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

/* Sélection : icône pleine (FILL) quand la photo est sélectionnée */
.shot.is-selected .shot-select .mi,
.photo-tile.is-selected .photo-tile-select .mi,
.photo-bar-btn.is-active .photo-sel-icon { font-variation-settings: "FILL" 1; }

/* Menu volant : noir au survol */
.gal-bar .pill:not(:disabled):hover, .gal-bar .pill:not(:disabled):focus-visible { background: #000; color: #fff; }

/* ——— Carrousel d'une galerie à sélection : même menu volant que la grille ——— */
body.photo-gallery-open:has(#photo-gallery.is-carousel) .gal-bar {
  display: flex;
  z-index: 950;
  opacity: 1; transform: translate(-50%, 0); pointer-events: auto;
  bottom: calc(72px + var(--r) * 1.4 + (var(--r) * 5 + var(--r) * 2.8 - var(--r) * 5) / 2);
}
@media (max-width: 900px) {
  body.photo-gallery-open:has(#photo-gallery.is-carousel) .gal-bar { bottom: calc(88px + var(--r) * 1.4); }
}
/* le menu volant remplace les boutons de la barre du bas ; le compteur reste à gauche */
.photo-gallery.has-selbar .photo-carousel-controls { justify-content: flex-start; min-height: calc(var(--r) * 7.8); }
.photo-gallery.has-selbar #photo-carousel-download { display: none; }
/* Sélection de la photo affichée : rond blanc avec picto, en haut à droite de la photo (comme dans la grille) */
.photo-gallery.has-selbar #photo-carousel-select {
  position: absolute; top: calc(var(--r) * 2); right: calc(var(--r) * 2); left: auto; z-index: 7;
  width: calc(var(--r) * 6.6); height: calc(var(--r) * 6.6);
  display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%;
  background: #fff; color: #000; cursor: pointer;
}
.photo-gallery.has-selbar #photo-carousel-select .photo-bar-text { display: none; }
.photo-gallery.has-selbar #photo-carousel-select .mi { margin: 0; font-size: calc(var(--r) * 3.6); }
.photo-gallery.has-selbar #photo-carousel-select:hover { background: #000; color: #fff; }
.photo-gallery.has-selbar #photo-carousel-select.is-active { background: #fff; color: #000; }
.photo-gallery.has-selbar #photo-carousel-select.is-active .mi { font-variation-settings: "FILL" 1; }
/* les boutons « Tout sélectionner » / « Télécharger » du haut sont remplacés par le menu volant */
.photo-gallery.has-selbar .photo-gallery-bar-actions { display: none; }

/* ——— Carrousel : fermeture, menu en haut, bande blanche arrondie ——— */
/* Fermer : une croix seule, grand bouton gris comme le bouton de fermeture du menu smartphone */
.photo-gallery .photo-gallery-close.photo-bar-btn {
  height: calc(var(--r) * 5); padding: 0 calc(var(--r) * 2);
  border: 0; border-radius: 999px;
  background: var(--grey); color: var(--ink);
}
.photo-gallery .photo-gallery-close .photo-bar-text { display: none; }
.photo-gallery .photo-gallery-close .mi { margin: 0; font-size: 1.5em; }
.photo-gallery .photo-gallery-close.photo-bar-btn:hover,
.photo-gallery .photo-gallery-close.photo-bar-btn:focus-visible { background: var(--ink); color: var(--white); }

/* Carrousel : photo sur fond blanc, bande de miniatures grise ; pas de filet sous la barre du haut */
.photo-gallery.is-carousel .photo-gallery-bar { border-bottom: 0; }

/* Menu de sélection : en haut, plus petit, blanc sur noir au survol, sans ombre */
body.photo-gallery-open:has(#photo-gallery.is-carousel) .gal-bar {
  top: calc(32px - var(--r) * 2.4); bottom: auto;
  filter: none; gap: calc(var(--r) * 1);
}
body.photo-gallery-open:has(#photo-gallery.is-carousel) .gal-bar .pill {
  height: calc(var(--r) * 4.8); padding: 0 calc(var(--r) * 1.8); font-size: var(--fs-s);
}
@media (max-width: 599px) {
  body.photo-gallery-open:has(#photo-gallery.is-carousel) .gal-bar { top: 72px; }
}

/* Bande de miniatures : fond noir, sans filet, angles supérieurs arrondis */
.photo-gallery .photo-carousel-strip {
  border-top: 0; background: var(--black);
  border-radius: calc(var(--r) * 6) calc(var(--r) * 6) 0 0;
}

/* Carrousel : « Sélectionner (n°) » remplace le rond de sélection ; bouton gris visible sur le fond blanc */
.photo-gallery.has-selbar #photo-carousel-select { display: none; }
body.photo-gallery-open:has(#photo-gallery.is-carousel) .gal-bar .pill:not(:disabled) { background: var(--grey); color: var(--ink); }
body.photo-gallery-open:has(#photo-gallery.is-carousel) .gal-bar .pill:not(:disabled):hover,
body.photo-gallery-open:has(#photo-gallery.is-carousel) .gal-bar .pill:not(:disabled):focus-visible,
body.photo-gallery-open:has(#photo-gallery.is-carousel) .gal-bar .pill.is-picked { background: #000; color: #fff; }
body.photo-gallery-open:has(#photo-gallery.is-carousel) .gal-bar .pill:disabled,
body.photo-gallery-open:has(#photo-gallery.is-carousel) .gal-bar .pill:disabled:hover { background: var(--grey); color: var(--grey-d); }

/* Fermer : noir au survol, croix blanche (prime sur la règle générale des boutons de la barre) */
.photo-page .photo-gallery .photo-gallery-close.photo-bar-btn.photo-bar-btn:hover:not(:disabled),
.photo-page .photo-gallery .photo-gallery-close.photo-bar-btn.photo-bar-btn:focus-visible:not(:disabled) { background: var(--ink); color: var(--white); }

/* Miniature active : bordure noire, de la couleur du fond de la bande */
.photo-gallery .photo-carousel-thumb.is-active { outline-color: var(--black); }

/* Miniatures sélectionnées : coche en haut à droite */
.photo-carousel-thumb { position: relative; }
.photo-thumb-check {
  display: none;
  position: absolute; top: 3px; right: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; color: #000; font-size: 18px;
  place-items: center; pointer-events: none;
}
.photo-thumb-check.mi { margin: 0; font-size: 18px; font-variation-settings: "FILL" 1; }
.photo-carousel-thumb.is-picked .photo-thumb-check { display: block; }

/* Coche dans le coin de la photo affichée, si elle est sélectionnée */
.photo-big-check {
  position: absolute; z-index: 8; pointer-events: none;
  width: calc(var(--r) * 4.6); height: calc(var(--r) * 4.6);
  display: grid; place-items: center;
  border-radius: 50%; background: #fff; color: #000;
  font-size: calc(var(--r) * 4.6); font-variation-settings: "FILL" 1;
  margin: 0;
}
.photo-big-check[hidden] { display: none; }

/* « Sélectionner » du carrousel : texte puis icône « select_check_box » à droite.
   Repos : gris clair · survol : couleur d'accent, texte et icône blancs · clic / sélectionnée : noir, texte et icône blancs */
.gal-bar .gal-bar-all .mi { margin: 0 -.15em 0 .2em; font-size: 1.5em; }
body.photo-gallery-open:has(#photo-gallery.is-carousel) .gal-bar .pill:not(:disabled):hover,
body.photo-gallery-open:has(#photo-gallery.is-carousel) .gal-bar .pill:not(:disabled):focus-visible { background: var(--accent); color: #fff; }
body.photo-gallery-open:has(#photo-gallery.is-carousel) .gal-bar .pill.is-picked,
body.photo-gallery-open:has(#photo-gallery.is-carousel) .gal-bar .pill.is-picked:hover,
body.photo-gallery-open:has(#photo-gallery.is-carousel) .gal-bar .pill:not(:disabled):active { background: #000; color: #fff; }

/* ——— Smartphone : la photo du carrousel occupe presque toute la zone ——— */
@media (max-width: 767px), (hover: none) and (pointer: coarse) {
  .photo-carousel-view, .photo-carousel-full {
    left: 6px; right: 6px; max-width: calc(100% - 12px);
  }
  .photo-carousel-stage, .photo-page .photo-carousel-stage { padding: 4px 0; }
  /* la ligne du menu de sélection (en haut) reste libre au-dessus de la photo */
  .photo-gallery.has-selbar .photo-carousel-stage { padding-top: 44px; }
  .photo-page .photo-carousel-controls { padding: 2px var(--pad) 4px; min-height: 0; }
  .photo-gallery.has-selbar .photo-carousel-controls { min-height: 0; }
  .photo-gallery .photo-carousel-strip { height: 72px; }
  .photo-gallery .photo-carousel-thumb { height: 48px; }
}
