/* Page de test diaporama : conserver le menu latéral existant. */
body:has(.flox-home-show) #content .ast-container{max-width:none;padding:0;}
body:has(.flox-home-show) .entry-header{display:none;}
body:has(.flox-home-show) article.page, body:has(.flox-home-show) .entry-content {margin:0;padding:0;}
body:has(.flox-home-show) .entry-content > p {margin:0;}
.flox-home-show {position:relative;width:100%;height:calc(100vh - 8px);height:calc(100dvh - 8px);max-height:calc(100dvh - 8px);background:#111;overflow:hidden;isolation:isolate;}
.flox-home-slides,.flox-home-slide{position:absolute;inset:0;}
.flox-home-slide{display:flex;justify-content:center;align-items:flex-start;opacity:0;visibility:hidden;transition:opacity 1.15s ease, visibility 1.15s;}
.flox-home-slide.is-active{opacity:1;visibility:visible;z-index:1;}
.flox-home-slide img.flox-home-image{display:block!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:calc(100vh - 8px)!important;max-height:calc(100dvh - 8px)!important;object-fit:contain!important;object-position:center top!important;flex:0 1 auto;}
.flox-home-arrow{position:absolute;z-index:3;top:50%;transform:translateY(-50%);background:rgba(0,0,0,.28)!important;border:0!important;box-shadow:none!important;color:#fff!important;font:400 30px/1 sans-serif!important;cursor:pointer;min-width:44px;min-height:52px;padding:8px!important;opacity:.65;transition:opacity .2s,background .2s;}
.flox-home-arrow:hover,.flox-home-arrow:focus-visible{opacity:1;background:rgba(0,0,0,.7)!important;}
.flox-home-prev{left:12px;}.flox-home-next{right:12px;}
.flox-home-counter{position:absolute;z-index:3;bottom:18px;right:22px;padding:4px 9px;background:rgba(0,0,0,.38);color:#eee;font-size:12px;letter-spacing:.04em;}
@media(max-width:920px){.flox-home-show{height:calc(100dvh - 8px);max-height:calc(100dvh - 8px);}}
@media(prefers-reduced-motion:reduce){.flox-home-slide{transition:none;}}


/* v0.1.5 : sur la page d'accueil, aligner le cadre sur la colonne réelle.
   Le menu du thème commence à 8px du haut et mesure 280px de largeur.
   Un cadre positionné permet de ne pas hériter des marges/paddings Astra. */
body:has(.flox-home-show) {
  --flox-home-top: 8px;
  --flox-home-left: 280px;
}
body.admin-bar:has(.flox-home-show) { --flox-home-top: 40px; }
@media (max-width: 782px) {
  body.admin-bar:has(.flox-home-show) { --flox-home-top: 54px; }
}
body:has(.flox-home-show) .flox-home-show {
  position: fixed !important;
  inset: var(--flox-home-top) 0 0 var(--flox-home-left) !important;
  top: var(--flox-home-top) !important;
  left: var(--flox-home-left) !important;
  right: 0 !important;
  bottom: 0 !important;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  background: #111;
  z-index: 10;
}
body:has(.flox-home-show) .flox-home-slides,
body:has(.flox-home-show) .flox-home-slide {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}
body:has(.flox-home-show) .flox-home-slide {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
}
body:has(.flox-home-show) .flox-home-slide img.flox-home-image {
  display: block !important;
  flex: 0 0 100% !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: left top !important;
  box-sizing: border-box !important;
}
@media (max-width: 920px) {
  body:has(.flox-home-show) { --flox-home-left: 0px; }
}
