/*
	Abstracts are helpers, variables and functions
	for scss compliation.
*/
/*
	@TODO: Add to theme: new division fix for updated sass package.
*/
/**==================================================================================================================================
BREAKPOINT
@TODO: remove? What is use case?? either use simple global points or write custom line. why does first breakpoint have to be 0?
 ==================================================================================================================================*/
/**==================================================================================================================================
BREAKPOINT ENDS
==================================================================================================================================*/
span.edit-link {
  display: inline-block;
  background-color: yellow;
  font-weight: 700;
  position: fixed;
  left: 0;
  bottom: 3.125rem;
  transform: translateX(-45px);
  transition: all 0.2s;
}

span.edit-link a {
  display: block;
  padding: 0.9375rem;
}

span.edit-link:hover {
  transform: translateX(0);
}

/*
	Variables for compliation
	NB! Colors should be added to base/config file as css root variable.
*/
/**
 * Block section background colors.
 * Include the background options ACF fields group to use these.
 */
/*
 * makes ul/ol as a dropdown select (normaly in mobile)
 * Structure: div > title > list > li > a
*/
/*
	Variables for legacy dc plugins
*/
section.live-stream .live-stream-header-wrapper {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}

section.live-stream .live-stream-header-wrapper__title {
  margin-bottom: 1.5625rem;
  grid-column: 1/-1;
}

@media screen and (min-width: 1000px) {
  section.live-stream .live-stream-header-wrapper__title {
    grid-column: 1/span 5;
  }
}
section.live-stream .live-stream-main {
  position: relative;
  z-index: 10;
  border-radius: 0.625rem;
  overflow: hidden;
}

section.live-stream .live-stream-main[data-show-live-stream=true] .live-stream-thumbnail {
  display: none;
}

section.live-stream .live-stream-main[data-show-live-stream=true] .live-stream-wrapper {
  display: block;
}

section.live-stream .live-stream-thumbnail {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5625rem;
  position: relative;
  background-color: black;
  aspect-ratio: 16/9;
}

section.live-stream .live-stream-thumbnail:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.5;
  background: linear-gradient(180deg, transparent 0%, var(--color__gray) 100%);
}

section.live-stream .live-stream-thumbnail__live-indicator {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  z-index: 10;
  position: relative;
}

section.live-stream .live-stream-thumbnail__live-indicator:before {
  content: "";
  width: 0.875rem;
  height: 0.875rem;
  background-color: var(--color__white);
  border-radius: 50%;
  -webkit-animation: pulse 1.5s infinite;
          animation: pulse 1.5s infinite;
}

section.live-stream .live-stream-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  pointer-events: none;
}

section.live-stream .live-stream-thumbnail figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  z-index: 10;
  position: relative;
}

section.live-stream .live-stream-thumbnail__stream-title {
  color: var(--color__white);
  margin-block: 0;
}

section.live-stream .live-stream-thumbnail__stream-description {
  color: var(--color__white);
  margin-block: 0;
}

section.live-stream .live-stream-wrapper {
  display: none;
}

section.live-stream .live-stream-wrapper iframe {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
  display: flex;
}

section.live-stream .live-stream-wrapper--x_embed iframe {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
  display: block !important;
}

@-webkit-keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}
.external-live-link {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  color: var(--color__black);
  fill: var(--color__black);
  background-color: var(--color__purple);
  font-size: var(--text-size-md);
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
  padding: 1rem 1.5rem;
  border-radius: 2em;
  margin-top: 2rem;
}

.external-live-link:hover {
  background-color: var(--color__purple-dark);
}
