/* ============================================================
   Olsen Video Testimonials — Gallery & Modal
   Colors: Primary #14223c | Accent #bba176
   ============================================================ */

/* ── Grid ── */
.olsen-vt-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Item ── */
.olsen-vt-item {
  cursor: pointer;
  transition: transform 0.3s ease;
}
.olsen-vt-item:hover {
  transform: translateY(-4px);
}

/* ── Thumbnail wrap ── */
.olsen-vt-thumb-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0a0a0a;
}
.olsen-vt-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease, transform 0.4s ease;
}
.olsen-vt-item:hover .olsen-vt-thumb-wrap img {
  opacity: 0.75;
  transform: scale(1.05);
}

/* ── Play Icon ── */
.olsen-vt-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.9;
  pointer-events: none;
}
.olsen-vt-item:hover .olsen-vt-play-icon {
  transform: translate(-50%, -50%) scale(1.15);
  opacity: 1;
}

/* ── Title ── */
.olsen-vt-title {
  margin: 12px 0 0 !important;
  font-family: 'Montserrat', 'Poppins', sans-serif !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: #14223c !important;
  text-align: center !important;
  line-height: 1.4 !important;
}

/* ============================================================
   MODAL
   ============================================================ */
.olsen-vt-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  align-items: center;
  justify-content: center;
}
.olsen-vt-modal.active {
  display: flex;
}

/* ── Overlay ── */
.olsen-vt-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.88);
  cursor: pointer;
}

/* ── Content ── */
.olsen-vt-modal-content {
  position: relative;
  width: 90%;
  max-width: 960px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ── Close ── */
.olsen-vt-modal-close {
  position: absolute;
  top: -48px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  transition: color 0.3s ease;
  z-index: 3;
}
.olsen-vt-modal-close:hover {
  color: #bba176;
}

/* ── Navigation ── */
.olsen-vt-modal-nav {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}
.olsen-vt-modal-nav:hover {
  background: #bba176;
  border-color: #bba176;
}

/* ── Video container ── */
.olsen-vt-modal-video {
  flex: 1;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}
.olsen-vt-modal-video iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* ── Modal title ── */
.olsen-vt-modal-title {
  position: absolute;
  bottom: -40px;
  left: 64px;
  right: 64px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7) !important;
  font-family: 'Montserrat', 'Poppins', sans-serif !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  margin: 0 !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .olsen-vt-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .olsen-vt-gallery {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .olsen-vt-modal-content {
    width: 95%;
    gap: 8px;
  }
  .olsen-vt-modal-nav {
    width: 36px;
    height: 36px;
  }
  .olsen-vt-modal-nav svg {
    width: 18px;
    height: 18px;
  }
  .olsen-vt-modal-close {
    top: -40px;
    font-size: 28px;
  }
  .olsen-vt-modal-title {
    left: 44px;
    right: 44px;
    font-size: 0.78rem !important;
  }
}
