.iwg {
  --iwg-accent: #0c8281;
  --iwg-accent-dark: #075f5e;
  --iwg-accent-soft: #e8f7f6;
  --iwg-accent-rgb: 12, 130, 129;
  --iwg-ink: #202124;
  --iwg-muted: #667085;
  --iwg-line: #d9dde3;
  --iwg-soft: #f5f6f8;
  --iwg-panel: #fbfcfd;
  --iwg-cols: 3;
  color: var(--iwg-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  padding: 0 16px;
}

.iwg * {
  box-sizing: border-box;
  border-radius: 0 !important;
}

.iwg-card-title,
.iwg-detail-title,
.iwg-modal-head h3,
.iwg-section-head h4,
.iwg-form-kicker,
.iwg-info-kicker {
  font-family: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.iwg-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 0 0 18px;
  flex-wrap: wrap;
}

.iwg-filters,
.iwg-admin-actions,
.iwg-form-row,
.iwg-form-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.iwg-input,
.iwg-textarea {
  min-height: 42px;
  border: 1px solid var(--iwg-line);
  border-radius: 6px;
  padding: 9px 11px;
  background: #fff;
  color: var(--iwg-ink);
  font: inherit;
  width: 100%;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.iwg-input:focus,
.iwg-textarea:focus {
  border-color: var(--iwg-accent);
  box-shadow: 0 0 0 3px rgba(var(--iwg-accent-rgb), .14);
  outline: 0;
}

.iwg-input[type="checkbox"] {
  min-height: 0;
  width: auto;
}

.iwg-file-input {
  padding: 8px;
}

.iwg-file-input::file-selector-button {
  border: 1px solid var(--iwg-line);
  border-radius: 4px;
  background: #fff;
  color: var(--iwg-ink);
  font: inherit;
  font-weight: 700;
  min-height: 30px;
  margin-right: 10px;
  padding: 5px 9px;
  cursor: pointer;
}

.iwg-textarea {
  min-height: 120px;
  resize: vertical;
}

.iwg-button,
.iwg-icon-button {
  border: 1px solid var(--iwg-line);
  background: #fff;
  color: var(--iwg-ink);
  min-height: 38px;
  border-radius: 6px;
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
  font-weight: 600;
  transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}

.iwg-button:hover,
.iwg-icon-button:hover {
  border-color: var(--iwg-accent);
  background: var(--iwg-accent-soft);
  color: var(--iwg-accent-dark);
  transform: translateY(-1px);
}

.iwg-button-primary {
  background: var(--iwg-accent);
  border-color: var(--iwg-accent);
  color: #fff;
}

.iwg-button-primary:hover {
  background: var(--iwg-accent-dark);
  border-color: var(--iwg-accent-dark);
  color: #fff;
}

.iwg-button:disabled {
  cursor: progress;
  opacity: .68;
  transform: none;
}

.iwg-button-danger {
  color: #b42318;
  border-color: #f1b8b3;
}

.iwg-button-ghost { background: var(--iwg-soft); }

.iwg-icon-button {
  width: 38px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}

.iwg-status {
  color: var(--iwg-muted);
  min-height: 24px;
  margin-bottom: 8px;
}

.iwg-grid {
  display: grid;
  grid-template-columns: repeat(var(--iwg-cols), minmax(0, 1fr));
  gap: 22px;
}

.iwg-card {
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 0 rgba(17, 24, 39, .08);
  transition: transform .18s ease, box-shadow .18s ease;
}

.iwg-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(var(--iwg-accent-rgb), .16), 0 8px 18px rgba(17, 24, 39, .08);
}

.iwg-card-media {
  aspect-ratio: 4 / 3;
  border: 0;
  padding: 0;
  width: 100%;
  background: #d7dce2;
  display: block;
  position: relative;
  overflow: hidden;
}

.iwg-card-open {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.iwg-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .28s ease, filter .28s ease;
}

.iwg-card:hover .iwg-card-media img {
  transform: scale(1.04);
  filter: saturate(1.03);
}

.iwg-card-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #eef1f4, #cfd6de);
}

.iwg-card-view {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 4px;
  padding: 7px 11px;
  background: rgba(255,255,255,.94);
  color: var(--iwg-ink);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
}

.iwg-card:hover .iwg-card-view,
.iwg-card-open:focus .iwg-card-view {
  opacity: 1;
  background: var(--iwg-accent);
  color: #fff;
  transform: translateY(0);
}

.iwg-card-admin-tools {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  gap: 6px;
}

.iwg-card-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: var(--iwg-accent-dark);
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(17, 24, 39, .18);
  transition: background .16s ease, color .16s ease, transform .16s ease, border-color .16s ease;
}

