.grok-start{
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: 28px;
}
.grok-gallery{
  width: 100%;
  max-width: 340px;
  min-width: 0;
  justify-self: end;
  border-radius: 18px;
  border-color: rgba(34,211,238,.18);
}
.grok-gallery__stage{
  position: relative;
  background: radial-gradient(ellipse at 50% 35%, rgba(34,211,238,.10), transparent 75%), #0b1220;
}
.grok-gallery__track{
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--accent2) transparent;
  border-radius: 17px 17px 0 0;
}
.grok-gallery[data-gallery-ready] .grok-gallery__track{
  scrollbar-width: none;
}
.grok-gallery[data-gallery-ready] .grok-gallery__track::-webkit-scrollbar{
  display: none;
}
.grok-gallery__slide{
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 100%;
  min-width: 0;
  height: 540px;
  padding: 10px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.grok-gallery .grok-gallery__image{
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}
.grok-gallery .grok-gallery__image--conversation{
  max-width: 234px;
}
.grok-gallery__arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  color: #fff;
  background: rgba(7,11,22,.88);
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.grok-gallery__arrow[hidden]{
  display: none;
}
.grok-gallery__arrow--previous{ left: 8px; }
.grok-gallery__arrow--next{ right: 8px; }
@media (hover: hover){
  .grok-gallery__arrow:hover{
    background: #163647;
    border-color: var(--accent2);
  }
}
.grok-gallery__arrow:focus-visible,
.grok-gallery__track:focus-visible{
  outline: 3px solid var(--accent2);
  outline-offset: -3px;
}
.grok-gallery__arrow svg{
  width: 22px;
  height: 22px;
}
.grok-gallery figcaption{
  padding: 14px 16px 16px;
  line-height: 1.55;
}
.grok-gallery__status{
  display: flex;
  min-height: 3.1em;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}
.grok-gallery__count{
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  color: var(--accent2);
}
.grok-gallery figcaption p{
  margin: 8px 0 0;
  color: var(--muted);
}
@media (max-width: 860px){
  .grok-start{
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .grok-gallery{ justify-self: center; }
}
@media (prefers-reduced-motion: reduce){
  .grok-gallery__arrow{ transition: none; }
}
