.wac-photo-video-gallery {
  width: 100%;
  /* max-width: 1200px; */
  margin-left: auto;
  margin-right: auto;
}

.tabs-title {
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.tabs-title .h2 { 
    font-size: 32px;
    color: #000;
    font-weight: 400;
}

.tabs {
  display: flex;
  gap: 20px;
  align-items: center;
}

.tab-btn {
  background: none;
  border: none;
  padding: 5px 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 400;
  color: #676767;
  letter-spacing: 0px !important;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}

.tab-btn.active {
  color: #000;
  border-color: #41958B;
  text-shadow: 0px 0px 1px #000;
}

.wac-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 20px 0;
}

.wac-gallery .gallery-item {
  overflow: hidden;
  position: relative;
}
.wac-gallery .gallery-item .video-icon{
    position: absolute;
    width: 60px;
    height: 60px;
    z-index: 10;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
@media only screen and (max-height: 767.98px){
  .wac-gallery .gallery-item .video-icon{
    width: 40px;
    height: 40px;
  }
}

.wac-gallery .gallery-item:before {
  content: "";
  display: block;
  position: static;
  width: 100%;
  padding-top: calc(420 / 420 * 100%);
}

.wac-gallery .gallery-item img,
.wac-gallery .gallery-item video {
  width: 100%;
  height: 100%;
  cursor: pointer;
  object-fit: cover;
  transition: transform 0.3s ease-in;
  position: absolute;
  top: 0;
  left: 0;
}

.wac-gallery .gallery-item img:hover,
.wac-gallery .gallery-item video:hover {
  transform: scale(1.02);
}

.hidden {
  display: none;
}

.popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 9999;
  padding: 40px 15px;
}

.popup.active {
  visibility: visible;
  opacity: 1;
}

.popup-content {
  position: relative;
  width: 100%;
  max-width: 1000px;
}

.popup-content:before {
  content: "";
  display: block;
  position: static;
  width: 100%;
  padding-top: calc(800 / 1200 * 100%);
}

.popup-content img,
.popup-content video {
  width: 100%;
  height: 100%;
  cursor: pointer;
  object-fit: cover;
  transition: transform 0.3s ease-in;
  position: absolute;
  top: 0;
  left: 0;


}

.popup-close,
.popup-nav {
  position: absolute;
  z-index: 99999;
  top: 50%;
  transform: translateY(-50%);
  color: #000;
  background: rgba(255, 255, 255, 0.7);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media only screen and (max-width: 1199.98px){
  .popup-close{
    z-index: 1;
    pointer-events: none;
  }
}

.popup-close:hover,
.popup-nav:hover {
  background: rgba(255, 255, 255, 1);
}


button.popup-close {
  top: -60px;
  right: 0px;
  transform: none;
  z-index: 99;
  font-size: 18px;
}

.popup-nav.prev {
  left: 10px;
}

.popup-nav.next {
  right: 10px;
}

@media (max-width: 767px) {
  .tabs-title {
    flex-wrap: wrap;
  }
  .tabs-title .h2 {
     width: 100%;
  }
  .tab-btn { 
    font-size: 15px; 
  }
}

@media (min-width: 767px) {

  .wac-gallery {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1200px) {
  .tabs-title{
    align-items: center;
    margin-block: 50px 40px;
  }
  .tabs-title .h2 { 
      font-size:48px; 
      margin: 0;
  }

  .wac-gallery {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .popup-nav.prev {
    left: -60px;
  }

  .popup-nav.next {
    right: -60px;
  }

  .popup-close {
    top: -40px;
    right: -40px;
  }

  .popup {
    padding: 40px 40px;
  }
}