/* ==========================================================================
   Quantum Software Tech - Portfolio System (Dark Tech Amber Design)
   Matches Official Quantum Software Tech Brand & Visual Language
   ========================================================================== */

/* Variables mapped directly to Quantum Software Tech Theme */
:root {
  --pt-ink: #0a0e17;
  --pt-surface: #121a2b;
  --pt-surface-card: #141c2e;
  --pt-surface-hover: #1b263d;
  --pt-surface-2: rgba(22, 32, 51, 0.65);
  --pt-line: #26314a;
  --pt-line-soft: rgba(38, 49, 74, 0.5);
  --pt-text: #edeff4;
  --pt-text-soft: #8b95aa;
  --pt-text-faint: #8590ac;
  --pt-accent: #e8b355;
  --pt-accent-strong: #f4c978;
  --pt-accent-soft: rgba(232, 179, 85, 0.12);
  --pt-accent-glow: rgba(232, 179, 85, 0.22);
  --pt-accent-ink: #1a1206;
  --pt-font-body: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pt-font-mono: "Plex Mono", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  --pt-radius: 6px;
  --pt-transition: 0.25s ease;
}

/* ==========================================
   Portfolio Section Layout
   ========================================== */
.portfolio-section {
  padding-top: clamp(4rem, 3rem + 4vw, 6.5rem) !important;
  padding-bottom: clamp(4rem, 3rem + 4vw, 6.5rem) !important;
  background: var(--pt-ink) !important;
  border-top: 1px solid var(--pt-line-soft) !important;
  border-bottom: 1px solid var(--pt-line-soft) !important;
  position: relative;
  color: var(--pt-text) !important;
}

.portfolio-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: clamp(1.25rem, 1rem + 2vw, 2.5rem);
  padding-right: clamp(1.25rem, 1rem + 2vw, 2.5rem);
  box-sizing: border-box;
}

/* Section Header (Quantum Tech Standard) */
.portfolio-section .section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2rem, 1.5rem + 1.5vw, 3rem);
}

.portfolio-section .section-head .lede {
  max-width: 720px;
}

.portfolio-section .eyebrow {
  display: inline-block;
  font-family: var(--pt-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--pt-accent);
  text-transform: uppercase;
}

.portfolio-section .section-head h2 {
  font-size: clamp(1.7rem, 1.4rem + 1.3vw, 2.35rem);
  margin-top: 0.6rem;
  font-weight: 700;
  color: var(--pt-text);
  line-height: 1.25;
}

.portfolio-section .section-head p {
  color: var(--pt-text-soft);
  font-size: 1rem;
  margin-top: 0.75rem;
  line-height: 1.6;
}

.portfolio-header-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.notion-item-count {
  display: inline-flex;
  align-items: center;
  font-family: var(--pt-font-mono);
  font-size: 0.8125rem;
  padding: 0.35rem 0.85rem;
  background: var(--pt-surface);
  border: 1px solid var(--pt-line);
  border-radius: 4px;
  color: var(--pt-accent);
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ==========================================
   Notion Filter Tabs Bar
   ========================================== */
.notion-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--pt-line);
  margin-bottom: 2rem;
  overflow-x: auto;
  gap: 0.5rem;
  scrollbar-width: thin;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}

.notion-tabs-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 3px 0;
}

.notion-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--pt-text-soft);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--pt-transition);
  white-space: nowrap;
  position: relative;
  font-family: var(--pt-font-body);
}

.notion-tab-btn:hover {
  background: var(--pt-surface);
  color: var(--pt-text);
  border-color: var(--pt-line-soft);
}

.notion-tab-btn.active {
  color: var(--pt-accent-strong) !important;
  font-weight: 600;
  background: var(--pt-accent-soft) !important;
  border-color: rgba(232, 179, 85, 0.35) !important;
}

.notion-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0.6rem;
  right: 0.6rem;
  height: 2px;
  background: var(--pt-accent);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--pt-accent);
}

/* ==========================================
   Gallery Grid & Cards
   ========================================== */
.notion-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  width: 100%;
  transition: opacity 0.2s ease;
}

.notion-gallery-grid.is-hidden,
.notion-gallery-grid[style*="display: none"] {
  display: none !important;
}

.notion-card {
  background: var(--pt-surface-card) !important;
  border: 1px solid var(--pt-line) !important;
  border-radius: var(--pt-radius) !important;
  overflow: hidden;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.45);
  transition: transform var(--pt-transition), box-shadow var(--pt-transition), border-color var(--pt-transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  min-width: 0;
}

