/* Frontend gallery UI */
.vhg-gallery {
  width: 100%;
}

.vhg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .vhg-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .vhg-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* #e-n-tab-content-17249135942 {
  padding-left: 0px !important;
  padding-right: 0px !important;
} */

.vhg-item {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.vhg-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
}

.vhg-item:hover,
.vhg-item:focus {
  background-color: transparent !important;
  outline: none;
}

.vhg-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vhg-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgb(255 255 255 / 62%);
  /* backdrop-filter: blur(4px); */
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);



}

.vhg-play::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 20px solid #4a2f1d;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 6px;
}

@keyframes vhg-pulse-wave {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.vhg-item:hover .vhg-play {
  transform: translate(-50%, -50%) scale(1.15);
  background: rgba(255, 255, 255, 0.95);
  animation: vhg-pulse-wave 1.5s infinite;
}

.vhg-item:hover .vhg-caption-overlay,
.vhg-caption-overlay:hover {
  /* background-color: #4e4e4e !important; */
  color: #fff !important;
}

.vhg-caption-overlay {
  position: absolute;
  /* left: 10px; */
  /* right: 10px; */
  bottom: 0px;
  /* background: #4e4e4e; */
  background: rgba(74, 74, 74, 0.92);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 12px;
  line-height: 1.2;
  width: 100%;
  text-align: center;
  text-transform: capitalize;
}

/* .vhg-caption-overlay {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 12px;
  line-height: 1.2;
} */

.vhg-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
}

.vhg-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.vhg-dot.is-active {
  background: #1a73e8;
}

.vhg-dot:focus {
  outline: none;
}

/* Modal */
.vhg-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: none;
  z-index: 999999;
}

.vhg-modal.is-open {
  display: block;
}

.vhg-modal-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vw;
  box-sizing: border-box;
}

.vhg-modal-content {
  position: relative;
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  z-index: 10;
}

@media (min-aspect-ratio: 16/9) {
  .vhg-modal-content {
    width: calc(85vh * 16 / 9);
  }
}

.vhg-modal-close {
  position: absolute;
  top: -28px;
  right: -28px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 0 !important;
  box-sizing: border-box;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.vhg-modal-close:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  border-color: #fff;
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.4);
}

.vhg-modal-close::before {
  content: '×';
  display: block;
  font-size: 38px;
  line-height: 1;
  font-weight: 300;
}

.vhg-modal-close:focus {
  outline: none;
}

@media (max-width: 1200px) {
  .vhg-modal-close {
    top: -20px;
    right: -20px;
    width: 48px;
    height: 48px;
  }

  .vhg-modal-close::before {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .vhg-modal-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-width: 1.5px;
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  }

  .vhg-modal-close::before {
    font-size: 28px;
  }

  .vhg-modal-close:hover {
    transform: rotate(90deg);
  }
}

.vhg-open-youtube {
  position: absolute;
  top: 16px;
  left: 16px;
  border: 0;
  background: rgba(26, 115, 232, 0.92);
  color: #fff;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  z-index: 6;
  display: none;
}

.vhg-open-youtube:focus {
  outline: none;
}

.vhg-modal-video {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.vhg-modal-video iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}