/* GRID */
.uu-gallery-widget-grid-container {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: flex-start;
  margin-top: 15px;
  transition: all .15s ease-in-out;
}
.uu-gallery-widget-grid-main-image {
  flex: 1 1 100%;
  text-align: center;
  margin-bottom: 15px;
}
.uu-gallery-widget-grid-main-image img {
  display: block;
  margin: 0px auto;
}
.uu-gallery-widget-grid-item-container {
  flex: 0 1 16.666%;
}

.uu-gallery-widget-grid-item {
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 15px;
  transition: all .15s ease-in-out;
}
.uu-gallery-widget-grid-item:hover {
  opacity: .8;
  cursor: pointer;
}
.uu-gallery-widget-grid-image {
  width: 100%;
  height: auto;
}
.uu-gallery-widget-grid-main-caption {
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex: 1 1 100%;
  text-align: center;
  line-height: 1.2;
  min-height: 30px;
}

.uu-gallery-widget-grid-main-caption figcaption {
  background-color: #FFFFFF;
  padding: 10px 0px;
  max-width: 800px;
  font-size: 17px;
}

.uu-gallery-widget-grid-main-caption-hidden {
  display: none;
}

@media only screen and (max-width: 900px) {
  .uu-gallery-widget-grid-item-container {
    flex: 0 1 33.333%;
  }
  .uu-gallery-widget-grid-item {
    padding: 10px;
  }
}

/* CAROUSEL */
.uu-gallery-carousel-img {
  position: relative;
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: stretch;
  text-align: center;
}
.uu-gallery-widget-main-carousel-item {
  position: relative;
  text-align: center;
  margin-bottom: 10px;
  background-color: #f2f2f2;
  border-radius: 8px;
  z-index: 4;
}
.uu-gallery-widget-main-carousel-item figcaption {
  position: absolute;
  max-width: 80%;
  bottom: 0px;
  font-size: 17px;
  left: 0;
  right: 0;
  margin: 0px auto;
  border-radius: 8px 8px 0px 0px;
  padding: 15px;
}
.uu-gallery-widget-main-carousel-item img {
  margin: 0px auto;
  text-align: center
}

.uu-gallery-carousel-thumbs {
  position: relative;
  max-width: 100%;
  margin: 0px auto;
}
.uu-gallery-widget-carousel-item {
  width: 100px;
  height: auto;
  margin: 5px;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 8px;
}

.uu-gallery-carousel-img .slick-arrow.slick-prev {
  left: 0;
}
.uu-gallery-carousel-img .slick-arrow.slick-next {
  right: 0;
}

.uu-gallery-prev-arrow, .uu-gallery-next-arrow {
  position: absolute;
  z-index: 5;
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  top: calc(50% - 25px);
  height: 50px;
  width: 50px;
  border-radius: 4px;
  border: none;
  background-color:#463c3c;
  box-shadow: 0px 10px 20px 0px rgb(84 117 145 / 10%);
  transition: all 0.3s;
}
.uu-gallery-prev-arrow:hover, .uu-gallery-next-arrow:hover {
  transform: scale(1.1);
  box-shadow: 0px 10px 30px 0px rgb(84 117 145 / 10%);
  background-color: #BE0000;
} 
.uu-gallery-prev-arrow svg, .uu-gallery-next-arrow svg {
  position: relative;
  width: 50%;
  height: auto;
  fill: #FFF;
}
.uu-gallery-prev-arrow {
  left: -25px;
}
.uu-gallery-next-arrow {
  right: -25px;
}
.uu-gallery-prev-arrow.small, .uu-gallery-next-arrow.small {
  height: 30px;
  width: 30px;
  top: calc(50% - 15px);
}
.uu-gallery-prev-arrow.small {
  left: -15px;
}
.uu-gallery-next-arrow.small {
  right: -15px;
}

@media only screen and (max-width: 900px) {
  .uu-gallery-prev-arrow, .uu-gallery-next-arrow {
    top: calc(50% - 20px);
    height: 40px;
    width: 40px;
  }
  .uu-gallery-prev-arrow {
    left: -20px;
  }
  .uu-gallery-next-arrow {
    right: -20px;
  }
  .uu-gallery-widget-main-carousel-item figcaption {
    position: relative;
    max-width: 100%;
    bottom: auto;
  }
  .uu-gallery-widget-carousel-item {
    height: 100px;
  }
  .uu-gallery-prev-arrow svg, .uu-gallery-next-arrow svg {
    width: 100%;
  }
  /* .uu-gallery-carousel-thumbs {
    max-width: 100%;
  } */
}