.notion-card.is-hidden,
.notion-card[style*="display: none"] {
  display: none !important;
}

.notion-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.7), 0 0 24px var(--pt-accent-glow) !important;
  border-color: var(--pt-accent) !important;
}

.notion-card-cover {
  position: relative;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  background: #080d17 !important;
  overflow: hidden !important;
  border-bottom: 1px solid var(--pt-line);
}

.notion-card-cover img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.35s ease;
}

.notion-card:hover .notion-card-cover img {
  transform: scale(1.04);
}

.notion-card-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  background: rgba(10, 14, 23, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--pt-line);
  color: var(--pt-accent-strong);
  font-family: var(--pt-font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  letter-spacing: 0.04em;
  z-index: 2;
}

.notion-card-body {
  padding: 1.35rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 0.75rem;
}

.notion-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pt-text);
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0;
}

.notion-card-title .card-emoji {
  flex-shrink: 0;
  font-size: 1.15rem;
  line-height: 1.3;
}

.notion-card-desc {
  color: var(--pt-text-soft);
  font-size: 0.875rem;
  line-height: 1.55;
  margin: 0;
  flex-grow: 1;
}

.notion-card-metric {
  font-family: var(--pt-font-mono);
  font-size: 0.8125rem;
  color: var(--pt-accent-strong);
  background: rgba(232, 179, 85, 0.08);
  border-left: 2px solid var(--pt-accent);
  padding: 0.45rem 0.65rem;
  border-radius: 0 3px 3px 0;
  letter-spacing: 0.02em;
}

.notion-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.notion-tag {
  font-family: var(--pt-font-mono);
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: rgba(22, 32, 51, 0.8);
  border: 1px solid var(--pt-line);
  color: var(--pt-text-soft);
}

.notion-tag-purple { background: rgba(168, 85, 247, 0.16); color: #d8b4fe; border-color: rgba(168, 85, 247, 0.3); }
.notion-tag-orange { background: rgba(249, 115, 22, 0.16); color: #fdba74; border-color: rgba(249, 115, 22, 0.3); }
.notion-tag-brown  { background: rgba(232, 179, 85, 0.16); color: #f4c978; border-color: rgba(232, 179, 85, 0.3); }
.notion-tag-yellow { background: rgba(234, 179, 8, 0.16); color: #fef08a; border-color: rgba(234, 179, 8, 0.3); }
.notion-tag-blue   { background: rgba(56, 189, 248, 0.16); color: #7dd3fc; border-color: rgba(56, 189, 248, 0.3); }
.notion-tag-green  { background: rgba(34, 197, 94, 0.16); color: #86efac; border-color: rgba(34, 197, 94, 0.3); }
.notion-tag-gray   { background: rgba(148, 163, 184, 0.16); color: #cbd5e1; border-color: rgba(148, 163, 184, 0.3); }
.notion-tag-red    { background: rgba(239, 68, 68, 0.16); color: #fca5a5; border-color: rgba(239, 68, 68, 0.3); }

/* ==========================================
   Table View Mode (.notion-table-view)
   ========================================== */
.notion-table-view {
  display: none;
  background: var(--pt-surface-card);
  border: 1px solid var(--pt-line);
  border-radius: var(--pt-radius);
  overflow: hidden;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.45);
}

.notion-table-view.is-visible,
.notion-table-view[style*="display: block"] {
  display: block !important;
}

.notion-table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.notion-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}

.notion-table-header th {
  background: var(--pt-surface);
  color: var(--pt-text-faint);
  font-family: var(--pt-font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--pt-line);
  white-space: nowrap;
}

.notion-table-row {
  border-bottom: 1px solid var(--pt-line-soft);
  transition: background-color var(--pt-transition);
}

.notion-table-row:hover {
  background: color-mix(in srgb, var(--pt-surface-card) 85%, var(--pt-accent) 6%);
}

.notion-table-row td {
  padding: 0.95rem 1.1rem;
  color: var(--pt-text-soft);
  vertical-align: middle;
}

.notion-table-title-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--pt-text);
  cursor: pointer;
  transition: color 0.2s ease;
}

.notion-table-title-cell:hover {
  color: var(--pt-accent-strong);
}

.notion-table-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--pt-font-mono);
  font-size: 0.8125rem;
  padding: 0.35rem 0.85rem;
  border-radius: 3px;
  border: 1px solid var(--pt-line);
  background: transparent;
  color: var(--pt-accent);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.notion-table-action-btn:hover {
  background: var(--pt-accent);
  color: var(--pt-accent-ink);
  border-color: var(--pt-accent);
}

/* ==========================================
   Notion Page Detail Modal View
   ========================================== */
.notion-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 14, 23, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 3rem 1.5rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.notion-modal-backdrop.open {
  opacity: 1;
}

.notion-modal {
  background: var(--pt-surface) !important;
  border: 1px solid var(--pt-line) !important;
  border-radius: 8px;
  max-width: 860px;
  width: 100%;
  margin: auto;
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.85), 0 0 35px var(--pt-accent-glow);
  position: relative;
  color: var(--pt-text);
  animation: ptModalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ptModalSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.notion-modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: rgba(10, 14, 23, 0.85);
  border: 1px solid var(--pt-line);
  color: var(--pt-text-soft);
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  line-height: 1;
}

.notion-modal-close-btn:hover {
  color: var(--pt-accent-strong);
  border-color: var(--pt-accent);
  background: var(--pt-surface-card);
}

.notion-modal-cover {
  width: 100%;
  max-height: 240px;
  background: #080d17;
  overflow: hidden;
  border-bottom: 1px solid var(--pt-line);
}

.notion-modal-cover img {
  width: 100%;
  height: 100%;
  max-height: 240px;
  object-fit: cover;
  display: block;
}

.notion-modal-content {
  padding: 1.75rem 2rem 2.25rem;
}

.notion-modal-header {
  margin-bottom: 1.25rem;
}

.notion-modal-page-icon {
  font-size: 2.25rem;
  margin-bottom: 0.35rem;
}

.notion-modal-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pt-text);
  line-height: 1.35;
  margin: 0.25rem 0 0.85rem;
}

