/* ****************** Base / Theme ****************** */
:root {
  --background-color: #f8fff9;
  --text-color: #181a18;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background-color: #000000;
    --text-color: #f8f9fa;
  }
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--background-color);
  color: var(--text-color);
  font-family:
    "Noto Serif",
    Georgia,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
}

/* ****************** Global ****************** */
.internal-link-same-page {
  color: #0058b8;
}
.internal-link-different-page {
  color: #793a00;
}
.external-link,
.file-link {
  color: #006600;
}

.external-link::after {
  content: " ↗";
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  /* font-weight: 500; */
  vertical-align: 0.1em;
}

.file-link::after {
  content: " ⤓";
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  vertical-align: 0.1em;
}

.no-underline {
  text-decoration: none;
}

.no-underline:not(.listing-link):not(.view-all-link):not(
    .playground-additional-links
  ) {
  opacity: 0.85;
}

/* Override inside portfolio note for accessible color contrast*/
.portfolio-note .no-underline {
  opacity: 1 !important;
}

.no-underline:hover {
  text-decoration: underline;
}

.no-underline:not(.listing-link):not(.view-all-link):not(
    .playground-links
  ):hover {
  opacity: 1;
}

p,
li {
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  p {
    font-size: 1rem; /* slightly smaller on tablets/mobiles */
  }
}

h1,
h2,
h3 {
  font-family: "Noto Serif" !important;
  font-weight: normal;
}

/* h2:not(.exp-toc-title):not(.study-toc-title) {
  text-decoration: underline;
} */

.highlightable-listing:target {
  padding-top: 20px;
}

.highlightable-listing p {
  opacity: 0.75;
}

.highlightable-listing:hover p,
.highlightable-listing .playground-links-label {
  opacity: 1;
}

/* ****************** Layout ****************** */
body {
  width: min(800px, 90vw);
  margin: 0 auto;
}

main {
  padding-top: 100px;
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 40px;
}

/* ****************** Navigation (Top) ****************** */
nav.main-nav {
  display: flex;
  align-items: center;
  height: 60px;
}

/* flexible spacer */
.divider {
  flex: 1;
}

/* navigation text links (Home / About / Previously) */
.nav-text {
  font-size: 1.1rem;
  /* font-weight: 500; */
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 8px 12px;
  color: #0000ee;
  opacity: 0.85;
}

.main-nav .nav-text:last-of-type {
  padding-right: 0;
}

.nav-text:hover {
  opacity: 1;
  text-decoration: underline;
}

.nav-text.active,
.mobile-menu a.active {
  font-weight: 700;
}

/* ****************** Icon Navigation (Top + Footer) ****************** */
.icon-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-nav a {
  font-size: 1.45rem;
  color: var(--text-color);
  opacity: 0.7;
  transition:
    opacity 0.2s ease-in-out,
    transform 0.2s ease-in-out;
  text-decoration: none;
  font-weight: 400;
}

.icon-nav a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* ****************** Hero Section ****************** */
.hero {
  /* padding-top: 40px; */
  /* background-color: #fff; */
}

/* Layout: text on left, circular image on right */
.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.text-container {
  flex: 1;
  min-width: 300px;
  padding-top: 20px;
}

.author {
  font-family: Georgia, "Noto Serif", "Times New Roman", serif;
  font-size: 3rem;
  /* font-weight: 500; */
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0;
  padding-bottom: 30px;
}

.description {
  font-size: 1.4rem;
  opacity: 0.6;
  margin-top: 16px;
  max-width: 700px;
  line-height: 1.4;
}

/* ***** Image Styling ***** */
.image-container {
  flex: 0 0 240px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-wrapper {
  position: relative;
  display: inline-block;
}

.profile-caption {
  position: absolute;

  /* Anchor near bottom-right vertex */
  bottom: 43px;
  right: -8px;

  font-size: 0.65rem;
  transform: rotate(-30deg);
  transform-origin: bottom right;

  margin: 0;
  padding: 0;

  background: none;

  font-family: monospace;
}

/* Shadow layer (NOT clipped) */
.hex-shadow {
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.4));
}

