.diary-product-stories {
   margin: 20px 0;
   min-width: 0;
   color: #171717;
}
.diary-product-stories h2 {
   margin: 0 0 10px;
   font: 600 17px/1.25 var(--buy-type, inherit);
   letter-spacing: -.015em;
   text-align: start;
   text-transform: none;
}
.diary-stories-strip {
   display: flex;
   gap: 8px;
   overflow-x: auto;
   overscroll-behavior-x: contain;
   scroll-snap-type: x proximity;
   scrollbar-width: thin;
   scrollbar-color: #aaa transparent;
}
.diary-stories-strip .diary-story-card {
   position: relative;
   display: block;
   flex: 0 0 clamp(72px, 22%, 105px);
   aspect-ratio: 9/16;
   overflow: hidden;
   padding: 0;
   border: 0;
   border-radius: .25rem;
   background: #eee;
   cursor: pointer;
   scroll-snap-align: start;
}
.diary-story-card img {
   display: block;
   width: 100%;
   height: 100%;
   object-fit: cover;
}
.diary-story-preview {
   position: absolute;
   inset: 0;
   width: 100%;
   height: 100%;
   object-fit: cover;
   pointer-events: none;
   opacity: 0;
}
.diary-story-preview.is-playing { opacity: 1; }
.diary-story-preview.is-playing + .diary-story-play { visibility: hidden; }
.diary-story-card:focus-visible {
   outline: 2px solid white;
   outline-offset: -4px;
   box-shadow: inset 0 0 0 2px #111;
}
.diary-story-play {
   position: absolute;
   left: 50%;
   top: 50%;
   transform: translate(-50%, -50%);
   display: grid;
   place-items: center;
   width: 28px;
   height: 28px;
   padding-left: 2px;
   border: 1px solid #fff;
   border-radius: 50%;
   background: rgb(0 0 0 / 38%);
   color: white;
   font: 12px/1 sans-serif;
}
dialog.diary-story-viewer {
   position: fixed;
   inset: 0;
   box-sizing: content-box;
   width: min(92vw, 48.375vh, 495px);
   width: min(92vw, 48.375dvh, 495px);
   max-width: none;
   max-height: none;
   margin: auto;
   padding: 0;
   border: none;
   border-radius: .25rem;
   overflow: hidden;
   background: #181818;
}
.diary-story-viewer:not([open]) { display: none; }
.diary-story-viewer::backdrop { background: rgb(0 0 0 / 76%); }
.diary-story-stage { aspect-ratio: 9/16; }
.diary-story-stage > * { display: block; width: 100%; height: 100%; object-fit: contain; }
.diary-story-viewer button {
   position: absolute;
   display: grid;
   place-items: center;
   width: 44px;
   height: 44px;
   padding: 0;
   border: none;
   border-radius: 50%;
   background: rgb(0 0 0 / 58%);
   color: white;
   font: 30px/1 sans-serif;
   cursor: pointer;
}
.diary-story-close { top: 8px; right: 8px; }
.diary-story-prev, .diary-story-next { top: calc(50% - 22px); }
.diary-story-prev { left: 8px; }
.diary-story-next { right: 8px; }
.diary-story-viewer button[hidden] { display: none; }
@media (max-width: 767px) {
   .diary-product-stories { margin: 16px 0; }
   .diary-product-stories h2 { font-size: 16px; }
}
