/* Overrides for the original Bootstrap layout, shared by both page types. */
.gallery-row {
  margin-left: 0;
  margin-right: 0;
}

.gallery-row > .col-sm-8 {
  padding-left: 0;
  padding-right: 0;
}

/* Preserve the original row's inner geometry without its off-screen gutters. */
@media (min-width: 768px) {
  .gallery-row > .col-sm-8 {
    margin-left: calc(16.66666667% + 5px);
    width: calc(66.66666667% - 10px);
  }
}

.gallery-image-link {
  display: block;
  width: fit-content;
  max-width: 100%;
}

.gallery-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.text-center > .gallery-image {
  margin-left: auto;
  margin-right: auto;
}

.adm__img-data-url-item {
  margin-bottom: 6px;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

.adm__img-data-url-item code {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.adm__img-data-url-item a {
  color: inherit;
}

.adm__img-data-url-item a:hover,
.adm__img-data-url-item a:focus-visible {
  text-decoration: underline;
}

.gallery-image-link:focus-visible,
.adm__img-data-url-item a:focus-visible {
  outline: 2px solid #78649b;
  outline-offset: 3px;
}

.btc-donate-panel .panel-body,
.btc-donate-panel .panel-title {
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

.app-page-public .wrapper {
  overflow: visible;
}

.image-description {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Match the original upload confirmation and keep long URLs inside mobile screens. */
.upload-notice {
  border-radius: 0;
  overflow-wrap: anywhere;
}
