.toga-gallery-filter {
  width: 100%;
}

.toga-gallery-filter ul,
.toga-gallery-filter ul li {
  text-align: center;
}

.toga-gallery-filter ul {
  margin: 0 0 30px 0;
  padding: 0;
  text-align: center;
}

.toga-gallery-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-flow: row wrap;
  padding: 0;
  margin: 0;
}

.toga-gallery-filter ul li {
  list-style: none;
  display: inline-block;
  text-align: center;
  padding: 6px 13px;
  font-size: 14px;
  line-height: 1.3;
  cursor: pointer;
  margin: 0 5px;
  font-weight: bold;
  transition: all 0.4s ease;
}

.toga-gallery-filter ul li a.control {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 10px 25px;
  margin: 10px 6px;
}

.toga-gallery-filter ul li.filter.active {
  background-color: #19d0d6;
  color: #fff;
}

a.toga-gallery-load-more,
a.toga-gallery-load-more:hover {
  text-decoration: none;
}

.mfp-wrap ~ div.dialog-widget {
  display: none !important;
}

.toga-gallery-wrapper .toga-gallery-container {
  display: flex;
  flex-wrap: wrap;
  margin: -5px;
}

.toga-columns-2 .toga-gallery-item-wrap {
  width: 50%;
}

.toga-columns-3 .toga-gallery-item-wrap {
  width: 33.3333%;
}

.toga-columns-4 .toga-gallery-item-wrap {
  width: 25%;
}

.toga-columns-5 .toga-gallery-item-wrap {
  width: 20%;
}

.toga-columns-6 .toga-gallery-item-wrap {
  width: 16%;
}

.toga-columns-7 .toga-gallery-item-wrap {
  width: 14.22%;
}

.toga-gallery-item {
  position: relative;
  overflow: hidden;
  margin: 5px;
}

.toga-gallery-item-wrap.caption-style-hoverer .gallery-item-caption-wrap {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  visibility: hidden;
  opacity: 0;
  transition: 0.4s all ease;
}

.toga-gallery-item-wrap.caption-style-hoverer:hover .gallery-item-caption-wrap {
  opacity: 1;
  visibility: visible;
}

.toga-gallery-item-wrap .toga-gallery-item .gallery-item-thumbnail-wrap > img {
  -o-object-fit: cover;
  object-fit: cover;
  transition: all 1.5s ease;
}

.toga-gallery-container[data-layout="grid"]
  .toga-gallery-item-wrap
  .toga-gallery-item
  .gallery-item-thumbnail-wrap
  > img {
  height: 100%;
  width: 100%;
}

/*-- Gallery content --*/
.fg-item-title,
.fg-item-content {
  color: #fff;
}

.fg-item-title {
  font-weight: 500;
}

.fg-item-content {
  font-size: 0.9rem;
}

.toga-gallery-item.js-tilt {
  transform-style: preserve-3d;
}

.toga-gallery-item.js-tilt .gallery-item-caption-wrap {
  transform: translateZ(80px) scale(0.92);
}

.gallery-item-buttons > a {
  display: inline-block;
  font-size: 16px;
  color: #000;
  margin-right: 10px;
}

.gallery-item-buttons > a:last-child {
  margin-right: 0;
}

.gallery-item-buttons > a:visited {
  color: #000;
}

/*-- Item hover --*/
.gallery-item-thumbnail-wrap .gallery-item-hoverer-bg {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  content: "";
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
  transition: all 0.4s ease;
  opacity: 0;
}

.toga-gallery-item-wrap.caption-style-hoverer:hover .gallery-item-hoverer-bg {
  opacity: 1;
  z-index: 2;
}

.toga-gallery-item:hover .gallery-item-thumbnail-wrap > img {
  transform: scale(1.2);
}

.toga-gallery-item-wrap.caption-style-hoverer .fg-item-title,
.toga-gallery-item-wrap.caption-style-hoverer .fg-item-content,
.toga-gallery-item-wrap.caption-style-hoverer .gallery-item-buttons > a {
  transition: 0.4s all ease-in-out;
  opacity: 0;
}

.toga-gallery-item-wrap.caption-style-hoverer .fg-item-title,
.toga-gallery-item-wrap.caption-style-hoverer .fg-item-content,
.toga-gallery-item-wrap.caption-style-hoverer .gallery-item-buttons > a {
  transform: translateY(25px);
}

.toga-gallery-item-wrap.caption-style-hoverer:hover .fg-item-title,
.toga-gallery-item-wrap.caption-style-hoverer:hover .gallery-item-buttons > a,
.toga-gallery-item-wrap.caption-style-hoverer:hover .fg-item-content {
  opacity: 1;
  transform: translateY(0);
}

.toga-gallery-item-wrap.caption-style-hoverer .fg-item-title + .fg-item-content,
.toga-gallery-item-wrap.caption-style-hoverer
  .fg-item-title
  + .gallery-item-buttons
  > a {
  transition-delay: 0.15s;
}

.toga-gallery-item-wrap.caption-style-hoverer
  .fg-item-title
  + .fg-item-content
  + .gallery-item-buttons
  > a {
  transition-delay: 0.3s;
}

.gallery-item-caption-wrap .gallery-item-buttons > a span {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  outline: none;
  text-decoration: none;
  text-align: center;
  transition: all 0.4s ease;
}

.gallery-item-caption-wrap .gallery-item-buttons > a span:hover {
  transform: scale(1.2);
}

/*-- Video Gallery --*/
.gallery-item-thumbnail-wrap {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.video-popup,
.video-popup-bg {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
}

.video-popup > i {
  position: relative;
  z-index: 999;
  transition: all 0.3s ease;
  transition-delay: 0.2s;
  transform: scale(0);
  color: #fff;
  font-size: 25px;
  visibility: hidden;
  opacity: 0;
}

.video-popup {
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-popup:hover > i {
  transform: scale(1);
  visibility: visible;
  opacity: 1;
}

.video-popup-bg {
  visibility: hidden;
  opacity: 0;
  transition: all 0.35s ease;
}

.toga-gallery-item:hover .video-popup-bg {
  visibility: visible;
  opacity: 1;
}

.gallery-item-caption-wrap .gallery-item-buttons > a > i {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

@media only screen and (max-width: 767px) {
  .toga-gallery-wrapper .toga-gallery-container {
    display: block;
  }
  .toga-gallery-item-wrap {
    width: 100% !important;
  }
}

.fg-caption-head {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 35px 35px;
  z-index: 3;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.fg-item-category > span {
  font-size: 12px;
  color: #fff;
  background: #fa9196;
  padding: 10px 12px;
  display: inline-block;
}

.fg-item-category {
  position: absolute;
  left: 0;
  top: 0;
  text-align: center;
  width: 100%;
  height: 30px;
  margin-top: -15px;
  z-index: 11;
}

.fg-item-category span {
  border-radius: 5px;
  line-height: 1;
  visibility: hidden;
  opacity: 0;
  transition: 300ms;
}
