* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --background: #faf8f5;
  --foreground: #1a1814;
  --card: #ffffff;
  --card-foreground: #1a1814;
  --muted: #f0ede8;
  --muted-foreground: #6b6560;
  --accent: #c45a3b;
  --border: #e8e4de;
  --radius: 0.5rem;
  /*--warning: #ff7900; alternative color for warning labels, unused currently */
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

/* Header */
.header {
  background-color: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

#designs,
#techniques,
#notes {
  scroll-margin-top: 6.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-image {
  height: 2rem;
  width: auto;
}

/*Easter egg related*/
.logo-image {
  height: 2rem;
  width: auto;
  cursor: default;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
}

/*Shake speed*/
.logo-image--shake {
  animation: logo-shake 0.34s ease-in-out;
}

.logo-image--gone {
  visibility: hidden;
  pointer-events: none;
}

.falling-logo-clone {
  position: fixed;
  pointer-events: none;
  transform-origin: center center;
  z-index: 2000;
}

/*Fall speed*/
.falling-logo-clone--animate {
  animation: logo-fall 2.2s cubic-bezier(0.22, 0.7, 0.2, 1) forwards;
}

/*Shake turn values*/
@keyframes logo-shake {
  0%   { transform: rotate(0deg); }
  18%  { transform: rotate(-16deg); }
  38%  { transform: rotate(18deg); }
  56%  { transform: rotate(-12deg); }
  74%  { transform: rotate(8deg); }
  100% { transform: rotate(0deg); }
}

@keyframes logo-fall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate3d(18px, 120vh, 0) rotate(135deg);
    opacity: 0;
  }
}
/*Easter egg over*/

.unselectable{
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

.logo-text {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.search-container {
  flex: 1;
  max-width: 400px;
}

.search-input {
  width: 100%;
  padding: 0.5rem 1rem;
  padding-left: 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--muted);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(196, 90, 59, 0.1);
}

.search-wrapper {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--muted-foreground);
}

.nav-links {
  display: flex;
  gap: 0.5rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-decoration: none;
  border-radius: var(--radius);
  transition: background-color 0.2s, color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  background-color: var(--muted);
  color: var(--foreground);
}

/* Main Content */
.main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

/* Section Headers */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.section-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Filter Buttons */
.filter-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--card);
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  background-color: var(--muted);
  color: var(--foreground);
}

.filter-btn.active {
  background-color: var(--foreground);
  color: var(--background);
  border-color: var(--foreground);
}

/* View Mode Toggle */
.view-mode-toggle {
  display: flex;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.view-mode-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 100%;
  flex: 0 0 2.25rem;
  background-color: var(--card);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  color: var(--muted-foreground);
}

.view-mode-btn:not(:last-child) {
  border-right: 1px solid var(--border);
}

.view-mode-btn:hover {
  background-color: var(--muted);
  color: var(--foreground);
}

.view-mode-btn.active {
  background-color: var(--foreground);
  color: var(--background);
}

.view-mode-btn svg {
  width: 1rem;
  height: 1rem;
}

/* Patch Grid */
.patch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

/* Gallery View - Masonry card layout */
.patch-grid--gallery {
  display: block;
  column-width: 350px;
  column-gap: 1.5rem;
  margin-bottom: 3rem;
}

.patch-card--gallery {
  display: inline-block;
  width: 100%;
  margin: 0 0 1.5rem;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  vertical-align: top;
}

.patch-grid--gallery .empty-state {
  display: block;
  width: 100%;
}

/* Old gallery view:
.patch-grid--gallery {
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  align-items: start;
}
*/

/* List View - Single column rows */
.patch-grid--list {
  grid-template-columns: 1fr;
  gap: 1rem;
}

.patch-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.patch-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.patch-image-container {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--muted);
  cursor: pointer;
}

.patch-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

/*disabled for now
.patch-card:hover .patch-image {
  transform: scale(1.03);
}*/

.patch-card--gallery:hover .patch-image--true-size {
  transform: none;
}

