.profile-photo-button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.profile-photo-button:focus-visible {
  outline: 3px solid #7b1b72;
  outline-offset: 3px;
}

.profile-action-tagcard {
  background: #7b1b72;
  color: #fff;
}

.gallery-status:empty,
.gallery-progress:empty,
.document-status:empty {
  display: none;
}

.gallery-status {
  padding: 1.25rem 0;
  font-weight: 700;
}

.profile-help {
  margin: 2.5rem 0 0;
  padding: 1.4rem 1.5rem;
  border: 1px solid #e4d4e2;
  border-left: 6px solid #7b1b72;
  border-radius: 6px;
  background: #faf5f9;
  box-shadow: 0 4px 14px rgb(35 21 34 / 8%);
  color: #292929;
}

.profile-help-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.profile-help h2 {
  margin: 0 0 .2rem;
  padding: 0;
  color: #4d1247;
  font-size: 1.5rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.profile-help-heading p,
.profile-help-action,
.profile-help-note {
  margin: 0;
}

.profile-help-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem 2.25rem;
  margin: 0 0 1.15rem;
  padding-left: 1.45rem;
}

.profile-help-list li {
  padding-left: .2rem;
  line-height: 1.55;
}

.profile-help-list li::marker {
  color: #7b1b72;
  font-weight: 700;
}

.profile-help-action {
  padding-top: 1rem;
  border-top: 1px solid #e4d4e2;
  font-weight: 700;
  line-height: 1.55;
}

.profile-help-note {
  margin-top: .85rem;
  padding: .75rem .9rem;
  border-radius: 4px;
  background: #4d1247;
  color: #fff;
  line-height: 1.45;
}

.photo-lightbox {
  width: min(94vw, 980px);
  max-width: 980px;
  height: min(90vh, 760px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #111;
  color: #fff;
  overflow: hidden;
}

.photo-lightbox[open] { display: grid; grid-template-rows: 3.5rem minmax(0, 1fr); }
.photo-lightbox::backdrop { background: rgb(0 0 0 / 82%); }
.lightbox-topbar { display: flex; align-items: center; justify-content: flex-end; padding: 0 .65rem; background: #000; }
.photo-lightbox figure { display: grid; grid-row: 2; grid-template-rows: minmax(0, 1fr) auto; height: 100%; margin: 0; }
.photo-lightbox img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.photo-lightbox figcaption { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; background: rgb(0 0 0 / 70%); }

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 2;
  border: 0;
  border-radius: 50%;
  background: rgb(0 0 0 / 62%);
  color: #fff;
  cursor: pointer;
}

.lightbox-close { position: static; display: flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; padding: 0 0 .12rem; border: 1px solid rgb(255 255 255 / 90%); background: transparent; font-size: 2rem; line-height: 1; }
.lightbox-close:hover,
.lightbox-close:focus-visible { background: rgb(255 255 255 / 14%); }
.lightbox-nav {
  top: calc(50% + .375rem);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  transform: translateY(-50%);
  font-size: 0;
  line-height: 1;
}
.lightbox-nav::before {
  width: .65rem;
  height: .65rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
}
.lightbox-prev::before { transform: rotate(-135deg); }
.lightbox-next::before { transform: rotate(45deg); }
.lightbox-prev { left: .75rem; }
.lightbox-next { right: .75rem; }

@media (max-width: 640px) {
  .profile-help { padding: 1.15rem; }
  .profile-help-heading { align-items: flex-start; }
  .profile-help-list { grid-template-columns: 1fr; gap: .7rem; }
  .photo-lightbox { width: 100vw; height: 100vh; max-height: none; border-radius: 0; }
  .lightbox-nav { width: 2.5rem; height: 2.5rem; }
}
