.diary-showcase { background: var(--off-white); scroll-margin-top: 100px; }
.diary-heading { text-align: center; max-width: 780px; margin: 0 auto 32px; }
.diary-badge { display: inline-block; color: var(--burgundy); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; padding: 8px 12px; border: 1px solid #d6a92880; border-radius: 30px; margin-bottom: 14px; }
.diary-heading h2 { color: var(--burgundy-deep); margin: 0 0 14px; }
.diary-heading p { color: var(--muted); }
.diary-previews { position: relative; display: flex; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none; scroll-snap-type: x mandatory; gap: 24px; max-width: 1100px; margin: auto; padding: 30px 24px 100px; scroll-padding-inline: 24px; }
.diary-previews::-webkit-scrollbar { display: none; width: 0; height: 0; }
.diary-preview { flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; min-width: 0; }
.diary-autoplay { min-height: 44px; border: 1px solid var(--line); background: white; color: var(--burgundy); border-radius: 8px; padding: 10px 16px; font: inherit; font-size: 13px; cursor: pointer; }
.diary-preview button:hover { box-shadow: var(--shadow-md); }
.diary-preview button { display: block; width: 100%; background: white; border: 1px solid var(--line); border-radius: 18px; padding: 14px; cursor: pointer; color: var(--burgundy-deep); font: inherit; text-align: left; box-shadow: var(--shadow-sm); transform: translateY(var(--diary-arc-y, 0px)) rotate(var(--diary-arc-angle, 0deg)); transform-origin: center center; transition: box-shadow .25s; }
.diary-preview img { width: 100%; height: 390px; object-fit: contain; display: block; }
.diary-preview span { display: block; padding: 18px 6px 6px; font-weight: 600; font-size: 14px; }
.diary-showcase-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px; margin-top: 28px; }
.diary-showcase-actions span { font-size: 12px; color: var(--muted); }
body.diary-modal-open { overflow: hidden; }
.diary-dialog { color: var(--ink); background: var(--off-white); border: 1px solid var(--line); padding: 0; box-shadow: var(--shadow-lg); }
.diary-dialog::backdrop { background: rgb(32 15 21 / 65%); backdrop-filter: blur(6px); }
.diary-dialog[open] { animation: diary-arrive .35s ease-out; }
.diary-close { width: 44px; height: 44px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--burgundy-deep); font-size: 28px; cursor: pointer; z-index: 2; }
.diary-dialog button:focus-visible, .diary-dialog a:focus-visible, .diary-preview button:focus-visible { outline: 3px solid var(--mustard); outline-offset: -3px; }
.diary-promotion { width: min(840px, calc(100% - 32px)); max-height: calc(100dvh - 32px); border-radius: 24px; }
.diary-promotion > .diary-close { position: absolute; top: 12px; right: 12px; }
.diary-promotion-layout { display: grid; grid-template-columns: 1fr 1fr; }
.diary-promotion-layout > img { width: 100%; height: 500px; object-fit: contain; padding: 24px; background: #fff; }
.diary-promotion-copy { align-self: center; padding: 56px 32px 32px; }
.diary-promotion-copy h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15; color: var(--burgundy-deep); margin: 0 0 20px; }
.diary-promotion-copy p { color: var(--muted); margin-bottom: 24px; }
.diary-promotion-copy .btn { width: 100%; text-align: center; }
.diary-later { display: block; margin: 16px auto 0; padding: 8px; background: none; border: 0; text-decoration: underline; color: var(--muted); cursor: pointer; font: inherit; font-size: 13px; }
.diary-gallery { width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; border: 0; }
.diary-gallery[open] { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; }
.diary-gallery-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 28px; border-bottom: 1px solid var(--line); }
.diary-gallery-header .diary-badge { margin: 0; padding: 0; border: 0; }
.diary-gallery-header h2 { font-size: clamp(16px, 2vw, 23px); margin: 4px 0 0; }
.diary-gallery-tools { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; padding: 10px; }
.diary-gallery-tools button { min-height: 42px; min-width: 44px; padding: 8px 14px; background: white; border: 1px solid var(--line); border-radius: 8px; font: inherit; color: var(--burgundy); cursor: pointer; }
#diary-counter { font-size: 13px; font-variant-numeric: tabular-nums; }
.diary-gallery-tools .btn { font-size: 13px; padding: 10px 16px; }
.diary-image-stage { overflow: auto; min-height: 0; background: #eae5de; padding: 14px; }
.diary-image-stage img { display: block; width: 100%; height: 100%; object-fit: contain; margin: auto; }
.diary-image-stage.is-zoomed img { width: max(100%, 1100px); height: auto; max-width: none; }
.diary-thumbnails { display: flex; gap: 8px; padding: 10px 20px; overflow-x: auto; }
.diary-thumbnails button { flex: 0 0 52px; padding: 3px; border: 2px solid transparent; background: white; border-radius: 6px; cursor: pointer; color: var(--burgundy); }
.diary-thumbnails button[aria-pressed="true"] { border-color: var(--burgundy); }
.diary-thumbnails img { display: block; width: 42px; height: 52px; object-fit: contain; }
.diary-thumbnails span { font-size: 10px; }
@keyframes diary-arrive { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 650px) {
  .diary-previews { gap: 16px; padding: 22px 10% 68px; scroll-padding-inline: 10%; }
  .diary-preview { flex: 0 0 100%; scroll-snap-align: center; }
  .diary-preview img { height: 350px; }
  .diary-promotion-layout { grid-template-columns: 1fr; }
  .diary-promotion-layout > img { height: 30dvh; padding: 12px; }
  .diary-promotion-copy { padding: 20px 24px; text-align: center; }
  .diary-promotion-copy h2 { font-size: 28px; margin-bottom: 12px; }
  .diary-promotion-copy p { font-size: 13px; margin-bottom: 16px; }
  .diary-gallery-header { padding: 12px; }
  .diary-gallery-tools { gap: 8px; }
  .diary-gallery-tools .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .diary-dialog[open] { animation: none; } .diary-preview { transition: none; } }