.iwg-card-tool:hover {
  background: var(--iwg-accent);
  border-color: var(--iwg-accent);
  color: #fff;
  transform: translateY(-1px);
}

.iwg-card-tool-danger {
  color: #b42318;
}

.iwg-card-tool-danger:hover {
  background: #b42318;
  border-color: #b42318;
  color: #fff;
}

.iwg-card-body { padding: 14px 12px 2px; }

.iwg-card-title {
  margin: 0 0 6px;
  font-size: 1.08rem;
  line-height: 1.28;
  font-weight: 750;
}

.iwg-card-meta {
  color: var(--iwg-muted);
  font-size: .9rem;
  line-height: 1.4;
}

.iwg-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.iwg-alert {
  display: grid;
  gap: 5px;
  border: 1px solid var(--iwg-line);
  border-radius: 6px;
  padding: 11px 12px;
  background: #fff;
  color: #344054;
  line-height: 1.45;
}

.iwg-alert-info {
  border-color: #b8d7ef;
  background: #f1f8fe;
  color: #194866;
}

.iwg-alert-success {
  border-color: #a8dcc0;
  background: #f0fbf4;
  color: #14532d;
}

.iwg-alert-error {
  border-color: #f1b8b3;
  background: #fff1ee;
  color: #912018;
}

.iwg-import-result {
  display: grid;
  gap: 8px;
}

.iwg-import-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.iwg-advanced-import {
  border: 1px solid var(--iwg-line);
  border-radius: 6px;
  background: #fff;
  padding: 10px 12px;
}

.iwg-advanced-import summary {
  cursor: pointer;
  color: var(--iwg-muted);
  font-weight: 750;
}

.iwg-advanced-import .iwg-form-grid {
  margin-top: 10px;
}

.iwg-detail[hidden] { display: none; }

.iwg-detail-topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 0 0 18px;
}

.iwg-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid var(--iwg-line);
  border-radius: 999px;
  background: #fff;
  color: var(--iwg-accent-dark);
  padding: 8px 14px 8px 10px;
  margin: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(17, 24, 39, .06);
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.iwg-detail-back span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--iwg-accent-soft);
  color: var(--iwg-accent-dark);
  line-height: 1;
}

.iwg-detail-back:hover {
  border-color: var(--iwg-accent);
  background: var(--iwg-accent-soft);
  transform: translateY(-1px);
}

.iwg-detail-title {
  margin: 0;
  font-size: clamp(1.55rem, 2.6vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.iwg-detail-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.iwg-detail-switcher {
  display: flex;
  gap: 8px;
}

.iwg-switch-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  min-width: 142px;
  border: 1px solid var(--iwg-line);
  border-radius: 999px;
  background: #fff;
  color: var(--iwg-ink);
  padding: 7px 12px;
  font: inherit;
  font-size: .88rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(17, 24, 39, .06);
  transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}

.iwg-switch-next {
  flex-direction: row-reverse;
}

.iwg-switch-button:hover {
  border-color: var(--iwg-accent);
  background: var(--iwg-accent-soft);
  color: var(--iwg-accent-dark);
  transform: translateY(-1px);
}

.iwg-detail-layout {
  --iwg-detail-height: min(72vh, 680px);
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, .75fr);
  gap: 28px;
  align-items: start;
}

.iwg-detail-media {
  min-width: 0;
}

.iwg-detail-stage {
  position: sticky;
  top: 18px;
  z-index: 1;
  height: var(--iwg-detail-height);
}

.iwg-detail-hero {
  background: #e5e8ec;
  height: 100%;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 16px 38px rgba(17, 24, 39, .12);
  position: relative;
  cursor: zoom-in;
}

.iwg-detail-hero img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.iwg-image-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 46px;
  height: 66px;
  border: 1px solid rgba(255,255,255,.7);
  background: rgba(12, 130, 129, .78);
  color: #fff;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .16s ease, border-color .16s ease;
}

.iwg-image-nav:hover {
  background: var(--iwg-accent-dark);
  border-color: #fff;
}

.iwg-image-nav-prev { left: 12px; }
.iwg-image-nav-next { right: 12px; }

.iwg-image-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(7, 95, 94, .9);
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.iwg-thumb-strip {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding: 2px 2px 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--iwg-accent) #edf1f4;
  scrollbar-width: thin;
}

.iwg-thumb {
  flex: 0 0 82px;
  border: 2px solid transparent;
  padding: 0;
  background: #e7ebf0;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
}

.iwg-thumb.is-active {
  border-color: var(--iwg-accent);
  box-shadow: 0 0 0 3px rgba(var(--iwg-accent-rgb), .16);
}

