/* -------------------------------- 

File#: _2_modal-video
Title: Modal Video
Descr: A modal window used to display a responsive video
Usage: codyhouse.co/license

-------------------------------- */


/* variables */
:root {
  /* colors */
  --md3-color-primary-hsl: 250, 84%, 54%;
  --md3-color-bg-hsl: 0, 0%, 100%;
  --md3-color-contrast-high-hsl: 230, 7%, 23%;
  --md3-color-contrast-higher-hsl: 230, 13%, 9%;
  --md3-color-black-hsl: 230, 13%, 9%;
  --md3-color-bg-dark-hsl: 240, 4%, 95%;
  --md3-color-white-hsl: 0, 0%, 100%;
  --md3-color-primary-darker-hsl: 250, 84%, 38%;
  --md3-color-primary-light-hsl: 250, 84%, 60%;

  /* spacing */
  --md3-space-md: 1.25rem;
  --md3-space-sm: 0.75rem;
  --md3-space-2xs: 0.375rem;
}

@media(min-width: 64rem){
  :root {
    /* spacing */
    --md3-space-md: 2rem;
    --md3-space-sm: 1.125rem;
    --md3-space-2xs: 0.5625rem;
  }
}

/* buttons */
.md3-btn {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 1em;
  white-space: nowrap;
  text-decoration: none;
  background: hsl(var(--md3-color-bg-dark-hsl));
  color: hsl(var(--md3-color-contrast-higher-hsl));
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: all 0.2s ease;
  will-change: transform;
  padding: var(--md3-space-2xs) var(--md3-space-sm);
  border-radius: 0.25em;
}

.md3-btn:focus-visible {
  box-shadow: 0px 0px 0px 2px hsl(var(--md3-color-bg-hsl)), 0px 0px 0px 4px hsla(var(--md3-color-contrast-higher-hsl), 0.15);
  outline: none;
}

.md3-btn:active {
  transform: translateY(2px);
}

.md3-btn--primary {
  background: hsl(var(--md3-color-primary-hsl));
  color: hsl(var(--md3-color-white-hsl));
  box-shadow: inset 0px 1px 0px hsla(var(--md3-color-white-hsl), 0.15), 0px 1px 3px hsla(var(--md3-color-primary-darker-hsl), 0.25), 0px 2px 6px hsla(var(--md3-color-primary-darker-hsl), 0.1), 0px 6px 10px -2px hsla(var(--md3-color-primary-darker-hsl), 0.25);
}

.md3-btn--primary:hover {
  background: hsl(var(--md3-color-primary-light-hsl));
  box-shadow: inset 0px 1px 0px hsla(var(--md3-color-white-hsl), 0.15), 0px 1px 2px hsla(var(--md3-color-primary-darker-hsl), 0.25), 0px 1px 4px hsla(var(--md3-color-primary-darker-hsl), 0.1), 0px 3px 6px -2px hsla(var(--md3-color-primary-darker-hsl), 0.25);
}

.md3-btn--primary:focus {
  box-shadow: inset 0px 1px 0px hsla(var(--md3-color-white-hsl), 0.15), 0px 1px 2px hsla(var(--md3-color-primary-darker-hsl), 0.25), 0px 1px 4px hsla(var(--md3-color-primary-darker-hsl), 0.1), 0px 3px 6px -2px hsla(var(--md3-color-primary-darker-hsl), 0.25), 0px 0px 0px 2px hsl(var(--md3-color-bg-hsl)), 0px 0px 0px 4px hsl(var(--md3-color-primary-hsl));
}

/* icons */
.md3-icon {
  height: var(--md3-size, 1em);
  width: var(--md3-size, 1em);
  display: inline-block;
  color: inherit;
  fill: currentColor;
  line-height: 1;
  flex-shrink: 0;
  max-width: initial;
}

.md3-icon--sm {
  --md3-size: 24px;
}

.md3-icon--lg {
  --md3-size: 48px;
}

.md3-icon--is-spinning {
  animation: md3-icon-spin 1s infinite linear;
}

@keyframes md3-icon-spin {
  0% {
  transform: rotate(0deg);
}
  100% {
  transform: rotate(360deg);
}
}

/* component */


/* utility classes */
.md3-color-bg {
  --md3-color-o: 1;
  color: hsla(var(--md3-color-bg-hsl), var(--md3-color-o, 1));
}

:where(.md3-media-wrapper-16\:9) {
  position: relative;
  height: 0;
}

.md3-media-wrapper-16\:9 {
  padding-bottom: 56.25%;
}

.md3-media-wrapper-16\:9 > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.md3-media-wrapper-16\:9 > *:not(iframe) {
  object-fit: cover;
}

.md3-sr-only {
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  padding: 0;
  border: 0;
  white-space: nowrap;
}

.md3-shadow-md {
  box-shadow:0 0.9px 1.5px rgba(0, 0, 0, 0.03),0 3.1px 5.5px rgba(0, 0, 0, 0.08),0 14px 25px rgba(0, 0, 0, 0.12);
}

.md3-overflow-auto {
  overflow: auto;
}

.md3-max-height-100\% {
  max-height: 100%;
}

.md3-max-width-md {
  max-width: 64rem;
}

.md3-width-100\% {
  width: 100%;
}

.md3-padding-x-md {
  padding-left: var(--md3-space-md);
  padding-right: var(--md3-space-md);
}

.md3-bg-black {
  --md3-bg-o: 1;
  background-color: hsla(var(--md3-color-black-hsl), var(--md3-bg-o, 1));
}

.md3-flex-center {
  justify-content: center;
  align-items: center;
}

.md3-flex {
  display: flex;
}

.md3-bg-opacity-90\% {
  --md3-bg-o: 0.9;
}

.video_button_outer {
  display: flex;
  width: 100%;
  text-decoration: none;
  color: inherit;
  padding: var(--sp-mm);
  background-color: white;
  box-shadow: inset 0 0 0.5px 1px hsla(0, 0%, 100%, 0.075),0 0.3px 0.4px rgba(0, 0, 0, 0.025), 0 0.9px 1.5px rgba(0, 0, 0, 0.05), 0 3.5px 6px rgba(0, 0, 0, 0.1);
  border-radius: 0.25em;
  transition: .3s;
  justify-content: space-between;
  align-items: center;
  margin:var(--sp-m) 0px;
}

.video_button_outer:hover {
  box-shadow: inset 0 0 0.5px 1px hsla(0, 0%, 100%, 0.075), 0 0.9px 1.5px rgba(0, 0, 0, 0.03), 0 3.1px 5.5px rgba(0, 0, 0, 0.08), 0 14px 25px rgba(0, 0, 0, 0.12);
}

.video_button_outer:hover .video_text_title {
  color: #4279BC;
}

.video_button_outer:hover .video_svg svg path {
  fill: #4279BC;
}

.video_text_outer {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.video_text_title {
  font-size: var(--text-size-200);
  transition: .3s;
}

.video_text_time {
  font-size: var(--text-size-100);
  color: grey;
}

.video_svg svg {
  width: 35px;
  height: auto;
}

.video_svg svg path {
  transition: .3s;
}