@import '~Breakpoints';
@import '~Layout';

.container {
  @include container;
  padding-top: 2rem;
  padding-bottom: 15rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.imgWrapper {
  position: relative;
  overflow: hidden;
  margin-top: 3rem;

  background-color: black;
  //&:not(:first-child) {
  //  opacity: 0;
  //}
  height: 25rem;
  max-height: 100%;
  max-width: 100%;
  width: 100%;
  //transition: height .25s ease;
  @include media-breakpoint-up(md) {
    width: 49%;
  }
  @include media-breakpoint-up(lg) {
    width: 31.333%
  }
  &.active {
    background-color: $gray-darkest;
    position: fixed;
    width: 100vw;
    height: 100vh;
    margin-top: 0;
    top: 0;
    left: 0;
    z-index: 1000;
    .imgItem {
      //width: 80%;
      //height: 80%;
      opacity: 1;
      background-size: contain;
    }
  }
}

.imgItem {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  opacity: .6;
  transform: translate(-50%, -50%);
  transition: opacity 1s ease;

  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  &:hover {
    opacity: .9;
  }
  //width: 100%;
}

