@charset 'UTF-8';

.teaser-gallery {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  text-align: center;
  cursor: default;
}

.teaser-gallery .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba($gray, 0.4);
  transition: all 0.4s  cubic-bezier(0.88, -0.99, 0, 1.81);
}

.teaser-gallery:hover .overlay {
  background-color: rgba($link-hover-color, 0.4);
}

.teaser-gallery img {
  display: block;
  position: relative;
  width: 100%;
}

.teaser-gallery a.info {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: $grid-gutter-width / 2;
  right: $grid-gutter-width / 2;
  bottom: $grid-gutter-width / 2;
  left: $grid-gutter-width / 2;
  text-decoration: none;
  text-transform: uppercase;
  background-color: transparent;
  border: 1px solid $white;
  color: $white;
  opacity: 0;
  filter: alpha(opacity=0);
  transform: scale(0);
  transition: all 0.4s cubic-bezier(0.88, -0.99, 0, 1.81);
}

.teaser-gallery:hover a.info {
  opacity: 1;
  filter: alpha(opacity=100);
  transform: scale(1);
}

.teaser-gallery a.info:hover {
  box-shadow: 0 0 5px $white;
}
