/**
 * Gallerya layout and styling.
 *
 * 1. Take the available width, subtract the necessary gaps between thumbnails
 *    and divide the remaining space evenly among thumbnails.
 * 2. Plugin image-disclaimer adds content that could cover the video player
 *    controls.
 */
.gallerya--slider, .gallerya--grid, .gallerya--product-variation-slider {
  width: 100%;
}
.gallerya--slider > ul:after, .gallerya--product-variation-slider > ul:after, .gallerya--grid > ul:after {
  content: "flickity" !important;
  display: none !important;
}
.gallerya--product-variation-slider, .gallerya--slider, .gallerya--grid {
  clear: both;
}
@media screen and (min-width: 768px) {
  .gallerya--product-variation-slider, .gallerya--slider, .gallerya--grid {
    margin-right: auto;
    margin-left: auto;
  }
}
.gallerya--product-variation-slider > ul, .gallerya--slider > ul, .gallerya--grid > ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.gallerya--product-variation-slider > ul li, .gallerya--slider > ul li, .gallerya--grid > ul li {
  width: 100%;
}
@media screen and (min-width: 768px) {
  .gallerya--product-variation-slider .gallerya__image,
  .gallerya--product-variation-slider .gallerya__image img, .gallerya--slider .gallerya__image, .gallerya--grid .gallerya__image,
  .gallerya--slider .gallerya__image img,
  .gallerya--grid .gallerya__image img {
    margin-left: auto;
    margin-right: auto;
  }
}
.gallerya--slider, .gallerya--grid {
  margin-top: 20px;
  margin-bottom: 40px;
}
@media screen and (min-width: 768px) {
  .gallerya--slider, .gallerya--grid {
    margin-top: 50px;
    margin-bottom: 75px;
  }
}
.gallerya--slider > ul li, .gallerya--grid > ul li {
  top: 50%;
  transform: translateY(-50%);
}
.gallerya--slider .gallerya__image, .gallerya--grid .gallerya__image {
  margin-bottom: 30px;
}
@media screen and (min-width: 768px) {
  .gallerya--slider .gallerya__image, .gallerya--grid .gallerya__image {
    width: 75%;
  }
}
.gallerya--slider .gallerya--slider__nav .flickity-prev-next-button, .gallerya--grid .gallerya--slider__nav .flickity-prev-next-button {
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
}
.gallerya--slider .gallerya--slider__nav .flickity-prev-next-button.previous, .gallerya--grid .gallerya--slider__nav .flickity-prev-next-button.previous {
  left: 4px;
}
.gallerya--slider .gallerya--slider__nav .flickity-prev-next-button.next, .gallerya--grid .gallerya--slider__nav .flickity-prev-next-button.next {
  right: 4px;
}
.gallerya--slider .gallerya--slider__nav .flickity-prev-next-button[disabled], .gallerya--grid .gallerya--slider__nav .flickity-prev-next-button[disabled] {
  opacity: 0.5;
}
.gallerya--slider .gallerya--slider__nav li, .gallerya--grid .gallerya--slider__nav li {
  width: auto;
  padding: 0 5px;
}
.gallerya--slider .gallerya--slider__nav .gallerya__image, .gallerya--grid .gallerya--slider__nav .gallerya__image {
  width: 100%;
  margin: initial;
  display: block;
  max-height: 90px;
}
.gallerya--slider .gallerya--slider__nav .gallerya__image img, .gallerya--grid .gallerya--slider__nav .gallerya__image img {
  display: block;
  width: auto;
  max-width: none;
  max-height: inherit;
}
.gallerya--product-variation-slider {
  width: 100%;
}
.gallerya--product-variation-slider .flickity-prev-next-button {
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  outline: none;
  background: #e0e2e3;
}
.gallerya--product-variation-slider .flickity-prev-next-button:hover {
  background: #c4c4c4;
}
.gallerya--product-variation-slider .flickity-prev-next-button .arrow {
  fill: #fff;
}
.gallerya--product-variation-slider li:not(:first-of-type) {
  display: none;
}
.gallerya--product-variation-slider .flickity-enabled li:not(:first-of-type) {
  display: block;
}
.gallerya--product-variation-slider .flickity {
  white-space: nowrap;
  overflow: visible;
}
.gallerya--product-variation-slider .flickity li {
  display: inline-block;
}
@media screen and (min-width: 768px) {
  .gallerya--product-variation-slider .flickity-prev-next-button.previous {
    left: 10px;
  }
  .gallerya--product-variation-slider .flickity-prev-next-button.next {
    right: 10px;
  }
}
.gallerya--grid > ul li {
  top: auto;
  transform: none;
}
@media screen and (min-width: 768px) {
  .gallerya--grid ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    margin-left: -20px;
  }
  .gallerya--grid ul:after {
    content: "";
  }
  .gallerya--grid ul li {
    list-style: inherit;
    flex-basis: calc(50% - 20px);
    margin-left: 20px;
    transform: none;
  }
  .gallerya--grid .gallerya__image {
    margin: 0;
    margin-bottom: 20px;
    overflow: hidden;
    width: auto;
  }
  .gallerya--grid .gallerya__image figcaption {
    transform: translateY(100%);
    transition: all 0.2s ease-out;
  }
  .gallerya--grid .gallerya__image:hover figcaption {
    transform: translateY(0);
  }
}
.gallerya__image {
  position: relative;
}
.gallerya__image a {
  display: block;
  text-align: center;
}
.gallerya__image img {
  width: auto;
  max-height: 645px;
  vertical-align: middle;
}
.gallerya__image figcaption {
  width: 100%;
  display: block;
  padding: 15px;
  color: #c4c4c4;
  font-size: 14px;
  line-height: 1.4;
  background: #fff;
}
@media screen and (min-width: 768px) {
  .gallerya__image figcaption {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 10% 15px 15px;
    background: linear-gradient(to top, #000 0%, transparent 100%);
    color: #e0e2e3;
  }
}
.gallerya__image-group {
  display: flex;
  flex-wrap: wrap;
  transform: translateX(-5px);
}
@media screen and (min-width: 768px) {
  .gallerya__image-group {
    width: 75%;
    margin-left: auto;
    margin-right: auto;
  }
}
.gallerya__image-group .gallerya__image {
  margin: 0;
  width: auto;
  flex: 1 0 30%;
  margin-bottom: 5px;
  padding-left: 5px;
  max-width: 50%;
}
@media screen and (min-width: 768px) {
  .gallerya__image-group .gallerya__image {
    max-width: 33.3333333333%;
  }
}
.gallerya .flickity-prev-next-button {
  top: auto;
  width: 28px;
  height: 28px;
}
@media screen and (min-width: 768px) {
  .gallerya .flickity-prev-next-button {
    top: 50%;
  }
}
.gallerya .flickity-page-dots,
.gallerya .flickity-prev-next-button {
  margin: 0;
  padding: 0;
  outline: none;
}
.gallerya .flickity-page-dots .dot,
.gallerya .flickity-prev-next-button {
  background: #e0e2e3;
}
.gallerya .flickity-page-dots .dot:hover,
.gallerya .flickity-prev-next-button:hover {
  background: #c4c4c4;
}
.gallerya__count {
  font-size: 0.875em;
  text-align: center;
}

.is-currently-selected .gallerya__image:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border: 2px solid #e0e2e3;
}

