.photo-stream-page { min-height: 100svh; background: transparent; }
.photo-stream-page::before { background: radial-gradient(circle at 49% 30%, rgba(74, 109, 186, .045), transparent 32%), rgba(1, 3, 10, .11); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.photo-stream { width: 100%; min-height: 100svh; padding: clamp(108px, 14vh, 154px) clamp(18px, 5vw, 72px) clamp(90px, 15vh, 170px); }
.stream-loading { min-height: 70svh; display: grid; margin: 0; place-items: center; color: rgba(217, 229, 252, .36); font: 9px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.photo-entry { position: relative; width: min(100%, 1100px); min-height: min(820px, 82svh); margin: 0 auto clamp(140px, 22vh, 260px); animation: photo-arrive .9s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--entry-index) * 100ms); }
.photo-entry:last-child { margin-bottom: 0; }
.photo-frame { position: relative; width: min(72vw, 800px); margin: 0 auto; }
.photo-frame img { display: block; width: 100%; height: auto; border-radius: clamp(18px, 2.8vw, 38px); box-shadow: 0 40px 120px rgba(0, 0, 0, .6), 0 0 84px rgba(87, 124, 204, .07); }
.photo-frame figcaption { display: flex; justify-content: space-between; gap: 20px; padding: 15px 4px 0; color: rgba(231, 238, 252, .57); font-size: clamp(14px, 1.2vw, 17px); }
.photo-frame time { color: rgba(207, 221, 247, .31); font: 9px/1.6 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.passing-update { position: absolute; z-index: 3; color: inherit; text-decoration: none; }
.record-update { right: 0; bottom: 7%; display: grid; width: clamp(148px, 18vw, 224px); gap: 13px; transform: rotate(2.4deg); transition: transform .7s cubic-bezier(.16, 1, .3, 1), filter .4s ease; }
.record-update:hover, .record-update:focus-visible { transform: translateY(-7px) rotate(0); filter: brightness(1.08); outline: none; }
.record-update img { display: block; width: 100%; aspect-ratio: 1; border-radius: 5px; object-fit: cover; box-shadow: 0 24px 65px rgba(0, 0, 0, .55); }
.record-update span { display: grid; gap: 4px; padding-inline: 3px; }
.record-update strong { overflow: hidden; color: rgba(245, 248, 255, .85); font-size: clamp(16px, 1.5vw, 20px); font-weight: 400; line-height: 1.05; text-overflow: ellipsis; white-space: nowrap; }
.record-update small { overflow: hidden; color: rgba(210, 224, 249, .43); font: 9px/1.2 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.post-update { left: 0; bottom: 18%; width: min(32vw, 390px); color: rgba(224, 233, 250, .62); font-size: clamp(21px, 2.3vw, 34px); line-height: 1.1; transition: color .35s ease, transform .5s cubic-bezier(.16, 1, .3, 1); }
.post-update span { color: rgba(248, 250, 255, .94); }
.post-update:hover, .post-update:focus-visible { color: rgba(242, 247, 255, .92); transform: translateX(5px); outline: none; }
.stream-fallback { width: min(800px, calc(100% - 36px)); margin: 12vh auto; }
.stream-fallback img { width: 100%; border-radius: 28px; }
.stream-fallback p { color: rgba(230, 238, 252, .62); }
.small-gallery { display: grid; width: min(100%, 960px); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 9vw, 128px); align-items: start; margin: clamp(110px, 18vh, 210px) auto 0; padding-inline: clamp(0px, 2vw, 30px); }
.gallery-image { display: block; color: inherit; text-decoration: none; transition: transform .8s cubic-bezier(.16, 1, .3, 1), filter .4s ease; }
.gallery-image:hover, .gallery-image:focus-visible { transform: translateY(-8px); filter: brightness(1.06); outline: none; }
.gallery-image img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; border-radius: clamp(16px, 2.4vw, 30px); object-fit: cover; box-shadow: 0 32px 90px rgba(0, 0, 0, .48); }
.gallery-image span { display: flex; justify-content: space-between; gap: 16px; padding: 13px 3px 0; color: rgba(235, 241, 253, .64); font-size: clamp(15px, 1.4vw, 19px); line-height: 1.15; }
.gallery-image i { color: rgba(205, 220, 248, .32); font: normal 9px/1.8 var(--mono); }
.recipe-image { margin-top: clamp(70px, 12vw, 150px); }
@keyframes photo-arrive { from { opacity: 0; transform: translateY(20px) scale(.992); } }

@media (max-width: 900px) {
  .photo-stream { padding-top: 108px; }
  .photo-entry { min-height: auto; display: grid; gap: 32px; }
  .photo-frame { width: min(100%, 720px); }
  .passing-update { position: relative; inset: auto; }
  .record-update { width: min(31vw, 180px); justify-self: end; margin-top: -11vw; margin-right: 4vw; }
  .post-update { width: min(82vw, 390px); margin-left: 4vw; }
  .small-gallery { gap: clamp(22px, 6vw, 52px); }
}

@media (max-width: 520px) {
  .photo-stream { padding: 94px 16px 80px; }
  .photo-entry { gap: 25px; margin-bottom: 120px; }
  .photo-frame img { border-radius: 22px; }
  .photo-frame figcaption { padding-inline: 3px; }
  .record-update { width: 34vw; margin-top: -14vw; margin-right: 12px; }
  .post-update { margin-left: 3px; font-size: 25px; }
  .small-gallery { grid-template-columns: 1fr; gap: 66px; margin-top: 120px; padding-inline: 18px; }
  .recipe-image { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .photo-entry { animation: none; }
  .record-update, .post-update { transition: none; }
  .gallery-image { transition: none; }
}

/* Keep refreshed items in normal flow, never covering the photographs. */
.photo-entry { min-height: 0; margin-bottom: 0; animation: none; }
.photo-frame a { display: block; border-radius: inherit; }
.photo-frame a:focus-visible, .gallery-image:focus-visible, .record-update:focus-visible, .post-update:focus-visible { outline: 2px solid #c4dcff; outline-offset: 7px; }
.small-gallery { margin-top: clamp(56px, 8vw, 110px); }
.stream-updates { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px; width: min(960px, 100%); margin: 64px auto 0; }
.stream-updates[hidden] { display: none; }
.stream-updates .record-update, .stream-updates .post-update { position: static; margin: 0; transform: none; text-decoration: none; }
.stream-updates .record-update { width: clamp(148px, 22vw, 220px); }
.stream-updates .post-update { width: min(100%, 390px); line-height: 1.3; }
.stream-updates .record-update strong { line-height: 1.3; }
.post-update:hover, .post-update:focus-visible { transform: none; text-shadow: 0 0 14px #b6d3ff80, 0 0 32px #7aabff60; }
