/* ************************************************************** */
/*                                                                */
/*                 This file should not be changed.               */
/*        If changes are required - override in styles.css        */
/*                                                                */
/* ************************************************************** */

/* MOBILE SMALL - Non-Retina - (0-321px) */
/* === Link buttons === */
.paragraph--type-link .link-button {
  display: inline-block;
  position: relative;
  text-decoration: none;
  border-radius: var(--d-border-radius);
  overflow: hidden;
}
.paragraph--type-link .link-button:hover,
.paragraph--type-link .link-button:focus-visible {
  border-color: var(--bor-color-hover)
}
.paragraph--type-link .link-button .link-content {
  position: relative;
  background-color: var(--bg-color);
}
.paragraph--type-link .link-button .link-content:hover,
.paragraph--type-link .link-button .link-content:focus-visible {
  background-color: var(--bg-color-hover);
}

.paragraph--type-link .link-content {
  display: grid;
  place-items: center;
}
.paragraph--type-link .link-content > .link-background-image,
.paragraph--type-link .link-content > .link-content-wrap {
  grid-area: 1 / 1;
  z-index: 0;
}
.paragraph--type-link .link-content > .link-content-wrap {
  z-index: 1;
}



/* 1. Ensure the wrappers stretch to fill the grid cell */
.paragraph--type-link .link-content > .link-background-image, 
.paragraph--type-link .link-content > .link-background-image .media, 
.paragraph--type-link .link-content > .link-background-image figure, 
.paragraph--type-link .link-content > .link-background-image picture,
.paragraph--type-link .link-content > .link-content > .link-background-image img {
    display: block;
    width: 100%;
    height: 100%;
}

.paragraph--type-link .link-button.bgimage .link-content-wrap {
  /*position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;*/
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  align-content: stretch;
  align-items: stretch;
}
/* Add text shadow on Block items on Link Contents when there is a background image */
.bg-image .link-content h2,
.bg-image .link-content h3,
.bg-image .link-content h4,
.bg-image .link-content h5,
.bg-image .link-content h6,
.bg-image .link-content p,
.bg-image .link-content ul,
.bg-image .link-content h2 span.no-bottom-margin,
.bg-image .link-content h3 span.no-bottom-margin,
.bg-image .link-content h4 span.no-bottom-margin,
.bg-image .link-content h5 span.no-bottom-margin,
.bg-image .link-content h6 span.no-bottom-margin,
.bg-image .link-content p span.no-bottom-margin,
.bg-image .link-content ul span.no-bottom-margin {
  text-shadow: 0px 0px 5px #000;
}
/* Shadow on whole button when there is a background*/
.bgimage.link-button:not(:focus-visible),
.bgcol.link-button:not(:focus-visible) {
  box-shadow: 0px 0px 5px 2px rgba(0,0,0,0.25);
}
/* Shadow on whole button when there is a background on hover*/
.bgimage.link-button:hover:not(:focus-visible),
.bgcol.link-button:hover:not(:focus-visible) {
  box-shadow: 0px 0px 3px 2px rgba(0,0,0,0.4);
}
.bgimage.link-button .link-content > .link-background-image > .media--type-image {
  overflow: hidden;
}
.bgimage.link-button:hover .link-content > .link-background-image > .media--type-image img,
.bgimage.link-button:focus-visible .link-content > .link-background-image > .media--type-image img {
  opacity: 0.7;
  transform: scale(1.07);
  background-color: var(--color-dark-grey);
}
