:root {
  --breakpoint-xs: 0;
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
  --breakpoint-xxl: 1600px;
}

.image-gallery-widget {
  margin: 32px 0;
}

@media (min-width: 992px) {
  .image-gallery-widget {
    margin: 48px 0;
  }
}

.low-resolution .image-gallery-widget {
  margin-left: auto;
  margin-right: auto;
  width: 75%;
}

.low-resolution .image-gallery-widget h2 {
  font-size: 36px;
  margin-bottom: 24px;
}

.image-gallery-widget ul {
  display: flex;
  flex-wrap: wrap;
  margin: -2px;
  padding: 0;
}

@media (max-width: 575px) {
  .image-gallery-widget ul {
    margin-left: calc(-50vw + 50% - 2px);
    margin-right: calc(-50vw + 50% - 2px);
    width: calc(100vw + 4px);
  }
}

@media (min-width: 992px) {
  .image-gallery-widget ul {
    margin: -4px;
  }
}

.image-gallery-widget ul li {
  display: none;
  flex: 0 1 50%;
  margin: 0;
  padding: 2px;
  position: relative;
}

@media (min-width: 576px) {
  .image-gallery-widget ul li {
    flex: 0 1 33.3333333333%;
  }
}

@media (min-width: 992px) {
  .image-gallery-widget ul li {
    padding: 4px;
  }
}