/* Border layer */
.hex-border {
  /* padding: 10px; */
  background: #fff;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* Image layer */
.profile-img {
  width: 200px;
  height: 231px; /* Correct ratio */
  object-fit: cover;
  display: block;

  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

@media (max-width: 768px) {
  .profile-caption {
    position: static; /* ❗ stop absolute positioning */
    transform: none; /* ❗ remove rotation */

    margin-top: 10px;
    text-align: center;

    font-size: 0.7rem;
  }

  .profile-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* ****************** Hero Section ****************** */
.portfolio-note-section,
.playground-note {
  padding-top: 60px;
}

.portfolio-note,
.general-note {
  background-color: #fff2dc;
  /* border: 0.5px solid #e8b36d; */
  padding: 15px;
  font-size: 1rem;
  line-height: 1.6;
  color: #343434;
  border-left: 4px solid #e8b36d;
}

.portfolio-note strong,
.portfolio-note,
.general-note strong,
.general-note {
  color: #000;
}

.general-note-arrow,
.portfolio-note-arrow {
  display: none;
}

/* ****************** Featured Experiments Section ****************** */
section.featured-experiments {
  padding-top: 60px;
}

.experiment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.experiment-list li {
  margin-bottom: 30px;
  /* opacity: 0.7; */
  /* opacity: 0.64; */
  /* transition: opacity 0.2s ease-in-out; */
}

.playground-results .experiment-list li:not(:last-child) {
  margin-bottom: 50px;
}

/* .experiment-list li:hover {
  opacity: 1;
} */

.experiment-list h3 {
  margin: 0 0 7px 0;
  position: relative;
  padding-left: 0.7em;
  /* font-weight: 500; */
}

.experiment-list h3::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--text-color);
  opacity: 1;
}

.experiment-list p {
  margin: 0;
  line-height: 1.6;
  margin: 0 0 4px 0;
  /* opacity: 0.75; */
}

/* .experiment-list p:hover {
  opacity: 1;
} */

/* ****************** Footer ****************** */
footer {
  padding: 120px 0 20px 0;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom {
  text-align: center;
  opacity: 0.7;
  margin-top: 40px;
  font-size: 0.9rem;
}

.footer-nav-left .nav-text:first-of-type {
  padding-left: 0;
}

.desktop-only {
  display: flex;
}

.mobile-only {
  display: none;
}

.mobile-menu {
  display: none;
}

/* *************************
   About Page
   ************************* */

.about {
  max-width: 700px;
  /* padding-top: 40px; */
}

.about-header {
  /* margin-bottom: 60px; */
}

.about-title {
  font-family: Georgia, "Noto Serif", "Times New Roman", serif;
  font-size: 3rem;
  /* font-weight: 500; */
  margin: 0 0 10px 0;
}

@media (max-width: 768px) {
  .about-title {
    font-size: 2.6rem;
  }
}

.about-intro {
  font-size: 1.4rem;
  line-height: 1.4;
  opacity: 0.6;
  max-width: 700px;
  margin: 0;
}

.about-block:first-of-type {
  padding-top: 60px;
  /* margin-bottom: 48px; */
}

.about-block {
  padding-top: 40px;
  /* margin-bottom: 48px; */
}

.about-block h2 {
  font-size: 1.6rem;
  /* font-weight: 500; */
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .about-block h2 {
    font-size: 1.3rem;
  }
}

/* .about-block h2::before {
  content: "— ";
  opacity: 0.75;
} */

.about-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-list li {
  /* opacity: 0.75; */
  line-height: 1.6;
}

/* Scalable item layout (work/school/personal) */
.about-item {
  margin-bottom: 15px;
}

.about-item:last-of-type {
  margin-bottom: 0;
}

.about-item-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.about-meta {
  opacity: 0.7;
  font-size: 0.98rem;
}

.about-submeta {
  opacity: 0.7;
  margin-top: 4px;
  line-height: 1.5;
}

/* Bullets inside an about item */
.about-bullets {
  margin: 10px 0 0 0;
  padding: 0; /* remove default list padding */
  list-style: none; /* remove default bullets */
}

.about-bullets li {
  position: relative;
  padding-left: 0.9em; /* space for custom bullet */
  margin-bottom: 6px;
  line-height: 1.6;
}

.about-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  /* opacity: 0.7; */
}

/* Interest “tags” */
.about-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-tag {
  font-size: 0.95rem;
  line-height: 1;
  padding: 8px 12px;
  /* border-radius: 15px; */
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 1);
  opacity: 0.9;
}

