/*****************************************************************************************************
* Fields Module: Image Download Sections (IMGDL) CSS
******************************************************************************************************/

/* Common IMGDL Styles
--------------------------------------------- */

/* Intro */

/* No space above it, so the text starts where the other sections' content
   does, 20px below the label's rule (user, 2026-10-21; it was 5px lower). */

.bub-imgdl__intro {
  padding: 0 0 5px;
}

/* Item */

/* The gap also holds when the text wraps below the preview. */

.bub-imgdl__item {
  display: flex;
  flex-flow: row wrap;
  gap: 1rem 1.25rem;
  margin: 0 0 0.625rem;
}

/* Image Box */

/* A small preview without a frame: the person's page shows the same photo
   large in the sidebar, so the section is a download list (user, 2026-10-21;
   it was 300px wide in a 7px frame in the dark green). */

.bub-imgdl__image {
    /* Fix Chrome bug: gap between img and parent on resize. */
    display: table;
  max-width: 9.375rem;
}

.bub-imgdl__image img {
  height: auto;
  width: auto;
}

/* Text Box */

/* On the page's background, like the title page's files and links (user,
   2026-10-21; it was a block in the dark green with light text). Its basis
   keeps it beside the small preview down to 390px. */

.bub-imgdl__text {
  display: flex;
  flex: 1 1 10rem;
  flex-flow: row wrap;
  font-size: 0.9rem;
  line-height: 1.3;
}

.bub-imgdl__downloads {
  flex: 1 0 auto;
  width: 100%;
}

.bub-imgdl__dllink--print {
  margin-top: 1em;
}

/* The download links as small boxes, like the title page's files and links
   (single-product.css): a tint of the dark green, stronger on hover, and
   small capitals. Two classes, since text.css underlines `.site-inner a`
   and loads later. */

.bub-imgdl__text .bub-imgdl__dllink a {
  background: var(--body-background-sh1);
  border: 1px solid transparent;
  color: var(--brand1-color-def);
  display: inline-block;
  font-family: var(--caps-font-family);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  line-height: 1.3;
  margin: 0 0 0.4em;
  padding: 0.45em 0.8em 0.4em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.bub-imgdl__text .bub-imgdl__dllink a:hover {
  background: var(--body-background-sh2);
  color: var(--brand1-color-def);
}

.bub-imgdl__dlinfo {
  display: block;
  font-size: 0.8rem;
}

.bub-imgdl__credit {
  align-self: flex-end;
  font-size: 0.8rem;
  margin-top: 1.5625em;
}