:root {
  --ink: #1e2329;
  --muted: #67717f;
  --line: #d9dee7;
  --panel: #ffffff;
  --paper: #f6f8fb;
  --brand: #176b87;
  --brand-dark: #0f4c5c;
  --accent: #0f4c5c;
  --good: #168a61;
  --danger: #c2410c;
  --shadow: 0 12px 34px rgba(28, 40, 55, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", "Apple SD Gothic Neo", Arial, sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 66px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  flex-direction: column;
  min-width: 190px;
  align-items: flex-start;
  font-weight: 800;
  color: var(--brand-dark);
  background: #fff;
  border: 0;
}

.brand-name {
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.brand-jw {
  color: var(--brand);
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
}

.nav button,
.auth-actions button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 13px;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  white-space: nowrap;
}

.nav .primary,
.btn.primary {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.nav button.active-tab,
.tabs button.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18);
}

.nav button:hover,
.auth-actions button:hover,
.btn:hover {
  border-color: var(--line);
  background: #fff;
}

.btn.primary:hover,
.nav .primary:hover {
  color: #fff;
  background: var(--brand-dark);
}

.nav button.active-tab:hover,
.tabs button.active:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.btn.warning {
  color: #fff;
  background: var(--danger);
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-chip {
  max-width: 220px;
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

main {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 28px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  align-items: stretch;
  min-height: 420px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 0;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
}

h1 {
  max-width: 720px;
  font-size: clamp(36px, 5vw, 68px);
}

.hero-kicker {
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 10px;
  color: #fff;
  background: var(--accent);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 900;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-banner {
  position: relative;
  min-height: 420px;
  border-radius: 8px;
  overflow: hidden;
  background: #0f4c5c;
  box-shadow: var(--shadow);
}

.banner-track {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.banner-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  padding: 28px;
  color: #fff;
  background-position: center;
  background-size: cover;
  transform: translateX(100%);
  transition: transform 650ms ease;
}

.banner-slide.active {
  transform: translateX(0);
  z-index: 2;
}

.banner-slide.exit-left {
  transform: translateX(-100%);
  z-index: 1;
}

.banner-slide span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  background: rgba(15, 76, 92, 0.92);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 900;
}

.banner-slide h2 {
  max-width: 420px;
  margin-top: 10px;
  font-size: clamp(26px, 3.2vw, 42px);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.banner-dots {
  position: absolute;
  right: 22px;
  bottom: 18px;
  z-index: 3;
  display: flex;
  gap: 7px;
}

.banner-dots button {
  width: 9px;
  height: 9px;
  min-height: 9px;
  padding: 0;
  background: rgba(255, 255, 255, 0.56);
  border: 0;
  border-radius: 999px;
  transition: width 160ms ease, background 160ms ease, transform 160ms ease;
}

.banner-dots button.active {
  width: 24px;
  background: #fff;
}

.banner-dots button:hover,
.banner-dots button:focus-visible {
  background: #fff;
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
  transform: translateY(-1px);
}

.section {
  margin-top: 28px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.card,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 5px 18px rgba(28, 40, 55, 0.05);
}

.card {
  padding: 18px;
}

.panel {
  padding: 22px;
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.stack {
  display: grid;
  gap: 14px;
}

.form {
  display: grid;
  gap: 13px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

textarea {
  min-height: 82px;
  resize: vertical;
}

.auth-screen {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 66px);
}

.auth-box {
  width: min(440px, 100%);
}

.auth-footer {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.link-btn {
  color: var(--brand);
  background: transparent;
  text-decoration: underline;
}

.quiz {
  display: grid;
  gap: 18px;
}

.question {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.option input {
  width: auto;
  min-height: auto;
}

.result-layout,
.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 20px;
  align-items: start;
}

.learn-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(260px, 0.52fr);
  gap: 16px;
  align-items: start;
}

.chart-box {
  min-height: 420px;
}

.weak-list {
  display: grid;
  gap: 10px;
}

.lecture-player {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(15, 76, 92, 0.88), rgba(20, 27, 34, 0.78)),
    url("https://images.unsplash.com/photo-1450101499163-c8848c66ca85?auto=format&fit=crop&w=1200&q=80");
  background-size: cover;
  border-radius: 8px;
  overflow: hidden;
}

.lecture-player.has-video {
  background: #101820;
}

.lecture-player video,
.lecture-player img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #101820;
}

.lecture-player.has-video video,
.lecture-player.has-video .lecture-fallback {
  position: absolute;
  inset: 0;
}

.lecture-player.thumbnail-only img,
.lecture-player .lecture-fallback {
  object-fit: cover;
}

.lecture-player h2 {
  padding: 20px;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.timeline {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 86px;
}

.timeline-shortcuts,
.comment-area {
  display: grid;
  gap: 10px;
}

.timeline-shortcuts {
  max-height: calc(100vh - 190px);
  overflow: auto;
}

.comment-area p {
  margin: 0;
}

.comment-area {
  margin-top: 12px;
  padding: 16px;
}

.timeline button {
  justify-content: flex-start;
  background: #fff;
  border: 1px solid var(--line);
}

.timeline-marker {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  min-height: 44px;
  gap: 8px;
  text-align: left;
}

.timeline-marker strong {
  color: var(--brand);
}

.timeline-marker span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-marker.comment-marker {
  background: #f7fbfc;
}

.comment-compose {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 104px;
  gap: 8px;
  align-items: stretch;
}

.comment-compose input,
.comment-compose textarea {
  height: 44px;
  min-height: 44px;
  padding: 9px 10px;
  font-size: 14px;
}

.comment-compose textarea {
  resize: none;
}

.comment-compose .btn {
  width: 104px;
  min-width: 104px;
  min-height: 44px;
  padding: 8px 10px;
}

.comment-list {
  display: grid;
  gap: 10px;
}

.comment-time {
  padding: 0;
  font-weight: 700;
}

.comment-actions,
.comment-admin-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.danger-link {
  color: #9f2d17;
}

.comment-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  transition: grid-template-columns 180ms ease;
}

.comment-admin-layout.preview-open {
  grid-template-columns: minmax(420px, 1fr) minmax(360px, 0.82fr);
}

.comment-item,
.comment-admin-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.comment-admin-item {
  border-color: #111827;
}

.comment-admin-item textarea {
  min-height: 56px;
  height: 56px;
  resize: vertical;
}

.comment-admin-item .answer-create {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.comment-admin-item .answer-update {
  color: #fff;
  background: #345995;
  border-color: #345995;
}

.comment-item p,
.comment-admin-item p {
  margin: 0;
}

.comment-question,
.admin-answer {
  padding: 10px;
  border-radius: 6px;
}

.comment-question {
  display: grid;
  width: 100%;
  gap: 6px;
  color: var(--ink);
  text-align: left;
  background: #f6f8fb;
  border: 1px solid #111827;
}

button.comment-question:hover {
  border-color: var(--brand);
  background: #eef7f8;
}

.admin-answer {
  border-left: 4px solid var(--brand);
  background: #eef7f8;
}

.admin-video-preview {
  position: sticky;
  top: 86px;
  animation: slidePreview 180ms ease-out;
}

.video-thumb {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--brand-dark);
  border-radius: 6px;
  font-weight: 900;
}

.video-thumb video,
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-manager {
  min-height: 620px;
}

.video-list {
  display: grid;
  gap: 8px;
}

.video-category-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 78px;
  min-height: 78px;
  max-height: 78px;
  padding: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  background: #eef3f7;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.video-category-tabs .btn {
  flex: 0 0 124px;
  width: 124px;
  min-width: 124px;
  max-width: 124px;
  height: 52px;
  min-height: 52px;
  max-height: 52px;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #fff;
  border-color: var(--line);
}

.video-category-tabs .btn.primary {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.comment-category-tabs {
  height: 58px;
  min-height: 58px;
  max-height: 58px;
  padding: 8px;
}

.comment-category-tabs .btn {
  flex-basis: 104px;
  width: 104px;
  min-width: 104px;
  max-width: 104px;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
}

.video-list-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  color: var(--ink);
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.video-list-item:hover {
  border-color: var(--brand);
  background: #f7fbfc;
}

.video-list-item h3 {
  margin-top: 8px;
  font-size: 18px;
}

.video-list-item p {
  margin: 6px 0;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 10px;
}

.video-editor {
  min-height: 620px;
}

.video-editor-form {
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: start;
}

.video-editor-preview {
  position: sticky;
  top: 86px;
}

.video-editor-fields {
  display: grid;
  gap: 13px;
}

.timeline-editor {
  min-height: 96px;
  font-family: inherit;
}

.thumbnail-field {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.thumbnail-field img {
  width: 180px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.thumbnail-setting {
  gap: 10px;
  padding: 14px;
  color: var(--ink);
  background: #f7fbfc;
  border: 1px solid var(--brand);
  border-radius: 8px;
}

.thumbnail-setting > strong {
  font-size: 16px;
}

.thumbnail-setting > small {
  color: var(--muted);
  font-weight: 500;
}

.path-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.video-editor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.upload-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: min(360px, calc(100vw - 44px));
  display: none;
  pointer-events: none;
}

.upload-widget.show {
  display: grid;
  gap: 8px;
  align-content: end;
}

.upload-widget.collapsed {
  width: min(260px, calc(100vw - 44px));
}

.upload-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  color: #fff;
  text-align: left;
  background: var(--brand);
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
  cursor: pointer;
  pointer-events: auto;
}

.upload-toggle span,
.upload-toggle strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-toggle strong {
  flex: 0 0 auto;
  font-size: 13px;
}

.upload-stack {
  display: grid;
  gap: 10px;
  max-height: min(420px, calc(100vh - 170px));
  overflow: auto;
}

.upload-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  pointer-events: auto;
}

.upload-card .row {
  justify-content: space-between;
  flex-wrap: nowrap;
}

.upload-card strong,
.upload-card p {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-card p {
  margin: 0;
  font-size: 13px;
}

.upload-card .upload-target {
  color: var(--brand);
  font-weight: 700;
}

.upload-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.upload-bar {
  width: 100%;
  height: 10px;
  overflow: hidden;
  background: #e7ebf0;
  border-radius: 999px;
}

.upload-bar span {
  display: block;
  height: 100%;
  background: var(--brand);
  transition: width 160ms ease;
}

.upload-card small {
  color: var(--muted);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-card .link-btn {
  flex: 0 0 auto;
  padding: 0;
  font-size: 13px;
}

.server-video-list {
  display: grid;
  gap: 10px;
}

.server-folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.server-folder-item {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 14px;
  color: var(--ink);
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.server-folder-item:hover {
  border-color: var(--brand);
  background: #f7fbfc;
}

.server-folder-item small {
  color: var(--muted);
}

.server-folder-item span {
  align-self: end;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}

.server-video-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  color: var(--ink);
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.server-video-item:hover {
  border-color: var(--brand);
  background: #f7fbfc;
}

.server-video-item p {
  margin: 6px 0;
}

.server-video-item small {
  color: var(--muted);
  word-break: break-all;
}

.preview-question {
  margin-top: 12px;
}

@keyframes slidePreview {
  from {
    opacity: 0;
    transform: translateX(22px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.lesson-list {
  display: grid;
  gap: 9px;
}

.lesson-dock {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 38;
  width: min(330px, calc(100vw - 44px));
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.lesson-dock-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  color: #fff;
  text-align: left;
  background: var(--brand);
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
  cursor: pointer;
  pointer-events: auto;
}

.lesson-dock-toggle span,
.lesson-dock-toggle strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lesson-dock-toggle strong {
  flex: 0 0 auto;
  font-size: 13px;
}

.lesson-dock-list {
  display: grid;
  gap: 7px;
  max-height: min(420px, calc(100vh - 170px));
  padding: 8px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  pointer-events: auto;
}

.lesson-dock.collapsed {
  width: min(230px, calc(100vw - 44px));
}

.lesson-dock.collapsed .lesson-dock-list {
  display: none;
}

.lesson-dock .lesson {
  gap: 5px;
  padding: 9px;
}

.lesson-dock .lesson strong {
  font-size: 14px;
}

.lesson-dock .lesson small {
  display: none;
}

.lesson-dock .lesson .btn {
  min-height: 32px;
  padding: 6px 8px;
  font-size: 13px;
}

.lesson {
  display: grid;
  gap: 6px;
  padding: 12px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.lesson.active {
  border-color: var(--brand);
  box-shadow: inset 4px 0 0 var(--brand);
}

.badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.badge.good {
  background: var(--good);
}

.progress {
  width: 100%;
  height: 8px;
  overflow: hidden;
  background: #e7ebf0;
  border-radius: 999px;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--brand);
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.chart-box canvas,
.modal-body canvas {
  display: block;
  width: 100% !important;
  height: 360px !important;
  max-height: 360px;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 13px;
  background: #eef3f7;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.48);
}

.modal {
  width: min(900px, 100%);
  max-height: 88vh;
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.modal-head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.modal-body {
  padding: 18px;
}

.empty {
  padding: 24px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

@media (max-width: 880px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
    padding: 12px 16px;
  }

  .auth-actions {
    justify-content: flex-end;
  }

  main {
    padding: 18px;
  }

  .hero,
  .result-layout,
  .learn-layout,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .timeline {
    position: static;
  }

  .lesson-dock {
    right: 14px;
    bottom: 14px;
    width: min(300px, calc(100vw - 28px));
  }

  .hero {
    min-height: auto;
  }

  .hero-banner {
    min-height: 230px;
  }

  .comment-compose {
    grid-template-columns: 1fr;
  }

  .comment-compose .btn {
    width: 100%;
  }

  .comment-admin-layout.preview-open {
    grid-template-columns: 1fr;
  }

  .admin-video-preview {
    position: static;
  }

  .video-list-item,
  .video-editor-form {
    grid-template-columns: 1fr;
  }

  .video-editor-preview {
    position: static;
  }

  .video-editor-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .path-picker,
  .server-video-item {
    grid-template-columns: 1fr;
  }

  .thumbnail-field {
    grid-template-columns: 1fr;
  }

  .thumbnail-field img {
    width: min(100%, 280px);
  }
}
