.brnd-lightbox-galleries-grid {
  text-align: center;
}

.brnd-lightbox-galleries-grid-item-wrap {
  width: 460px;
  max-width: calc(90vw - 60px);
  height: 460px;
  max-height: calc(90vh - 60px);
  margin: 30px;
  display: inline-block;
  vertical-align: top;
  position: relative;
    background-size: cover;
}

.brnd-lightbox-galleries-grid-item-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border: solid 1px transparent;
  background: rgba(0, 0, 0, 0.7);
  transition: border-color 300ms ease-in-out;
}

.brnd-lightbox-galleries-grid-item-content:hover {
  border-color: white
}

.brnd-lightbox-galleries-grid-item-text {
  cursor: pointer;
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  padding: 0 60px;
  color: white;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 300ms ease-in-out;
}

.brnd-lightbox-galleries-grid-item-description {
  font-family: "Alef", Sans-serif;
  font-size: 16px;
  font-weight: 100;
  line-height: 20px;
  opacity: 0;
}

.brnd-lightbox-galleries-grid-item-title {
  font-family: "Montserrat", Sans-serif;
  font-size: 24px;
  font-weight: 300;
  opacity: 1;
}

.brnd-lightbox-galleries-grid-item-content:hover .brnd-lightbox-galleries-grid-item-description {
  opacity: 1;
}

.brnd-lightbox-galleries-grid-item-content:hover .brnd-lightbox-galleries-grid-item-title {
  opacity: 0;
}

.brnd-lightbox-galleries-grid-overlay {
  position: fixed;
  background: rgba(0, 0, 0, 0.85);
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0;
  z-index: -999999;
  transition: opacity 300ms ease-in-out 0ms;
}

.brnd-lightbox-galleries-grid-overlay.active {
  opacity: 1;
  z-index: 999999;
  transition: opacity 300ms ease-in-out 0ms, z-index 0ms linear 305ms;
}

.brnd-lightbox-galleries-grid-lightbox-close {
  position: absolute;
  z-index: 999999;
  font-size: 30px;
  top: 1em;
  right: 1em;
  color: white;
  cursor: pointer;
}
.brnd-lightbox-galleries-grid-lightbox-pagination {
  position: absolute;
  z-index: 999999;
  font-size: 40px;
  width: 50px;
  top: 0;
  bottom: 0;
  margin: auto;
  color: white;
  cursor: pointer;
}
.brnd-lightbox-galleries-grid-lightbox-pagination::before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  height: 100%;
}
.brnd-lightbox-galleries-grid-lightbox-pagination.next {
  left: 40px;
}
.brnd-lightbox-galleries-grid-lightbox-pagination.prev {
  right: 40px;
}
.brnd-lightbox-galleries-grid-lightbox-gallery {
  margin: auto
}
.brnd-lightbox-galleries-grid-lightbox-gallery-img {
  position: absolute;
  height: 90vh;
  top: 5vh;
  width: 90vw;
  right: 5vw;
  margin: auto;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0;
  transition: opacity 300ms ease-in-out;
}
.brnd-lightbox-galleries-grid-lightbox-gallery-img.active {
  opacity: 1;
}