/*
	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.downloads {
  margin-block: var(--spacing-content);
}

section.downloads .downloads__title {
  margin-bottom: 2rem;
}

section.downloads .download-row {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--color__light-gray);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  align-items: center;
}

section.downloads .download-row__thumbnail {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 1.5em;
  color: var(--color__white);
}

section.downloads .download-row__thumbnail img {
  display: block;
  -o-object-fit: cover;
     object-fit: cover;
  width: 100%;
  height: 100%;
}

section.downloads .download-row__title {
  flex: 1;
  color: var(--color__light-gray);
  transition: color 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

section.downloads .download-row:hover .download-row__title {
  color: var(--color__primary);
}

section.downloads .download-row__link {
  color: var(--color__white);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

section.downloads .download-row__link > * {
  transition: all 0.2s ease-in-out;
}

section.downloads .download-row__link .label {
  text-decoration: underline;
  text-underline-offset: 0.4em;
}

section.downloads .download-row__link .icon {
  font-size: 1.5em;
}

section.downloads .download-row__link:hover .label, section.downloads .download-row__link:focus .label {
  text-underline-offset: 0.2em;
}

section.downloads .download-row__link:hover .icon, section.downloads .download-row__link:focus .icon {
  transform: translateY(0.2em);
}
