/*
	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.image-grid .block-section-wrapper .image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  row-gap: 5rem;
  -moz-column-gap: 2.5rem;
       column-gap: 2.5rem;
}

@media screen and (max-width: 600px) {
  section.image-grid .block-section-wrapper .image-grid {
    grid-template-columns: repeat(1, 1fr);
    row-gap: 2.5rem;
    -moz-column-gap: 0;
         column-gap: 0;
  }
  section.image-grid .block-section-wrapper .image-grid__item:nth-child(1) {
    height: 20rem !important;
  }
  section.image-grid .block-section-wrapper .image-grid__item:nth-child(2) {
    height: 17.5rem !important;
  }
  section.image-grid .block-section-wrapper .image-grid__item:nth-child(3) {
    height: 25rem !important;
  }
  section.image-grid .block-section-wrapper .image-grid__item:nth-child(4) {
    height: 17.5rem !important;
  }
  section.image-grid .block-section-wrapper .image-grid__item:nth-child(5), section.image-grid .block-section-wrapper .image-grid__item:nth-child(6), section.image-grid .block-section-wrapper .image-grid__item:nth-child(n+7) {
    display: none;
  }
}
section.image-grid .block-section-wrapper .image-grid__item:nth-child(1), section.image-grid .block-section-wrapper .image-grid__item:nth-child(2) {
  height: 31.25rem;
}

section.image-grid .block-section-wrapper .image-grid__item:nth-child(3), section.image-grid .block-section-wrapper .image-grid__item:nth-child(6) {
  height: 31.25rem;
}

section.image-grid .block-section-wrapper .image-grid__item:nth-child(4), section.image-grid .block-section-wrapper .image-grid__item:nth-child(5) {
  height: 50rem;
}

section.image-grid .block-section-wrapper .image-grid__item:nth-child(n+7):nth-child(odd) {
  height: 31.25rem;
}

section.image-grid .block-section-wrapper .image-grid__item:nth-child(n+7):nth-child(even) {
  height: 50rem;
}

section.image-grid .block-section-wrapper .image-grid__item img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 2.8125rem;
}
