/* Copyright-Button und Modal, siehe JavaScript/imgcopyright.js */

.imgcr-host {
  position: relative;
}

.imgcr-button {
  position: absolute;
  z-index: 5;
  box-sizing: border-box;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font: 400 17px/28px Arial, Helvetica, sans-serif;
  text-align: center;
  cursor: pointer;
  opacity: .85;
  transition: opacity .15s, background-color .15s;
}

.imgcr-button:hover,
.imgcr-button:focus-visible {
  background: rgba(0, 0, 0, .8);
  opacity: 1;
}

.imgcr-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.imgcr-button[hidden] {
  display: none;
}

.imgcr-dialog {
  box-sizing: border-box;
  width: min(900px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: #222;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}

.imgcr-dialog::backdrop {
  background: rgba(0, 0, 0, .7);
}

.imgcr-dialog__inner {
  position: relative;
}

.imgcr-dialog__image {
  display: block;
  width: 100%;
  max-height: calc(100vh - 220px);
  object-fit: contain;
  background: #111;
}

.imgcr-dialog__image[hidden] {
  display: none;
}

.imgcr-dialog__text {
  padding: 16px 20px 18px;
  font-size: 15px;
  line-height: 1.45;
}

.imgcr-dialog__text p {
  margin: 0 0 4px;
  padding: 0;
}

.imgcr-dialog__text p[hidden] {
  display: none;
}

.imgcr-dialog__title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
  opacity: .7;
}

.imgcr-dialog__copyright {
  font-weight: 700;
}

.imgcr-dialog__text a {
  color: inherit;
  text-decoration: underline;
  word-break: break-word;
}

.imgcr-dialog__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font: 400 26px/36px Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.imgcr-dialog__close:hover,
.imgcr-dialog__close:focus-visible {
  background: rgba(0, 0, 0, .85);
}

/*
 * Die bisherigen Quellenzeilen unter den Bildern entfallen, der Button ersetzt
 * sie. Die Lightbox der Themes (#lightbox-image) liest den Text weiterhin aus
 * diesen Elementen und zeigt ihn in ihrer eigenen .source an.
 */
p.source:not(#lightbox-image .source),
span.imgsource {
  display: none !important;
}
