.public-photo-exif {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(92, 48, 25, .24);
}

.gallery-event-byline {
  display: block;
  margin-top: 5px;
  color: #7b221b;
  font-weight: 900;
  text-decoration: none;
}

.public-photo-exif div {
  min-width: 0;
}

.public-photo-exif dt {
  color: #72583d;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.public-photo-exif dd {
  margin: 1px 0 0;
  overflow-wrap: anywhere;
  color: #2d180f;
  font-size: 13px;
}

.my-gallery-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 100px;
}

.my-gallery-page > header {
  max-width: 760px;
  margin-bottom: 24px;
}

.gallery-owner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.my-gallery-section-title,
.gallery-media-section > h2 {
  margin: 28px 0 14px;
  color: #fff8e9;
  font: 700 30px/1.1 Georgia, serif;
}

.gallery-media-section + .gallery-media-section {
  margin-top: 38px;
}

.my-gallery-page > header h1 {
  margin: 4px 0 8px;
  font: 700 clamp(36px, 6vw, 60px)/1 Georgia, serif;
}

.my-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.my-gallery-grid article {
  overflow: hidden;
  border: 1px solid #c8a866;
  border-radius: 6px;
  background: #fffdf7;
  color: #2d180f;
  box-shadow: 0 10px 25px rgba(39, 23, 13, .1);
}

.my-gallery-grid article > img,
.my-gallery-grid article > video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #1b2024;
}

.my-gallery-grid article > video {
  object-fit: contain;
}

.my-gallery-grid article > div {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.my-gallery-grid h2,
.my-gallery-grid p {
  margin: 0;
}

.my-gallery-grid h2 {
  font: 700 22px/1.15 Georgia, serif;
}

.my-gallery-grid a {
  justify-self: start;
  color: #761713;
  font-weight: 800;
}

.my-gallery-grid form {
  display: flex;
  justify-content: flex-start;
}

.my-gallery-grid button {
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid #7b221b;
  background: #7b221b;
  color: #fff8e9;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.my-gallery-grid .gallery-owner-delete {
  background: transparent;
  color: #7b221b;
}

.photo-owner-status {
  justify-self: start;
  padding: 4px 7px;
  border: 1px solid currentColor;
  color: #86601e;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.photo-owner-status--approved {
  color: #236a3e;
}

.photo-owner-status--rejected {
  color: #9a241e;
}

.photo-owner-status--processing {
  color: #326482;
}

.photo-owner-status--failed,
.gallery-video-error {
  color: #a2231c;
}

.gallery-video-error {
  overflow-wrap: anywhere;
  font-weight: 800;
}

.gallery-video-technical-error pre {
  max-width: 100%;
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.gallery-video-placeholder {
  display: grid;
  place-content: center;
  gap: 6px;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 18px;
  box-sizing: border-box;
  background: #17202a;
  color: #fff8e9;
  text-align: center;
}

.gallery-video-placeholder span {
  color: #cbd7e1;
  font-size: 13px;
}

.my-gallery-edit-preview {
  margin: 0;
  padding: 14px;
  background: #191c1e;
}

.my-gallery-edit-preview img {
  display: block;
  width: 100%;
  max-height: 430px;
  object-fit: contain;
}

.my-gallery-edit-preview video {
  display: block;
  width: 100%;
  max-height: 520px;
  background: #11171d;
}

.public-gallery-video-frame {
  position: relative;
  background: #11171d;
}

.public-gallery-video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #11171d;
}

.public-gallery-video-frame > span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 6px;
  background: rgba(12, 17, 22, .84);
  color: #fff8e9;
  font-size: 12px;
  font-weight: 800;
  pointer-events: none;
}

.organization-video-card video {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: contain;
  background: #11171d;
}

.gallery-page-heading,
.gallery-upload-page > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.gallery-heading-actions,
.gallery-upload-page > header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gallery-heading-actions a,
.gallery-upload-page > header nav a,
.gallery-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid #dca842;
  background: #7b221b;
  color: #fff8e9;
  font-weight: 800;
  text-decoration: none;
}