.iwg-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.iwg-thumb-panel {
  position: sticky;
  top: 18px;
  height: var(--iwg-detail-height);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.iwg-info-kicker {
  color: var(--iwg-accent-dark);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.iwg-thumb-panel .iwg-detail-copy {
  margin-bottom: 16px;
}

.iwg-thumb-panel .iwg-thumb-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 112px;
  align-content: start;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 0;
  padding: 2px 4px 4px 2px;
  overflow-x: hidden;
  overflow-y: auto;
}

.iwg-thumb-panel .iwg-thumb {
  flex: none;
  width: 100%;
  height: 112px;
  aspect-ratio: auto;
}

.iwg-facts {
  display: grid;
  gap: 0;
  margin: 0 0 18px;
  border-top: 1px solid var(--iwg-line);
}

.iwg-facts div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--iwg-line);
}

.iwg-facts dt {
  color: var(--iwg-muted);
  font-size: .84rem;
  font-weight: 700;
}

.iwg-facts dd {
  margin: 0;
  font-weight: 700;
  color: #1f3438;
}

.iwg-detail-copy {
  color: #3c4654;
  line-height: 1.65;
}

.iwg-detail-copy:empty { display: none; }
.iwg-detail-copy :first-child { margin-top: 0; }
.iwg-detail-copy :last-child { margin-bottom: 0; }

.iwg-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(20, 24, 31, .58);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 16px;
  overflow: auto;
}

.iwg-overlay[hidden] { display: none; }

.iwg-modal {
  width: min(1100px, 100%);
  max-height: calc(100vh - 96px);
  overflow: hidden;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 20px 80px rgba(0,0,0,.28);
  display: flex;
  flex-direction: column;
}

.iwg-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--iwg-line);
  background: linear-gradient(180deg, #fff, #fafbfc);
}

.iwg-modal-head h3 {
  margin: 0;
  font-size: 1.15rem;
}

.iwg-modal-body {
  padding: 18px;
  overflow: auto;
  background: #f3f5f7;
}

.iwg-form {
  display: grid;
  gap: 12px;
}

.iwg-admin-form {
  gap: 14px;
}

.iwg-form-section {
  background: #fff;
  border: 1px solid var(--iwg-line);
  border-radius: 8px;
  overflow: hidden;
}

.iwg-section-head {
  padding: 12px 14px;
  border-bottom: 1px solid #edf0f3;
  background: var(--iwg-panel);
}

.iwg-section-head h4 {
  margin: 0;
  font-size: .95rem;
  font-weight: 700;
  color: #303744;
}

.iwg-section-body {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.iwg-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.iwg-form-grid-primary {
  grid-template-columns: minmax(0, 2fr) minmax(160px, .9fr) minmax(90px, .45fr);
}

.iwg-field-wide {
  grid-column: span 2;
}

.iwg-field label {
  display: block;
  font-size: .86rem;
  color: var(--iwg-muted);
  margin-bottom: 5px;
  font-weight: 650;
}

.iwg-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
}

.iwg-checks label {
  margin: 0;
}

.iwg-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.iwg-choice span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--iwg-line);
  border-radius: 999px;
  padding: 7px 12px;
  background: #fff;
  color: #344054;
  font-weight: 600;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.iwg-choice input:checked + span {
  background: var(--iwg-accent-soft);
  border-color: var(--iwg-accent);
  color: var(--iwg-accent-dark);
}

.iwg-choice input:focus + span {
  box-shadow: 0 0 0 3px rgba(var(--iwg-accent-rgb), .14);
}

.iwg-toggle-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.iwg-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  border: 1px solid var(--iwg-line);
  border-radius: 999px;
  padding: 6px 12px 6px 7px;
  background: #fff;
  cursor: pointer;
}

.iwg-toggle input {
  position: absolute;
  opacity: 0;
}

.iwg-toggle span {
  width: 40px;
  height: 24px;
  border-radius: 999px;
  background: #d0d5dd;
  position: relative;
  transition: background .16s ease;
}

.iwg-toggle span::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .28);
  transition: transform .16s ease;
}

.iwg-toggle input:checked + span {
  background: var(--iwg-accent);
}

.iwg-toggle input:checked + span::after {
  transform: translateX(16px);
}

.iwg-toggle strong {
  font-size: .92rem;
}

.iwg-rich-text {
  min-height: 180px;
}

.iwg-textarea-compact {
  min-height: 86px;
}

.iwg-upload-zone {
  display: grid;
  justify-items: center;
  gap: 5px;
  border: 1px dashed #b7c0cc;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 22px;
  text-align: center;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}

.iwg-upload-zone:hover {
  border-color: var(--iwg-accent);
  background: var(--iwg-accent-soft);
}

