.pswp__dynamic-caption {
  color: var(--white);
  font-size: var(--text-md);   /* same size as the captions on the page (.pj-cap); the font is Figtree, from the page */
  line-height: 1.45;
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
  transition: opacity 120ms linear !important; /* override default */
}

.pswp-caption-content {
  display: none;
}

.pswp__dynamic-caption a {
  color: var(--white);
}

/* photo credit after the caption (from the photo's data-credit, added by lightbox.js), styled like the
   credits on the page: camera icon, small mono capitals */
.pswp-credit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 6px;   /* plus the space before it */
  font-family: var(--mono);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-faint);
}
.pswp-credit::before {
  content: "";
  width: 12px;
  height: 12px;
  background: currentColor;
  -webkit-mask: var(--camera-icon) center / contain no-repeat;
          mask: var(--camera-icon) center / contain no-repeat;
}

.pswp__dynamic-caption--faded {
  opacity: 0 !important;
}

.pswp__dynamic-caption--aside {
  width: auto;
  max-width: 300px;
  padding: 20px 15px 20px 20px;
  margin-top: 70px;
}

.pswp__dynamic-caption--below {
  width: 100%;
  background: rgba(255,255,255,0.88);
  color: var(--ink);
  padding: 15px;
  box-sizing: border-box;
}

.pswp__dynamic-caption--on-hor-edge {
  padding-left: 15px;
  padding-right: 15px;
}

.pswp__dynamic-caption--mobile {
  width: 100%;
  background: rgba(255,255,255,0.88);
  color: var(--ink);
  padding: 10px 15px;
  box-sizing: border-box;
}