/* Instagram profiles carousel for Our Work. BWB-MK01. Uses site tokens from studio.css. */
.work:has(.ig-carousel) .section-heading{margin-bottom:22px}
.ig-carousel-intro{
  margin:0 0 28px;
  font-size:13px;
  max-width:62ch;
  line-height:1.8;
  color:var(--charcoal);
}
.ig-carousel{position:relative;margin:0 calc(var(--gutter) * -1) 36px}
.ig-carousel-viewport{overflow:hidden}
.ig-track{
  display:flex;
  gap:28px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
  padding:8px var(--gutter) 18px;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;
}
.ig-track::-webkit-scrollbar{display:none}
.ig-slide{
  flex:0 0 auto;
  scroll-snap-align:start;
  width:292px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
}
.ig-slide-name{
  font-size:13px;
  font-weight:700;
  letter-spacing:-.02em;
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  padding:0 6px;
  color:var(--charcoal);
}
.ig-slide-name b{font-weight:400;font-size:20px}
.ig-phone{
  width:292px;
  height:710px;
  background:#1a1a1a;
  border-radius:42px;
  padding:10px;
  box-shadow:0 18px 40px rgba(0,0,0,.18),inset 0 0 0 1px #3a3a3a;
  position:relative;
  display:block;
  color:#111;
  text-decoration:none;
}
.ig-phone::before{
  content:"";
  position:absolute;
  left:50%;
  top:11px;
  transform:translateX(-50%);
  width:92px;
  height:22px;
  background:#0b0b0b;
  border-radius:16px;
  z-index:3;
  pointer-events:none;
}
.ig-screen{
  width:100%;
  height:100%;
  background:#fff;
  color:#111;
  border-radius:32px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  position:relative;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
}
.ig-phone,
.ig-phone *,
.ig-screen,
.ig-screen *{color:#111}
.ig-status{
  height:28px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  padding:0 16px 2px;
  font-size:11px;
  font-weight:700;
  flex:none;
}
.ig-status .ig-status-dots{display:flex;gap:4px;align-items:center;font-size:10px;letter-spacing:.04em}
.ig-top{
  height:36px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 10px 0 8px;
  flex:none;
}
.ig-top-handle{display:flex;align-items:center;gap:4px;font-weight:700;font-size:14px;letter-spacing:-.02em;min-width:0}
.ig-top-handle span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ig-top-icons{display:flex;gap:12px;align-items:center;color:#111}
.ig-head{
  display:grid;
  grid-template-columns:76px 1fr;
  gap:8px;
  align-items:center;
  padding:4px 12px 6px;
  flex:none;
}
.ig-ava{
  width:68px;
  height:68px;
  border-radius:50%;
  object-fit:cover;
  background:#eee;
  border:1px solid #efefef;
  display:block;
}
.ig-stats{display:flex;justify-content:flex-end;text-align:center;padding-right:10px}
.ig-stats strong{display:block;font-size:14px;font-weight:700;line-height:1.1;color:#111}
.ig-stats span{font-size:10px;color:#222}
.ig-bio{padding:0 14px 6px;flex:none}
.ig-bio-name{font-weight:700;font-size:12px;line-height:1.2;color:#111}
.ig-bio-cat{font-size:11px;color:#737373;margin-top:1px}
.ig-bio-text{font-size:11px;line-height:1.35;margin-top:3px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#111}
.ig-bio-link{
  font-size:11px;
  color:#00376b;
  font-weight:600;
  margin-top:2px;
  display:block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.ig-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:0 12px 8px;flex:none}
.ig-actions span{display:block;text-align:center;font-size:11px;font-weight:650;border-radius:8px;padding:7px 0;color:#111}
.ig-follow{background:#0095f6;color:#fff}
.ig-actions .ig-follow{color:#fff}
.ig-msg{background:#efefef;color:#111}
.ig-tabs{display:flex;border-top:1px solid #dbdbdb;flex:none;height:34px}
.ig-tabs i{flex:1;display:flex;align-items:center;justify-content:center;border-bottom:1px solid transparent;font-style:normal}
.ig-tabs i.on{border-bottom-color:#111}
.ig-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:#fff;flex:none}
.ig-grid img{width:100%;aspect-ratio:1;object-fit:cover;background:#f0f0f0;display:block}
.ig-homebar{height:16px;display:flex;align-items:center;justify-content:center;flex:none;background:#fff}
.ig-homebar span{width:104px;height:4px;border-radius:4px;background:#111}
.ig-controls{display:flex;align-items:center;justify-content:center;gap:18px;margin:4px var(--gutter) 0}
.ig-arrow{
  width:42px;
  height:42px;
  border:1px solid var(--line);
  background:var(--white);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 4px 14px rgba(0,0,0,.08);
  color:var(--charcoal);
  cursor:pointer;
  padding:0;
  font:inherit;
}
.ig-arrow:hover{color:var(--red)}
.ig-arrow[disabled]{opacity:.3;pointer-events:none}
.ig-dots{display:flex;justify-content:center;gap:7px}
.ig-dots button{
  width:7px;
  height:7px;
  border:0;
  border-radius:50%;
  background:#c8c8cc;
  padding:0;
  cursor:pointer;
}
.ig-dots button.on{background:var(--red);width:18px;border-radius:8px}

/* Dark theme: page chrome follows the site; Instagram screens stay light. */
html[data-theme="dark"] .ig-carousel-intro,
html[data-theme="dark"] .ig-slide-name{color:#f2f2f2}
html[data-theme="dark"] .ig-arrow{background:#262626;color:#f2f2f2;border-color:var(--line)}
html[data-theme="dark"] .ig-arrow:hover{color:#ff5a66}
html[data-theme="dark"] .ig-dots button{background:#5a5a60}
html[data-theme="dark"] .ig-dots button.on{background:#ff5a66}
html[data-theme="dark"] .ig-phone,
html[data-theme="dark"] .ig-phone:hover,
html[data-theme="dark"] a.ig-phone{color:#111;text-decoration:none}
html[data-theme="dark"] .ig-screen,
html[data-theme="dark"] .ig-screen p,
html[data-theme="dark"] .ig-screen span,
html[data-theme="dark"] .ig-screen strong,
html[data-theme="dark"] .ig-screen div,
html[data-theme="dark"] .ig-bio-name,
html[data-theme="dark"] .ig-bio-text,
html[data-theme="dark"] .ig-stats strong,
html[data-theme="dark"] .ig-top-handle,
html[data-theme="dark"] .ig-status{color:#111;background:transparent}
html[data-theme="dark"] .ig-screen{background:#fff}
html[data-theme="dark"] .ig-bio-cat{color:#737373}
html[data-theme="dark"] .ig-bio-link{color:#00376b}
html[data-theme="dark"] .ig-follow{background:#0095f6;color:#fff}
html[data-theme="dark"] .ig-msg{background:#efefef;color:#111}
html[data-theme="dark"] .ig-grid,html[data-theme="dark"] .ig-homebar{background:#fff}
html[data-theme="light"] .ig-carousel-intro{color:var(--charcoal)}

@media(max-width:900px){
  .ig-carousel{margin-left:-22px;margin-right:-22px;margin-bottom:28px}
  .ig-track{padding-left:22px;padding-right:22px;gap:20px}
  .ig-controls{margin-left:22px;margin-right:22px}
  .ig-arrow{display:none}
  .ig-carousel-intro{font-size:12px;margin-bottom:22px}
}
@media(prefers-reduced-motion:reduce){
  .ig-track{scroll-behavior:auto}
}

/* BWB-MK02: keep Instagram button fills in dark theme (beats the .ig-screen span reset). */
html[data-theme="dark"] .ig-screen .ig-actions span.ig-follow{background:#0095f6;color:#fff}
html[data-theme="dark"] .ig-screen .ig-actions span.ig-msg{background:#efefef;color:#111}
