/*
	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.4s;
}

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
*/
.round-button-link, section.shortcut-boxes .block-section-wrapper .shortcut-cards .card-details a.card-link, section.shortcut-boxes .block-section-wrapper .shortcut-cards .card-details.thumbnail-box .thumbnail a.thumbail-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50px;
  border: 1px solid #293d56;
}

.round-button-link img, section.shortcut-boxes .block-section-wrapper .shortcut-cards .card-details a.card-link img, section.shortcut-boxes .block-section-wrapper .shortcut-cards .card-details.thumbnail-box .thumbnail a.thumbail-link img {
  max-width: 100%;
  height: auto;
}

.round-button-link:hover, section.shortcut-boxes .block-section-wrapper .shortcut-cards .card-details a.card-link:hover, section.shortcut-boxes .block-section-wrapper .shortcut-cards .card-details.thumbnail-box .thumbnail a.thumbail-link:hover {
  background-color: #9ac1b8;
}

section.shortcut-boxes {
  margin: 60px 0;
}

section.shortcut-boxes .block-section-wrapper {
  padding-left: 0px;
  padding-right: 0px;
  display: flex;
  justify-content: center;
}

section.shortcut-boxes .block-section-wrapper .shortcut-cards {
  width: 100%;
  max-width: 87.5rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(331px, 1fr));
  gap: 32px;
}

section.shortcut-boxes .block-section-wrapper .shortcut-cards.thubmail-container {
  gap: 20px;
}

@media screen and (max-width: 768px) {
  section.shortcut-boxes .block-section-wrapper .shortcut-cards.thubmail-container {
    gap: 50px;
  }
}
section.shortcut-boxes .block-section-wrapper .shortcut-cards .card-details {
  display: flex;
  min-width: 331px;
  padding: 40px;
  flex-direction: column;
  align-items: flex-start;
  border-radius: 10px;
  background-color: #dce6e2;
}

section.shortcut-boxes .block-section-wrapper .shortcut-cards .card-details.thumbnail-box {
  background-color: #fff;
  padding: 0px;
  gap: 0px;
}

section.shortcut-boxes .block-section-wrapper .shortcut-cards .card-details.thumbnail-box .thumbnail {
  position: relative;
  width: 100%;
  height: 340px;
  margin-bottom: 16px;
  border-radius: 10px;
  overflow: hidden;
}

@media screen and (max-width: 768px) {
  section.shortcut-boxes .block-section-wrapper .shortcut-cards .card-details.thumbnail-box .thumbnail {
    height: auto;
  }
}
section.shortcut-boxes .block-section-wrapper .shortcut-cards .card-details.thumbnail-box .thumbnail img,
section.shortcut-boxes .block-section-wrapper .shortcut-cards .card-details.thumbnail-box .thumbnail .no-image-box {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 10px;
  transition: transform 0.6s ease-in-out;
}

section.shortcut-boxes .block-section-wrapper .shortcut-cards .card-details.thumbnail-box .thumbnail .no-image-box {
  background-color: #dce6e2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #293d56;
  font-size: 10px;
  font-weight: bold;
}

section.shortcut-boxes .block-section-wrapper .shortcut-cards .card-details.thumbnail-box .thumbnail a.thumbail-link {
  position: absolute;
  right: 18px;
  bottom: 18px;
  background: #d3dbe8;
  padding: 10px;
}

section.shortcut-boxes .block-section-wrapper .shortcut-cards .card-details.link-card {
  cursor: pointer;
  transition: all 0.6s ease, background-color 0.4s ease !important;
}

section.shortcut-boxes .block-section-wrapper .shortcut-cards .card-details.link-card:not(.thumbnail-box):hover {
  background-color: #b2d9d0;
}

section.shortcut-boxes .block-section-wrapper .shortcut-cards .card-details.link-card:is(.thumbnail-box):hover img,
section.shortcut-boxes .block-section-wrapper .shortcut-cards .card-details.link-card:is(.thumbnail-box):hover .no-image-box {
  transform: scale(1.05);
}

section.shortcut-boxes .block-section-wrapper .shortcut-cards .card-details .icon {
  width: 1.875rem;
  height: 1.875rem;
  margin-bottom: 40px;
}

section.shortcut-boxes .block-section-wrapper .shortcut-cards .card-details .icon.big {
  width: 4rem;
  height: 4rem;
}

section.shortcut-boxes .block-section-wrapper .shortcut-cards .card-details .icon img {
  width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  background-color: transparent;
}

section.shortcut-boxes .block-section-wrapper .shortcut-cards .card-details .icon .no-image-box {
  width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  background-color: #dce6e2;
}

section.shortcut-boxes .block-section-wrapper .shortcut-cards .card-details .title {
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 128%;
}

section.shortcut-boxes .block-section-wrapper .shortcut-cards .card-details .description {
  font-size: 20px;
  font-weight: 200;
  line-height: 128%;
  margin-bottom: 30px;
}

@media screen and (max-width: 768px) {
  section.shortcut-boxes .block-section-wrapper .shortcut-cards .card-details .description {
    margin-bottom: 0;
  }
  section.shortcut-boxes .block-section-wrapper .shortcut-cards .card-details .description.desc-btm {
    margin-bottom: 20px;
  }
}
