/*
	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
*/
.block-section.documents-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.block-section.documents-block .subheader {
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}

.block-section.documents-block .block-section-wrapper.two-columns {
  display: flex;
  background-color: var(--color__grey);
  min-height: 60vh;
  max-height: 90vh;
}

@media screen and (max-width: 849px) {
  .block-section.documents-block .block-section-wrapper.two-columns {
    max-height: none;
    flex-direction: column;
  }
}
.block-section.documents-block .block-section-wrapper.two-columns > .text-content,
.block-section.documents-block .block-section-wrapper.two-columns > .image-content {
  overflow: hidden;
}

@media screen and (min-width: 850px) {
  .block-section.documents-block .block-section-wrapper.two-columns > .text-content.text-content,
  .block-section.documents-block .block-section-wrapper.two-columns > .image-content.text-content {
    width: 30%;
  }
  .block-section.documents-block .block-section-wrapper.two-columns > .text-content.image-content,
  .block-section.documents-block .block-section-wrapper.two-columns > .image-content.image-content {
    width: 70%;
  }
}
.block-section.documents-block .block-section-wrapper.two-columns > .text-content.fullsize,
.block-section.documents-block .block-section-wrapper.two-columns > .image-content.fullsize {
  min-width: 100%;
}

.block-section.documents-block .block-section-wrapper.two-columns > .text-content img,
.block-section.documents-block .block-section-wrapper.two-columns > .image-content img {
  width: auto;
  height: 100%;
}

.block-section.documents-block .text-content {
  padding: 6.25rem;
}

@media screen and (max-width: 1439px) {
  .block-section.documents-block .text-content {
    padding: 3.75rem 2.5rem;
  }
}
.block-section.documents-block .documents-list li {
  border-bottom: 0.0625rem solid var(--color__blue-dark);
}

.block-section.documents-block .documents-list a {
  padding: 0.75rem 0;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
}

.block-section.documents-block .documents-list a:hover, .block-section.documents-block .documents-list a:focus {
  cursor: pointer;
}

@media screen and (max-width: 849px) {
  .block-section.documents-block .image-content {
    order: 1;
    height: 21.875rem;
  }
  .block-section.documents-block .text-content {
    order: 2;
  }
}
