/* ========================================================================
   Section: Gallery
 ========================================================================== */

.gallery-setup {
  visibility: visible;
}

div[data-stretch="True"] {
  width: 100vw;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

.spw-gallery .uk-cover-container,
.spw-gallery__video-container {
  height: 100%;
}

.spw-gallery ul,
.spw-gallery__img,
.spw-gallery__video-container > iframe {
  border-radius: 8px;
}

.spw-gallery-overlay {
  border-radius: 0 0 8px 8px;
  padding: 16px;
  text-align: center;
}

.spw-gallery-overlay__title {
  font-size: 24px !important;
  line-height: 32px !important;
}

.spw-gallery-overlay__buttons {
  display: flex;
  flex-direction: column;
}

.spw-gallery-overlay__buttons a {
  width: 100%;
  border-radius: 4px;
  margin-top: 1em;
}

@media (min-width: 640px) {

  .spw-gallery-overlay {
    padding: 16px 35px;
  }

  .spw-gallery-overlay__title {
    font-size: 28px !important;
  }

  .spw-gallery-overlay__buttons {
    flex-direction: row;
    justify-content: center;
  }

  .spw-gallery-overlay__buttons a {
    width: auto;
  }
}

/* SLIDESHOW */

.spw-gallery__controls {
  width: 100vw;
  position: absolute;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  top: 50%;
  height: 50px;
  transform: translateY(50%) translateY(-50px);
}

.spw-gallery-description {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.spw-gallery-description__wrapper {
  text-align: center;
  display: none;
}

.spw-gallery-description__wrapper:first {
  display: block;
}

.fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1s;
  animation-name: fade;
  animation-duration: 1s;
}

@-webkit-keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

.spw-gallery-next,
.spw-gallery-previous {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  width: 50px;
  background-color: #0084f4;
}

[data-gallery-type="SL"] .spw-gallery-items {
  max-height: 400px !important;
}

@media (min-width: 690px) {
  [data-gallery-type="SL"] .spw-gallery ul,
  .spw-gallery-description {
    width: 90%;
    margin: auto;
  }

  [data-gallery-type="SL"] .spw-gallery-items {
    max-height: 500px !important;
  }

  .spw-gallery__controls {
    margin-left: 0px;
    margin-right: 0px;
    width: 100%;
  }
}

@media (min-width: 960px) {
  [data-gallery-type="SL"] .spw-gallery ul,
  .spw-gallery-description {
    width: 70%;
    margin: auto;
  }

  .spw-gallery-description {
    margin-top: 1.5rem;
  }

  [data-gallery-type="SL"] .spw-gallery-items {
    max-height: initial !important;
  }
}

.spw-gallery__dotnav .uk-active a {
  background-color: #0084f4;
}

/* GRID */
[data-gallery-type="GR"] .spw-gallery__img,
[data-gallery-type="SD"] .spw-gallery__img {
  background-repeat: no-repeat;
  background-size: cover;
}

[data-stretch="True"] [data-gallery-type="GR"] .spw-gallery__img {
  border-radius: 0px;
}

.uk-lightbox-toolbar a {
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .uk-lightbox {
    background-color: rgba(0, 0, 0, 0.9);
  }

  .uk-lightbox-items img {
    max-width: 90%;
    margin: auto;
  }
}

@media (min-width: 960px) {
  .uk-lightbox-items img {
    max-width: 85%;
  }
}

@media (min-width: 960px) {
  .uk-lightbox-items img {
    max-width: 75%;
  }
}

.spw-gallery__img--square {
  width: 100%;
  padding-top: calc(100% - 22px);
}

.spw-gallery__img--landscape {
  width: 100%;
  padding-top: calc(75% - 22px);
}
.spw-gallery__img--landscape2x {
  width: 100%;
  padding-top: calc(56.25% - 22px);
}

.spw-gallery__img--portrait {
  width: 100%;
  padding-top: 125%;
}

.spw-gallery__img--center {
  background-position: center;
}

/* SLIDER */
[data-gallery-type="SD"] .spw-gallery,
[data-gallery-type="HR"] .spw-gallery {
  position: absolute;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

[data-gallery-type="SD"] .spw-gallery__img {
  width: 100%;
}

[data-gallery-type="SD"] .spw-gallery__img--empty {
  height: 100%;
  background-position: center;
}

[data-gallery-type="SD"] .uk-cover-container {
  border-radius: 8px;
}

[data-gallery-type="SD"] .spw-gallery-items {
  max-height: 400px !important;
}

@media (min-width: 640px) {
  [data-gallery-type="SD"] .spw-gallery-items {
    max-height: 500px !important;
  }
}

@media (min-width: 960px) {
  [data-gallery-type="SD"] .spw-gallery {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  [data-gallery-type="SD"] .spw-gallery-items {
    max-height: initial !important;
  }
}

/* HERO */
div[data-gallery-type="HR"] {
  max-height: initial;
}

[data-gallery-type="HR"] .spw-gallery ul,
[data-gallery-type="HR"] .spw-gallery__img,
[data-gallery-type="HR"] .spw-gallery__video-container > iframe {
  border-radius: 0px;
}

[data-gallery-type="HR"] .spw-gallery-overlay__buttons {
  width: 100%;
}

[data-gallery-type="HR"] .spw-gallery-overlay {
  padding: 16px 25px;
  position: absolute;
  border-radius: 0px;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 0;
}

.hero-description {
  margin-top: 0.5rem;
  font-size: 16px;
  line-height: 28px;
}

.light [data-gallery-type="HR"] .hero-description,
.light [data-gallery-type="HR"] .hero-title {
  color: #fff !important;
}

@media (min-width: 640px) {
  [data-gallery-type="HR"] .spw-gallery-overlay {
    padding: 16px 60px;
  }

  .hero-description {
    font-size: 20px;
    line-height: 32px;
  }
}

@media (min-width: 960px) {
  [data-gallery-type="HR"] .spw-gallery-overlay {
    padding: 16px 100px;
  }
}

@media (min-width: 1200px) {
  [data-gallery-type="HR"] .spw-gallery-overlay {
    padding: 16px 150px;
  }
}

/* FORCE OVERRIDE LIGHT SETTINGS */
.spw-gallery-description__wrapper.light p,
.spw-gallery-description__wrapper.light h4 {
  color: white !important;
}

.light .spw-button--outlined {
  border-width: 1px;
  color: white;
  border-color: white;
}