/*
	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.
 */
/**
 *	Fluid sized fonts
 *	Read more here:
 *	https://css-tricks.com/snippets/css/fluid-typography/
 */
/*
 * makes ul/ol as a dropdown select (normaly in mobile)
 * Structure: div > title > list > li > a
*/
/*
	Variables for legacy dc plugins
*/
.block-section.video-embed {
  position: relative;
}

.block-section.video-embed.layout-full .block-section-wrapper {
  width: 100%;
  max-width: 100%;
}

.block-section.video-embed .block-section-wrapper .video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
}

.block-section.video-embed .block-section-wrapper .plyr--video,
.block-section.video-embed .block-section-wrapper .plyr__video-embed {
  width: 100%;
  height: 100%;
}

.block-section.video-embed .block-section-wrapper .plyr__video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.block-section.video-embed .block-section-wrapper .image-wrapper.do-not-crop {
  min-height: auto;
  max-height: auto;
  height: auto;
}

.block-section.video-embed .block-section-wrapper .image-wrapper.do-not-crop figure img {
  aspect-ratio: auto;
  height: auto;
  min-height: unset;
  max-height: unset;
  -o-object-fit: contain;
     object-fit: contain;
}

.block-section.video-embed .image-wrapper {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  border-radius: 2em;
}

.block-section.video-embed .image-wrapper img {
  display: block;
  width: 100%;
  height: auto;
}

.block-section.video-embed:not(.layout-full) .video-wrapper,
.block-section.video-embed:not(.layout-full) .plyr__video-embed,
.block-section.video-embed:not(.layout-full) .plyr--video,
.block-section.video-embed:not(.layout-full) iframe,
.block-section.video-embed:not(.layout-full) video {
  border-radius: var(--element-border-radius);
}
