/**
 * FILE PHOTO image accreditation — loaded after custom.css so credits always win.
 */

.file-photo-figure,
.feature-img--wrap .file-photo-figure,
.post-single .file-photo-figure,
.post-single-content .file-photo-figure,
.main--content .file-photo-figure {
  position: relative !important;
  display: block !important;
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 0 1.5rem !important;
  overflow: visible !important;
  line-height: normal !important;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
}

.file-photo-figure img,
.feature-img--wrap .file-photo-figure img,
.post-single .file-photo-figure img,
.post-single-content .file-photo-figure img,
.main--content .file-photo-figure img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  border-radius: 0 !important;
}

.file-photo-credit,
.feature-img--wrap .file-photo-credit,
.post-single .file-photo-credit,
.post-single-content .file-photo-credit,
.main--content .file-photo-credit {
  position: absolute !important;
  right: 8px !important;
  bottom: 8px !important;
  z-index: 20 !important;
  display: inline-block !important;
  background: rgba(0, 0, 0, 0.65) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  padding: 5px 10px !important;
  letter-spacing: 0.02em !important;
  max-width: calc(100% - 16px) !important;
  text-align: right !important;
  pointer-events: none !important;
  visibility: visible !important;
  opacity: 1 !important;
  border-radius: 2px !important;
  width: auto !important;
  height: auto !important;
  white-space: normal !important;
}

.feature-img--wrap:has(.file-photo-figure) {
  overflow: visible !important;
}

body.avatar-shape-circle .file-photo-figure,
body.avatar-shape-circle .file-photo-figure img,
body.avatar-shape-square .file-photo-figure,
body.avatar-shape-square .file-photo-figure img {
  border-radius: 0 !important;
}