/* Dedicated Project Deep Dive Introduction Card */
.notion-modal-intro-card {
  background: rgba(18, 26, 43, 0.85);
  border: 1px solid rgba(232, 179, 85, 0.3);
  border-left: 4px solid var(--pt-accent);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0 1.75rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.intro-card-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--pt-font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pt-accent);
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.intro-card-text {
  font-size: 0.975rem;
  line-height: 1.8;
  color: var(--pt-text);
}

.intro-card-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--pt-line);
}

.intro-highlight-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  color: var(--pt-text-soft);
  background: rgba(10, 14, 23, 0.5);
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  border: 1px solid var(--pt-line-soft);
}

.intro-highlight-item b {
  color: var(--pt-accent-strong);
  font-weight: 600;
}

.notion-props-table {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.65rem 1rem;
  padding: 1.25rem;
  background: rgba(10, 14, 23, 0.55);
  border-radius: 4px;
  border: 1px solid var(--pt-line-soft);
  margin: 1.25rem 0;
  font-size: 0.9rem;
}

.notion-prop-label {
  color: var(--pt-text-faint);
  font-family: var(--pt-font-mono);
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
}

.notion-prop-val {
  color: var(--pt-text);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.notion-modal-highlight {
  background: rgba(232, 179, 85, 0.08);
  border-left: 3px solid var(--pt-accent);
  padding: 1rem 1.25rem;
  border-radius: 0 4px 4px 0;
  margin: 1.5rem 0;
  color: var(--pt-text);
  font-size: 0.95rem;
  line-height: 1.65;
}

.notion-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  border: 1px solid var(--pt-line);
  border-radius: 4px;
  overflow: hidden;
}

.notion-specs-table th {
  background: rgba(232, 179, 85, 0.12);
  color: var(--pt-accent-strong);
  font-family: var(--pt-font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.75rem 1rem;
  border: 1px solid var(--pt-line);
  text-align: left;
}

.notion-specs-table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--pt-line-soft);
  color: var(--pt-text-soft);
  font-size: 0.875rem;
}

.notion-specs-table td strong {
  color: var(--pt-text);
}

.lens-workflow {
  margin-block: 1rem 1.75rem;
  padding: 0;
}

.lens-workflow h5 {
  margin: 0 0 0.85rem;
  color: var(--pt-text);
  font-size: 1.15rem;
}

.lens-workflow-steps,
.lens-workflow-results {
  display: grid;
  list-style: none;
  padding: 0;
  margin: 0;
}

