.image-manager > input[type="file"],
.admin-add .file-label input[type="file"] {
  cursor: pointer;
}

.image-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.image-list > span {
  display: grid !important;
  gap: 7px;
  align-content: start;
  padding: 9px !important;
  border: 1px solid #d7b95d66;
  background: #080808;
}

.image-list img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #111;
}

.image-list b {
  color: var(--gold, #f0cf78);
  font-size: 12px;
  letter-spacing: .12em;
}

.image-list small {
  overflow-wrap: anywhere;
}

.nimy-photo-title-editor {
  display: grid;
  gap: 6px;
  color: #f0cf78;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
}

.nimy-photo-title-editor input {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid #d7b95d88;
  color: #fff;
  background: #020202;
  font: 600 13px Montserrat, sans-serif;
  letter-spacing: 0;
}

.nimy-photo-title-editor input:focus {
  outline: 2px solid #f0cf78;
  outline-offset: 1px;
}

.nimy-photo-actions {
  display: grid;
  gap: 7px;
  margin-top: auto;
}

.nimy-photo-actions button {
  min-height: 38px;
  padding: 8px;
  border: 1px solid #d7b95d99;
  color: #f0cf78;
  background: #050505;
  font: 15px "Bebas Neue", sans-serif;
  letter-spacing: .06em;
  cursor: pointer;
}

.nimy-photo-actions button:disabled {
  border-color: #ffffff33;
  color: #999;
  cursor: default;
}

.nimy-photo-actions .nimy-remove-photo {
  border-color: #ff746a88;
  color: #ff8a80;
}

.nimy-photo-modal[hidden] {
  display: none;
}

.nimy-photo-modal {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: #000c;
}

.nimy-photo-panel {
  width: min(860px, 96vw);
  max-height: 88vh;
  overflow: auto;
  padding: clamp(20px, 4vw, 38px);
  border: 1px solid #f0cf78;
  color: #fff;
  background: #0b0b0b;
  box-shadow: 18px 18px 45px #000a;
}

.nimy-photo-panel h2 {
  margin: 0 0 8px;
  color: #f0cf78;
  font: clamp(30px, 5vw, 48px) "Bebas Neue", sans-serif;
  letter-spacing: .04em;
}

.nimy-photo-panel > p {
  margin: 0 0 20px;
  color: #c7c7c7;
}

.nimy-photo-rows {
  display: grid;
  gap: 12px;
}

.nimy-photo-row {
  display: grid;
  grid-template-columns: 90px minmax(180px, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid #ffffff24;
}

.nimy-photo-row img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  background: #151515;
}

.nimy-photo-row label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  letter-spacing: .1em;
}

.nimy-photo-row input[type="text"] {
  min-width: 0;
  padding: 12px;
  border: 1px solid #777;
  color: #fff;
  background: #050505;
}

.nimy-primary-choice {
  display: flex !important;
  grid-auto-flow: column;
  align-items: center;
  gap: 8px !important;
  color: #f0cf78;
  white-space: nowrap;
}

.nimy-photo-done {
  width: 100%;
  margin-top: 20px;
  padding: 15px;
  border: 1px solid #f0cf78;
  color: #f0cf78;
  background: #050505;
  font: 24px "Bebas Neue", sans-serif;
  letter-spacing: .05em;
  cursor: pointer;
}

@media (max-width: 620px) {
  .nimy-photo-row {
    grid-template-columns: 72px 1fr;
  }

  .nimy-photo-row img {
    width: 72px;
    height: 72px;
  }

  .nimy-primary-choice {
    grid-column: 1 / -1;
  }
}
