.media-frame {
  display: block;
  aspect-ratio: 4 / 3;
  background: #111;
}

.login-profile {
  width: 150px;
  height: 150px;
  display: block;
  margin: 0 auto 24px;
  border: 5px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 32px rgba(35, 54, 46, .22);
}

.login-card .eyebrow,
.login-card h1,
.login-card > .muted {
  text-align: center;
}

.login-card h1 {
  font-size: clamp(34px, 7vw, 48px);
  line-height: 1.05;
}

.login-subtitle {
  display: inline-block;
  margin-top: 8px;
  color: var(--green);
  font-family: Inter, system-ui, sans-serif;
  font-size: .43em;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.photo-card .media-frame img,
.photo-card .media-frame video {
  width: 100%;
  height: 100%;
  display: block;
}

.photo-card .media-frame img {
  object-fit: cover;
}

.photo-card .media-frame video {
  object-fit: contain;
  background: #111;
}

.upload-panel {
  width: min(390px, 100%);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.upload-panel .upload-button {
  text-align: center;
}

.tag-picker,
.edit-tags {
  margin-top: 10px;
}

.tag-picker summary,
.edit-tags summary {
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.tag-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.tag-options label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.tag-options input {
  width: auto;
  margin: 0;
}

.upload-submit,
.save-tags {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 11px 14px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.upload-submit {
  margin-top: 12px;
}

.people-filter {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.people-filter strong,
.people-filter small {
  display: block;
}

.people-filter small {
  margin-top: 3px;
  color: var(--muted);
}

.people-filter a {
  color: var(--green);
  font-weight: 800;
  font-size: 14px;
}

.people-filter button {
  border: 0;
  border-radius: 10px;
  padding: 11px 14px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.filter-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
}

.filter-checks label {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  font-size: 13px;
  white-space: nowrap;
}

.filter-checks input {
  width: auto;
  margin: 0;
}

.people-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 10px;
}

.people-tags a {
  padding: 5px 9px;
  border-radius: 999px;
  background: #e6efe9;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.edit-tags {
  padding: 0 14px 14px;
}

@media (max-width: 560px) {
  .people-filter {
    align-items: stretch;
    grid-template-columns: 1fr;
  }
}

.comments {
  padding: 14px;
  border-top: 1px solid var(--line);
  background: #fbfaf6;
}

.comments h3 {
  margin: 0 0 10px;
  font-size: 14px;
}

.comments h3 span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 5px;
  border-radius: 999px;
  background: #e6efe9;
  color: var(--green);
  font-size: 11px;
}

.comment-list {
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 10px;
}

.comment {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid #e8e6df;
  font-size: 13px;
  line-height: 1.4;
}

.comment-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 800;
}

.comment p {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 3px;
}

.comment time {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.no-comments {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.comment-form {
  display: flex;
  gap: 7px;
}

.comment-form textarea {
  min-height: 44px;
  resize: vertical;
  border: 1px solid #cfd4d0;
  border-radius: 10px;
  padding: 10px;
  font: inherit;
}

.comment-form button {
  align-self: stretch;
  border: 0;
  border-radius: 10px;
  padding: 0 13px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
