/* Wrapper */
.vgp-gallery {
  box-sizing: border-box;
}

/* Active pane layout */
.vgp-gallery .tab-pane {
  display: none;
  min-height: 315px;
  position: relative;
}
.vgp-gallery .tab-pane.show {
  display: block;
}
.vgp-gallery .tab-pane .tab-pane-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr; /* text | video */
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 991px) {
  .vgp-gallery .tab-pane .tab-pane-inner {
    grid-template-columns: 1fr;
  }
}

/* Title + description */
.tab-pane-title {
    width: 50%;
    background-color: rgb(0, 220, 171);
    height: 60px;
    position: absolute;
    left: 0px;
    top: 0px;
    z-index: 2;
    color: rgb(255, 255, 255);
    display: block;
    padding: 5px;
    margin: 60px 0px 0px;
}

.vgp-gallery .tab-pane-title h4 {
    display: inline-block;
    vertical-align: middle;
    line-height: 50px;
    font-size: 24px;
    color: #262626;
}
.tab-pane-description {
    width: 40%;
    background-color: rgb(18, 196, 235);
    height: 100%;
    position: absolute;
    left: 0px;
    top: 0px;
    z-index: 1;
    overflow: hidden;
}
.vgp-gallery .tab-pane-description p {
  color: rgb(255, 255, 255);
    padding: 10px;
    margin: 140px 0px 0px;
    overflow: hidden;
    position: absolute;
}
.vgp-gallery .more-about-video {
position: absolute;
    bottom: 0px;
    left: 0px;
    text-align: center;
    max-width: 80px;
    background-color: rgb(238, 238, 238);
    display: block;
    min-width: 60px;
    height: 50px;
    vertical-align: middle;
    line-height: 65px;
    padding: 0px;
    margin: 0px;
}
.hvr-forward {
    display: inline-block;
    vertical-align: middle;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    -webkit-transition-duration: .3s;
    transition-duration: .3s;
    -webkit-transition-property: transform;
    transition-property: transform;
}
.hvr-forward:hover, .hvr-forward:active, .hvr-forward:focus {
    -webkit-transform: translateX(8px);
    transform: translateX(8px);
}
.vgp-gallery .more-about-video .more-icon {
  display: inline-block;
  transform: translateY(1px);
}

/* Responsive embed (21:9) */
.embed-responsive {
    position: relative;
    display: block;
    width: 100%;
    min-height: 315px;
    width: 60%;
    display: inline-block;
    text-align: right;
    float: right;
}
.embed-responsive-21by9::before {
  display: block;
  padding-top: calc(100% * 9 / 21);
  content: "";
}
.embed-responsive > iframe,
.embed-responsive > video {
  position: absolute;
  top: 0; left: 0;
  bottom: 0; right: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Thumbnails row */
.vgp-thumbs {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
}

@media (max-width: 991px) {
  .vgp-thumbs {
    grid-template-columns: repeat(2, 1fr);
  }
}

.vgp-thumbs .nav-item {
  padding: 0;
}

.vgp-thumbs .nav-link {
  position: relative;
  display: block;
  padding: 0;
  border-radius: .25rem;
  overflow: hidden;
  border: 2px solid transparent;
  height:100%;
}

.vgp-thumbs .nav-link.active {
  border-color: #12C4EB; /* highlight active */
}

.vgp-thumbs .nav-link .overlay-play-icon {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.0) 0%, rgba(0,0,0,.35) 100%);
  pointer-events: none;
}

.vgp-thumbs img.img-fluid {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Fallback thumb when missing image */
.vgp-thumb-fallback {
  display: grid;
  place-items: center;
  min-height: 120px;
  background: #f3f5f7;
  color: #555;
  font-weight: 600;
  padding: .75rem;
  text-align: center;
}
