/* Net Reminders — photo/video stream gallery. */
.nr-photos { --nr-gap: 14px; }
.nr-photos__notice { padding: 8px 12px; border-radius: 6px; margin: 0 0 14px; }
.nr-photos__notice.is-ok { background: #e6f4ea; color: #15803d; }
.nr-photos__notice.is-err { background: #fdecea; color: #b91c1c; }

.nr-photos__uploader { margin: 0 0 20px; border: 1px solid #e2e5ea; border-radius: 8px; padding: 10px 14px; }
.nr-photos__uploader summary { cursor: pointer; font-weight: 600; }
.nr-photos__form { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; max-width: 460px; }
.nr-photos__form input[type="text"] { width: 100%; }
.nr-photos__guideline { font-style: italic; }

.nr-photos__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--nr-gap);
}
.nr-photos__item { margin: 0; }
.nr-photos__item.is-pending figure { outline: 2px dashed #d4a017; outline-offset: 2px; }
.nr-photos__item figure { margin: 0; background: #f4f5f7; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.nr-photos__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

.nr-photos__zoom, .nr-photos__play { display: block; border: 0; padding: 0; background: none; cursor: pointer; position: relative; width: 100%; }
.nr-photos__playicon {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 40px; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); pointer-events: none;
}
.nr-photos__item figcaption { padding: 8px 10px 10px; }
.nr-photos__caption { margin: 0 0 4px; }
.nr-photos__meta { margin: 0; font-size: 13px; color: #57616f; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.nr-photos__by { font-family: ui-monospace, Menlo, monospace; font-weight: 600; }
.nr-photos__tag { background: #eef1f5; border-radius: 999px; padding: 1px 8px; }
.nr-photos__badge { background: #fbecd2; color: #92600a; border-radius: 999px; padding: 1px 8px; }

.nr-photos__actions { display: inline-flex; gap: 6px; margin-top: 8px; }
.nr-photos__actions form { display: inline; margin: 0; }
.nr-photos__act { background: none; border: 0; color: #2563a8; cursor: pointer; font-size: 12px; padding: 0; text-decoration: underline; }
.nr-photos__act--remove, .nr-photos__act--delete, .nr-photos__act--report { color: #b91c1c; }

.nr-photos__empty { color: #3b4654; border: 1px solid #dce4e8; border-radius: 14px; background: #f7faf9; padding: clamp(24px, 5vw, 48px); text-align: center; }
.nr-photos__empty-icon { display: block; font-size: 38px; line-height: 1; color: #3a6b66; margin-bottom: 16px; }
.nr-photos__empty h2 { color: #23343b; font-size: clamp(22px, 3vw, 30px); line-height: 1.2; margin: 0 0 10px; }
.nr-photos__empty p { margin: 0 auto 18px; max-width: 46ch; line-height: 1.55; }
.nr-photos__empty-link { display: inline-block; padding: 9px 17px; border-radius: 8px; background: #245c55; color: #fff !important; font-weight: 650; text-decoration: none !important; }
.nr-photos__empty-link:hover, .nr-photos__empty-link:focus-visible { background: #17433e; color: #fff !important; }

/* Lightbox / video overlay. */
.nr-photos-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.88); display: grid; place-items: center;
  z-index: 99999; padding: 20px;
}
.nr-photos-overlay img, .nr-photos-overlay video { max-width: 96vw; max-height: 92vh; border-radius: 6px; }
.nr-photos-overlay__close {
  position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff;
  font-size: 34px; line-height: 1; cursor: pointer;
}
@media (prefers-reduced-motion: no-preference) {
  .nr-photos-overlay { animation: nr-fade .12s ease-out; }
  @keyframes nr-fade { from { opacity: 0; } to { opacity: 1; } }
}
