/* RL Gallery */
.rl-basicgrid-gallery {
  width: 100%;
  height: auto;
  align-items: center;
}

/* Lighbox */
.rl-gallery .rl-gallery-link .rl-gallery-caption,
.rl-gallery .rl-gallery-link::after {
  background-color: transparent !important;
}

.rl-gallery-item {
  width: auto !important;
  height: auto !important;
}

.rl-gallery-item a {
  width: auto !important;
  height: auto !important;
  margin: 0.6em !important;
}

.rl-gallery-item:hover .rl-gallery-link img {
  opacity: 0.7;
}

.rl-gallery-item img {
  transition: all 0.2s !important;
  -moz-transition: all 0.2s !important;
  -webkit-transition: all 0.2s !important;
  -ms-transition: all 0.2s !important;
}

.rl-gallery .rl-gallery-link .rl-gallery-caption {
  position: relative !important;
  padding: 0.5em 0 !important;
  font-weight: 500 !important;
  text-align: center !important;
}

.rl-gallery .rl-gallery-item-title,
.rl-gallery .rl-gallery-item-caption {
  font-size: 0.8em !important;
  color: #717171 !important;
}

.rl-gallery-link {
  display: flex !important;
  display: -moz-flex !important;
  display: -webkit-flex !important;
  display: -ms-flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.tos-close span:after, .tos-close span:before{
  width: 8px !important;
  height: 8px !important;
}

@media screen and (max-width: 1280px) {
  .rl-gallery-item {
    margin: 0.5em !important;
  }

  .rl-gallery .rl-gallery-item-title,
  .rl-gallery .rl-gallery-item-caption {
    font-size: 0.8em !important;
  }
}

@media screen and (max-width: 980px) {
  #content article .rl-gallery-item a {
    font-size: 0.85em;
  }

  .rl-gallery .rl-gallery-item-title,
  .rl-gallery .rl-gallery-item-caption {
    font-size: 1em !important;
  }
}

@media screen and (max-width: 736px) {
  .rl-basicgrid-gallery {
    justify-content: space-around;
  }

  .rl-gallery-item {
    margin: 0.2em !important;
  }

  .rl-gallery-item a {
    margin: 0.2em !important;
  }
}