.gallery-modal {
  .modal-xl {
    width: 100%;
    max-width: none;
    margin: 0 auto;
  }

  .modal-content {
    border-radius: 0;
    border: none;
  }

  .modal-body {
    height: 100vh;
    padding: 0;
  }
  figcaption{
    font-size: 1rem;
    font-weight: bold;
    color: $primary2;
    text-align: center;
    @include media-breakpoint-up(sm) {
      font-size: 2rem;
    }
  }
}

.gallery {
  .row{
    >div{
      &:last-child{
        padding-left: 0;
      }
    }
  }
  .btn-toggle {
    svg {
      color: $black;
      width: 50px;
      @include transition(color 0.3s cubic-bezier(0.77, 0.2, 0.05, 1.0));
    }

    &:hover {
      svg {
        color: $primary;
      }
    }
  }

  .heading {
    display: inline-block;
    text-transform: uppercase;
    margin-right: $size-medium;
    font-size: 2rem;
  }

  .carousel-item{
    overflow: hidden;
  }
  img.gallery-item-large{
    max-width: 100%;
    max-height: 85vh;
    margin: auto;
    display: block;
  }
}

.masonry-item{
  overflow: hidden;
  background-color: $primary2;
  &.active{
    img{
      opacity: .7;
    }
  }
}

.masonry-grid {
  margin-left: -$size-small;
  width: auto;
}
.masonry-grid_column {
  padding-left: $size-small;
  background-clip: padding-box;
}

.masonry-grid_column > div {
  margin-bottom: $size-small;
}

.full-gallery{
  .masonry-grid {
    margin-left: 0;
  }
}

.full-gallery,
.gallery{
  img.gallery-item-thumb{
    width: 100%;
  }
}