/* OJK is a third flow in the existing screenshot gallery. Original flows keep their styles. */
html:not([data-flow-variant="ojk"]) .ojk-only {
  display: none !important;
}

html[data-flow-variant="ojk"] .legacy-only,
html[data-flow-variant="ojk"] .process > .stage {
  display: none !important;
}

.ojk-data-note {
  margin: 20px 0 0;
  color: var(--color-muted);
  font-size: 14px;
}

.ojk-track {
  max-width: 1180px;
}

.ojk-track li {
  font-size: 12px;
}

#ojk-gallery .stage {
  scroll-margin-top: 18px;
}

#ojk-gallery .stage-heading .ojk-role {
  display: block;
  margin: 0 0 12px;
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
}

#ojk-gallery .stage-heading small {
  display: block;
  margin-top: 20px;
  color: #76818f;
  font-size: 13px;
  line-height: 1.65;
}

#ojk-gallery .page figcaption {
  min-height: 108px;
}

#ojk-gallery .page .ojk-shot {
  display: block;
  border-radius: var(--radius-image);
}

#ojk-gallery .page .ojk-shot img {
  transition: box-shadow .18s ease, transform .18s ease;
}

#ojk-gallery .page .ojk-home-composite {
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-image);
  background: #f8f8f8;
}

#ojk-gallery .page .ojk-home-composite img {
  width: 100%;
  max-width: none;
  height: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none !important;
  transform: none !important;
  transition: none;
}

#ojk-gallery .page .ojk-home-top {
  position: relative;
  aspect-ratio: 1080 / 2100;
  overflow: hidden;
}

#ojk-gallery .page .ojk-home-top img {
  position: absolute;
  top: 0;
  left: 0;
}

#ojk-gallery .page .ojk-home-added-card {
  display: block;
  width: 100%;
  height: auto;
}

#ojk-gallery .page .ojk-home-bottom {
  position: relative;
  aspect-ratio: 1080 / 586;
  overflow: hidden;
}

#ojk-gallery .page .ojk-home-bottom img {
  position: absolute;
  bottom: 0;
  left: 0;
}

#ojk-gallery .ojk-riplay-strip {
  position: relative;
  aspect-ratio: 1080 / 170;
  overflow: hidden;
  background: #fff;
}

#ojk-gallery .page .ojk-riplay-strip img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#ojk-gallery .ojk-riplay-check {
  position: absolute;
  z-index: 5;
  left: 4%;
  top: 21%;
  width: 5.6%;
  height: 37%;
  cursor: pointer;
}
#ojk-gallery .ojk-riplay-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
#ojk-gallery .ojk-riplay-check span {
  display: none;
  position: absolute;
  inset: 0;
  border: .3cqw solid #f04b5b;
  border-radius: .6cqw;
  background: #fff;
  pointer-events: none;
}
#ojk-gallery .ojk-riplay-input:checked + span { display: block; }
#ojk-gallery .ojk-riplay-input:checked + span::after {
  content: '✓';
  position: absolute;
  inset: -18% 0 0;
  color: #f04b5b;
  font-size: 5.2cqw;
  line-height: 1;
  text-align: center;
}
#ojk-gallery .ojk-riplay-input:focus-visible + span {
  display: block;
  outline: .5cqw solid #333;
  outline-offset: .3cqw;
}
#ojk-gallery .ojk-next-state {
  position: absolute;
  z-index: 4;
  left: 52.1%;
  top: 11.7%;
  width: 43.8%;
  height: 31.5%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 1cqw;
  background: #e97a7e;
  color: #fff;
  font: inherit;
  font-size: 4.82cqw;
}
#ojk-gallery .ojk-next-state:not(:disabled) {
  background: #f11b00;
  cursor: pointer;
}
#ojk-gallery .ojk-next-state:focus-visible { outline: .5cqw solid #333; }

#ojk-gallery .page .ojk-shot:hover img {
  box-shadow: 0 15px 32px #19212e20;
  transform: translateY(-2px);
}

#ojk-gallery .page .ojk-shot:focus-visible,
#ojk-gallery .page .ojk-open:focus-visible,
#ojk-gallery .ojk-more summary:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}

#ojk-gallery .page .ojk-open {
  display: inline-block;
  margin-top: 10px;
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#ojk-gallery .page .ojk-source {
  margin: 5px 0 0;
  color: #919aa7;
  font-size: 11px;
  overflow-wrap: anywhere;
}

#ojk-gallery .ojk-more {
  padding: 24px 0 60px;
  border-top: 1px solid var(--color-line-strong);
}

#ojk-gallery .ojk-more summary {
  width: fit-content;
  margin-bottom: 25px;
  color: var(--color-accent);
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
}

#ojk-gallery .ojk-state {
  padding: 38px 0 54px;
  border-top: 1px solid var(--color-line-strong);
  scroll-margin-top: 18px;
}

#ojk-gallery .ojk-state-card {
  max-width: 1060px;
  padding: 24px 28px;
  border: 1px solid var(--color-line);
  border-left: 4px solid var(--color-accent);
  border-radius: 11px;
  background: #fff;
}

#ojk-gallery .ojk-state-kicker {
  color: var(--color-accent);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
}

#ojk-gallery .ojk-state h2 {
  margin: 8px 0 7px;
  font-size: 24px;
  line-height: 1.35;
}

#ojk-gallery .ojk-state p {
  max-width: 85ch;
  margin: 0;
  color: var(--color-body);
  font-size: 14px;
}

@media (max-width: 720px) {
  .flow-variant-controls {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
  }

  .flow-variant-controls button {
    flex: none;
    padding-inline: 12px;
    font-size: 13px;
  }

  .ojk-track {
    display: grid;
    grid-template-columns: repeat(4, max-content);
    gap: 13px 20px;
  }

  #ojk-gallery .stage-heading small {
    margin-top: 8px;
  }

  #ojk-gallery .page figcaption {
    min-height: 0;
  }

  #ojk-gallery .ojk-state-card {
    padding: 20px;
  }

  #ojk-gallery .ojk-state h2 {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #ojk-gallery .page .ojk-shot img { transition: none; }
}