@media (prefers-color-scheme: dark) {
  .about-tag {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
  }
}

/* *************************
   Media Queries
   ************************* */

/* ****************** Laptop ****************** */
@media (max-width: 1024px) {
  .author {
    font-size: 3rem;
  }

  .description {
    font-size: 1.3rem;
  }
  .about-intro {
    font-size: 1.3rem;
  }
  .experiments-intro {
    font-size: 1.3rem;
  }
}

/* ****************** Tablet ****************** */
@media (max-width: 768px) {
  main {
    padding-top: 30px;
  }

  nav.main-nav {
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav-text {
    font-size: 1rem;
    padding: 6px 8px;
  }

  .author {
    font-size: 2.6rem;
    letter-spacing: -0.03em;
  }

  .description {
    font-size: 1.15rem;
  }

  .about-intro {
    font-size: 1.15rem;
  }

  .experiments-intro {
    font-size: 1.15rem;
  }

  .hero .container {
    flex-direction: column;
    /* text-align: center; */
  }

  .hero .image-container {
    margin-top: 2rem;
  }

  section.featured-experiments {
    padding-top: 60px;
  }
}

/* ****************** Mobile ****************** */
@media (max-width: 768px) {
  /* Toggle visibility */
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  /* Burger button */
  .burger {
    font-size: 1.6rem;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
  }

  /* Mobile menu */
  .mobile-menu {
    display: none;
    flex-direction: column;
    align-items: start;
    gap: 16px;
    padding: 24px 0;
  }

  .mobile-menu a {
    font-size: 1.2rem;
    text-decoration: none;
    color: #0000ee;
    opacity: 0.85;
  }

  .mobile-menu a:hover {
    opacity: 1;
  }
  .mobile-menu.open {
    display: flex;
  }

  /* Footer layout */
  .footer-top {
    flex-direction: column;
    gap: 24px;
  }

  .footer-nav-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .footer-nav-right {
    display: flex;
    justify-content: center;
    gap: 16px;
  }
}

/* *************************
   Experiment Detail Page
   ************************* */

/* Page wrapper */
.experiment-page {
  max-width: 850px;
  margin: 0 auto;
  padding-top: 100px;
}

/* Header */
.experiment-page .exp-header {
  margin-bottom: 18px;
}

.experiment-page .exp-title {
  font-family: Georgia, "Noto Serif", "Times New Roman", serif;
  font-size: 3rem;
  /* font-weight: 500; */
  margin: 0 0 10px 0;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.experiment-page .exp-subtitle {
  font-size: 1.4rem;
  opacity: 0.6;
  margin: 0;
  line-height: 1.4;
}

.exp-toc {
  /* background: rgba(0, 0, 0, 0.04); */
  /* border: 1px solid #ddd; */
  /* border-radius: 4px; */
  /* padding: 1rem 1.25rem; */
  margin: 1.5rem 0;
}

.exp-toc-title {
  margin: 0 0 15px 0;
}

.exp-toc-list {
  /* list-style: none; */
  padding-left: 15px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem 1.5rem;
}

.exp-toc-link {
  /* font-weight: 500; */
  opacity: 0.9;
}

.exp-toc-link:hover {
  opacity: 1;
}

.line-after-toc {
  margin-bottom: 18px;
}

/* Meta */
.experiment-page .exp-meta {
  margin: 0 0 18px 0;
  /* opacity: 0.95; */
  font-size: 0.98rem;
}

.experiment-page .exp-meta ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.experiment-page .exp-meta li {
  /* margin-bottom: 6px; */
}

.experiment-page .topics {
  margin-top: 6px;
}

/* Sections */
.experiment-page .exp-section {
  padding-top: 40px;
}

.experiment-page .exp-section:nth-of-type(2) {
  padding-top: 60px;
}

.experiment-page .exp-section h2 {
  font-size: 1.6rem;
  margin: 0 0 12px 0;
}

.experiment-page .exp-section p:not(.exp-meta-note) {
  line-height: 1.6;
  margin: 0 0 18px 0;
  color: #3b413b; /* Easier to read long experiment text*/
}

/* Bullets */
.experiment-page .exp-bullets {
  margin: 0;
  padding-left: 18px;
  line-height: 1.6;
}

.experiment-page .exp-bullets li {
  margin-bottom: 10px;
  /* opacity: 0.85; */
}

/* Inline code */
.experiment-page code {
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 0.95em;
}

/* Code blocks */
.experiment-page .code-block {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid #000;
  padding: 14px 16px;
  /* border-radius: 4px; */
  overflow-x: auto;
  margin: 14px 0 0 0;
}

.experiment-page .code-block code {
  display: inline-block;
  white-space: pre;
  min-width: 100%;
  line-height: 1.55;
}

/* Next and Prev experiment nav */
.experiment-page .exp-nav {
  margin-top: 60px;
  display: flex;
  justify-content: space-between;
}

.experiment-page .exp-next,
.experiment-page .exp-prev {
  /* text-decoration: none; */
  opacity: 0.85;
  color: #793a00;
}

.experiment-page .exp-next:hover,
.experiment-page .exp-prev:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .experiment-page {
    padding-top: 30px;
  }

  .experiment-page .exp-title {
    font-size: 2.6rem;
  }

  .experiment-page .exp-subtitle {
    font-size: 1.15rem;
  }

  .experiment-page .exp-section h2 {
    font-size: 1.3rem;
  }
}

@media (max-width: 425px) {
  .experiment-page .exp-nav {
    flex-direction: column;
    gap: 12px;
    align-items: stretch; /* makes links span the row */
  }

  .experiment-page .exp-prev,
  .experiment-page .exp-next {
    display: block;
    text-align: center;
    padding: 10px 12px; /* bigger tap area */
  }
}

.exp-subheading:first-of-type {
  margin-top: 0;
  font-weight: 700;
}

.exp-subheading:not(:first-of-type) {
  margin-top: 3rem;
  font-weight: 700;
}

/* ***********************
   study Parameters Table
   *********************** */

/* .study-params {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
  border: 1px solid #000;
  margin-top: 14px;
}

.study-params th,
.study-params td {
  border: 1px solid #000;
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}

.study-params th {
  background: rgba(0, 0, 0, 0.04);
  width: 35%;
}

@media (prefers-color-scheme: dark) {
  .study-params th {
    background: rgba(255, 255, 255, 0.08);
  }
} */

/* View all link under featured list */
.view-all-link {
  display: inline-block;
  margin-top: 18px;
  opacity: 1;
  color: #793a00;
}

/* .view-all-link:hover {
  opacity: 1;
} */

/* *************************
   Playground page layout
   ************************* */

.playground-title {
  font-family: Georgia, "Noto Serif", "Times New Roman", serif;
  font-size: 3rem;
  margin: 0 0 10px 0;
}

@media (max-width: 768px) {
  .playground-title {
    font-size: 2.6rem;
  }
}

.playground-intro {
  font-size: 1.4rem;
  line-height: 1.4;
  opacity: 0.6;
  max-width: 700px;
  margin: 0 0 12px 0;
}

.playground-results {
  padding-top: 60px;
}

.playground-page .experiment-list p {
  margin-bottom: 8px;
}

.playground-page .experiment-list p:last-of-type {
  margin-bottom: 0;
}

.playground-links-label {
  margin-right: 6px;
}

.playground-links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center; /* vertical centering */
  font-size: 0.95rem;
}

