/*
    Colorbox Core Style:
    The following CSS is consistent between example themes and should not be altered.
*/
#colorbox, #cboxOverlay, #cboxWrapper {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9999;
  overflow: hidden;
}
#cboxWrapper {
  max-width: none;
}
#cboxOverlay {
  position: fixed;
  width: 100%;
  height: 100%;
}
#cboxMiddleLeft, #cboxBottomLeft {
  clear: left;
}
#cboxContent {
  position: relative;
}
#cboxLoadedContent {
  overflow: auto;
}
#cboxTitle {
  margin: 0;
}
#cboxLoadingOverlay, #cboxLoadingGraphic {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow {
  cursor: pointer;
}
.cboxPhoto {
  float: left;
  margin: auto;
  border: 0;
  display: block;
  max-width: none;
}
.cboxIframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #fff;
}
#colorbox, #cboxContent, #cboxLoadedContent {
  box-sizing: content-box;
}

/*
    User Style:
    Change the following styles to modify the appearance of ColorBox. They are
    ordered & tabbed in a way that represents the nesting of the generated HTML.
*/
#cboxOverlay {
  background: #000;
}
#colorbox {
  outline: 0;
  font: 13px/1.4 Tahoma, Arial, sans-serif;
}
  #cboxContent {
    margin-top: 20px;
    overflow: hidden;
  }
    #cboxError {
      padding: 50px;
      border: 1px solid #ccc;
    }
    #cboxLoadedContent {
      background: #fff;
      padding: 10px 10px 34px;
      border-radius: 10px;
    }
    #cboxTitle {
      overflow: auto;
      position: absolute;
      bottom: 12px;
      left: 10px;
      text-align: center;
      color: #555;
      overflow-wrap: break-word;
      font-size: 0.9em;
      border: 1px solid #ccc;
      max-width: 40%;
      background: #fff;
      padding: 1px 7px;
      border-radius: 10px;
      box-shadow: 1px 1px 3px #888;
    }
    #cboxCurrent {
      position: absolute;
      bottom: 11px;
      right: 36px;
      color: #333;
      font-weight: bold;
      background: #fff;
      padding: 1px 7px;
      border: 1px solid #ccc;
      border-radius: 10px;
      box-shadow: 1px 1px 3px #888;
    }
    #cboxLoadingOverlay {
      background: #fff;
      border-radius: 10px;
    }
    #cboxLoadingGraphic {
      background: url(images/loading.gif) center center no-repeat;
    }

    /* Reset commun des boutons avant les styles spécifiques */
    #cboxPrevious, #cboxNext, #cboxSlideshow, #cboxClose {
      border-style: solid;
      margin: 0;
    }

    /* Focus clavier visible sans garder un cadre figé après clic */
    #colorbox button:focus-visible {
      outline: 2px solid #0092ef;
      outline-offset: 2px;
      opacity: 1;
    }

    #cboxSlideshow {
      position: absolute;
      bottom: 11px;
      right: 150px;
      color: #eee;
      overflow: visible;
      border: 1px solid #555;
      background: #666;
      padding: 1px 7px;
      border-radius: 10px;
      box-shadow: 1px 1px 3px #888;
    }

    /* Boutons icônes sur sprite unique controls.png */
    #cboxPrevious, #cboxNext, #cboxClose {
      position: absolute;
      opacity: 0.5;
      text-indent: -9999px;
      background: url(images/controls.png) no-repeat;
      transition: opacity 0.2s ease;
    }
    #cboxPrevious:hover, #cboxNext:hover, #cboxClose:hover {
      opacity: 1;
    }
    #cboxPrevious, #cboxNext {
      top: 36%;
      margin-top: -12px;
      width: 25px;
      height: 25px;
    }
    #cboxPrevious {
      left: 10px;
      background-position: -75px 0;
    }
    #cboxPrevious:hover {
      background-position: -75px -25px;
    }
    #cboxNext {
      right: 10px;
      background-position: -50px 0;
    }
    #cboxNext:hover {
      background-position: -50px -25px;
    }
    #cboxClose {
      bottom: 10px;
      right: 10px;
      display: block;
      width: 25px;
      height: 25px;
      background-position: -25px 0;
    }
    #cboxClose:hover {
      background-position: -25px -25px;
    }