.gallery-primary-action {
  width: max-content;
  max-width: 100%;
  margin-top: 10px;
}

.gallery-upload-page {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 100px;
}

.gallery-upload-page > header {
  margin-bottom: 24px;
}

.gallery-upload-page > header h1 {
  margin: 4px 0 8px;
  color: #fff8e9;
  font: 700 48px/1.05 Georgia, serif;
}

.gallery-upload-page > header p:not(.eyebrow) {
  margin: 0;
  color: #cbd7e1;
}

.gallery-upload-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 22px;
  border: 1px solid #d5b15f;
  background: #f8f2e4;
  color: #2d180f;
}

.gallery-upload-form > label {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  font-weight: 800;
}

.gallery-upload-form input,
.gallery-upload-form select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid #94754b;
  background: #fffdf7;
  color: #24160e;
  font: inherit;
}

.gallery-upload-form input[type="file"] {
  height: auto;
}

.gallery-upload-files,
.gallery-upload-preview,
.gallery-rights-confirmation,
.gallery-upload-form > button,
.gallery-upload-form > .errorlist {
  grid-column: 1 / -1;
}

.gallery-upload-files small {
  color: #6c5843;
  font-weight: 500;
}

.gallery-upload-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.gallery-upload-preview[hidden] {
  display: none;
}

.gallery-upload-preview figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #b89559;
  background: #17202a;
}

.gallery-upload-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-upload-preview figcaption {
  overflow: hidden;
  padding: 7px;
  color: #fff8e9;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-video-upload-preview,
.gallery-video-processing-note {
  grid-column: 1 / -1;
}

.gallery-video-upload-preview {
  margin: 0;
  overflow: hidden;
  border: 1px solid #b89559;
  background: #17202a;
}

.gallery-video-upload-preview[hidden] {
  display: none;
}

.gallery-video-upload-preview video {
  display: block;
  width: 100%;
  max-height: 520px;
  background: #11171d;
}

.gallery-video-upload-preview figcaption {
  padding: 9px;
  color: #fff8e9;
  font-size: 13px;
}

.gallery-video-processing-note {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid #b1812f;
  background: #eee0bf;
  color: #5f4422;
}

.gallery-upload-form .gallery-rights-confirmation {
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  padding-top: 8px;
  border-top: 1px solid #d8c49c;
}

.gallery-rights-confirmation input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
  margin: 1px 0 0;
  accent-color: #7b221b;
}

.gallery-rights-confirmation .errorlist {
  grid-column: 2;
}

.gallery-upload-form > button {
  justify-self: end;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid #e0b957;
  background: #7b221b;
  color: #fff8e9;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}

.gallery-upload-form .errorlist {
  margin: 0;
  padding: 0;
  color: #a2231c;
  font-size: 13px;
  list-style: none;
}

@media (max-width: 900px) {
  .my-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .my-gallery-page {
    width: min(100% - 22px, 1180px);
    padding-top: 28px;
  }

  .my-gallery-grid {
    grid-template-columns: 1fr;
  }

  .public-photo-exif {
    grid-template-columns: 1fr;
  }

  .gallery-page-heading,
  .gallery-upload-page > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-upload-page {
    width: min(100% - 22px, 980px);
    padding-top: 28px;
  }

  .gallery-upload-page > header h1 {
    font-size: 36px;
  }

  .gallery-upload-form {
    grid-template-columns: 1fr;
    padding: 15px;
  }

  .gallery-upload-form > *,
  .gallery-upload-files,
  .gallery-upload-preview,
  .gallery-rights-confirmation,
  .gallery-upload-form > button {
    grid-column: 1;
  }

  .gallery-upload-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-upload-form > button {
    justify-self: stretch;
  }

  .gallery-owner-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .gallery-owner-actions .gallery-primary-action {
    width: 100%;
    box-sizing: border-box;
  }
}
