.password-card form {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
}

.password-card label small {
  font-size: 10px;
  letter-spacing: 0;
  text-transform: none;
}

.form-success {
  margin: 0 0 24px;
  padding: 12px 14px;
  border: 1px solid #b8d6c0;
  background: #f1faf3;
  color: #28643a !important;
  font-size: 13px;
  line-height: 1.5;
}

.admin-work {
  min-height: 213px;
}

.admin-work > img,
.admin-work > video {
  display: block;
  width: 170px;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  object-position: center;
  background: #24171b;
}

.preview {
  display: block;
  width: min(100%, 270px);
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  object-position: center;
  margin-inline: auto;
  background: #24171b;
}

.preview[hidden] {
  display: none;
}

.zoomable-media {
  cursor: zoom-in;
}

.zoomable-media:focus-visible {
  outline: 3px solid #b88678;
  outline-offset: -3px;
}

dialog.image-lightbox {
  width: min(96vw, 1200px);
  max-width: none;
  height: min(94vh, 1000px);
  padding: 34px;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.image-lightbox img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 45px rgba(0, 0, 0, .45));
}

.image-lightbox .close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  width: auto;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 38px;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .8);
  box-shadow: none;
}

@media (max-width: 600px) {
  .admin-work {
    min-height: 190px;
  }

  .admin-work > img,
  .admin-work > video {
    width: 110px;
  }
}

@media (max-width: 1100px) {
  .password-card form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 950px) {
  .password-card form {
    grid-template-columns: 1fr;
  }
}
