.honeygram-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-block: 24px; }
.honeygram-tile { position: relative; display: block; aspect-ratio: 4/5; border-radius: 18px; overflow: hidden; background: #f8f0f5; }
.honeygram-tile img { width: 100%; height: 100%; object-fit: cover; }
.honeygram-tile__author { position: absolute; inset: auto 0 0; padding: 28px 14px 14px; color: white; background: linear-gradient(transparent,#0009); }
.honeygram-tile__video { position: absolute; top: 12px; right: 12px; padding: 6px 10px; background: #0009; color: white; border-radius: 12px; }
.honeygram-tile__pending { display: grid; place-content: center; height: 100%; }
.honeygram-media { display: block; width: 100%; max-height: 75vh; object-fit: contain; border-radius: 16px; margin-block: 20px; background: #f8f6f8; }
.honeygram-filters { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.honeygram-filters label { display: grid; gap: 6px; }
.honeygram-filters select { border: 1px solid #dddde6; border-radius: 10px; padding: 10px; background: white; }
@media(max-width:600px) { .honeygram-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; } }

.honeygram-tile--highlighted { outline: 3px solid #ec9bc1; outline-offset: 3px; box-shadow: 0 6px 20px #dc287b22; }
.honeygram-moods { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:24px 0; }
.honeygram-moods a { display:grid; place-items:center; min-width:44px; min-height:44px; border-radius:14px; background:#fff1f7; padding:8px; }
.honeygram-moods [aria-current=page] { outline:2px solid #a72560; }
.honeygram-stream { width:100%; }
.honeygram-author-stream .honeygram-cards { grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr)); gap:16px; }
.honeygram-author-stream .honeygram-card { padding:14px; gap:10px; }
.honeygram-author-stream .honeygram-card__media { aspect-ratio:auto; height:clamp(160px,22vw,220px); }
.honeygram-author-stream .honeygram-card__media img { height:100%; object-fit:contain; }

/* The public gallery follows the compact photo grid in the visual specification. */
.honeygram-toolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:14px; margin-top:24px; }
.honeygram-tabs { display:flex; gap:4px; padding:4px; border-radius:24px; background:#fff1f7; }
.honeygram-tabs a { display:flex; align-items:center; justify-content:center; min-height:40px; padding:8px 20px; border-radius:20px; color:#665066; text-decoration:none; }
.honeygram-tabs a[aria-current] { background:#ef247a; color:#fff; box-shadow:0 3px 10px #eb277a25; }
.honeygram-gallery { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; margin-block:24px; }
.honeygram-gallery__tile { position:relative; display:block; aspect-ratio:1; min-width:0; overflow:hidden; border-radius:20px; background:#f7edf4; color:#fff; }
.honeygram-gallery__image { display:block; width:100%; height:100%; object-fit:cover; }
.honeygram-gallery__footer { position:absolute; inset:auto 0 0; display:flex; align-items:center; gap:8px; padding:40px 12px 12px; background:linear-gradient(transparent,#27172fcc); font-size:14px; }
.honeygram-gallery__footer > img { width:28px; height:28px; border:1px solid #fff9; border-radius:50%; object-fit:cover; flex:none; }
.honeygram-gallery__footer > span:not(.honeygram-gallery__likes) { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.honeygram-gallery__likes { margin-left:auto; white-space:nowrap; flex:none; }
.honeygram-gallery__play { position:absolute; top:12px; left:12px; display:grid; place-items:center; width:36px; height:36px; border-radius:50%; background:#fff9; color:#594660; }
.honeygram-gallery__pending { display:grid; place-items:center; min-height:100%; padding:20px 16px 70px; text-align:center; color:#796b7e; }
.honeygram-gallery__tile:focus-visible,.honeygram-tabs a:focus-visible { outline:3px solid #8124a1; outline-offset:3px; }
@media(max-width:900px) { .honeygram-gallery { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:600px) {
    .honeygram-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
    .honeygram-gallery__tile { border-radius:14px; }
    .honeygram-gallery__footer { gap:5px; padding:30px 8px 10px; font-size:12px; }
    .honeygram-gallery__footer > img { width:23px; height:23px; }
    .honeygram-toolbar { gap:10px; }
    .honeygram-tabs { flex:1 1 auto; }
    .honeygram-tabs a { flex:1; padding:8px 12px; }
    #honeygram-browse .honeygram-moods { flex-wrap:nowrap; overflow-x:auto; padding:3px; gap:8px; }
    #honeygram-browse .honeygram-moods a { flex:none; }
}

/* Media cards use the full page container; two generous columns on desktop. */
.honeygram-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; margin-block:24px; }
.honeygram-card { min-width:0; display:flex; flex-direction:column; gap:14px; border:1px solid #eee3eb; border-radius:22px; padding:20px; background:#fff; }
.honeygram-card__header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.honeygram-card__person { display:flex; align-items:center; gap:10px; min-width:0; color:inherit; }
.honeygram-card__person img { width:44px; height:44px; flex:none; object-fit:cover; border-radius:50%; }
.honeygram-card__person span { min-width:0; display:grid; gap:3px; overflow-wrap:anywhere; }
.honeygram-card__person small,.honeygram-card__header time { color:#79717d; font-size:12px; }
.honeygram-card__header time { flex:none; }
.honeygram-card__mood { align-self:flex-start; padding:5px 10px; border-radius:20px; background:#fff0f6; font-size:13px; }
.honeygram-card__media { position:relative; display:grid; place-items:center; aspect-ratio:4/3; overflow:hidden; border-radius:14px; background:#f8f2f6; }
.honeygram-card__media img { width:100%; height:100%; object-fit:contain; min-height:0; }
.honeygram-card__pending { padding:24px; text-align:center; color:#79717d; }
.honeygram-card__play { position:absolute; display:grid; place-items:center; width:52px; height:52px; border:1px solid #fff8; border-radius:50%; background:#25202a99; color:white; padding-left:3px; }
.honeygram-card__duration { position:absolute; right:12px; bottom:12px; border-radius:8px; padding:4px 8px; color:#fff; background:#25202acc; font-size:12px; }
.honeygram-card__caption { margin:0; white-space:pre-line; overflow-wrap:anywhere; }
.honeygram-card__actions { display:flex; align-items:center; flex-wrap:wrap; gap:14px; margin-top:auto; }
.honeygram-card__actions form { margin:0; }
.honeygram-card__actions > button { display:grid; place-items:center; min-width:44px; min-height:44px; border:1px solid #eee3eb; border-radius:12px; background:#fff; color:#a72560; font-size:22px; cursor:pointer; margin-left:auto; }
.honeygram-card__actions [data-share-status] { flex-basis:100%; color:#79717d; font-size:13px; }
.honeygram-card__owner { display:flex; flex-wrap:wrap; gap:10px; color:#79717d; font-size:13px; }
.honeygram-empty { grid-column:1/-1; padding:32px; border:1px dashed #e3d4df; border-radius:20px; background:#fffbfd; text-align:center; }
.honeygram-empty p { margin-bottom:0; color:#79717d; }
.honeygram-comments { margin-block:24px; border:1px solid #eee3eb; border-radius:18px; padding:20px; }
.honeygram-comments > summary { cursor:pointer; font-weight:600; padding-block:8px; }
.honeygram-comments .discussion { margin-bottom:0; }
#honeygram-browse[aria-busy=true] { opacity:.65; }
@media(max-width:700px) {
    .honeygram-cards { grid-template-columns:minmax(0,1fr); gap:16px; }
    .honeygram-card { padding:14px; border-radius:18px; }
    .honeygram-card__actions { gap:10px; font-size:14px; }
    .honeygram-card__header { flex-wrap:wrap; }
    .honeygram-filters label { flex:1; min-width:120px; }
    .honeygram-comments { padding:14px; }
}

/* One publication: media on the left, author and discussion on the right. */
.moment-view.story-card { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(280px,1fr); gap:24px; padding:24px; align-items:start; }
.moment-view__visual { min-width:0; display:grid; align-content:center; min-height:300px; overflow:hidden; border-radius:22px; background:#f8f2f6; }
.moment-view__visual .honeygram-media { margin:0; border-radius:0; width:100%; max-height:80dvh; object-fit:contain; }
.moment-view__visual > :not(.honeygram-media) { margin:16px 24px; }
.moment-view__aside { min-width:0; padding:20px; border:1px solid #f0e7ee; border-radius:22px; box-shadow:0 5px 18px #39203c06; }
.moment-view__aside .comment-author { gap:16px; }
.moment-view__date { display:block; margin:8px 0 18px; color:#8b7c91; font-size:12px; }
.moment-view__contact.btn { display:flex; justify-content:center; width:100%; min-height:46px; height:auto; padding:12px; border-radius:14px; background:linear-gradient(100deg,#f64e96,#ed2679); color:#fff; }
.moment-view__actions { gap:10px; margin:22px 0; padding-bottom:20px; border-bottom:1px solid #f1eaf0; font-size:13px; }
.moment-view__caption h2 { color:#87798e; font-size:14px; font-weight:500; margin-bottom:10px; }
.moment-view__caption .story-card__text { line-height:1.7; font-size:15px; margin:0; }
.moment-view__mood { display:table; padding:8px 14px; margin-top:18px; border-radius:22px; color:#db387c; background:#fff0f7; font-size:13px; }
.moment-view__aside .honeygram-comments { padding:14px; margin-top:24px; border-color:#f0e7ee; }
.moment-view__aside .honeygram-comments > summary { font-size:14px; line-height:1.5; }
.moment-view__aside .discussion__reply { margin-left:12px; }
@media(max-width:800px) {
 .moment-view.story-card { grid-template-columns:minmax(0,1fr); gap:16px; padding:16px; }
 .moment-view__visual { min-height:180px; }
 .moment-view__aside { padding:16px; }
 .moment-view__visual .honeygram-media { max-height:65dvh; }
}

/* Keep the mobile catalogue heading compact so the first moment stays in view. */
.honeygram-create__icon { display:none; }
#honeygram-status:empty { min-height:0; margin:0; }
@media(max-width:700px) {
 #honeygram-browse > .honey-feed__heading { flex-direction:row; align-items:center; gap:12px; margin-bottom:16px; }
 #honeygram-browse > .honey-feed__heading h1 { margin-bottom:8px; }
 #honeygram-browse > .honey-feed__heading p { margin:0; font-size:14px; line-height:1.5; }
 #honeygram-browse .honeygram-create { flex:none; width:46px; height:46px; min-width:46px; padding:0; border-radius:50%; display:grid; place-items:center; }
 .honeygram-create__label { display:none; }
 .honeygram-create__icon { display:inline; font-size:30px; line-height:1; }
 #honeygram-browse .honeygram-toolbar { margin-top:16px; gap:8px; }
 #honeygram-browse .honeygram-moods { flex-wrap:nowrap; overflow-x:auto; margin:16px 0; padding:3px; }
 #honeygram-browse .honeygram-moods > * { flex:none; }
}
#honeygram-browse .honeygram-tabs { background:#faf9fc; border:1px solid #e3dfeb; }
#honeygram-browse .honeygram-tabs a[aria-current] { background:#d7f5f0; color:#12626d; box-shadow:none; }
#honeygram-browse .honeygram-moods a { box-sizing:border-box; border-radius:50%; min-width:44px; min-height:44px; background:#fff; box-shadow:0 3px 12px #302b4010; }
#honeygram-browse .honeygram-moods [aria-current=page] { outline:2px solid #05bdb8; }
.honeygram-order { position:relative; font-size:14px; }
.honeygram-order summary { cursor:pointer; padding:12px 18px; border-radius:24px; background:#d7f5f0; color:#12626d; }
#honeygram-browse .honeygram-order__options { position:absolute; z-index:6; right:0; top:calc(100% + 6px); display:grid; padding:8px; border-radius:16px; background:#fff; box-shadow:0 6px 20px #302b4020; }
.honeygram-order__options a { white-space:nowrap; }
.honeygram-card:has(.content-menu) .honeygram-card__header { padding-right:56px; }
.honeygram-card > .content-menu { top:20px; right:20px; }
.honeygram-card > .content-menu > summary { display:flex; align-items:center; justify-content:center; box-sizing:border-box; width:44px; height:44px; padding:0; }
#honeygram-browse .honeygram-create__icon { color:#fff; }

.honeygram-card__online { display:inline-block; width:8px; height:8px; margin-right:6px; border-radius:50%; background:#21bc52; }
.honeygram-card__mood[data-mood=joy] { background:#fff0cd; }
.honeygram-card__mood[data-mood=atmosphere] { background:#eee5fb; }
.honeygram-card__mood[data-mood=travel] { background:#e4f7f3; }
.honeygram-card__actions > a,.honeygram-card__actions > button { display:inline-flex; align-items:center; gap:8px; }
.honeygram-card__actions > button[data-moment-share] { justify-content:center; box-sizing:border-box; width:44px; height:44px; padding:0; }
.honeygram-card__actions .home-icon { width:24px; height:24px; flex:none; color:inherit; }
.honeygram-card__actions .home-icon * { color:inherit; }
.honeygram-card__comments { display:flex; justify-content:space-between; align-items:center; gap:12px; border-top:1px solid #e8e3ed; padding-top:12px; color:#2989df; font-size:14px; }
.honeygram-card__comments > span { font-size:24px; line-height:1; color:#6e7d96; }
@media(max-width:700px) { .honeygram-card__header time { display:none; }.honeygram-card > .content-menu { top:14px; right:14px; } }
.honeygram-card__person strong { font-weight:600; }
@media(max-width:700px) {
 .honeygram-card__media { aspect-ratio:auto; }
 .honeygram-card__media > img { height:auto; max-height:70dvh; object-fit:contain; }
 .honeygram-card__play { width:60px; height:60px; font-size:22px; }
}
.moment-comment-previews { margin-top:20px; padding-top:16px; border-top:1px solid #eee4eb; }
.moment-comment-previews p { margin-bottom:12px; }
.moment-comment-previews p > a { display:block; font-size:13px; font-weight:600; color:#62526e; }
.moment-comment-previews p > span { display:block; font-size:13px; line-height:1.5; overflow-wrap:anywhere; }
.moment-comment-previews > a { font-size:13px; color:#aa376e; }
.moment-view__aside:has(.honeygram-comments[open]) .moment-comment-previews { display:none; }

/* Profile moments remain a readable vertical feed, not a photo album. */
.profile-moments .honeygram-cards { max-width:720px; margin-inline:auto; }
.profile-moments .honeygram-card__media { aspect-ratio:4/3; max-height:520px; }
.profile-moments .honeygram-card__media img { height:100%; max-height:520px; }
@media (max-width:700px) {
    .profile-moments .honeygram-card { padding:12px; }
    .profile-moments .honeygram-card__media,
    .profile-moments .honeygram-card__media img { max-height:65dvh; }
}

/* The profile feed keeps publication dates visible on narrow screens. */
@media (max-width:700px) {
    .profile-moments .honeygram-card__person { flex-basis:100%; }
    .profile-moments .honeygram-card__header time {
        display:block;
        margin-left:54px;
        margin-top:-6px;
    }
}

.moment-comments-sheet { box-sizing:border-box; width:100%; max-width:none; max-height:80dvh; margin:auto 0 0; padding:24px 20px; border:0; border-radius:24px 24px 0 0; background:#fff; color:#343044; overflow:auto; }
.moment-comments-sheet::backdrop { background:#24162499; }
.moment-comments-sheet .discussion > h2 { margin:0 44px 20px 0; font-size:22px; }
.moment-comments-sheet__close { position:absolute; top:16px; right:16px; display:grid; place-items:center; width:36px; height:36px; padding:0; border:0; border-radius:50%; background:#fff0f6; color:#a72560; font-size:26px; line-height:1; cursor:pointer; }
.moment-comments-sheet .honeygram-comments { padding:0; margin:0; border:0; }
.moment-comments-sheet .honeygram-comments > summary { display:none; }
.moment-comments-sheet .discussion { min-width:0; }
.moment-comments-sheet .discussion__reply { margin-left:12px; }
