.rail-shell { position: relative; min-width: 0; }
.website-preview { margin: auto; padding: 0; border: 0; border-radius: 20px; width: min(1280px, 94vw); height: 90vh; height: 90dvh; max-width: none; max-height: none; background: #fff; color: #1c1410; overflow: hidden; }
.website-preview[open] { display: flex; flex-direction: column; }
.website-preview::backdrop { background: rgba(0,0,0,.55); backdrop-filter: blur(6px); }
.website-preview-header { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #eee; }
.website-preview-header strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.website-preview-header a { color: #cb2424; font-size: 12px; white-space: nowrap; }
.website-preview-close { width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; font-size: 26px; background: #f5f2ef; cursor: pointer; }
.website-preview-note { font-size: 12px; color: #666; padding: 8px 16px; }
.website-preview-frame { width: 100%; flex: 1; min-height: 0; border: 0; background: #fff; }
@media(max-width:600px) { .website-preview { width: 100%; height: 100dvh; border-radius: 0; } .website-preview-header { padding-top: max(12px, env(safe-area-inset-top)); } }
.rail-track { display: flex !important; gap: 24px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 0 20px; touch-action: pan-x pan-y; }
.rail-track::-webkit-scrollbar { display: none; }
.rail-track > .blog-card { flex: 0 0 36%; min-width: 0; scroll-snap-align: start; }
.rail-track .blog-cover { height: auto; }
.rail-track.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.rail-arrow { position: absolute; z-index: 2; top: 40%; width: 44px; height: 44px; border: 1px solid #ddd; border-radius: 50%; background: rgba(255,255,255,.94); color: #1c1410; font-size: 24px; cursor: pointer; box-shadow: 0 3px 16px #0002; transition: opacity .2s; }
.rail-arrow-prev { left: 8px; } .rail-arrow-next { right: 8px; }
.rail-shell.is-interacting .rail-arrow { opacity: 0; pointer-events: none; }
.rail-arrow:focus-visible { opacity: 1 !important; pointer-events: auto !important; outline: 2px solid #cb2424; }
.rail-arrow:disabled { opacity: .3; cursor: default; }
.rail-arrow[hidden] { display: none; }
.image-rail { width: 100%; margin-inline: auto; }
.image-rail .rail-arrow { position: static; width: 34px; height: 34px; flex: 0 0 34px; font-size: 22px; box-shadow: none; }
.image-rail .rail-track { gap: 0; padding: 0; }
.image-rail figure { flex: 0 0 100%; min-width: 0; margin: 0; scroll-snap-align: start; background: #fff; }
.image-rail.rail-shell img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 6; object-fit: contain; background: #fff; }
@media(min-width:601px) {
  .image-rail.is-interacting .rail-arrow { opacity: 1; pointer-events: auto; }
  .image-rail.is-interacting .rail-arrow:disabled { opacity: .3; }
}
.image-rail figcaption { padding: 10px 0; font-size: 13px; color: #625a55; }
.rail-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; font-size: 13px; padding-top: 8px; }
.rail-pause, .rail-fullscreen { font: inherit; border: 1px solid #ddd; background: white; width: 34px; height: 34px; padding: 0; cursor: pointer; border-radius: 6px; font-size: 18px; line-height: 1; }
.rail-pause svg, .rail-fullscreen svg { display: block; width: 18px; height: 18px; margin: auto; fill: currentColor; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rail-pause svg { stroke: none; }
.rail-fullscreen svg { fill: none; }
.rail-toolbar > span { margin-right: auto; }
.image-rail.is-fullscreen { box-sizing: border-box; background: white; width: 100%; height: 100%; padding: 16px; display: flex; flex-direction: column; }
.image-rail.is-fullscreen .rail-track { flex: 1; min-height: 0; }
.image-rail.is-fullscreen figure { height: 100%; display: flex; flex-direction: column; }
.image-rail.rail-shell.is-fullscreen img { flex: 1; min-height: 0; height: 100%; aspect-ratio: auto; }
.image-rail.is-fullscreen figure > a { flex: 1; min-height: 0; display: flex; }
.image-rail.is-fullscreen figcaption { flex: none; }
.image-rail.is-fullscreen .rail-toolbar { flex: none; }
.rail-dialog { border: 0; padding: 0; max-width: none; max-height: none; width: 100vw; height: 100dvh; }
.rail-dialog::backdrop { background: white; }
@media(max-width:900px) { .rail-track > .blog-card { flex-basis: 47%; } }
@media(min-width:601px) { .rail-shell.is-interacting .rail-arrow { opacity: 1; pointer-events: auto; } }
@media(max-width:600px) { .rail-track { gap: 16px; } .rail-track > .blog-card { flex-basis: 86%; } .rail-arrow { width: 36px; height: 36px; } }
@media(prefers-reduced-motion:reduce) { .rail-arrow { transition: none; } }