.flex-control-paging {
  display: block;
  position: relative;
  width: 100%;
  height: 19px;
  margin: 16px 0 0px;
  padding: 0;
  list-style: none;
  text-align: center;
}
.flex-control-paging li {
  position: relative;
  display: inline-block;
  cursor: pointer;
  margin: 0;
  padding: 0.25rem;
  line-height: 0;
  vertical-align: top;
}
.flex-control-paging li a {
  position: relative;
  display: inline-block;
  height: 11px !important;
  width: 11px !important;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  border: 2px solid #c4c4c4;
  background: 0 0;
  background-color: transparent;
  outline: 0;
  line-height: 0;
  vertical-align: top;
  font-size: 0;
  text-indent: -99999px;
  color: transparent;
  cursor: pointer;
}
.flex-control-paging li a:focus, .flex-control-paging li a:hover {
  outline: 0;
}
.flex-control-paging li a:focus:before, .flex-control-paging li a:hover:before {
  opacity: 0.5;
}
.flex-control-paging li a:hover:before {
  background-color: #c4c4c4 !important;
}
.flex-control-paging li a:hover:after {
  content: "";
  display: none !important;
}
.flex-control-paging li a:before {
  content: "";
  position: absolute;
  display: block;
  width: 11px;
  height: 11px;
  top: -2px;
  left: -2px;
  border-radius: 50%;
  color: #c4c4c4;
  transition: background 0.1s ease-out;
}
.flex-control-paging li a.flex-active {
  background-color: #c4c4c4;
}

