/*
    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: url(images/overlay.png) repeat 0 0;
}
#colorbox {
  outline: 0;
  font: 13px/1.4 Tahoma, Arial, sans-serif;
}

  /* Image sprite unique pour les coins, bordures latérales et boutons icônes */
  #cboxTopLeft, #cboxTopRight, #cboxBottomLeft, #cboxBottomRight,
  #cboxMiddleLeft, #cboxMiddleRight,
  #cboxPrevious, #cboxNext, #cboxClose {
    background-image: url(images/controls.png);
  }

  /* Coins et bordures du cadre */
  #cboxTopLeft, #cboxTopRight, #cboxBottomLeft, #cboxBottomRight,
  #cboxMiddleLeft, #cboxMiddleRight {
    width: 21px;
  }
  #cboxTopLeft, #cboxTopRight, #cboxBottomLeft, #cboxBottomRight {
    height: 21px;
    background-repeat: no-repeat;
  }
  #cboxTopLeft {
    background-position: -100px 0;
  }
  #cboxTopRight {
    background-position: -129px 0;
  }
  #cboxBottomLeft {
    background-position: -100px -29px;
  }
  #cboxBottomRight {
    background-position: -129px -29px;
  }
  #cboxMiddleLeft, #cboxMiddleRight {
    background-repeat: repeat-y;
  }
  #cboxMiddleLeft {
    background-position: left top;
  }
  #cboxMiddleRight {
    background-position: right top;
  }
  #cboxTopCenter, #cboxBottomCenter {
    height: 21px;
    background-image: url(images/border.png);
    background-repeat: repeat-x;
  }
  #cboxTopCenter {
    background-position: 0 0;
  }
  #cboxBottomCenter {
    background-position: 0 -29px;
  }

  #cboxContent {
    background: #fff;
    overflow: hidden;
  }
    #cboxError {
      padding: 50px;
      border: 1px solid #ccc;
    }
    #cboxLoadedContent {
      margin-bottom: 28px;
    }
    #cboxTitle {
      position: absolute;
      bottom: 4px;
      left: 0;
      text-align: center;
      width: 100%;
      color: #767676;
    }
    #cboxCurrent {
      position: absolute;
      bottom: 4px;
      left: 58px;
      color: #767676;
    }
    #cboxLoadingOverlay {
      background: url(images/loading_background.png) no-repeat center center;
    }
    #cboxLoadingGraphic {
      background: url(images/loading.gif) no-repeat center center;
    }

    /* Reset des boutons */
    #cboxPrevious, #cboxNext, #cboxSlideshow, #cboxClose {
      border: 0;
      padding: 0;
      margin: 0;
      overflow: visible;
      width: auto;
      background: none;
    }

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

    /* Bouton texte du diaporama */
    #cboxSlideshow {
      position: absolute;
      bottom: 4px;
      right: 30px;
      color: #0092ef;
    }

    /* Boutons de navigation sur sprite controls.png */
    #cboxPrevious, #cboxNext, #cboxClose {
      position: absolute;
      bottom: 0;
      width: 25px;
      height: 25px;
      text-indent: -9999px;
      background-image: url(images/controls.png);
      background-repeat: no-repeat;
    }
    #cboxPrevious {
      left: 0;
      background-position: -75px 0;
    }
    #cboxPrevious:hover {
      background-position: -75px -25px;
    }
    #cboxNext {
      left: 27px;
      background-position: -50px 0;
    }
    #cboxNext:hover {
      background-position: -50px -25px;
    }
    #cboxClose {
      right: 0;
      background-position: -25px 0;
    }
    #cboxClose:hover {
      background-position: -25px -25px;
    }