/* scope CSS? */
/* =========================== carousel widget ========================*/
.ui-carousel {
  list-style: none outside none;
  margin: 0 auto;
  padding: 0;
  position: relative;
  text-align: center;
  width: auto;
  min-height: 25em; /* global setter for the gallery!!! */
  overflow: hidden; /* firefox seems the only browser to properly overflow-hide round corners... */
  margin-bottom: 0 !important;
}
.ui-carousel-inset {
  margin: 1em auto;
  -webkit-border-radius: 1em;
  -moz-border-radius: 1em;
  border-radius: 1em;
}
.ui-carousel li {
  list-style: none;
  width: 100%;
  position: absolute;
  display: none;
  height: 100%;
  -webkit-border-radius: inherit;
  -moz-border-radius: inherit;
  border-radius: inherit;
  overflow: inherit;
  min-height: inherit;
}
.ui-carousel li.ui-carousel-transitioning {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
.ui-carousel li.ui-carousel-active {
  display: block;
}
.ui-carousel li a {
  height: inherit;
  -webkit-border-radius: inherit;
  -moz-border-radius: inherit;
  border-radius: inherit;
  overflow: inherit;
  min-height: inherit;
}
.ui-carousel img {
  width: 100%;
  display: block;
  -webkit-border-radius: inherit;
  -moz-border-radius: inherit;
  border-radius: inherit;
  min-height: inherit;
}
.ui-carousel-controls {
  text-align: center;
}

.ui-carousel-controls .ui-radio {
  display: inline-block;
  padding: 0 0.25em;
}
.ui-carousel-controls .ui-radio input:checked {
  border: 1px solid red !important;
}

.ui-carousel-captions .ui-carousel-captions-heading {
  margin: 0;
  padding: 0;
}
.ui-carousel-captions-content {
  left: 0;
  margin: 0;
  padding: 0.5em 0;
  position: absolute;
  right: 0;
}
.ui-carousel-captions-bottom {
  bottom: 0;
}
.ui-carousel-captions-top {
  top: 0;
}
@media (max-width: 77.5em) {
  .ui-carousel.ui-responsive {
    max-width: 80%;
  }
}
@media (max-width: 45em) {
  .ui-carousel.ui-responsive {
    max-width: 85%;
  }
}
@media (max-width: 40em) {
  .ui-carousel.ui-responsive {
    max-width: 90%;
  }
}
@media (max-width: 30em) {
  .ui-carousel.ui-responsive {
    max-width: 90%;
  }
}
@media (max-width: 20em) {
  .ui-carousel.ui-responsive {
    max-width: 90%;
  }
}
/* ===================================================================*/
/* FIX JQM */
html .ui-btn.ui-icon-checkbox-off:after,
html .ui-btn.ui-icon-checkbox-on:after,
html .ui-btn.ui-icon-radio-off:after,
html .ui-btn.ui-icon-radio-on:after {
  margin: -9px -9px 0;
}
.gallery_thumbnails {
  display: inline-block;
  text-align: center !important;
  width: 100%;
}
.gallery_wrap ul.ui-carousel {
  background: white;
  border: 1px solid #DDD;
  min-height: 30em; /* invidual settings */
  max-height: 30em; /* prevent scaling of images with smaller width... */
}
.gallery_wrap ul li.product_img,
.gallery_wrap ul li.product_img a,
.gallery_wrap ul li.product_img a img {
  max-height: inherit;
}
.gallery_wrap ul li.product_img a img {
  width: auto;
  margin: 0 auto;
}
.gallery_thumbnail_wrapper {
  background: none;
  border: 0 none;
  display: inline-block;
}
.gallery_thumbnail_wrapper li {
  float: left;
  max-width: 5em;
  list-style: none;
}
.gallery_thumbnail_wrapper li,
.gallery_thumbnail_wrapper a,
.gallery_thumbnail_wrapper li:hover,
.gallery_thumbnail_wrapper a:hover {
  background: white !important;
  color: #111 !important;
}
.gallery_thumbnail_wrapper li a {
  padding: 0 !important;
  min-width: 5em;
  border-bottom: 1px solid #DDD !important;
}
.gallery_thumbnail_wrapper li a img {
  display: block;
  position: static !important;
  width: 100%;
  margin: 0 auto;
  max-height: 5em;
  max-width: none !important; /* override listview? */
  width: auto;
  color: #111 !important;
  font-size: .75em;
  text-align: center;
  padding: .2em 0;
}
.gallery_thumbnail_wrapper li a h3 {
  display: block;
  font-weight: normal;
  line-height: 1.25em;
  padding: .5em .1em 0;
  white-space: normal;
  width: 100%;
  text-decoration: none;
  text-align: center;
  font-size: .8em;
}
/* Corner CSS */
.gallery_thumbnail_wrapper li.ui-first-child:nth-child(4n+1),
.gallery_thumbnail_wrapper li.ui-first-child:nth-child(4n+1) a {
  -webkit-border-top-left-radius: inherit;
  border-top-left-radius: inherit;
  -webkit-border-bottom-left-radius: inherit;
  border-bottom-left-radius: inherit;
  -webkit-border-top-right-radius: 0;
  border-top-right-radius: 0;
  -webkit-border-bottom-right-radius: 0;
  border-bottom-right-radius: 0;
}
.gallery_thumbnail_wrapper li.ui-first-child:nth-last-child(n+4),
.gallery_thumbnail_wrapper li.ui-first-child:nth-last-child(n+4) a {
  -webkit-border-bottom-right-radius: 0;
  border-bottom-right-radius: 0;
}
.gallery_thumbnail_wrapper li.ui-first-child,
.gallery_thumbnail_wrapper li.ui-first-child a {

}
.gallery_thumbnail_wrapper li.ui-last-child,
.gallery_thumbnail_wrapper li.ui-last-child a {
  -webkit-border-bottom-right-radius: inherit;
  border-bottom-right-radius: inherit;
}
.gallery_thumbnail_wrapper li.ui-last-child:nth-child(4n+4),
.gallery_thumbnail_wrapper li.ui-last-child:nth-child(4n+4) a {
  -webkit-border-bottom-left-radius: 0;
  border-bottom-left-radius: 0;
  -webkit-border-top-left-radius: 0;
  border-top-left-radius: 0;
  -webkit-border-top-right-radius: inherit;
  border-top-right-radius: inherit;
  -webkit-border-bottom-right-radius: inherit;
  border-bottom-right-radius: inherit;
}
.gallery_thumbnail_wrapper li:nth-child(4),
.gallery_thumbnail_wrapper li:nth-child(4) a {
  -webkit-border-top-right-radius: inherit;
  border-top-right-radius: inherit;
}
.gallery_thumbnail_wrapper li.ui-last-child:not(:nth-child(4n+4)),
.gallery_thumbnail_wrapper li.ui-last-child:not(:nth-child(4n+4)) a {
  -webkit-border-bottom-right-radius: 0;
  border-bottom-right-radius: 0;
}
/* Responsive CSS */
@media (max-width: 45em) {

}
@media (max-width: 40em) {

}
@media (max-width: 30em) {
  .gallery_thumbnail_wrapper li a h3 {
    font-size: .5em;
  }
}
@media (max-width: 20em) {
  .gallery_thumbnail_wrapper li a h3 {
    font-size: .5em;
  }
}