/* === Teams Lightbox === */
/* === LIGHTBOX BASE === */
:root {
/*
  --tm-media-width: 640px;   
  --tm-media-height: 360px;  
*/
	
	--tm-media-width: 900px;
--tm-media-height: 506px;
}

.tlb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}
/* === CONTENT WRAPPER === */
.tlb-content {
  position: relative;
  width: 80vw;
  max-width: 900px;
}

/* === VIDEO WRAPPER (CRITICAL FIX) === */
.tlb-video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
	background: #000f50;
}

/* iframe fills the wrapper */
.tlb-video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 6px;
}

/* === CLOSE BUTTON === */
.tlb-close {
  position: absolute;
  top: -14px;
  right: -14px;
  background: #ff2d55;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  line-height: 30px;
  text-align: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
}



.tm-media-box {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  color: #fff;
}

.tm-media-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
	justify-content: center;
}

.tm-media-tabs button {
  flex: 1;
  background: #00bbff;
  border: none;
  padding: 6px 9px;
  color: #000f50;
  cursor: pointer;
	border-radius: 36px;
    max-width: 120px;
}

.tm-media-tabs .active {
  background: #ec038a;
  color: #fff;
}

/*
.tm-media-view {
  position: relative;
  width: 100%;
  height: 300px; 
  background: #000;
  overflow: hidden;
}
*/

.tm-media-view {
  width: var(--tm-media-width);
  height: var(--tm-media-height);
  max-width: 100%;
  background: #000;
  position: relative;
  overflow: hidden;
	border-radius: 12px;
}

@media (max-width: 768px) {
  .tm-media-view {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}


.tm-media-track {
  display: none;
  width: 100%;
  height: 100%;
}

.tm-media-track.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tm-media-track img,
.tm-media-track iframe {
  width: 100%;
/*  height: 100%;*/
  display: block;
  border: none;
}

/* VIDEO TRACK MUST BE RELATIVE */
.tm-media-track.video {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ALL IFRAMES HIDDEN BY DEFAULT */
.tm-media-track.video iframe {
  display: none;
  width: 100%;
  height: 100%;
  border: none;
}

/* ONLY ACTIVE VIDEO SHOWN */
.tm-media-track.video iframe.active {
  display: block;
}

.tm-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  font-size: 28px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  z-index: 2;
}



.tm-arrow.left { left: 6px; }
.tm-arrow.right { right: 6px; }