/* Add separator before every link except the first */
.playground-links a + a {
  position: relative;
  padding-left: 14px;
}

.playground-links a + a::before {
  content: " |";
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%); /* perfect vertical centering */
  color: var(--text-color);
  text-decoration: none; /* prevent underline */
  pointer-events: none; /* not part of link hover */
}

.playground-preview {
  margin: 10px 0;
  max-width: 400px;
}

.playground-preview img {
  width: 100%;
  height: auto;
  display: block;
}

.playground-preview img:hover {
  opacity: 1;
}

.playground-iframe-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
}

.playground-iframe-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.playground-external-link {
  margin-top: 8px;
}

/* *************************
   Experiments index page layout
   ************************* */
.experiments-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: start;
  padding-top: 60px;
}

.experiments-header {
  /* margin-bottom: 60px; */
}

.experiments-title {
  font-family: Georgia, "Noto Serif", "Times New Roman", serif;
  font-size: 3rem;
  /* font-weight: 500; */
  margin: 0 0 10px 0;
}

@media (max-width: 768px) {
  .experiments-title {
    font-size: 2.6rem;
  }
}

.experiments-intro {
  font-size: 1.4rem;
  line-height: 1.4;
  opacity: 0.6;
  max-width: 700px;
  margin: 0;
}