/* Gallery View Card Styles */
.patch-card--gallery .patch-image-container {
  aspect-ratio: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--muted);
}

.patch-card--gallery .patch-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 520px;
}

.patch-card--gallery .patch-image--true-size {
  height: auto;
  flex: 0 0 auto;
}

.patch-card--gallery .patch-content {
  padding: 0.75rem 0.75rem 0.875rem;
}

.patch-card--gallery .patch-title {
  font-size: 0.8125rem;
  margin-bottom: 0.25rem;
}

.patch-card--gallery .patch-description {
  font-size: 0.6875rem;
  line-height: 1.4;
  margin-bottom: 0.45rem;
}

.patch-card--gallery .patch-techniques {
  gap: 0.3125rem;
  margin-bottom: 0.45rem;
}

.patch-card--gallery .technique-tag {
  font-size: 0.625rem;
  padding: 0.1875rem 0.4375rem;
}

/* List View Card Styles */
.patch-card--list {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.patch-card--list .patch-image-container {
  width: 220px;
  min-width: 220px;
  aspect-ratio: auto;
  height: 190px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.patch-card--list .patch-image {
  object-fit: cover;
}

.patch-card--list .patch-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.25rem 1.5rem;
  flex: 1;
}

.patch-card--list .patch-link-btn {
  width: 8.5rem;
  justify-content: center;
  align-self: flex-start;
}

.patch-card--list .patch-description {
  margin-bottom: 0.5rem;
}

.patch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.patch-actions .patch-link-btn {
  min-height: 2rem;
  white-space: nowrap;
}

.patch-actions button.patch-link-btn {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
}

.patch-card--list .patch-actions {
  align-self: flex-start;
}

.difficulty-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  border-radius: 9999px;
}

.difficulty-beginner {
  background-color: #d1fae5;
  color: #065f46;
}

.difficulty-intermediate {
  background-color: #fef3c7;
  color: #92400e;
}

.difficulty-advanced {
  background-color: #fee2e2;
  color: #991b1b;
}

/*OLD:
.wip-badge {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.6rem;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
  background-color: var(--warning); default: accent
  color: white;
  border-radius: 0.375rem;
  white-space: nowrap;
}*/

.wip-badge {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
  background-color: var(--accent);
  color: white;
  border-radius: 0.375rem;
  white-space: nowrap;
}

.wip-badge::before,
.wip-badge::after {
  content: "";
  width: 0.8rem;
  height: 0.8rem;
  flex: 0 0 0.8rem;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0Z'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
}

.technique-card--wip {
  padding-bottom: 2.6rem;
}

.modal-title-row .wip-badge {
  position: static;
  bottom: auto;
  right: auto;
}

.patch-content {
  padding: 1rem;
}

.patch-title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  letter-spacing: -0.01em;
}

.patch-description {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.patch-techniques {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
}

.technique-tag {
  padding: 0.25rem 0.5rem;
  font-size: 0.6875rem;
  background-color: var(--muted);
  color: var(--muted-foreground);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.technique-tag:hover {
  background-color: var(--accent);
  color: white;
}

.patch-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s;
}

.patch-link-btn:hover {
  background-color: #a84a2f;
}

.patch-link-btn svg {
  width: 0.875rem;
  height: 0.875rem;
}

.patch-additional-images-btn {
  background-color: var(--muted);
  color: var(--muted-foreground);
}

.patch-additional-images-btn:hover {
  background-color: var(--accent);
  color: white;
}

/* Technique Section */
.technique-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.technique-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  gap: 1rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}

.technique-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.technique-card .difficulty-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

.technique-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
  background-color: var(--muted);
}

.technique-info {
  flex: 1;
  min-width: 0;
}

.technique-name {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.technique-description {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.technique-count {
  font-size: 0.6875rem;
  color: var(--accent);
  font-weight: 500;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--card);
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--muted);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--foreground);
  transition: background-color 0.2s;
  z-index: 10;
}

