.lfr-image-gallery-actions {
  font-size: 11px;
  text-align: right;
}
.category-buttons {}
.portlet-image-gallery-display {
  .lfr-asset-attributes {
    clear: both;
  }
  .folder-search {
    float: right;
    margin: 0 0 0.5em 0.5em;
  }
  .image-score {
    display: block;
    margin: 0 0 5px 35px;
    padding-top: 3px;
  }
  .image-thumbnail {
    /*	border: 2px solid #eee*/
    /*;*/
    float: left;
    width: 128px;
    height: 128px;
    margin: 20px 4px 0;
    padding: 0;
    text-align: center;
    text-decoration: none;
    overflow: hidden;
    &:hover {
      border-color: #ccc;
    }
  }
  .image-thumbnail-jus-img-a {
    /*	border: 2px solid #eee*/
    /*;*/
    float: left;
    width: 150px;
    height: 162px;
    margin: 20px 4px 0;
    padding: 5px 5px 0;
    text-align: center;
    text-decoration: none;
    &:hover {
      border-color: #ccc;
    }
  }
  .set-order {
    float: right;
    max-width: 130px;
  }
  .secound-a {
    display: block;
    text-align: center;
    text-decoration: none;
  }
  .taglib-webdav {
    margin-top: 3em;
  }
  .image-title {
    display: block;
  }
  .image-thumbnail-img {
    background: none repeat scroll 0 0 #EAEAEA;
    background-repeat: no-repeat;
    background-position: center;
    border: 0px solid #CCCCCC;
    border-radius: 4px 4px 4px 4px;
    height: 128px;
    width: 128px;
    padding: 0px;
    text-align: center;
    text-decoration: none;
  }
  .image-thumbnail-jus-img {
    background: none repeat scroll 0 0 #EAEAEA;
    background-repeat: no-repeat;
    border: 1px solid #CCCCCC;
    border-radius: 4px 4px 4px 4px;
    max-height: 128px;
    max-width: 128px;
    padding: 5px;
    text-align: center;
    text-decoration: none;
  }

  .image-thumbnail-jus-img img{
    //width: 128px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .slide-show {
    .taglib-search-iterator-page-iterator-top, .taglib-search-iterator-page-iterator-bottom {
      display: none;
    }
  }
}
.rtl .portlet-image-gallery-display{
  /*.lfr-asset-metadata{

*/
  /*float:right;*/
  /*
}*/
  .taglib-page-iterator {
    float: right;
  }
  .upper-div {
    float: right;
    clear: both;
  }
}
.gallery-base {
  background: black;
  margin: auto;
  border-radius: 10px;
}
.picture {
  text-align: center;
  padding: 10px;
  background: url("/html/portlet/image_gallery_display/images/loader.gif") center no-repeat;
  overflow: hidden;
  position: relative;
  z-index: 1;
  height: 390px;
}
.large a.next, .large a.prev {
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  height: 500px;
  width: 100px;
  position: absolute;
  z-index: 2;
}
.large a.prev {
  background-image: url("/html/portlet/image_gallery_display/images/prev.png");
  float: left;
  left: 0px;
}
.large a.next {
  background-image: url("/html/portlet/image_gallery_display/images/next.png");
  float: right;
  right: 0px;
}
.large:hover>a {
  opacity: 0.7;
}
.large>a:hover {
  opacity: 1;
}
.large .info {
  direction: rtl;
  padding: 10px;
}
.large .info h3 {
  color: #CE0000;
  margin: 0;
}
.large .info p {
  color: #FFF;
  font-family: tahoma;
  font-size: 11px;
}
.gallery .large img.control {
  float: right;
  margin: 0 5px 0 0;
  cursor: pointer;
  position: relative;
  z-index: 100;
}
.gallery .large>span {
  color: #FFF;
  padding: 5px;
  display: block;
}
.list {
  height: 115px;
  border: 10px solid #333;
  background: #333;
  border-radius: 10px;
  overflow: hidden;
  min-width: 550px;
  max-width: 900px;
}
.thumbs a {
  margin: 0;
  padding: 5px;
  display: block;
  /*float: left;*/
}
.ie .thumbs a {
  float: left;
}
.thumbs a:hover {
  background: #AAA;
}
.thumbs a:hover img {
  border-color: #FFF;
}
.thumbs a p {
  display: none;
}
.thumbs a.current {
  background: #EEE;
}
.thumbs img {
  margin: 5px;
  border: 3px solid #BBB;
  height: 90px;
  /*box-sizing: border-box;*/
  /*width: 80px;*/
}
.gallery button {
  width: 36px;
  height: 42px;
  border: none;
  position: absolute;
  z-index: 2;
  margin-top: 10px;
}
.gallery button.forward {
  background: url("/html/portlet/image_gallery_display/images/forward.png");
  float: right;
  right: 0px;
}
.gallery button.back {
  background: url("/html/portlet/image_gallery_display/images/back.png");
  margin-left: -14px;
  float: left;
  left: 0px;
}
.postal-card-gallery {
  margin: 0 auto;
  position: relative;
  .taglib-search-iterator-page-iterator-top {
    display: none;
  }
  .card-item {
    float: right;
    width: 175px;
    height: 175px;
    /* margin-bottom: 20px; */
    position: relative;
    margin: 1px;
    &:hover, &.selected {
      background: #006e9c;
      .entry-thumbnail {
        opacity: 0.3;
      }
      .select-card {
        display: block;
        opacity: 0.3;
      }
    }
  }
  .entry-thumbnail {
    text-align: center;
    height: 100%;
    width: 100%;
    background: no-repeat center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
  }
  img.thumbnail {
    width: 100%;
    height: auto;
  }
  #product-body li img:hover, #product-body li:hover img {
    opacity: 0.3;
    background: #006e9c;
  }
  #btn1 {
    background: url(../images/prev.png) no-repeat scroll left center transparent;
    left: 0px;
    top: 0px;
    z-index: 999;
  }
  #btn1, #btn2 {
    cursor: pointer;
    height: 130px;
    position: absolute;
    text-indent: -9999px;
    width: 60px;
  }
  #btn2 {
    background: url(../images/next.png) no-repeat scroll left center transparent;
    right: 0px;
    top: 0px;
    z-index: 999;
  }
  .btn {
    opacity: .5;
    &:hover {
      opacity: 1;
    }
  }
  .taglib-search-iterator-page-iterator-bottom {
    .previous, .next {
      display: none;
    }
  }
  .thumbs {
    display: initial;
  }
}

