.gallery {
  padding:2.25rem 0;
}

@media (min-width:1200px) {
  .gallery {
    padding:2.5rem 0;
  }
}

@media (max-width: 767px) {
  .gallery .container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (min-width: 768px) {
  .gallery .container {
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (min-width: 992px) {
  .gallery .container {
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (min-width: 1200px) {
  .gallery .container {
    padding-left: 8px;
    padding-right: 8px;
  }
}


.gallery__grid {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
}
.grid-item {
  cursor: pointer;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  height: 125px;
  margin: 0;
}
.grid-item__wrapper {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  bottom: 0.25rem;
  left: 0.25rem;
  overflow: hidden;
}
.grid-item__wrapper:after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #1e2223;
  opacity: 0;
  z-index: 1;
  -ms-transition: all .15s ease;
  -webkit-transition: all .15s ease;
  -moz-transition: all .15s ease;
  -o-transition: all .15s ease;
  transition: all .15s ease;
}
.grid-item:hover .grid-item__wrapper:after,
.grid-item:focus .grid-item__wrapper:after {
  opacity: 0;
}
.grid-item:hover img,
.grid-item:focus img {
  -webkit-transform: translate(-50%, -50%) scale(1.1125);
  -ms-transform: translate(-50%, -50%) scale(1.1125);
  transform: translate(-50%, -50%) scale(1.1125);
}
.grid-item img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  max-width: 100%;
  height: auto;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  -ms-transition: all .5s ease;
  -webkit-transition: all .5s ease;
  -moz-transition: all .5s ease;
  -o-transition: all .5s ease;
  transition: all .5s ease;
}
.grid-item__vertical {
  width: calc(100% / 2);
}
.grid-item__horizontal {
  width: calc(100%);
  height: calc(125px / 2);
}
.grid-item__quarter {
  width: calc(100%);
  height: calc(125px / 2);
}
@media (min-width: 450px) {
  .grid-item {
    height: 200px;
  }
  .grid-item__horizontal {
    height: calc(200px / 2);
  }
  .grid-item__quarter {
    height: calc(200px / 2);
  }
}
@media (min-width: 525px) {
  .grid-item {
    height: 250px;
  }
  .grid-item__horizontal {
    height: calc(250px / 2);
  }
  .grid-item__quarter {
    height: calc(250px / 2);
  }
}
@media (min-width: 768px) {
  .grid-item {
    height: 350px;
  }
  .grid-item__horizontal {
    height: calc(350px / 2);
  }
  .grid-item__quarter {
    height: calc(350px / 2);
  }
}
@media (min-width: 992px) {
  .grid-item {
    height: 500px;
  }
  .grid-item__horizontal {
    height: calc(500px / 2);
  }
  .grid-item__quarter {
    height: calc(500px / 2);
  }
}
@media (min-width: 1200px) {
  .grid-item {
    height: 600px;
  }
  .grid-item__wrapper {
    top: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
    left: 0.5rem;
  }
  .grid-item__horizontal {
    height: calc(600px / 2);
  }
  .grid-item__quarter {
    height: calc(600px / 2);
  }
}
.grid-item__carousel-link {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.grid-item__column {
  display: flex;
  flex-wrap: wrap;
  width: 50%;
}
@media (min-width: 768px) {
  .gallery__modal--dialog {
    max-width: 575px;
  }
}
@media (min-width: 992px) {
  .gallery__modal--dialog {
    max-width: 768px;
  }
}
@media (min-width: 1200px) {
  .gallery__modal--dialog {
    max-width: 992px;
  }
}
.gallery__modal--close {
  position: absolute;
  top: .5rem;
  right: .5rem;
  color: #00d965;
  text-shadow: none;
  opacity: .75;
}
.gallery__modal--close:hover,
.gallery__modal--close:focus {
  outline: none;
  color:#ffffff !important;
}
.gallery__modal .modal-content {
  background:transparent;
  border: none;
  border-radius: 0;
}
.modal-backdrop {
  background: #1e2223;
}
.modal-backdrop.show {
  opacity: 0.75;
}
.gallery__modal .carousel-control-prev,
.gallery__modal .carousel-control-next {
  background: transparent;
  width: 2rem;
  color: #00d965 !important;
  opacity: 1;
  text-decoration: none !important;
}
.gallery__modal .carousel-control-prev:hover,
.gallery__modal .carousel-control-next:hover,
.gallery__modal .carousel-control-prev:focus,
.gallery__modal .carousel-control-next:focus {
  background: transparent;
  color: #ffffff !important;
  opacity: 1;
  outline:none !important;
}
.gallery__modal .carousel-control-prev {
  left: 0;
  right: unset;
}
.gallery__modal .carousel-control-next {
  left: unset;
  right: 0;
}