.iwg-upload-zone input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.iwg-upload-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--iwg-accent);
  color: #fff;
  font-size: 26px;
  line-height: 1;
}

.iwg-upload-zone small {
  color: var(--iwg-muted);
}

.iwg-upload-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.iwg-file-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 9px;
  background: #eef2f6;
  color: #344054;
  font-size: .84rem;
}

.iwg-sticky-actions {
  position: sticky;
  bottom: -18px;
  z-index: 2;
  margin: 2px -18px -18px;
  padding: 12px 18px;
  border-top: 1px solid var(--iwg-line);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(6px);
  justify-content: flex-end;
}

.iwg-manager-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 14px;
}

.iwg-manager-form,
.iwg-table-panel {
  background: #fff;
  border: 1px solid var(--iwg-line);
  border-radius: 8px;
  padding: 14px;
}

.iwg-form-kicker {
  color: var(--iwg-accent-dark);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.iwg-table-panel {
  overflow: auto;
}

.iwg-table {
  width: 100%;
  border-collapse: collapse;
}

.iwg-table th,
.iwg-table td {
  border-bottom: 1px solid var(--iwg-line);
  padding: 9px 8px;
  text-align: left;
  vertical-align: middle;
}

.iwg-table th {
  color: var(--iwg-muted);
  font-size: .84rem;
  font-weight: 600;
}

.iwg-image-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.iwg-image-item {
  border: 1px solid var(--iwg-line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.iwg-image-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
}

.iwg-image-tools {
  display: flex;
  gap: 6px;
  padding: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.iwg-image-item[draggable="true"] {
  cursor: grab;
}

.iwg-image-item.is-dragging {
  cursor: grabbing;
  opacity: .58;
  outline: 2px solid var(--iwg-accent);
}

.iwg-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  border: 1px solid var(--iwg-line);
  background: var(--iwg-soft);
  color: var(--iwg-muted);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: -2px;
  cursor: grab;
  user-select: none;
}

.iwg-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(7, 14, 18, .86);
}

.iwg-lightbox-frame {
  position: relative;
  width: min(1600px, 96vw);
  height: min(920px, 90vh);
  display: flex;
  align-items: center;
  justify-content: center;
}

.iwg-lightbox-frame img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .42);
}

.iwg-lightbox-close,
.iwg-lightbox-nav {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255,255,255,.7);
  background: rgba(12, 130, 129, .82);
  color: #fff;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease;
}

.iwg-lightbox-close:hover,
.iwg-lightbox-nav:hover {
  background: var(--iwg-accent-dark);
  border-color: #fff;
}

.iwg-lightbox-close {
  top: 0;
  right: 0;
  width: 46px;
  height: 46px;
  font-size: 34px;
  line-height: 1;
}

.iwg-lightbox-nav {
  top: 50%;
  width: 54px;
  height: 82px;
  font-size: 52px;
  line-height: 1;
  transform: translateY(-50%);
}

.iwg-lightbox-prev { left: 0; }
.iwg-lightbox-next { right: 0; }

.iwg-lightbox-count {
  position: absolute;
  right: 0;
  bottom: 0;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  background: rgba(7, 95, 94, .92);
  color: #fff;
  font-size: .86rem;
  font-weight: 850;
}

@media (max-width: 900px) {
  .iwg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .iwg-detail-topbar {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .iwg-detail-top-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .iwg-detail-layout { grid-template-columns: 1fr; }
  .iwg-detail-stage,
  .iwg-thumb-panel {
    position: static;
    height: auto;
  }
  .iwg-detail-hero {
    height: auto;
    aspect-ratio: 16 / 10;
  }
  .iwg-thumb-panel .iwg-thumb-strip {
    max-height: 360px;
  }
  .iwg-image-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .iwg-form-grid-primary,
  .iwg-manager-layout { grid-template-columns: 1fr; }
  .iwg-field-wide { grid-column: auto; }
}

@media (max-width: 620px) {
  .iwg-grid,
  .iwg-form-grid,
  .iwg-import-grid,
  .iwg-image-list { grid-template-columns: 1fr; }

  .iwg-thumb { flex-basis: 74px; }
  .iwg-thumb-panel .iwg-thumb-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 96px;
  }
  .iwg-thumb-panel .iwg-thumb {
    height: 96px;
  }

  .iwg-toolbar,
  .iwg-filters,
  .iwg-admin-actions,
  .iwg-button,
  .iwg-input { width: 100%; }

  .iwg-modal-body { padding: 12px; }
  .iwg-sticky-actions {
    margin: 2px -12px -12px;
    padding: 12px;
  }
}