.experiments-sidebar {
  position: sticky;
  top: 100px; /* keep below nav */
}

.sidebar-box {
  /* background: rgba(0, 0, 0, 0.03); */
  padding-right: 45px;
  /* border-radius: 4px; */
}

.sidebar-title {
  font-size: 1.2rem;
  margin: 0 0 14px 0;
}

.sidebar-group {
  margin-top: 18px;
}

.sidebar-label {
  font-size: 0.95rem;
  font-style: italic;
  opacity: 1;
  margin-bottom: 10px;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-link {
  display: block;
  padding: 6px 0;
  opacity: 0.85;
  color: #424850;
}

.sidebar-link.active {
  opacity: 1;
  /* text-decoration: underline; */
}

/* Right column title */
.results-title {
  margin-top: 0;
}

/* Responsive: sidebar becomes top section */
@media (max-width: 768px) {
  .experiments-grid {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }

  .experiments-sidebar {
    position: static;
  }
}

/***** Visual section on Experiment page *****/
.experiment-page .exp-visuals {
  margin-top: 14px;
  display: grid;
  gap: 18px;
}

.experiment-page .exp-visual {
  margin: 0;
}

.experiment-page .exp-visual-img {
  width: 100%;
  height: auto;
  display: block;
  /* border-radius: 4px; */
  /* border: 1px solid #000; */
}

.experiment-page .exp-visual-caption {
  margin-top: 8px;
  font-size: 0.98rem;
  opacity: 0.7;
}

.experiment-page .exp-visual-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.experiment-page .exp-visual-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  /* border-radius: 4px; */
}

/* Meta rows: label + tags stay on one line until they need to wrap */
.experiment-page .exp-meta li {
  display: flex;
  align-items: baseline;
  gap: 10px; /* space between "Stack:" and chips */
  flex-wrap: wrap; /* allow wrapping only when necessary */
}

.experiment-page .exp-meta li:not(:first-child) {
  margin-top: 10px;
}

/* Keep the label from shrinking */
.experiment-page .exp-meta li strong {
  flex: 0 0 auto;
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px 0;
  padding: 5px 0;
}

.experiment-page .exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  min-width: 0;
}

.exp-tag {
  font-family: monospace;
  font-size: 0.85rem;
  line-height: 1;
  padding: 6px 10px;
  /* border-radius: 15px; */
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 1);
  opacity: 1;
}

/* Testing snippet labels: tighten spacing + keep consistent style */
.experiment-page .exp-meta-note {
  margin: 14px 0 4px 0; /* less space below label */
  font-size: 0.98rem;
  opacity: 0.7;
}

/* If a label is immediately followed by a code block, remove the big gap */
.experiment-page .exp-meta-note + .code-block {
  margin-top: 0;
}

.visual-slider {
  max-width: 900px;
  margin: 0 auto;
}

.visual-slide {
  display: none;
  /* text-align: center; */
}

.visual-slide.active {
  display: block;
}

.visual-inline {
  max-width: 900px;
  margin: 2rem auto;
}

.visual-slide img,
.visual-inline img {
  width: 100%;
  height: auto;
  /* border-radius: 4px; */
}

.visual-slide video {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
}

.visual-iframe-wrapper,
.exp-iframe-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 ratio */
}

.visual-iframe-wrapper iframe,
.exp-iframe-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  /* border-radius: 4px; */
}

.visual-external-link {
  margin-top: 8px;
}

.visual-caption {
  margin-top: 8px;
  font-size: 0.98rem;
  color: #666;
}

.visual-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.visual-controls button {
  background: none;
  border: 1px solid #000;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  /* border-radius: 4px; */
}

.visual-controls button:hover {
  background: rgba(0, 0, 0, 0.05);
}