/* ---------- simple disply ----------*/

.portlet-image-gallery-display .simple {
  .upper-div {
    width: 100%;
  }
  .set-order {
    padding: 0 5px;
    max-width: 130px;
  }
  .image-thumbnail,
  .image-thumbnail-jus-img-a{
    width: 100%;
    height: initial;
    margin: 20px 0 0;
    padding: 0;
  }
  .image-thumbnail-img{
    background-size: contain;
    width: 100%;
    padding-top: 66.66%;
  }
  .image-thumbnail-jus-img {
    max-height: initial;
    max-width: initial;
    .overflow-frame{
      position: relative;
      padding-top: 66.66%;
      overflow: hidden;
    }
    img {
      position: absolute;
      width: 100%;
      height: 100%;
      top: 0;
      right: 0;
      left: 0;
    }
  }
  .folder-title{
    text-align: center;
  }
  .secound-a {
    display: initial;
  }
}

.portlet-image-gallery-display {

  .default{

    .image-thumbnail-jus-img {
      position: relative;
    }

    .image-thumbnail-jus-img-a {
      img {
        position: absolute;
        left: 4px;
        top: 4px;
        bottom: 0;
        right: 4px;
        width: 117px;
      }
    }

  }

}

.aui-image-viewer-image {
  max-width: initial !important;
  max-height: initial !important;
}

.ltr {
  .portlet-image-gallery-display {
    .set-order {
      float: left !important;
    }
  }
}