.image-gallery-widget ul li figure {
  height: 0;
  margin: 0;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.image-gallery-widget ul li figure > div,
.image-gallery-widget ul li figure > img,
.image-gallery-widget ul li figure > video {
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.image-gallery-widget ul li figure > img,
.image-gallery-widget ul li figure > video {
  cursor: pointer;
  object-fit: cover;
  transition: transform 2.2s cubic-bezier(0.14, 0.4, 0.09, 0.99);
}

.image-gallery-widget ul li figure > div {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: 16px;
  text-align: center;
}

@media (min-width: 992px) {
  .image-gallery-widget ul li figure > div {
    padding: 48px;
  }
}

.image-gallery-widget ul li figure > div * {
  font-size: calc(-0.8764px + 6.74157vw);
  line-height: 1.3;
}

@media (min-width: 370px) {
  .image-gallery-widget ul li figure > div * {
    font-size: 24px;
  }
}

@media (min-width: 576px) {
  .image-gallery-widget ul li figure > div * {
    font-size: 28px;
  }
}

@media (min-width: 992px) {
  .image-gallery-widget ul li figure > div * {
    font-size: 36px;
    line-height: 1.2;
  }
}

.image-gallery-widget ul li figure > div.inverted,
.image-gallery-widget ul li figure > div.inverted * {
  color: #fff;
}

.image-gallery-widget ul li figure:hover img,
.image-gallery-widget ul li figure:hover video {
  transform: scale(1.1);
}

.image-gallery-widget ul li figure figcaption {
  display: none;
}

@media (max-width: 575px) {
  .image-gallery-widget ul li:nth-child(4n + 1) figure,
  .image-gallery-widget ul li:nth-child(4n + 4) figure {
    padding-bottom: 100%;
  }

  .image-gallery-widget ul li:nth-child(4n + 2) figure,
  .image-gallery-widget ul li:nth-child(4n + 3) figure {
    padding-bottom: 56.25%;
  }

  .image-gallery-widget ul li:nth-child(4n + 4) {
    align-self: flex-end;
    margin-top: -33.3333333333%;
    position: relative;
  }

  .image-gallery-widget ul li.is-fifth-of-six figure {
    padding-bottom: 56.25%;
  }
}

@media (min-width: 576px) {
  .image-gallery-widget ul li:nth-child(2n) figure {
    padding-bottom: 56.25%;
  }

  .image-gallery-widget ul li:nth-child(odd) figure {
    padding-bottom: 100%;
  }

  .image-gallery-widget ul li:nth-child(6n + 5) {
    align-self: flex-end;
    margin-top: -33.3333333333%;
    position: relative;
  }
}

.image-gallery-widget-show-more {
  display: none;
  margin: 32px auto 0;
}

@media (min-width: 768px) {
  .image-gallery-widget-show-more {
    margin-top: 40px;
  }
}

.image-gallery-widget-lightbox-wrapper {
  animation-duration: 0.4s;
  animation-timing-function: ease-out;
  background-color: #fff;
  display: none;
  height: 100vh;
  left: 0;
  overflow: hidden;
  position: fixed;
  top: 0;
  width: 100vw;
  z-index: 1002;
}

.image-gallery-widget-lightbox-wrapper.is-displayed {
  display: block;
}

.image-gallery-widget-lightbox-close {
  align-items: center;
  color: transparent;
  display: flex;
  font-size: 0;
  height: 48px;
  justify-content: center;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 0;
  width: 48px;
  z-index: 1;
}

/* //TODO close icon */
.image-gallery-widget-lightbox-close:before {
  speak: none;
  color: #23366f;
  /* content: "î¥®"; */
  content: "";
  font-family: zurich-icons;
  font-size: 19px;
  font-style: normal;
  font-weight: 400;
}

@media (min-width: 576px) {
  .image-gallery-widget-lightbox-close {
    right: 16px;
    top: 16px;
  }

  .image-gallery-widget-lightbox-close:before {
    font-size: 28px;
  }
}

.image-gallery-widget-lightbox-content {
  align-items: center;
  display: flex;
  height: 100%;
  position: relative;
  width: 100%;
}

@media (min-width: 992px) {
  .image-gallery-widget-lightbox-content {
    padding-top: 80px;
  }
}

@media (max-width: 930px) and (orientation: landscape) {
  .image-gallery-widget-lightbox-content {
    align-items: flex-start;
    padding-top: 72px;
  }
}

.image-gallery-widget-lightbox-carousel {
  height: 100vh;
  margin: 0 -12px;
  width: calc(100% + 24px);
}

@media (min-width: 576px) and (max-width: 767px) {
  .image-gallery-widget-lightbox-carousel {
    height: 100%;
  }
}

@media (min-width: 576px) {
  .no-touch .image-gallery-widget-lightbox-carousel {
    margin: 0;
    padding-bottom: 80px;
    width: 100%;
  }
}

@media (min-width: 992px) {
  .image-gallery-widget-lightbox-carousel {
    height: auto;
    padding-bottom: 80px;
  }
}

.image-gallery-widget-lightbox-carousel > div {
  display: flex;
}

.image-gallery-widget-lightbox-carousel > div > div {
  align-items: flex-start;
  display: flex;
}

@media (min-width: 576px) {
  .no-touch .image-gallery-widget-lightbox-carousel > div > div {
    align-items: center;
  }
}

@media (min-width: 992px) {
  .image-gallery-widget-lightbox-carousel > div > div {
    align-items: center;
  }
}

@media (max-width: 930px) and (orientation: landscape) {
  .image-gallery-widget-lightbox-carousel > div > div {
    align-items: center;
  }
}

.image-gallery-widget-lightbox-carousel figure {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  margin: 48px 12px 0;
  max-height: calc(100vh - 48px);
  padding: 0;
  position: relative;
  width: 100%;
}

@media (min-width: 576px) {
  .image-gallery-widget-lightbox-carousel figure {
    margin: 80px 12px 0;
    max-height: calc(100vh - 92px);
  }
}

@media (min-width: 992px) {
  .image-gallery-widget-lightbox-carousel figure {
    flex-direction: row;
    height: auto;
    justify-content: center;
    margin: 0 12px;
  }

  .no-touch .image-gallery-widget-lightbox-carousel figure {
    margin: 0 64px;
  }
}

@media (max-width: 930px) and (orientation: landscape) {
  .image-gallery-widget-lightbox-carousel figure {
    flex-direction: row;
    justify-content: flex-start;
    margin: 0;
    max-height: calc(100vh - 48px);
  }
}

/* //TODO right icon */
.image-gallery-widget-lightbox-carousel figure.is-overflowed:after {
  speak: none;
  bottom: 5px;
  /* content: "î­¡"; */
  content: "";
  font-family: zurich-icons;
  font-size: inherit;
  font-size: 32px;
  font-style: normal;
  font-weight: 400;
  left: 50%;
  position: absolute;
  transform: translate(-50%);
  z-index: 10;
}

@media (min-width: 992px) {
  .image-gallery-widget-lightbox-carousel figure.is-overflowed:after {
    left: 85.7142857143%;
  }
}

@media (max-width: 930px) and (orientation: landscape) {
  .image-gallery-widget-lightbox-carousel figure.is-overflowed:after {
    bottom: 0;
    left: 75%;
  }
}

.image-gallery-widget-lightbox-carousel figure.is-overflowed.inverted:after {
  color: #fff;
}

.image-gallery-widget-lightbox-carousel figure > img,
.image-gallery-widget-lightbox-carousel figure > video {
  width: 100%;
}

@media (max-width: 930px) and (orientation: landscape) {
  .image-gallery-widget-lightbox-carousel figure > img,
  .image-gallery-widget-lightbox-carousel figure > video {
    flex: 0 1 50%;
    height: auto;
    object-fit: contain;
    width: 50%;
  }
}

@media (min-width: 992px) {
  .image-gallery-widget-lightbox-carousel figure > img,
  .image-gallery-widget-lightbox-carousel figure > video {
    flex: 0 1 71.4285714286%;
    height: 100%;
    object-fit: contain;
    width: 71.4285714286%;
  }
}

.image-gallery-widget-lightbox-carousel figure figcaption {
  background-color: inherit;
  height: auto;
  margin: 24px 0 64px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 24px;
  position: relative;
}

@media (max-width: 930px) and (orientation: landscape) {
  .image-gallery-widget-lightbox-carousel figure figcaption {
    flex: 0 1 50%;
    height: calc(100% - 48px);
    margin-bottom: 40px;
  }
}

@media (min-width: 992px) {
  .image-gallery-widget-lightbox-carousel figure figcaption {
    flex: 0 1 28.5714285714%;
    height: calc(100% - 64px);
    margin-bottom: 56px;
    padding-right: 24px;
  }
}

.image-gallery-widget-lightbox-carousel figure figcaption p {
  font-size: 16px;
}

.image-gallery-widget-lightbox-carousel figure figcaption.inverted *,
.image-gallery-widget-lightbox-carousel figure figcaption.inverted + span,
.image-gallery-widget-lightbox-carousel figure.inverted figcaption *,
.image-gallery-widget-lightbox-carousel figure.inverted span {
  color: #fff;
}

.image-gallery-widget-lightbox-carousel-counter {
  align-items: center;
  display: flex;
  font-size: 16px;
  height: 48px;
  left: 12px;
  position: absolute;
  top: 0;
}

@media (min-width: 576px) {
  .image-gallery-widget-lightbox-carousel-counter {
    left: 24px;
    right: auto;
    top: 16px;
  }
}

.image-gallery-widget-lightbox-carousel-controls {
  position: absolute;
  width: 100%;
}

.touch .image-gallery-widget-lightbox-carousel-controls {
  display: none;
}

.image-gallery-widget-lightbox-carousel-controls .next,
.image-gallery-widget-lightbox-carousel-controls .prev {
  align-items: center;
  display: flex;
  height: 48px;
  justify-content: center;
  overflow: hidden;
  position: absolute;
  text-decoration: none;
  top: calc(50% - 40px);
  transform: translateY(-50%);
  width: 48px;
}

/* //TODO left icon */
.image-gallery-widget-lightbox-carousel-controls .next:before,
.image-gallery-widget-lightbox-carousel-controls .prev:before {
  speak: none;
  color: #23366f;
  /* content: "î¤“"; */
  content: "";
  font-family: zurich-icons;
  font-size: 40px;
  font-style: normal;
  font-weight: 400;
}

.image-gallery-widget-lightbox-carousel-controls .prev {
  left: 8px;
}

.image-gallery-widget-lightbox-carousel-controls .prev:before {
  transform: rotate(90deg);
}

.image-gallery-widget-lightbox-carousel-controls .next {
  right: 8px;
}

.image-gallery-widget-lightbox-carousel-controls .next:before {
  transform: rotate(-90deg);
}

html.lightbox-is-displayed body:before {
  background-color: transparent;
}
