/* OZZY V2.1 — vitrail contemporain : 8 pièces × 3 lignes, avec des joints ouverts.
   Contour vert issu du thème Ozzy (#ff632b). Les 24 tuiles restent cliquables. */
.ozzy-page .inspiration-collage.ozzy-vitrail {
  --ozzy-gap: clamp(8px, .8vw, 12px);
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  align-items: center;
  justify-items: stretch;
  gap: var(--ozzy-gap);
  height: auto;
  min-height: 0;
  width: 100%;
  max-width: 1500px;
  margin: 22px auto 0;
  padding: 8px 0;
  background: transparent;
  isolation: isolate;
}
.ozzy-page .ozzy-vitrail .inspiration-slot {
  position: relative;
  inset: auto !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  width: 100% !important;
  height: clamp(118px, 10vw, 172px);
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  transform: none !important;
  cursor: zoom-in;
  transition: filter .24s ease;
}
.ozzy-page .ozzy-vitrail .inspiration-slot:before {display:none;content:none}
.ozzy-page .ozzy-vitrail .inspiration-slot:hover,
.ozzy-page .ozzy-vitrail .inspiration-slot:focus-visible {filter: brightness(1.12) drop-shadow(0 0 9px rgba(255,99,43,.28));}
.ozzy-page .ozzy-vitrail .ozzy-shape {
  position: relative;
  display: block;
  width: 100%;
  height: 78%;
  overflow: hidden;
  background: #ff632b;
  border: 0;
  border-radius: 3px;
  filter: drop-shadow(0 5px 12px rgba(0,0,0,.35));
}
.ozzy-page .ozzy-vitrail .shape-square .ozzy-shape {
  width: min(100%, 84%);
  height: 84%;
  aspect-ratio: 1;
}
.ozzy-page .ozzy-vitrail .shape-landscape .ozzy-shape {
  width: 100%;
  height: 73%;
}
.ozzy-page .ozzy-vitrail .shape-diamond .ozzy-shape {
  width: min(100%, 88%);
  height: 89%;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  border-radius: 0;
}
.ozzy-page .ozzy-vitrail .inspiration-slot img {
  display: block;
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  object-fit: cover;
  border: 0;
  border-radius: 1px;
  filter: saturate(.9) contrast(1.06);
  transform: none;
  transition: opacity .42s ease, filter .3s ease;
}
.ozzy-page .ozzy-vitrail .shape-diamond img {
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  border-radius: 0;
}
.ozzy-page .ozzy-vitrail .inspiration-slot.is-changing img {opacity:0}
.ozzy-page .ozzy-vitrail .inspiration-slot:hover img {filter:saturate(1.07) contrast(1.05) brightness(1.04);transform:none}
.ozzy-page .ozzy-vitrail .inspiration-slot i {
  position:absolute;z-index:3;right:8px;bottom:10px;
  display:grid;place-items:center;
  width:25px;height:25px;border-radius:50%;
  color:#d7ffe4;background:rgba(0,15,9,.85);border:1px solid #ff632b;
  opacity:0;transform:scale(.82);font:normal 16px sans-serif;
  transition:opacity .2s,transform .2s;
}
.ozzy-page .ozzy-vitrail .inspiration-slot:hover i,
.ozzy-page .ozzy-vitrail .inspiration-slot:focus-visible i {opacity:1;transform:scale(1)}
.ozzy-page .krank-lightbox>img{max-width:min(92vw,1400px);width:auto;max-height:90vh;height:auto;object-fit:contain}
.ozzy-page .krank-lightbox .ozzy-gallery-nav{position:absolute;z-index:3;top:50%;transform:translateY(-50%);width:48px;height:60px;display:grid;place-items:center;cursor:pointer;font-size:48px;line-height:1;font-weight:200;color:#fff;background:rgba(0,0,0,.5);border:1px solid rgba(255,255,255,.25);border-radius:4px}
.ozzy-page .krank-lightbox .ozzy-gallery-nav[hidden],.ozzy-page .krank-lightbox .ozzy-gallery-counter[hidden]{display:none}
.ozzy-page .krank-lightbox .ozzy-gallery-prev{left:clamp(8px,2vw,35px)}
.ozzy-page .krank-lightbox .ozzy-gallery-next{right:clamp(8px,2vw,35px)}
.ozzy-page .krank-lightbox .ozzy-gallery-nav:hover,.ozzy-page .krank-lightbox .ozzy-gallery-nav:focus-visible{border-color:#ff632b;color:#ff9a6f}
.ozzy-page .krank-lightbox .ozzy-gallery-counter{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);font:500 13px/1.4 sans-serif;letter-spacing:.14em;color:#ff9a6f;background:rgba(0,0,0,.65);padding:7px 12px;border-radius:4px}
@media(max-width:620px){
  .ozzy-page .krank-lightbox .ozzy-gallery-nav{width:36px;height:48px;font-size:35px}
  .ozzy-page .krank-lightbox>img{max-width:calc(100vw - 78px);max-height:82vh}
}

/* Tablette/mobile : la même collection de 24 images, repliée sans débordement. */
@media(max-width:1199px){
  .ozzy-page .inspiration-collage.ozzy-vitrail{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:auto;gap:10px}
  .ozzy-page .ozzy-vitrail .inspiration-slot{height:clamp(112px,17vw,170px)}
}
@media(max-width:620px){
  .ozzy-page .inspiration-collage.ozzy-vitrail{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .ozzy-page .ozzy-vitrail .inspiration-slot{height:clamp(120px,35vw,190px)}
}

/* OZZY V2.2 — les losanges passent AU-DESSUS des voisins, comme dans la maquette.
   La grille reste 8 x 3 ; seul le plan visuel change. */
@media (min-width:1200px) {
  .ozzy-page .inspiration-collage.ozzy-vitrail { overflow: visible; }
  .ozzy-page .ozzy-vitrail .shape-diamond {
    z-index: 5;
    overflow: visible;
  }
  .ozzy-page .ozzy-vitrail .shape-diamond .ozzy-shape {
    transform: scale(1.72);
    transform-origin: center center;
    filter: drop-shadow(0 8px 10px rgba(0,0,0,.68));
  }
  /* Un rythme non mécanique : les losanges franchissent aussi les joints verticaux. */
  .ozzy-page .ozzy-vitrail .shape-diamond:nth-child(3) .ozzy-shape,
  .ozzy-page .ozzy-vitrail .shape-diamond:nth-child(15) .ozzy-shape {
    transform: translateY(10px) scale(1.72);
  }
  .ozzy-page .ozzy-vitrail .shape-diamond:nth-child(6) .ozzy-shape,
  .ozzy-page .ozzy-vitrail .shape-diamond:nth-child(18) .ozzy-shape {
    transform: translateY(-10px) scale(1.72);
  }
  .ozzy-page .ozzy-vitrail .shape-diamond:nth-child(12) .ozzy-shape,
  .ozzy-page .ozzy-vitrail .shape-diamond:nth-child(22) .ozzy-shape {
    transform: translateY(4px) scale(1.72);
  }
  .ozzy-page .ozzy-vitrail .inspiration-slot:hover,
  .ozzy-page .ozzy-vitrail .inspiration-slot:focus-visible { z-index: 12; }
}
/* Sur tablette et mobile, ne pas recouvrir les petites vignettes ni leur zone tactile. */


/* Portraits : même emprise de cellule que les autres formes, image plus étroite. */
.ozzy-page .ozzy-vitrail .shape-portrait .ozzy-shape{width:78%;height:93%;}
/* Supprime les anciens cadres hachurés hérités du style commun. */
.ozzy-page .ozzy-vitrail .inspiration-slot::before{display:none!important;content:none!important}
.ozzy-page .ozzy-vitrail .inspiration-slot .ozzy-shape::before{display:none!important;content:none!important}

body.ozzy-page .dob-video-frame iframe{transition:opacity .25s ease}
body.ozzy-page .ozzy-soundcloud{display:none}
body.ozzy-page .dob-media-switcher.is-audio-open .dob-media-actions{border-radius:0;border-bottom-color:rgba(153,177,187,.24);box-shadow:none}
body.ozzy-page .dob-media-switcher.is-audio-open .dob-video-reveal{grid-template-rows:1fr;margin-top:0;opacity:1;transform:none}
body.ozzy-page .dob-media-switcher.is-audio-open .dob-video-reveal-inner{visibility:visible;box-shadow:0 25px 60px #0009,0 0 24px rgba(255,99,43,.16)}
body.ozzy-page .dob-media-switcher.is-audio-open .dob-video-frame{height:190px;aspect-ratio:auto}
body.ozzy-page .dob-media-switcher.is-audio-open [data-youtube-player]{display:none}
body.ozzy-page .dob-media-switcher.is-audio-open .ozzy-soundcloud{display:block}
