/**
 * @file
 * Download link shown under CKEditor images marked as downloadable.
 *
 * The text link uses the theme's normal link styles. This file only
 * places it under the image and turns the existing right-arrow icon down.
 */

.downloadable-image__file,
.downloadable-image__file:hover,
.downloadable-image__file:focus,
.downloadable-image__file:active {
  font-weight: inherit;
  text-decoration: none;
}

span.downloadable-image {
  display: inline-block;
  max-width: 100%;
  vertical-align: top;
}

span.downloadable-image.align-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.downloadable-image__link {
  display: table;
  margin-top: 0.5rem;
}

/* Page color paints a bar on the left of every Image block. Hide it when the image is downloadable. */
.block-inline-blockimage .field--name-field-image:has(.downloadable-image)::before {
  display: none;
}

.downloadable-image__link::before {
  background-image: url("/sites/default/files/2024-01/link.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  display: inline-block;
  height: 0.9em;
  margin-right: 0.35em;
  transform: rotate(90deg);
  vertical-align: -0.125em;
  width: 0.9em;
}