.fancybox-thumbs {
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  box-sizing: border-box;
  width: auto;
  height: 95px;
  padding: 10px 10px 5px 10px;
  background: rgba(0, 0, 0, 0.3);
}

.fancybox-show-thumbs .fancybox-inner {
  right: 0;
  bottom: 95px;
}

.fancybox-thumbs__list {
  margin: 0 auto;
}

.woocommerce .product .flex-control-thumbs {
  --thumbnail-count: 6;
  --thumbnail-spacing-unit: 9px;
  --thumbnail-slider-margin: 12px;
  display: flex;
  flex-wrap: wrap;
}
.woocommerce .product .flex-control-thumbs .slider-thumb-video {
  position: relative;
}
.woocommerce .product .flex-control-thumbs .slider-thumb-video img {
  width: 100%;
  min-width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.woocommerce .product .flex-control-thumbs .slider-thumb-video:before {
  position: absolute;
  width: 100%;
  height: 100%;
  content: "";
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" height="100%25" version="1.1" viewBox="0 0 68 48" width="100%25"%3E%3Cpath class="ytp-large-play-button-bg" d="M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z" fill="%23212121" fill-opacity="0.8"%3E%3C/path%3E%3Cpath d="M 45,24 27,14 27,34" fill="%23fff"%3E%3C/path%3E%3C/svg%3E');
  background-repeat: no-repeat;
  background-size: 50%;
  background-position: center center;
  pointer-events: none;
}
.woocommerce .product .flex-control-thumbs.flickity {
  display: block;
  overflow: visible !important;
  margin-right: var(--thumbnail-slider-margin) !important;
  margin-left: var(--thumbnail-slider-margin) !important;
  white-space: nowrap;
}
.woocommerce .product .flex-control-thumbs.flickity li {
  float: none !important;
  display: inline-block;
  width: calc((100% - var(--thumbnail-spacing-unit) * (var(--thumbnail-count) - 1)) / var(--thumbnail-count)) !important;
  margin-right: var(--thumbnail-spacing-unit) !important;
  margin-bottom: 0;
}
.woocommerce .product .flex-control-thumbs.flickity img {
  border: 1px solid transparent;
  opacity: 0.7;
}
.woocommerce .product .flex-control-thumbs.flickity img:hover, .woocommerce .product .flex-control-thumbs.flickity img.flex-active {
  border: 1px solid rgba(0, 0, 0, 0.5);
  opacity: 1;
}
.woocommerce .product .flex-control-thumbs.flickity:after {
  display: table;
  content: " ";
  clear: both;
}
.woocommerce .product .flex-control-thumbs.flickity .flickity-slider {
  display: flex;
  align-items: center;
}
.woocommerce .product .flex-control-thumbs .flickity-prev-next-button {
  width: 24px;
  height: 24px;
  padding: 0;
  background: #575757;
  color: #ffffff;
}
.woocommerce .product .flex-control-thumbs .flickity-prev-next-button .arrow {
  fill: currentColor;
}
.woocommerce .product .flex-control-thumbs .flickity-prev-next-button:hover {
  background: #000;
  color: #ffffff;
}
.woocommerce .product .flex-control-thumbs .flickity-prev-next-button.previous {
  left: -12px;
}
.woocommerce .product .flex-control-thumbs .flickity-prev-next-button.next {
  right: -12px;
}

.woocommerce-product-gallery--with-images .gallerya__featured-content {
  position: relative;
}
.woocommerce-product-gallery--with-images .gallerya__video-content {
  padding-bottom: 100%;
}
.woocommerce-product-gallery--with-images .gallerya__video-content iframe {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 56.25%;
  transform: translateY(-50%);
}
.woocommerce-product-gallery .woocommerce-product-gallery__image.has-video {
  background: #000;
}
.woocommerce-product-gallery .woocommerce-product-gallery__image.has-video:after {
  display: none;
}

.gallerya-hidden {
  visibility: hidden;
}