.has-storybook { padding-block: 0 !important; }
.has-storybook > .container { max-width: none; width: 100%; padding-inline: 0; }
.storybook {
  min-height: 800px;
  display: grid;
  place-items: center;
  padding: 36px 24px 46px;
  background: #0f3124 url('assets/figma/9e60f.webp') center top / 100% auto no-repeat;
  scroll-margin-top: 30px;
}
.storybook-trigger {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d3be68;
  font: inherit;
  cursor: pointer;
  perspective: 1400px;
}
.storybook-trigger img {
  width: min(38.5vw, 500px);
  height: auto;
  display: block;
  transform-origin: 12% center;
  transition: transform 450ms ease;
  filter: drop-shadow(0 24px 22px #02180d88);
}
.storybook-label { font-size: 20px; border-bottom: 1px solid #d3be6870; padding-bottom: 4px; }
.storybook-trigger:focus-visible { outline: 2px solid #d3be68; outline-offset: 12px; border-radius: 4px; }
.storybook.is-open img { transform: rotateY(-15deg); }
.storybook-panel { max-width: 1240px; margin-inline: auto; padding: 50px 24px 84px; scroll-margin-top: 35px; }
.storybook-panel[hidden] { display: none !important; }
.storybook-close { display: block; margin: 0 0 30px auto; padding: 10px 16px; border: 1px solid #d3be6860; border-radius: 4px; background: transparent; color: #d3be68; font: inherit; cursor: pointer; }
.storybook-close:focus-visible { outline: 2px solid #d3be68; outline-offset: 4px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .storybook-trigger:hover img { transform: rotateY(-9deg) translateY(-5px); } }
@media (max-width: 760px) {
  .storybook { min-height: 570px; padding: 32px 16px 40px; background-size: auto 120%; }
  .storybook-trigger img { width: min(70vw, 350px); }
  .storybook-label { font-size: 17px; }
  .storybook-panel { padding-inline: 18px; }
}
@media (max-width: 390px) { .storybook { min-height: 480px; } }
@media (prefers-reduced-motion: reduce) { .storybook-trigger img, .storybook.is-open img { transition: none; transform: none; } }