.lens-workflow-steps {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  gap: 0.65rem;
}

.lens-workflow-step {
  padding: 0.8rem;
  border: 1px solid var(--pt-line);
  border-radius: var(--pt-radius);
  background: var(--pt-ink);
}

.lens-workflow-step h6 {
  margin: 0 0 0.4rem;
  font-size: 0.96rem;
  line-height: 1.45;
  color: var(--pt-text);
}

.lens-workflow-number {
  display: block;
  margin-bottom: 0.35rem;
  font: 600 0.82rem/1.4 var(--pt-font-mono);
  color: var(--pt-accent);
}

.lens-workflow-step > p {
  margin: 0 0 0.85rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--pt-text-soft);
}

.lens-workflow-inspection {
  border-top-color: var(--pt-accent);
}

.lens-workflow figure {
  margin: 0;
  min-width: 0;
}

.lens-workflow img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 3px;
}

.lens-workflow figcaption {
  padding-top: 0.25rem;
  color: var(--pt-text-soft);
  font-size: 0.75rem;
}

.lens-workflow-step .lens-workflow-note {
  margin: 0.7rem 0 0.45rem;
  font-size: 0.78rem;
}

.lens-workflow-samples,
.lens-workflow-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.lens-workflow-samples {
  gap: 0.75rem;
}

.lens-workflow .lens-workflow-sample-label {
  margin: 0 0 0.35rem;
  color: var(--pt-accent-strong);
  font-size: 0.85rem;
  font-weight: 700;
}

.lens-workflow-results {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  max-width: 16rem;
}

.lens-workflow-results li {
  padding: 0.35rem 0.15rem;
  border: 1px solid var(--pt-line);
  border-radius: 3px;
  color: var(--pt-text);
  font: 600 0.78rem/1.4 var(--pt-font-mono);
  text-align: center;
}

@media (max-width: 800px) {
  .lens-workflow-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .lens-workflow-tray img {
    max-width: 280px;
  }

  .lens-workflow-samples {
    max-width: 32rem;
  }
}

@media (max-width: 480px) {
  .lens-workflow-samples {
    grid-template-columns: minmax(0, 1fr);
  }

  .lens-workflow-pair {
    max-width: 18rem;
  }
}

.notion-image-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 1.75rem 0;
}

.notion-image-figure {
  margin: 0;
  background: rgba(10, 14, 23, 0.5);
  border: 1px solid var(--pt-line);
  border-radius: 4px;
  overflow: hidden;
  cursor: zoom-in;
  transition: transform var(--pt-transition), border-color var(--pt-transition);
}

.notion-image-figure:hover {
  transform: translateY(-2px);
  border-color: var(--pt-accent);
}

.notion-image-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.notion-image-caption {
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
  color: var(--pt-text-soft);
  border-top: 1px solid var(--pt-line-soft);
  line-height: 1.4;
}

.notion-modal-footer {
  border-top: 1px solid var(--pt-line);
  padding-top: 1.5rem;
  margin-top: 2rem;
  display: flex;
  justify-content: flex-end;
}

/* ==========================================
   Full-screen Image Lightbox Modal
   ========================================== */
.lightbox-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(5, 8, 14, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lightbox-modal.open {
  opacity: 1;
}

.lightbox-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(18, 26, 43, 0.8);
  border: 1px solid var(--pt-line);
  color: var(--pt-text);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.lightbox-close-btn:hover {
  color: var(--pt-accent);
  border-color: var(--pt-accent);
  transform: scale(1.05);
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid var(--pt-line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
}

.lightbox-caption {
  color: var(--pt-text);
  font-size: 0.95rem;
  text-align: center;
  background: rgba(18, 26, 43, 0.75);
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  border: 1px solid var(--pt-line-soft);
}

/* ==========================================
   Responsive Queries
   ========================================== */
@media (max-width: 980px) {
  .notion-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .notion-modal {
    max-width: 95%;
  }
  .notion-modal-content {
    padding: 1.5rem;
  }
}

@media (max-width: 640px) {
  .notion-gallery-grid {
    grid-template-columns: 1fr !important;
  }
  .notion-props-table {
    grid-template-columns: 90px 1fr;
    font-size: 0.82rem;
  }
  .notion-image-gallery {
    grid-template-columns: 1fr;
  }
  .notion-modal-content {
    padding: 1.25rem;
  }
}
