@import url('/photo-project.css');
@import url('/social-comments.css');
#social-view{max-width:46rem;margin:1.5rem auto 4rem}
.social-head,.social-card header,.social-card footer,.social-pages,.social-by{display:flex;align-items:center;gap:.7rem}
.social-head,.social-card header,.social-card footer{justify-content:space-between}
.social-head{flex-wrap:wrap;padding:.5rem .2rem 1rem;border-bottom:2px solid var(--lavender)}
.social-head h1{margin:0;font-size:clamp(1.55rem,3vw,2rem)}
.social-head p{margin:.35rem 0;color:#62596a}
.social-head label{display:grid;gap:.25rem;font-size:.875rem;font-weight:600}
.social-head select{min-width:8rem;background:white;border:1px solid #d7d1dc;border-radius:.55rem;padding:.45rem .7rem;color:inherit;font:inherit}
#social-status:empty{display:none}
#social-posts{display:grid;gap:.75rem;margin-top:1rem}
.social-card{background:#fff;border:1px solid #e3dce9;border-radius:1rem;padding:1rem 1.2rem}
.social-by,.social-source,.social-photo{border:0;background:transparent;color:inherit;cursor:pointer;padding:0}
.social-by strong{font-size:1rem}.social-by .avatar{width:2.6rem;height:2.6rem}
.social-card time,.social-card footer{font-size:.875rem;color:#65596c}
.social-card p{margin:.8rem 0 1rem;font-size:1.05rem;line-height:1.7;overflow-wrap:anywhere;white-space:pre-wrap}
html:lang(ja) #sidebar-social-slot .social-copy{font-size:.99rem}
html:lang(en) .social-card .poem-form+.social-copy{font-size:1.16rem}
.social-source{color:var(--purple-dark);font-weight:650;text-decoration:underline;text-underline-offset:.18em}
.social-photo{display:block;width:100%;margin-bottom:.9rem}.social-photo img{width:100%;max-height:24rem;object-fit:contain;border-radius:.65rem}
.social-pages{margin-top:1rem;justify-content:center}
.student-by{cursor:default}.student-by>span{display:grid;gap:.1rem}.student-by small{color:#65596c;font-size:.78rem}.student-by .avatar{object-fit:cover;border-radius:50%}
#social-newer{margin:.8rem 0 0}
.social-video{display:block;width:100%;max-height:26rem;background:#252725;border-radius:.65rem;margin-bottom:.9rem}
.social-video-frame{position:relative}
.social-video-frame:has(video[data-video-portrait]){width:min(100%,23rem,42dvh);margin-inline:auto}
.social-video-frame video[data-video-portrait]{width:100%;height:auto;max-height:none}
.sns-sidebar .social-video-frame:has(video[data-video-portrait]){width:min(100%,16.875rem,40dvh)}
.social-video-open,#sidebar-social-slot .social-clip-download{display:none}
#sidebar-social-slot .social-video-open{position:absolute;inset:0;display:flex;justify-content:end;align-items:start;padding:.4rem;border-radius:.65rem;cursor:zoom-in}
.social-video-open span{min-width:1.7rem;padding:.15rem .35rem;border-radius:.4rem;background:#252725cc;color:white;font-size:.9rem}
#sidebar-social-slot .social-photo{cursor:zoom-in}
.social-media-preview .social-video{max-height:64dvh;margin:0;object-fit:contain}
.social-media-preview video[data-video-portrait]{width:min(100%,36dvh);max-height:none;margin-inline:auto}
.social-clip{margin:.7rem 0 1rem}.social-clip figcaption,.social-clip [data-video-status]{font-size:.85rem}.social-clip a{color:var(--purple-dark)}
.sns-sidebar .social-video{max-height:15rem}
@media(max-width:650px){.main-nav{overflow-x:auto;max-width:100%}.main-nav .nav-link{flex:1 0 auto;padding-inline:.5rem}.nav-link i{display:none}.social-head{align-items:end}}

.social-poem{display:block;border:0;border-radius:.7rem;background:#eeeadf;padding:0;width:100%;cursor:zoom-in;margin:.6rem 0 1rem;overflow:hidden}
.social-poem img{display:block;margin:auto;width:auto;max-width:100%;height:auto;max-height:26rem}
.social-card .poem-form{margin:.65rem 0 .35rem;color:#64564a;font-size:.95rem}
.poem-sheet{margin:0}.poem-sheet img{display:block;width:100%;max-height:70vh;object-fit:contain}.poem-sheet figcaption{margin-top:.5rem;line-height:1.7}

.social-card footer{flex-wrap:wrap}

#sidebar-social-slot{height:0;flex:1 1 auto;overflow:auto;scrollbar-width:thin;scrollbar-gutter:stable}
.sns-sidebar #social-view{margin:0;padding:.75rem;max-width:none}
.sns-sidebar .social-head{gap:.6rem;align-items:center}
.sns-sidebar .social-head>div{width:100%}.sns-sidebar .social-head h1{font-size:1.25rem}
.sns-sidebar .social-head p{font-size:.875rem}.sns-sidebar .social-card{padding:.7rem}
.sns-sidebar .social-card header,.sns-sidebar .social-card footer{flex-wrap:wrap}
.sns-sidebar .social-photo img,.sns-sidebar .social-poem img{max-height:15rem}
.town-events .event-stream{max-height:18rem}.town-events .feed-more{width:100%}
@media(max-width:790px){#sidebar-social-slot{height:auto;max-height:65vh;flex:auto}}

@media(max-width:650px){
  #full-social-slot #social-view{margin-top:.4rem}
  #social-posts{gap:0}
  #social-view .social-card{
    --post-inset:.85rem;
    border:0;border-radius:0;background:transparent;padding:.85rem var(--post-inset) 1rem
  }
  #social-view .social-card+.social-card{border-block-start:1px solid var(--line)}
  #full-social-slot .social-card{--media-bleed:calc(var(--gutter,0px) + var(--post-inset))}
  .sns-sidebar #social-view .social-card{--post-inset:.7rem;--media-bleed:calc(.75rem + var(--post-inset))}
  #social-view .project-panels{grid-template-columns:minmax(0,1fr)}
  #social-view .social-card :is(.social-photo,.social-poem,.social-video-frame){
    width:calc(100% + 2 * var(--media-bleed,0px));margin-inline:calc(-1 * var(--media-bleed,0px));border-radius:0
  }
  #social-view .social-card :is(.social-photo img,.social-poem img,.social-video-frame video){
    display:block;width:100%;height:auto;max-height:none;border-radius:0
  }
  #social-view .social-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(6rem,42%);align-items:center;gap:.5rem;padding:0 0 .35rem}
  #social-view .social-head h1{margin:0;font-size:1.125rem;line-height:1.25}
  #social-view .social-head p{display:none}
  .social-head label{position:relative;display:block;min-width:0}
  .social-head label span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .social-head select{width:100%;min-width:0;min-height:44px;padding:.3rem .5rem;font-size:1rem;text-overflow:ellipsis}
}
.post-permalink{color:inherit;text-decoration:none}.post-permalink:hover,.post-permalink:focus-visible{text-decoration:underline}
.social-podcast{min-width:0;margin:.65rem 0 1rem;padding:.8rem;border:1px solid #dbdfd2;border-radius:.7rem;background:#f4f6ee}
.social-podcast h3{margin:.35rem 0 .65rem;font-size:1.08rem;color:#304536;overflow-wrap:anywhere}
.social-podcast .episode-day,.social-podcast .episode-day time{font-size:.8rem;color:#526350}
.social-podcast audio{display:block;width:100%;max-width:100%;min-width:0}
.social-podcast details{margin-top:.65rem}.social-podcast summary{width:fit-content;cursor:pointer;color:#3b563d;font-size:.9rem;font-weight:600}
.social-podcast details p{font-size:.96rem;margin:.55rem 0 0;white-space:pre-wrap;overflow-wrap:anywhere}

.post-share-choices{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap}
.post-share-choices a{text-decoration:none;display:inline-flex;align-items:center}
.post-share-choices [role=status]:empty{display:none}
.post-share-choices input{width:100%}