.modal-close:hover {
  background-color: var(--border);
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  align-items: stretch;
}

.modal-demo-image {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  flex-shrink: 0;
}

.modal-title-section {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
}

.modal-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.modal-copy-actions {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.modal-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  align-self: flex-start;
}

.modal-examples-btn,
.modal-used-by-btn {
  min-height: 2rem;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0;
  letter-spacing: -0.025em;
}

.modal-title-row .difficulty-badge {
  position: static;
}

.modal-subtitle {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.modal-steps {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.modal-steps-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.step-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.step-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.step-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  background-color: var(--foreground);
  color: var(--background);
  border-radius: 50%;
  font-size: 0.8125rem;
  font-weight: 600;
  flex-shrink: 0;
}

.step-name {
  font-size: 0.9375rem;
  font-weight: 600;
}

.step-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-left: 2.5rem;
  margin-bottom: 0.75rem;
}

.modal-content--examples {
  max-width: 1100px;
}

.examples-modal-header {
  margin-bottom: 1.25rem;
  padding-right: 3.5rem;
}

.examples-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
  align-items: start;
}

.examples-gallery-item {
  background-color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

.collection-media {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 520px;
  display: block;
}

.collection-media--video {
  background-color: var(--muted);
}

.collection-media--true-size {
  height: auto;
  flex: 0 0 auto;
}

.step-images {
  display: flex;
  gap: 0.75rem;
  margin-left: 2.5rem;
  flex-wrap: wrap;
}

.step-image {
  width: 150px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.step-media-preview {
  position: relative;
  width: 150px;
  height: 100px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  background-color: var(--muted);
}

.step-image--video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.step-image:hover {
  border-color: var(--accent);
}

/* Image Viewer */
.image-viewer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  padding: 2rem;
}

.image-viewer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.image-viewer-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: white;
  transition: background-color 0.2s;
}

.image-viewer-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.image-viewer-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.image-viewer-video {
  display: none;
  max-width: 100%;
  max-height: 100%;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted-foreground);
}

.empty-state p {
  font-size: 0.9375rem;
}

/* Responsive */
@media (max-width: 768px) {
  #designs,
  #techniques,
  #notes {
    scroll-margin-top: 12rem;
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .modal-overlay {
    padding: 0.5rem;
    overflow-x: hidden;
  }

  .modal-content,
  .modal-content--examples {
    width: calc(100% - 1rem);
    max-width: calc(100% - 1rem);
    max-height: calc(100dvh - 1rem);
    overflow-x: hidden;
  }

  .modal-body {
    padding: 0.75rem;
    overflow-x: hidden;
    max-width: 100%;
  }

  .examples-modal-header {
    margin-bottom: 0.75rem;
    padding-right: 2.75rem;
    max-width: 100%;
  }

  .examples-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .examples-gallery-item {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .collection-media,
  .collection-media--video {
    max-width: 100%;
    height: auto;
    max-height: 60dvh;
  }

  .collection-media--true-size {
    max-width: 100%;
    height: auto;
  }

  .video-preview-fallback {
    max-width: 100%;
  }

  .search-container {
    max-width: none;
  }

  .nav-links {
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .patch-grid {
    grid-template-columns: 1fr;
  }

  .section-controls {
    width: 100%;
    justify-content: space-between;
  }

  .patch-card--list {
    flex-direction: column;
  }

  .patch-card--list .patch-image-container {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .modal-header {
    flex-direction: column;
    align-items: center;
    text-align: center; /*modal description align, can be left*/
  }

  .modal-title-row {
    justify-content: center;
  }

  .modal-demo-image {
    width: 150px;
    height: 150px;
  }

  .step-description,
  .step-images {
    margin-left: 0;
  }
}

.media-preview {
  position: relative;
  overflow: hidden;
}

.video-preview-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: var(--muted);
}

.media-preview-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3rem;
  height: 3rem;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.95;
}

.media-preview-badge svg {
  display: block;
  width: 100%;
  height: 100%;
}