@import "../base/colors";
@import "../base/variables";

$gutter-image: 0.625em;
$size-button: 2.1em;
$color-button: rgba($c1, .8);

.h5p-sdk {
  .carousel-lightbox {
    background-color: rgba(0, 0, 0, .8);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    text-align: center;
    padding-top: 2em;
  }

  .carousel {
    width: 100%;
    box-sizing: border-box;
    position: relative;

    .scroller {
      overflow: hidden;
      width: 93%;
      margin-left: auto;
      margin-right: auto;
    }

    ul {
      width: 100%;
      padding: 0;
      margin: 0 auto;
      word-wrap: break-word;
      transition: margin 0.3s linear;
    }

    li {
      padding: 0 ($gutter-image / 2);
      width: 20%;
      margin: 0;
      list-style-type: none;
      float: left;
      box-sizing: border-box;
      overflow: auto;
      
      img {
        max-width: 100%;
        box-sizing: border-box;
      }
    }

    img {
      max-width: 100%;
      cursor: pointer;
      border: $border-panel;
    }

    .carousel-button {
      background-color: $color-button;
      position: absolute;
      top: 30%;
      color: white;
      height: $size-button;
      width: $size-button;
      border-radius: $size-button;
      cursor: pointer;

      &:hover {
        background-color: lighten($color-button, 10%);
      }

      &[disabled] {
        background-color: lighten($color-button, 30%);
        color: transparentize(white, 0.4);
        cursor: default;
      }

      &.previous {
        left: 0;
      }

      &.next {
        right: 0;
      }
    }
  }
}
