/* Psicocultura: Instagram slide decks as part of an editorial article. */
.pc-ig-editorial {
  container: pc-ig-article / inline-size;
  --pc-ig-ink: #243541;
  --pc-ig-teal: #087f87;
  --pc-ig-pink: #d72f7d;
  --pc-ig-muted: #546875;
  color: var(--pc-ig-ink);
}
.pc-ig-editorial :where(p, li) { line-height: 1.75; }
.pc-ig-editorial :where(h2, h3) { color: #233b44; }
.pc-ig-lead { font-size: clamp(1.05rem, 1.6vw, 1.18rem); line-height: 1.8; }
.pc-ig-reviewed { color: #526c73; font-size: .9rem; margin-block: .7rem 1.4rem; }
.pc-ig-reviewed strong { color: #086f79; }
.pc-ig-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #d7ecee;
  border: 1px solid #d7ecee;
  border-radius: 15px;
  overflow: hidden;
  margin: 1.4rem 0 2.2rem;
}
.pc-ig-facts > div { padding: 1.05rem .9rem; background: #f4fbfb; }
.pc-ig-facts strong { display: block; font-size: 1.2rem; color: #0a747d; line-height: 1.35; }
.pc-ig-facts span { display: block; margin-top: .35rem; font-size: .78rem; line-height: 1.5; color: #465f68; }
.pc-ig-story {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
  gap: clamp(1.15rem, 3vw, 2.2rem);
  align-items: start;
  background: linear-gradient(135deg, #fff 68%, #f2fafb);
  border: 1px solid #d8e9eb;
  border-radius: 19px;
  padding: clamp(1rem, 2vw, 1.5rem);
  margin-block: 2rem;
  box-shadow: 0 10px 26px rgba(20, 69, 75, .065);
}
.pc-ig-media-feature {
  box-sizing: border-box;
  max-width: 520px;
  margin: 1.7rem auto 2rem;
  padding: clamp(.8rem, 2vw, 1.2rem);
  border: 1px solid #d8e9eb;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff 68%, #f2fafb);
  box-shadow: 0 10px 26px rgba(20, 69, 75, .065);
}
.pc-ig-media-feature .pc-ig-deck { position: static; }
.pc-ig-story--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr); }
.pc-ig-story--flip .pc-ig-story__copy { order: 2; }
.pc-ig-story--flip .pc-ig-deck { order: 1; }
.pc-ig-story__copy { min-width: 0; }
.pc-ig-story__copy h2 {
  font-size: clamp(1.32rem, 2.2vw, 1.75rem);
  line-height: 1.28;
  margin: .45rem 0 1rem;
}
.pc-ig-story__copy p { margin: .65rem 0 1rem; }
.pc-ig-eyebrow {
  color: var(--pc-ig-pink);
  font-size: .71rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.pc-ig-deck { min-width: 0; position: sticky; top: 1.25rem; }
.pc-ig-deck__label { font-size: .8rem; font-weight: 700; color: #116d75; margin: 0 0 .65rem; }
.pc-ig-deck .gallery {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 0 !important;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
  scrollbar-color: #9bdadd #f1f9f9;
  scrollbar-width: thin;
  border: 1px solid #c5e8e9;
  border-radius: 13px;
  background: #fff;
  margin: 0 !important;
}
.pc-ig-deck .gallery > .gallery-item {
  flex: 0 0 100% !important;
  width: 100% !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
  scroll-snap-align: start;
}
.pc-ig-deck .gallery :where(.gallery-icon, a, img) { display: block; width: 100%; }
.pc-ig-deck .gallery img {
  height: auto !important;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border: 0 !important;
  margin: 0 !important;
}
.pc-ig-deck .gallery .gallery-caption { font-size: .76rem; padding: .5rem; }
.pc-ig-deck .gallery:focus-visible { outline: 3px solid var(--pc-ig-pink); outline-offset: 3px; }
.pc-ig-deck__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-top: .65rem;
}
.pc-ig-deck__controls button {
  min-width: 40px;
  min-height: 40px;
  padding: .35rem .75rem;
  border: 1px solid #aadade;
  border-radius: 999px;
  color: #076b74;
  background: #fff;
  cursor: pointer;
  font-size: 1.2rem;
}
.pc-ig-deck__controls button:hover:not(:disabled) { background: #e7f6f7; }
.pc-ig-deck__controls button:focus-visible { outline: 3px solid var(--pc-ig-pink); outline-offset: 2px; }
.pc-ig-deck__controls button:disabled { opacity: .35; cursor: default; }
.pc-ig-deck__counter { font-size: .8rem; color: var(--pc-ig-muted); font-variant-numeric: tabular-nums; }
.pc-ig-deck__note { font-size: .75rem; color: #57717a; margin: .55rem 0 0; line-height: 1.5; }
.pc-ig-callout {
  margin: 2rem 0;
  padding: 1.1rem 1.3rem;
  border-left: 5px solid var(--pc-ig-teal);
  background: #eff9f9;
  border-radius: 0 12px 12px 0;
}
.pc-ig-callout h2 { font-size: 1.35rem; margin: 0 0 .6rem; }
.pc-ig-callout p:last-child { margin-bottom: 0; }
.pc-ig-editorial .pc-ig-table-wrap { max-width: 100%; overflow-x: auto; }
.pc-ig-editorial .pc-ig-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 300px;
  margin: 1rem 0 1.3rem;
  font-size: .87rem;
}
.pc-ig-table :where(th, td) {
  text-align: left;
  border-bottom: 1px solid #d5e8e9;
  padding: .55rem .38rem;
  vertical-align: top;
}
.pc-ig-table thead th { color: #155f68; background: #eaf6f6; }
.pc-ig-table td:last-child { font-weight: 700; color: #175d66; }
.pc-ig-archive {
  border: 1px solid #e0e9ed;
  border-radius: 13px;
  background: #fafcfc;
  margin: 2rem 0;
  padding: 1.1rem;
}
.pc-ig-archive > summary { cursor: pointer; font-weight: 700; color: #236b74; line-height: 1.5; }
.pc-ig-archive > summary:focus-visible { outline: 3px solid var(--pc-ig-pink); }
.pc-ig-archive__warning { font-size: .9rem; color: #5b636e; }
.pc-ig-archive .gallery {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  margin: .8rem 0 !important;
}
.pc-ig-archive .gallery > .gallery-item {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}
.pc-ig-archive .gallery img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 7px;
}
.pc-ig-note { color: var(--pc-ig-muted); font-size: .88rem; }
@container pc-ig-article (max-width: 720px) {
  .pc-ig-story, .pc-ig-story--flip { grid-template-columns: minmax(0, 1fr); }
  .pc-ig-story--flip .pc-ig-story__copy, .pc-ig-story--flip .pc-ig-deck { order: initial; }
  .pc-ig-deck { position: static; width: 100%; max-width: 440px; margin-inline: auto; }
}
@media (max-width: 760px) {
  .pc-ig-facts { grid-template-columns: 1fr; }
  .pc-ig-story, .pc-ig-story--flip { grid-template-columns: minmax(0, 1fr); }
  .pc-ig-story--flip .pc-ig-story__copy, .pc-ig-story--flip .pc-ig-deck { order: initial; }
  .pc-ig-deck { position: static; width: 100%; max-width: 440px; margin-inline: auto; }
  .pc-ig-archive .gallery { grid-template-columns: minmax(0, 1fr); }
  .pc-ig-story__copy h2 { font-size: 1.45rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pc-ig-deck .gallery { scroll-behavior: auto; }
}