/* ==========================================================
   Builder: Regular Content with Gallery
   ========================================================== */
.content-gallery {
  position: relative;
  margin-bottom: 20px;
}

.content-gallery__main {
  position: relative;
}
.content-gallery img {
  margin: 0 !important;
  max-width: 100%;
}
.content-gallery__main .content-gallery__slide {
  width: 100%;
}
/* hide stacked slides until Flickity has loaded */
.content-gallery__main.js-content-gallery-main:not(.flickity-enabled) .content-gallery__slide:not(:first-child) {
  display: none;
}
.content-gallery__slide a {
  display: block;
  position: relative;
}
.content-gallery__slide img {
  display: block;
  width: 100%;
  aspect-ratio: 10 / 7;
  object-fit: cover;
}
.content-gallery__slide a i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fefefe;
  font-size: 60px;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}
.content-gallery__slide a:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(254, 254, 254, 0.2);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}
.content-gallery__slide a:hover:before,
.content-gallery__slide a:hover i {
  opacity: 1;
}

/* arrows */
.content-gallery__main .flickity-prev-next-button {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.85);
  z-index: 3;
}
.content-gallery__main .flickity-prev-next-button:hover {
  background: #a2473e;
}
.content-gallery__main .flickity-prev-next-button:hover .flickity-button-icon {
  fill: #fefefe;
}
.content-gallery__main .flickity-prev-next-button.previous {
  left: 10px;
}
.content-gallery__main .flickity-prev-next-button.next {
  right: 10px;
}

/* counter */
.content-gallery__counter {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  padding: 2px 10px;
  font-size: 14px;
  line-height: 1.6;
  color: #fefefe;
  background: rgba(10, 10, 10, 0.6);
  pointer-events: none;
}

/* thumbnails */
.content-gallery__thumbs {
  margin-top: 10px;
}
.content-gallery__thumbs:not(.flickity-enabled) {
  display: flex;
  overflow: hidden;
}
.content-gallery__thumb {
  width: 22%;
  margin-right: 4%;
  flex: 0 0 auto;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s ease-in-out;
  border: 2px solid transparent;
}
.content-gallery__thumb:hover {
  opacity: 0.85;
}
.content-gallery__thumb.is-nav-selected {
  opacity: 1;
  border-color: #a2473e;
}
.content-gallery__thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 10 / 7;
  object-fit: cover;
}

@media print, screen and (min-width: 64em) {
  .content-gallery-block.has-right-image .cell:nth-child(1) {
    padding-left: 40px;
  }
  .content-gallery-block:not(.has-right-image) .cell:nth-child(1) {
    padding-right: 40px;
  }
}
@media screen and (max-width: 39.9375em) {
  .content-gallery__thumb {
    width: 30%;
    margin-right: 5%;
  }
}
