.vimeo-modal-trigger.thumbnail {
  position: relative;
  cursor: pointer;
  &::before {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: url(/sites/jazzpharmaceuticals/themes/jazztheme/images/wistia-play-icon.svg) center center no-repeat;
    background-size: contain;
    z-index: 10;
  }
  &::after {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #7D1761;
    z-index: -1;
  }
  img {
    transition: opacity 300ms ease;
    max-width: 100%;
    height: auto;
  }
  &:hover {
    img {
      opacity: 0.82;
    }
  }
  &.rectangle-play {
    &::before {
      width: 110px;
      height: 80px;
      background: url(/sites/jazzpharmaceuticals/themes/jazztheme/images/simple-play-icon.svg) center center no-repeat;
      background-size: contain;
      z-index: 11;
    }
    &::after {
      content: '';
      display: block;
      position: absolute;
      transform: scale(.275, .275);
      z-index: 10;
      background: rgba(125, 23, 97, 0.76);
      transition: transform 300ms ease, background 300ms ease;
    }
    img {
      transition: opacity 300ms ease;
    }
    &:hover {
      img {
        opacity: 1;
      }
      &::after {
        transform: scale(1,1);
        background: rgba(100, 18, 80, 0.6);
      }
    }
    &.portrait {
      &::before {
        width: 60px;
        height: 50px;
      }
      &::after {
        transform: scale(.25, .09);
      }
    }
    &.rectangle-play-blue {
      &::after {
        background: rgba(84, 187, 255, 0.8);
      }
      &:hover {
        &::after {
          background: rgba(27, 167, 225, 0.8);
        }
      }
    }
  }
  &.round-play {
    &::before {
      width: 80px;
      height: 80px;
      background: url(/sites/jazzcares/themes/jazzcarestheme/images/pau/simple-play-icon.svg) center center no-repeat;
      background-color: #b3b3b3;
      background-size: 130px;
      border-radius: 45px;
      z-index: 11;
    }
    &::after {
      content: '';
      display: block;
      position: absolute;
      transform: scale(.025, .025);
      z-index: 10;
      background: rgba(0, 0, 0, 0.01);
      transition: transform 300ms ease, background 300ms ease;
    }
    img {
      transition: opacity 300ms ease;
    }
    &:hover {
      img {
        opacity: 1;
      }
      &::after {
        transform: scale(1,1);
        background: rgba(0, 0, 0, 0.2);
      }
    }
    &.portrait {
      &::before {
        width: 60px;
        height: 50px;
      }
      &::after {
        transform: scale(.25, .09);
      }
    }
    &.rectangle-play-blue {
      &::after {
        background: rgba(84, 187, 255, 0.8);
      }
      &:hover {
        &::after {
          background: rgba(27, 167, 225, 0.8);
        }
      }
    }
  }
}
@media (max-width:768px) {
  .vimeo-modal-trigger.thumbnail {
    &.rectangle-play {
      &::before {
        width: 80px;
      }
    }
  }
}

.embed-responsive-16x9 .vimeo-modal-trigger.thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  cursor: pointer;
}

.popup-wrapper {
	display: none;
	z-index: 1000;
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
}
.popup-wrapper.popup-open {
	display: block;
}
.popup-bg {
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	background: rgba(0, 0, 0, .75);
}
.popup {
	position: absolute;
	overflow: auto;
	background: #fff;
}
.popup .close {
	position: absolute;
	right: 8px;
	top: 8px;
	width: 20px;
	height: 20px;
	cursor: pointer;
}
.popup .close:before, .popup .close:after {
	content: "";
	position: absolute;
	left: 50%;
	top: 0;
	width: 2px;
	height: 20px;
	background: #7d1761;
}
.popup .close:before {
	transform: rotate(45deg);
}
.popup .close:after {
	transform: rotate(-45deg);
}
.popup .close:hover:before, .popup .close:hover:after {
	background: #000;
}
.popup .inner {
	padding: 34px;
}
.popup:before {
	display: block;
	content: '';
	width: 100%;
	height: 9px;
	background: -moz-linear-gradient(left, #071b6b 0%, #5a6ec7 40%, #a73440 75%, #f6ce46 100%);
	background: -webkit-linear-gradient(left, #071b6b 0%, #5a6ec7 40%, #a73440 75%, #f6ce46 100%);
	background: linear-gradient(to right, #071b6b 0%, #5a6ec7 40%, #a73440 75%, #f6ce46 100%);
}
@media (min-width: 769px) {
	.popup {
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);
		width: 700px;
		max-height: 90%;
	}
	.popup .leadership-list .pic {
		margin-bottom: 24px;
	}
	.popup .md-flex-container > div:not(:first-child) {
		padding-left: 40px;
	}
}
@media (max-width: 768px) {
	.popup { /*Time: new rules of 21.06.24*/
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);
		width: 90%;
		height: fit-content;
		max-width: 90vw;
		max-height: 90vh;
	}
}

#vimeoVideoModal.popup-wrapper {
  .popup {
    width: calc(95% - 150px);
    overflow: visible;
    max-width: calc(70vh*16/9);
    &:before {
      display: none;
    }
    .close {
      top: 0;
      right: -30px;
      color: #fff;
      &:before,
      &:after {
        background: #fff;
      }
    }
    .inner {
      padding: 20px;
    }
    .video {
      background: #fff;
      aspect-ratio: 16/9;
      iframe {
        width: 100%;
        height: 100%;
      }
    }
    .caption {
      padding: 0 20px 0;
      font-size: 14px;
      line-height: 1.142;
    }
  }
  &.portrait {
    .popup {
      width: calc(0.5625 * 90vh);
    }
    .video {
      aspect-ratio: 0.5625;
      max-height: 90vh;
    }
  }
  &.borderless {
    .popup {
      background: transparent;
    }
    .inner {
      padding: 0;
    }
    .video {
      background: transparent;
    }
    .caption {
      padding: 0;
    }
  }
}

@media (max-width:768px) {
  #vimeoVideoModal.popup-wrapper {
    .popup {
      width: calc(100% - 30px);
      left: 50%;
      transform: translate(-50%, -50%);
      .close {
        top: -30px;
        right: 0;
      }
    }
    &.portrait {
      .popup {
        width: calc(0.5625 * 85vh);
      }
      .video {
        max-height: 85vh;
      }
    }
  }
}



.pioneering-pathways .vimeo-modal-trigger {
  cursor: pointer;
  font-size: calc(28vw/16.54);
  color: #852166;
  cursor: pointer;
  transition: .25s ease-in-out;
  text-transform: uppercase;
  font-weight: 700 !important;
}
