.tabbed-image-text .tit-container {
  display: block;
}

.tabbed-image-text .tit-header {
  max-width: 760px;
  margin-inline: auto;
}

.tabbed-image-text .tit-title,
.tabbed-image-text .tit-heading,
.tabbed-image-text .tit-eyebrow {
  margin-block: 0;
}

.tabbed-image-text .tit-description {
  margin-top: 16px;
}

.tabbed-image-text .tit-description > :first-child,
.tabbed-image-text .tit-body > :first-child {
  margin-top: 0;
}

.tabbed-image-text .tit-description > :last-child,
.tabbed-image-text .tit-body > :last-child {
  margin-bottom: 0;
}

.tabbed-image-text .tit-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.tabbed-image-text .tit-tab {
  flex: 0 0 auto;
  appearance: none;
  border: 1px solid rgba(var(--color-text), .18);
  border-radius: 4px;
  background: transparent;
  color: rgb(var(--color-text));
  padding: 11px 20px;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.tabbed-image-text .tit-tab:hover {
  border-color: rgba(var(--color-text), .55);
}

.tabbed-image-text .tit-tab.is-active {
  border-color: rgb(var(--color-text));
  background: rgb(var(--color-text));
  color: rgb(var(--color-background));
}

.tabbed-image-text .tit-tab:focus-visible {
  outline: 2px solid rgb(var(--color-text));
  outline-offset: 3px;
}

.tabbed-image-text .tit-panels {
  margin-top: 32px;
}

.tabbed-image-text .tit-panel {
  display: none;
}

.tabbed-image-text .tit-panel.is-active {
  display: block;
  animation: tit-fade-in .25s ease both;
}

.tabbed-image-text .tit-content {
  display: flex;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}

.tabbed-image-text .tit-media,
.tabbed-image-text .tit-copy {
  min-width: 0;
}

.tabbed-image-text .tit-layout--image-left .tit-media,
.tabbed-image-text .tit-layout--image-right .tit-media,
.tabbed-image-text .tit-layout--image-left .tit-copy,
.tabbed-image-text .tit-layout--image-right .tit-copy {
  flex: 1 1 50%;
}

.tabbed-image-text .tit-layout--image-right .tit-media {
  order: 2;
}

.tabbed-image-text .tit-layout--image-top,
.tabbed-image-text .tit-layout--text-top {
  flex-direction: column;
}

.tabbed-image-text .tit-layout--image-top .tit-media,
.tabbed-image-text .tit-layout--text-top .tit-media {
  width: 100%;
}

.tabbed-image-text .tit-layout--image-top .tit-copy,
.tabbed-image-text .tit-layout--text-top .tit-copy {
  width: min(100%, 860px);
}

.tabbed-image-text .tit-layout--text-top .tit-copy {
  order: -1;
}

.tabbed-image-text .tit-media {
  aspect-ratio: var(--tit-image-ratio, 4/3);
  overflow: hidden;
  border-radius: 6px;
  background: rgba(var(--color-text), .05);
}

.tabbed-image-text .tit-media picture,
.tabbed-image-text .tit-media img,
.tabbed-image-text .tit-placeholder,
.tabbed-image-text .tit-placeholder svg {
  display: block;
  width: 100%;
  height: 100%;
}

.tabbed-image-text .tit-media img {
  object-fit: cover;
}

.tabbed-image-text .tit-placeholder svg {
  object-fit: cover;
}

.tabbed-image-text .tit-eyebrow {
  margin-bottom: 12px;
  opacity: .7;
  text-transform: uppercase;
}

.tabbed-image-text .tit-body {
  margin-top: 16px;
}

.tabbed-image-text .tit-action {
  margin-top: 28px;
}

@keyframes tit-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .tabbed-image-text .tit-panel.is-active {
    animation: none;
  }
}

@media (max-width: 959px) {
  .tabbed-image-text .tit-tabs {
    justify-content: flex-start;
    margin-inline: -4px;
  }

  .tabbed-image-text .tit-panels {
    margin-top: 24px;
  }

  .tabbed-image-text .tit-content {
    flex-direction: column;
    gap: 24px;
  }

  .tabbed-image-text .tit-content .tit-media,
  .tabbed-image-text .tit-content .tit-copy {
    width: 100%;
    flex-basis: auto;
  }

  .tabbed-image-text .tit-content .tit-media {
    order: 0;
  }

  .tabbed-image-text .tit-content .tit-copy {
    order: 1;
  }

  .tabbed-image-text .tit-layout--text-top .tit-copy {
    order: 0;
  }

  .tabbed-image-text .tit-layout--text-top .tit-media {
    order: 1;
  }
}
/* Refined tab navigation */
.tabbed-image-text .tit-tabs {
  display: flex;
  width: fit-content;
  max-width: 100%;
  justify-content: center;
  gap: 4px;
  margin: 36px auto 0;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid rgba(var(--color-text), .08);
  border-radius: 8px;
  background: rgba(var(--color-text), .05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
  scrollbar-width: none;
}

.tabbed-image-text .tit-tabs::-webkit-scrollbar {
  display: none;
}

.tabbed-image-text .tit-tab {
  flex: 0 0 auto;
  appearance: none;
  min-height: 44px;
  padding: 11px 22px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(var(--color-text), .66);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .2s ease,
              color .2s ease,
              box-shadow .2s ease;
}

.tabbed-image-text .tit-tab:hover {
  background: rgba(var(--color-background), .55);
  color: rgb(var(--color-text));
}

.tabbed-image-text .tit-tab.is-active {
  background: rgb(var(--color-background));
  color: rgb(var(--color-text));
  box-shadow: 0 2px 10px rgba(0, 0, 0, .1),
              0 0 0 1px rgba(var(--color-text), .05);
}

.tabbed-image-text .tit-tab:focus-visible {
  outline: 2px solid rgb(var(--color-text));
  outline-offset: 3px;
}

@media (max-width: 959px) {
  .tabbed-image-text .tit-tabs {
    justify-content: flex-start;
    width: 100%;
    margin-inline: 0;
    padding: 4px;
  }

  .tabbed-image-text .tit-tab {
    min-height: 42px;
    padding: 10px 16px;
  }
}
/* Restore rich-text list formatting */
.tabbed-image-text .tit-body ul,
.tabbed-image-text .tit-body ol {
  margin: 16px 0 0;
  padding-inline-start: 24px;
}

.tabbed-image-text .tit-body ul {
  list-style: disc outside !important;
}

.tabbed-image-text .tit-body ol {
  list-style: decimal outside !important;
}

.tabbed-image-text .tit-body li {
  display: list-item;
  margin-bottom: 12px;
  padding-inline-start: 4px;
  line-height: 1.55;
}

.tabbed-image-text .tit-body li:last-child {
  margin-bottom: 0;
}

.tabbed-image-text .tit-body li::marker {
  color: currentColor;
  font-size: .9em;
}

.tabbed-image-text .tit-body li > p {
  display: inline;
  margin: 0;
}