/* Full-screen wall. The existing online panel is available from its toolbar. */
#homeView.hidden{display:none!important}
body.home-active #header,body.home-active #chatView{display:none!important}
#homeView.photo-home{position:fixed;inset:0;z-index:60;width:100%;height:var(--app-vvh,100dvh);min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;scroll-snap-type:y mandatory;scrollbar-width:none;background:#071019;color:#e5f6ee;isolation:isolate}
#homeView::-webkit-scrollbar{display:none}
#homeView:focus{outline:none}
#homeView .photo-wall{min-height:100%;padding:0;margin:0;background:#071019}
#homeView .photo-wall-grid{display:block;margin:0;padding:0}
.photo-wall[hidden]{display:none}
.photo-wall-head{position:fixed;inset:0 0 auto;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:10px;box-sizing:border-box;padding:calc(12px + env(safe-area-inset-top)) 18px 28px;background:linear-gradient(#071019ed,#07101980,transparent);pointer-events:none}
.photo-wall-head h2{margin:0;font:650 15px/1.25 system-ui;color:#effbf6}
.photo-wall-head small{display:block;margin-top:4px;color:#a3bbb4;font:11px system-ui}
.wall-toolbar{display:flex;align-items:center;gap:6px;pointer-events:auto}
.wall-toolbar button{min-height:38px;padding:8px 12px;border:1px solid #bde8d52b;border-radius:22px;background:#101e2dd9;color:#e0f5ed;font:600 12px system-ui;cursor:pointer;backdrop-filter:blur(12px)}
.wall-toolbar .wall-online-toggle{color:#a7efcd}
.wall-toolbar button[aria-expanded=true]{border-color:#a7efcd;background:#244436}
.wall-toolbar button:focus-visible,.photo-wall-tile:focus-visible{outline:2px solid #a7efcd;outline-offset:-3px}
.wall-card{position:relative;width:100%;height:var(--app-vvh,100dvh);min-height:0;box-sizing:border-box;overflow:hidden;scroll-snap-align:start;scroll-snap-stop:always;background:#071019}
.wall-stage{position:absolute;inset:0;isolation:isolate}
.wall-backdrop{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:blur(28px) brightness(.38);transform:scale(1.1);pointer-events:none}
.photo-wall-tile{position:absolute;inset:0;display:block;color:white;text-decoration:none}
.photo-wall-tile .wall-image{display:block;width:100%;height:100%;object-fit:contain}
.wall-tag-layer{position:absolute;z-index:2;pointer-events:none}
/* The rectangle, nickname strip and shop skin are shared with the photo gallery. */
.wall-tag-layer .photo-tag-zoom{touch-action:pan-y;cursor:pointer}
.wall-tag-layer .photo-tag-identity>img{width:11px;height:11px;max-width:11px;max-height:11px;object-fit:contain}
.wall-tag-layer .photo-tag-rect.is-small .photo-tag-identity>img{width:8px;height:8px}
.wall-tag-layer .photo-tag-rect.is-highlighted{z-index:4;box-shadow:0 0 18px color-mix(in srgb,var(--tag-color) 55%,transparent)}
.wall-tag-layer .photo-tag-nick{padding:0;line-height:inherit}
.wall-caption{position:absolute;z-index:3;inset:auto 0 0;box-sizing:border-box;padding:45px max(18px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));background:linear-gradient(transparent,#071019ce 38%,#071019f5);pointer-events:none}
.wall-card-meta{display:flex;align-items:center;gap:12px;max-width:720px;margin:0 auto}
.wall-person{display:inline-flex;align-items:center;gap:8px;min-width:0;max-width:100%;box-sizing:border-box;color:var(--person-color,#92d9bd);text-decoration:none;border-radius:9px;font:600 12px system-ui;pointer-events:auto}
.wall-owner{flex:1;width:0}
.wall-person-avatar{position:relative;display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;flex:0 0 30px;box-sizing:border-box;border:1px solid var(--person-color);border-radius:50%}
.wall-person-avatar img{display:block;width:100%;height:100%;border-radius:inherit;object-fit:cover}
.wall-person-nick{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:2px 1px}
.wall-person-badge{width:13px;height:13px;object-fit:contain;flex:0 0 13px}
.wall-hearts{flex-shrink:0;padding:8px 11px;border:1px solid #ff91b42b;border-radius:20px;background:#172131c9;color:#f8abc2;font:600 12px system-ui;font-variant-numeric:tabular-nums}
.wall-hearts.is-liked{color:#ff729b}
.wall-card .wall-hearts{position:static;display:inline-flex;align-items:center;gap:6px;width:auto;height:auto;pointer-events:auto;cursor:pointer}
.wall-hearts b{font:inherit}
.wall-tag-group{max-width:720px;margin:9px auto 0;pointer-events:auto}
.wall-tag-label{display:flex;align-items:center;gap:6px;color:#b4c8c2;font:500 10px system-ui}
.wall-tag-count{font-variant-numeric:tabular-nums}
.wall-people{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#446357 transparent;padding:7px 2px 5px;scroll-snap-type:x proximity}
.wall-people .wall-person{flex:0 0 auto;max-width:190px;scroll-snap-align:start;padding:5px 8px 5px 5px;border:1px solid #b8dccc30;background:#122331d9;font-size:11px;gap:6px}
.wall-people .wall-person-avatar{width:25px;height:25px;flex-basis:25px}
.wall-people .wall-tag-chip[data-tag-style]{background:var(--trial-bg);border-color:var(--trial-border);box-shadow:var(--trial-shadow)}
.wall-person:focus-visible{outline:2px solid var(--person-color);outline-offset:2px}
.wall-swipe-hint{display:block;margin-top:5px;text-align:center;font:10px system-ui;letter-spacing:.03em;color:#9fb5ae}
.photo-wall-message{position:fixed;left:50%;top:85px;transform:translateX(-50%);z-index:6;width:max-content;max-width:85%;box-sizing:border-box;border-radius:12px;padding:9px 12px;background:#172735f0;color:#d0e6dd;font:12px system-ui;text-align:center}
.photo-wall-message:empty{display:none}
.photo-wall-more{display:block;min-height:48px;margin:14px auto;padding:10px 18px;border:1px solid #a3e7ca40;border-radius:24px;background:#172735;color:#b3ebd6;cursor:pointer;scroll-snap-align:end}
.photo-wall-more[hidden]{display:none}
/* Preserve the real online/DM list and its event handlers; overlay it on demand. */
body.home-active #onlineUsers{display:none!important}
html body.home-active.wall-online-open #onlineUsers{position:fixed!important;display:flex!important;flex-direction:column;inset:calc(66px + env(safe-area-inset-top)) 12px 12px auto!important;z-index:80;flex:none!important;width:min(360px,calc(100vw - 24px))!important;min-width:0!important;max-width:calc(100vw - 24px)!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;padding:8px!important;border:1px solid #a3e7ca30;border-radius:18px;background:#101c2bf5;box-shadow:0 16px 60px #0009;overflow:hidden!important}
body.home-active.wall-online-open #onlineUsers .online-tabs{display:flex!important;flex:none;min-height:42px}
body.home-active.wall-online-open #onlineUsers .online-tab{flex:1}
body.home-active.wall-online-open #onlineUsers .online-tab span{display:inline!important}
body.home-active.wall-online-open #onlineUsers .online-panel.is-active{display:flex!important;flex-direction:column;flex:1;min-height:0;overflow:auto!important}
body.home-active.wall-online-open #onlineUsers .users-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(94px,1fr))!important;gap:8px!important;width:100%!important;max-height:none!important;height:auto!important;overflow:visible!important;align-content:start;padding:8px!important}
@media(max-width:600px){.photo-wall-head{padding:calc(10px + env(safe-area-inset-top)) 10px 22px;gap:6px}.photo-wall-head h2{font-size:12px}.photo-wall-head small{display:none}.wall-toolbar{gap:4px}.wall-toolbar button{font-size:10px;padding:8px;min-height:36px}.wall-caption{padding-right:12px;padding-left:12px}.wall-person{font-size:11px}}
@media(prefers-reduced-motion:no-preference){.wall-people .wall-tag-chip[data-tag-style=holo]{background-size:200% 100%;animation:photo-style-holo 5s ease-in-out infinite}}
@media(prefers-reduced-motion:reduce){.wall-card *,.wall-card *::before,.wall-card *::after{animation:none!important;transition:none!important}}

/* Mount the private gallery controls in the current feed slide. */
.wall-gallery-source{display:none!important}
.wall-card.wall-gallery-active{position:relative;inset:auto;display:block;width:100%;height:var(--app-vvh,100dvh);padding:0;margin:0;z-index:auto;border:0;border-radius:0}
.wall-card .photo-swipe-stage{position:absolute;left:0;right:0;top:calc(108px + env(safe-area-inset-top));bottom:calc(144px + env(safe-area-inset-bottom));width:auto;height:auto}
.wall-card .photo-swipe-card{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;width:100%;height:100%;transform:none;touch-action:pan-y;cursor:default}
.wall-card.is-tagging .photo-swipe-card{touch-action:none}
.wall-card .photo-swipe-card img.wall-image{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;border-radius:0}
.wall-card .wall-caption{inset:calc(56px + env(safe-area-inset-top)) 0 auto;padding:10px 16px;background:linear-gradient(#07101980,transparent)}
.wall-card .wall-swipe-hint{display:none}
.wall-gallery-open{flex:none;pointer-events:auto;border:1px solid #bde8d52b;border-radius:20px;background:#101e2dd9;color:#e0f5ed;padding:8px 12px;font:600 11px system-ui;cursor:pointer}
.wall-card>.photo-lightbox-heart{display:none}
.wall-card .photo-tag-zoom{touch-action:pan-y}
.wall-card.is-tagging .photo-tag-zoom{touch-action:none}
.wall-card .photo-people-grid>button{flex-direction:row;gap:7px}
.wall-card .photo-people-grid .wall-person-avatar{width:26px;height:26px;flex-basis:26px}
.wall-card.is-tags-open .photo-swipe-stage{bottom:calc(var(--tag-editor-height) + 32px + env(safe-area-inset-bottom))}
@media(min-width:1000px),(min-width:600px) and (max-height:540px){.wall-card.is-tags-open .photo-swipe-stage{left:16px;right:346px;top:108px;bottom:16px}}
@media(min-width:600px) and (max-height:540px){.wall-card.is-tags-open .photo-swipe-stage{right:306px;top:100px;bottom:10px}}

/* Feed presentation is independent of the gallery modal's layout and scroll locks. */
#homeView .wall-card{overflow:clip;overscroll-behavior:auto;touch-action:pan-y;perspective:none}
#homeView .wall-card:not(.is-tags-open) .photo-swipe-stage{inset:0;width:100%;height:100%;overflow:clip;overscroll-behavior:auto;touch-action:pan-y}
#homeView .wall-card:not(.is-tagging) .photo-swipe-card,
#homeView .wall-card:not(.is-tagging) .photo-tag-zoom-surface,
#homeView .wall-card:not(.is-tagging) .photo-tag-zoom{touch-action:pan-y;overscroll-behavior:auto}
#homeView .wall-card .wall-image{border:0;box-shadow:none;border-radius:0}
#homeView .wall-caption{inset:auto 0 calc(92px + env(safe-area-inset-bottom));padding:35px 16px 8px;background:linear-gradient(transparent,#07101996)}
#homeView .wall-card-meta{max-width:none}
#homeView .wall-owner{max-width:calc(100% - 76px)}
#homeView .wall-card:not(.is-tags-open) .photo-people-rail{left:12px;right:76px;bottom:calc(30px + env(safe-area-inset-bottom));transform:none;width:auto;max-width:none;padding:4px;border:0;background:#0a17255c;backdrop-filter:blur(8px);border-radius:12px}
#homeView .wall-card .photo-people-grid{max-width:100%;touch-action:pan-x pan-y;overscroll-behavior-y:auto}
#homeView .wall-card:not(.is-tags-open) .photo-tag-dock{left:auto;right:14px;bottom:calc(160px + env(safe-area-inset-bottom));transform:none;width:48px;max-width:none;display:flex;flex-direction:column;align-items:center;gap:12px}
#homeView .wall-card:not(.is-tags-open) .photo-tag-bar{position:static;transform:none;max-width:none}
#homeView .wall-card:not(.is-tags-open) .photo-tag-toggle{width:44px;height:44px;min-height:44px;padding:0;border-radius:50%;background:#101c2cc9;backdrop-filter:blur(8px)}
#homeView .wall-card:not(.is-tags-open) .photo-tag-toggle>span{display:none}
#homeView .wall-card:not(.is-tags-open) .photo-tag-dock>.photo-lightbox-heart,
#homeView .wall-card:not(.is-tags-open) .photo-tag-dock>.photo-tag-dock-heart{position:static;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:48px;height:58px;padding:7px;border-radius:24px;background:#101c2cc9;border:1px solid #ffffff26;color:#f7bfd1;font:600 12px system-ui;cursor:pointer}
#homeView .wall-card .photo-tag-dock-heart[hidden],#homeView .wall-card .photo-lightbox-heart[hidden]{display:none!important}
#homeView .wall-card:not(.is-tags-open) .photo-tag-heart-label{display:none}
#homeView .wall-card .wall-swipe-hint{display:block;position:fixed;left:0;right:0;bottom:8px;margin:0;font-size:9px;opacity:.65}
#homeView .wall-card:not(.wall-gallery-active) .wall-swipe-hint{display:none}
#homeView .wall-card.is-tags-open .wall-caption{display:none}

/* TAG identity and a light vertical action rail over the photograph. */
#homeView .photo-wall-head{justify-content:flex-start;padding:calc(12px + env(safe-area-inset-top)) 14px 30px;background:linear-gradient(#07101994,transparent)}
.wall-brand-back{display:flex;align-items:center;gap:5px;height:50px;padding:3px 10px 3px 5px;border:1px solid #b3ebd622;border-radius:17px;background:#0d202354;backdrop-filter:blur(12px);box-shadow:0 3px 18px #0002;cursor:pointer;pointer-events:auto;color:#d5f6e8}
.wall-brand-back img{display:block;width:42px;height:42px;filter:drop-shadow(0 2px 7px #8ee1bb22)}
.wall-brand-arrow{font:300 27px/1 system-ui;opacity:.75}
.wall-brand-back:focus-visible{outline:2px solid #a7efcd;outline-offset:3px}
#homeView .wall-caption{bottom:calc(102px + env(safe-area-inset-bottom));padding:32px 82px 4px 18px;background:linear-gradient(transparent,#0710198c)}
#homeView .wall-owner{max-width:100%;font-size:14px;gap:9px;filter:drop-shadow(0 2px 4px #0008)}
#homeView .wall-owner .wall-person-avatar{width:34px;height:34px;flex-basis:34px}
#homeView .wall-card:not(.is-tags-open) .photo-tag-dock{right:12px;bottom:calc(178px + env(safe-area-inset-bottom));width:54px;gap:22px}
#homeView .wall-card:not(.is-tags-open) .photo-tag-dock>.photo-lightbox-heart,
#homeView .wall-card:not(.is-tags-open) .photo-tag-dock>.photo-tag-dock-heart,
#homeView .wall-card:not(.is-tags-open) .photo-tag-toggle,
#homeView .wall-gallery-open{width:54px;height:auto;min-height:54px;padding:3px 0;border:0;background:transparent;box-shadow:none;backdrop-filter:none;border-radius:0;color:#e7f7ef;filter:drop-shadow(0 2px 3px #0009);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;font:600 11px/1.2 system-ui;cursor:pointer}
#homeView .wall-card:not(.is-tags-open) .photo-tag-dock>.photo-lightbox-heart{order:-1}
#homeView .wall-card:not(.is-tags-open) .photo-tag-dock>.photo-tag-dock-heart{order:-1}
#homeView .wall-card:not(.is-tags-open) .photo-tag-dock i,#homeView .wall-gallery-open i{font-size:29px;line-height:1.15}
#homeView .wall-card:not(.is-tags-open) .photo-tag-toggle::after{content:'Oznake';font:600 10px/1.2 system-ui;color:#dcf0e7}
#homeView .wall-card .photo-tag-dock>.is-liked{color:#9ff0c8}
#homeView .wall-gallery-open{position:absolute;right:12px;bottom:calc(102px + env(safe-area-inset-bottom));z-index:16;pointer-events:auto}
#homeView .wall-gallery-open span{font-size:10px}
#homeView .wall-card.is-tags-open>.wall-gallery-open{display:none}
#homeView .wall-card:not(.is-tags-open) .photo-people-rail{left:14px;right:80px;bottom:calc(30px + env(safe-area-inset-bottom));padding:0;border:0;border-radius:0;backdrop-filter:none;background:none;overflow:visible}
#homeView .wall-card:not(.is-tags-open) .photo-people-rail::before{content:'NA FOTOGRAFIJI';display:block;padding:0 4px 5px;color:#b2cabe;font:600 9px/1 system-ui;letter-spacing:.12em;text-shadow:0 1px 4px #000}
#homeView .wall-card .photo-people-grid{gap:12px;padding:4px 4px 7px;scrollbar-width:none}
#homeView .wall-card .photo-people-grid>button{min-height:34px;max-width:180px;padding:0 0 5px;gap:6px;border:0;border-bottom:1px solid var(--trial-border,var(--person-color));border-radius:0;background:none;box-shadow:none;color:#e7f5ed;font-size:12px;filter:drop-shadow(0 2px 3px #0009)}
#homeView .wall-card .photo-people-grid>button[aria-pressed=true]{border-bottom-width:2px;border-bottom-color:#a7efcd;background:none;box-shadow:none}
#homeView .wall-card .photo-people-grid .wall-person-avatar{width:25px;height:25px;flex-basis:25px}
#homeView .wall-card .wall-swipe-hint{opacity:.4}
@media(hover:hover){.wall-brand-back:hover{background:#19403680}#homeView .wall-gallery-open:hover,#homeView .wall-card:not(.is-tags-open) .photo-tag-toggle:hover{color:#a7efcd}}

/* Consistent feed chrome: one scrim, one icon language, clear identity hierarchy. */
#homeView .wall-card::after{content:'';position:absolute;inset:45% 0 0;z-index:1;pointer-events:none;background:linear-gradient(transparent 15%,#06151c22 45%,#06151ca8 78%,#06151ce6)}
#homeView .photo-wall-head{padding:calc(16px + env(safe-area-inset-top)) 16px 32px}
.wall-brand-back{gap:4px;padding:0;border:0;background:none;border-radius:50%;box-shadow:none;backdrop-filter:none;height:44px;filter:drop-shadow(0 2px 8px #0006)}
.wall-brand-back img{width:40px;height:40px}
.wall-brand-arrow{font-size:24px;color:#d1eee1}
#homeView .wall-caption{bottom:calc(94px + env(safe-area-inset-bottom));padding:20px 80px 8px 18px;background:none}
#homeView .wall-owner{font-size:16px;font-weight:750;gap:7px}
#homeView .wall-owner>.wall-person-avatar{display:none}
#homeView .wall-owner::before{content:'@';color:#c1e6d4;font:600 16px system-ui;margin-right:-5px}
#homeView .wall-owner .wall-person-nick{line-height:1.5;padding:2px}
#homeView .wall-owner .wall-person-badge{width:15px;height:15px;flex-basis:15px}
.wall-author-action{position:absolute;z-index:16;right:16px;bottom:calc(333px + env(safe-area-inset-bottom));width:48px;height:48px;max-width:none;padding:0;filter:drop-shadow(0 3px 6px #0006)}
.wall-author-action>.wall-person-avatar{width:46px;height:46px;flex-basis:46px;border:2px solid #d5f6e8;box-shadow:0 0 0 3px #8ce8bc1a}
.wall-author-action>.wall-person-nick,.wall-author-action>.wall-person-badge{display:none}
.wall-author-action::after{content:'↗';position:absolute;right:-1px;bottom:-4px;display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#a7efcd;border:2px solid #142d30;color:#133329;font:750 12px/1 system-ui}
#homeView .wall-card.is-tags-open>.wall-author-action{display:none}
#homeView .wall-card:not(.is-tags-open) .photo-tag-dock{right:13px;bottom:calc(194px + env(safe-area-inset-bottom));gap:18px;width:52px}
#homeView .wall-card:not(.is-tags-open) .photo-tag-dock>.photo-lightbox-heart,
#homeView .wall-card:not(.is-tags-open) .photo-tag-dock>.photo-tag-dock-heart,
#homeView .wall-card:not(.is-tags-open) .photo-tag-toggle,
#homeView .wall-gallery-open{width:52px;min-height:58px;gap:7px;color:#e8f7f0;filter:drop-shadow(0 2px 4px #0008)}
#homeView .wall-gallery-open{right:13px;bottom:calc(93px + env(safe-area-inset-bottom))}
#homeView .wall-card:not(.is-tags-open) .photo-tag-dock i,#homeView .wall-gallery-open i{display:block;width:32px;height:32px;font-size:0;color:inherit!important;background:none!important;filter:none!important}
#homeView .wall-card:not(.is-tags-open) .photo-tag-dock i::before,#homeView .wall-gallery-open i::before{content:'';display:block;width:32px;height:32px;background:currentColor;mask:var(--wall-icon) center/contain no-repeat;-webkit-mask:var(--wall-icon) center/contain no-repeat}
#homeView .photo-lightbox-heart i,#homeView .photo-tag-dock-heart i{--wall-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-9-5.8-9-12a5.5 5.5 0 0 1 9-4.2A5.5 5.5 0 0 1 21 9c0 6.2-9 12-9 12Z'/%3E%3C/svg%3E")}
#homeView .photo-tag-toggle i{--wall-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3H5a2 2 0 0 0-2 2v3m13-5h3a2 2 0 0 1 2 2v3M3 16v3a2 2 0 0 0 2 2h3m13-5v3a2 2 0 0 1-2 2h-3'/%3E%3Ccircle cx='12' cy='9' r='3'/%3E%3Cpath d='M7 17c0-4 10-4 10 0'/%3E%3C/g%3E%3C/svg%3E")}
#homeView .wall-gallery-open i{--wall-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='15' height='15' rx='3'/%3E%3Cpath d='m3 14 4-4 4 4 3-3 4 4M7 21h12a2 2 0 0 0 2-2V7'/%3E%3Ccircle cx='13' cy='7' r='1'/%3E%3C/g%3E%3C/svg%3E")}
#homeView .wall-card:not(.is-tags-open) .photo-tag-dock>.is-liked{color:#9ee9c1!important}
#homeView .wall-card .photo-tag-dock b{font:700 12px/1.2 system-ui;font-variant-numeric:tabular-nums}
#homeView .wall-card:not(.is-tags-open) .photo-tag-toggle::after,#homeView .wall-gallery-open span{font:600 10px/1.2 system-ui;letter-spacing:.02em;color:#d4e6dd}
#homeView .wall-card:not(.is-tags-open) .photo-people-rail{bottom:calc(29px + env(safe-area-inset-bottom));right:82px;left:16px;background:none}
#homeView .wall-card:not(.is-tags-open) .photo-people-rail::before{content:'Na fotografiji · ' attr(data-people-count);padding:0 2px 4px;font:500 10px/1.2 system-ui;letter-spacing:.02em;color:#9cbcae;text-shadow:0 1px 4px #0005}
#homeView .wall-card .photo-people-grid{gap:7px;padding:3px 1px 4px}
#homeView .wall-card .photo-people-grid>button{gap:6px;min-height:34px;padding:3px 8px 3px 3px;border:1px solid #b6e3cc20;border-radius:20px;background:#c5eed608;box-shadow:none;filter:none;font-size:11px}
#homeView .wall-card .photo-people-grid>button[aria-pressed=true]{border:1px solid #a7efcd88;background:#a7efcd18;box-shadow:inset 0 0 0 1px #a7efcd0a}
#homeView .wall-card .photo-people-grid .wall-person-avatar{width:24px;height:24px;flex-basis:24px}
#homeView .wall-card .wall-swipe-hint{font-size:9px;letter-spacing:.04em;color:#a0b8ac;opacity:.35}
@media(hover:hover){.wall-brand-back:hover{background:none;filter:drop-shadow(0 0 8px #a7efcd55)}.wall-author-action:hover{filter:drop-shadow(0 0 8px #a7efcd44)}}
@media(prefers-reduced-motion:no-preference){.wall-author-action,.wall-gallery-open,.wall-brand-back{transition:filter .18s,opacity .18s}.wall-author-action:active,#homeView .wall-gallery-open:active{opacity:.7}}

/* Ambient colour stays behind the fully opaque, unfiltered photograph. */
#homeView .wall-backdrop{filter:blur(36px) brightness(.78) saturate(1.08);transform:scale(1.12);opacity:1}
#homeView .photo-swipe-card .wall-image{mask:none;-webkit-mask:none;filter:none;opacity:1}

/* A brief TAG entrance, without intercepting navigation or feed gestures. */
.wall-entrance{position:fixed;inset:0;z-index:9500;pointer-events:none;overflow:hidden}
.wall-entrance-glow{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 42%,#8feac54d 0%,#123c3bcc 24%,#06151ce8 65%);opacity:0}
.wall-entrance-mark{position:absolute;display:block;object-fit:contain;transform-origin:center;will-change:transform,opacity}
.wall-entrance-ring{position:absolute;left:50%;top:42%;width:120px;height:120px;border:1px solid #b6ffde88;border-radius:50%;box-shadow:0 0 35px #a7efcd33,inset 0 0 25px #a7efcd22;opacity:0;pointer-events:none}
.wall-entrance [hidden]{display:none!important}
.wall-entrance-mark{filter:drop-shadow(0 5px 12px #06151c55)}
.wall-entrance-echo{border-color:#d7ffed55;box-shadow:none}
/* Photo first, with a horizontal action tray underneath. */
#homeView .wall-card:not(.is-tags-open){--wall-tray-bottom:calc(12px + env(safe-area-inset-bottom));--wall-tray-width:min(560px,calc(100% - 24px));--wall-tray-left:max(12px,calc((100% - 560px)/2));--wall-action-width:calc(var(--wall-tray-width)/4)}
#homeView .wall-card:not(.is-tags-open) .photo-swipe-stage{inset:calc(70px + env(safe-area-inset-top)) 0 calc(190px + env(safe-area-inset-bottom));width:auto;height:auto}
#homeView .wall-card:not(.is-tags-open)::after{inset:auto auto var(--wall-tray-bottom) var(--wall-tray-left);box-sizing:border-box;width:var(--wall-tray-width);height:76px;border:1px solid #b9d7e526;border-radius:23px;background:radial-gradient(ellipse at 50% 0,#35556a55,transparent 75%),linear-gradient(160deg,#182832f5,#0c1722fa);box-shadow:0 14px 36px #0006,inset 0 1px #ffffff10;backdrop-filter:blur(18px)}
#homeView .wall-card:not(.is-tags-open) .wall-author-action{left:var(--wall-tray-left);right:auto;bottom:calc(var(--wall-tray-bottom) + 7px);width:var(--wall-action-width);height:62px;display:flex;flex-direction:column;justify-content:center;gap:5px;filter:none}
#homeView .wall-card:not(.is-tags-open) .photo-tag-dock{left:calc(var(--wall-tray-left) + var(--wall-action-width));right:auto;bottom:calc(var(--wall-tray-bottom) + 7px);width:calc(var(--wall-action-width)*2);height:62px;flex-direction:row;gap:0;justify-content:space-around;transform:none}
#homeView .wall-card:not(.is-tags-open) .photo-tag-bar{flex:1;min-width:0;display:flex;justify-content:center}
#homeView .wall-card:not(.is-tags-open) .photo-tag-dock>.photo-lightbox-heart,
#homeView .wall-card:not(.is-tags-open) .photo-tag-dock>.photo-tag-dock-heart{flex:1;width:auto;height:58px;margin:0;border:0;background:none;box-shadow:none}
#homeView .wall-card:not(.is-tags-open) .wall-gallery-open{left:calc(var(--wall-tray-left) + var(--wall-action-width)*3);right:auto;bottom:calc(var(--wall-tray-bottom) + 7px);width:var(--wall-action-width);height:62px}
#homeView .wall-card:not(.is-tags-open) .photo-tag-dock i,
#homeView .wall-card:not(.is-tags-open) .wall-gallery-open i,
#homeView .wall-card:not(.is-tags-open) .photo-tag-dock i::before,
#homeView .wall-card:not(.is-tags-open) .wall-gallery-open i::before{width:25px;height:25px}
#homeView .wall-card:not(.is-tags-open) .photo-tag-dock>.is-liked{color:#ff6d9a!important}
#homeView .wall-card:not(.is-tags-open) .wall-author-action>.wall-person-avatar{width:34px;height:34px;flex:0 0 34px;border:1px solid #b8e5d775;box-shadow:0 2px 8px #0004}
#homeView .wall-card:not(.is-tags-open) .wall-author-action::after{content:'Profil';position:static;width:auto;height:auto;border:0;border-radius:0;background:none;color:#c6d6df;font:600 10px/1.2 system-ui}
#homeView .wall-card:not(.is-tags-open) .photo-tag-toggle,
#homeView .wall-card:not(.is-tags-open) .photo-tag-dock>.photo-lightbox-heart,
#homeView .wall-card:not(.is-tags-open) .photo-tag-dock>.photo-tag-dock-heart,
#homeView .wall-card:not(.is-tags-open) .wall-gallery-open{height:62px;min-height:62px;gap:5px;padding:0;filter:none;border-radius:15px}
#homeView .wall-card:not(.is-tags-open) .photo-tag-toggle{width:100%}
#homeView .wall-card:not(.is-tags-open) .photo-tag-dock i,
#homeView .wall-card:not(.is-tags-open) .wall-gallery-open i{box-sizing:content-box;display:grid;place-items:center;padding:5px;border-radius:11px;background:#9bc9ff12!important;color:#abd3ff!important}
#homeView .wall-card:not(.is-tags-open) .photo-tag-toggle i{background:#a7efcd12!important;color:#a7efcd!important}
#homeView .wall-card:not(.is-tags-open) .photo-tag-dock>.photo-lightbox-heart i,
#homeView .wall-card:not(.is-tags-open) .photo-tag-dock>.photo-tag-dock-heart i{background:#ff8eae12!important;color:#ffa0bb!important}
#homeView .wall-card:not(.is-tags-open) .photo-tag-dock>.is-liked i{background:#ff58802b!important;color:#ff638e!important}
#homeView .wall-card:not(.is-tags-open) .photo-tag-dock b{font:650 10px/1.2 system-ui;color:#dbe5ec}
#homeView .wall-card:not(.is-tags-open) :is(.wall-author-action,.photo-tag-toggle,.photo-lightbox-heart,.photo-tag-dock-heart,.wall-gallery-open):focus-visible{outline:2px solid #a7efcd;outline-offset:-2px}
@media(hover:hover){#homeView .wall-card:not(.is-tags-open) :is(.wall-author-action,.photo-tag-toggle,.photo-lightbox-heart,.photo-tag-dock-heart,.wall-gallery-open):hover{background:#c0e4ff0b}}

#homeView .wall-card:not(.is-tags-open) .photo-tag-dock b{border:0;padding:0;min-width:0}
#homeView .wall-card:not(.is-tags-open) .wall-caption{bottom:calc(148px + env(safe-area-inset-bottom));padding:0 20px 8px}
#homeView .wall-card:not(.is-tags-open) .photo-people-rail{left:18px;right:18px;bottom:calc(92px + env(safe-area-inset-bottom))}
#homeView .wall-card:not(.is-tags-open) .wall-swipe-hint{display:none}
/* Compact location beside the author, leaving the photograph unobstructed. */
.wall-photo-location{box-sizing:border-box;display:inline-flex;align-items:center;gap:5px;flex:0 1 auto;max-width:65%;min-width:0;margin:0;padding:5px 8px;border:1px solid #c6ddcf1a;border-radius:20px;background:#10221c45;color:#c7d8ce;font:500 10px/1.3 system-ui}
.wall-venue-mark{display:flex;align-items:center;flex:none;color:#a7c9b5}
.wall-venue-mark i{font-size:10px}
.wall-venue-copy{min-width:0}
.wall-venue-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#dce9e0;font:600 11px/1.3 system-ui}
.wall-venue-city{display:flex;align-items:center;gap:5px;flex:0 1 auto;min-width:0;max-width:45%;color:#94aa9e;font:500 10px/1.3 system-ui}
.wall-venue-city::before{content:'\00b7';color:#6f887a}
.wall-venue-city>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#homeView .wall-card.has-photo-location .wall-card-meta{max-width:560px;gap:10px;justify-content:space-between}
#homeView .wall-card.has-photo-location .wall-owner{flex:1 1 auto;width:auto;min-width:0;max-width:100%;font-size:14px}
#homeView .wall-card.has-photo-location .wall-owner .wall-person-nick{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-height:540px){
 #homeView .wall-card:not(.is-tags-open) .photo-swipe-stage{top:52px;bottom:calc(146px + env(safe-area-inset-bottom))}
 #homeView .wall-card:not(.is-tags-open) .wall-caption{bottom:calc(116px + env(safe-area-inset-bottom));padding-bottom:2px}
 #homeView .wall-card:not(.is-tags-open) .photo-people-rail{bottom:calc(84px + env(safe-area-inset-bottom))}
 #homeView .wall-card:not(.is-tags-open) .photo-people-rail::before{display:none}
}
.wall-entrance-shine{position:absolute;left:50%;top:42%;width:min(72vw,460px);height:2px;background:linear-gradient(90deg,transparent,#a7efcd66,#ecfff7,#a7efcd66,transparent);box-shadow:0 0 14px 3px #a7efcd44;opacity:0}

/* Venue in the top corner, publisher below the photograph. */
#homeView .wall-card>.wall-photo-location{position:absolute;z-index:4;top:calc(22px + env(safe-area-inset-top));right:max(16px,env(safe-area-inset-right));max-width:calc(100% - 110px);padding:7px 10px;background:#10201ddd;backdrop-filter:blur(12px);border-color:#c6ddcf26;box-shadow:0 3px 12px #0002}
#homeView .wall-card.is-tags-open>.wall-photo-location{display:none}
#homeView .wall-card .wall-owner{gap:10px;filter:none;padding:2px 0}
#homeView .wall-card .wall-owner::before{content:none}
#homeView .wall-card .wall-owner>.wall-person-avatar{display:block;width:36px;height:36px;flex:0 0 36px;border:1px solid #a7efcd60;box-shadow:0 3px 10px #0003}
.wall-publisher-copy{display:flex;flex-direction:column;min-width:0;gap:2px}
.wall-publisher-copy>small{color:#a5bcb0;font:500 9px/1.2 system-ui;letter-spacing:.035em}
#homeView .wall-card .wall-owner .wall-person-nick{padding:0;font-size:16px;font-weight:750;line-height:1.25;text-shadow:0 2px 5px #0005}
/* Keep the original people chips, with a small lounge icon in the heading. */
#homeView .wall-card:not(.is-tags-open) .photo-people-rail::before{content:'\f4b8';display:inline-block;padding:0 6px 6px 2px;color:#b4cdbd;font-family:'Font Awesome 6 Free';font-weight:900;font-size:12px;line-height:1}
#homeView .wall-card:not(.is-tags-open) .photo-people-rail::after{content:'Na fotografiji';position:absolute;top:1px;left:24px;color:#9cbcae;font:500 10px/1.2 system-ui;pointer-events:none}
@media(max-height:540px){
 #homeView .wall-card:not(.is-tags-open) .photo-people-rail::before,
 #homeView .wall-card:not(.is-tags-open) .photo-people-rail::after{display:none}
}

/* Publisher above the photograph; compact people and actions below. */
#homeView .wall-card:not(.is-tags-open){--wall-footer-height:52px;--wall-action-width:calc((var(--wall-tray-width) - 24px)/3)}
#homeView .wall-card.has-photo-people:not(.is-tags-open){--wall-footer-height:90px}
#homeView .wall-card:not(.is-tags-open)::after{height:var(--wall-footer-height);border-radius:18px;border-color:#b4e0dc26;background:linear-gradient(125deg,rgba(24,57,62,.76),rgba(27,33,55,.8));box-shadow:0 8px 24px #0003,inset 0 1px #d4fff014;backdrop-filter:blur(16px) saturate(115%)}
#homeView .wall-card:not(.is-tags-open) .photo-swipe-stage{bottom:calc(var(--wall-tray-bottom) + var(--wall-footer-height) + 6px)}
#homeView .wall-card:not(.is-tags-open) .wall-caption{left:78px;right:calc(min(42vw, 180px) + 26px);top:calc(18px + env(safe-area-inset-top));bottom:auto;width:auto;height:36px;padding:0;display:flex;align-items:center;z-index:6}
#homeView .wall-card .wall-card-meta{width:100%;margin:0;max-width:none}
#homeView .wall-card .wall-owner{flex:1 1 auto;width:auto;max-width:100%;min-width:0}
#homeView .wall-card .wall-owner>.wall-person-avatar{width:30px;height:30px;flex-basis:30px;border-color:#d9e6df50;box-shadow:none}
.wall-publisher-copy{flex:1;gap:3px}
.wall-publisher-copy>small{order:2;color:#b1c8c7;font-size:9px;letter-spacing:0}
#homeView .wall-card .wall-owner .wall-person-nick{color:#f3f7f5;font-size:14px;line-height:1.3;text-shadow:none}
#homeView .wall-card:not(.is-tags-open) .wall-author-action{display:none}
#homeView .wall-card:not(.is-tags-open) .photo-people-rail{left:calc(var(--wall-tray-left) + 16px);right:auto;bottom:calc(var(--wall-tray-bottom) + 52px);width:calc(var(--wall-tray-width) - 32px);padding:0;max-width:none;display:flex;align-items:center;gap:7px}
#homeView .wall-card .photo-people-rail[hidden]{display:none!important}
#homeView .wall-card:not(.is-tags-open) .photo-people-rail::before{font-size:12px;padding:0;flex:none;color:#a1c9c4}
#homeView .wall-card:not(.is-tags-open) .photo-people-rail::after{display:none}
#homeView .wall-card .photo-people-grid{gap:5px;padding:0;flex:1;min-width:0}
#homeView .wall-card .photo-people-grid>button{min-height:30px;padding:3px 9px 3px 3px;border-color:#a5dcd726;background:#b2e7e310;font-size:10px}
#homeView .wall-card .photo-people-grid .wall-person-avatar{width:22px;height:22px;flex-basis:22px}
#homeView .wall-card:not(.is-tags-open) .photo-tag-dock{left:calc(var(--wall-tray-left) + 12px);bottom:calc(var(--wall-tray-bottom) + 4px);width:calc(var(--wall-action-width)*2);height:44px;align-items:center}
#homeView .wall-card:not(.is-tags-open) .wall-gallery-open{left:calc(var(--wall-tray-left) + 12px + var(--wall-action-width)*2);bottom:calc(var(--wall-tray-bottom) + 4px);width:var(--wall-action-width)}
#homeView .wall-card:not(.is-tags-open) .photo-tag-toggle,
#homeView .wall-card:not(.is-tags-open) .photo-tag-dock>.photo-lightbox-heart,
#homeView .wall-card:not(.is-tags-open) .photo-tag-dock>.photo-tag-dock-heart,
#homeView .wall-card:not(.is-tags-open) .wall-gallery-open{height:44px;min-height:44px;flex-direction:row;gap:7px;border-radius:12px;background:transparent;border:0;border-top:1px solid #ffffff0b}
#homeView .wall-card:not(.is-tags-open) .photo-tag-dock i,
#homeView .wall-card:not(.is-tags-open) .wall-gallery-open i{padding:0;background:transparent!important;color:#b5dce8!important;border-radius:0}
#homeView .wall-card:not(.is-tags-open) .photo-tag-dock>.photo-lightbox-heart i,
#homeView .wall-card:not(.is-tags-open) .photo-tag-dock>.photo-tag-dock-heart i{background:transparent!important;color:#ff7798!important}
#homeView .wall-card:not(.is-tags-open) .photo-tag-dock>.is-liked i{color:#ff3f70!important;filter:drop-shadow(0 0 5px #ff3f7040)!important}
#homeView .wall-card:not(.is-tags-open) .photo-tag-dock b,
#homeView .wall-card:not(.is-tags-open) .wall-gallery-open span,
#homeView .wall-card:not(.is-tags-open) .photo-tag-toggle::after{font:600 11px/1.2 system-ui;color:#d1e2e5}
@media(max-height:540px){
 #homeView .wall-card:not(.is-tags-open){--wall-tray-bottom:calc(6px + env(safe-area-inset-bottom))}
}

#homeView .wall-card:not(.is-tags-open)>.wall-photo-location{top:calc(22px + env(safe-area-inset-top));width:max-content;max-width:min(42vw,180px);padding:5px 9px}
#homeView .wall-card:not(.is-tags-open) .photo-swipe-stage{top:calc(70px + env(safe-area-inset-top))}

@media(max-width:380px){
 #homeView .wall-card:not(.is-tags-open) .wall-caption{left:70px;right:145px}
 #homeView .wall-card:not(.is-tags-open)>.wall-photo-location{max-width:120px;right:12px;gap:4px;padding:6px 7px}
 #homeView .wall-card .wall-owner{gap:6px}
 #homeView .wall-card .wall-owner>.wall-person-avatar{width:24px;height:24px;flex-basis:24px}
 #homeView .wall-card .wall-owner .wall-person-nick{font-size:12px}
}

/* Let the publisher name wrap instead of clipping beside the venue. */
#homeView .wall-card:not(.is-tags-open) .wall-caption{height:auto;min-height:36px;align-items:flex-start}
#homeView .wall-card .wall-owner{align-items:flex-start}
#homeView .wall-card .wall-owner>.wall-person-avatar{margin-top:2px}
#homeView .wall-card .wall-owner .wall-person-nick,
#homeView .wall-card.has-photo-location .wall-owner .wall-person-nick{display:block;max-width:100%;overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:anywhere;line-height:1.25}
#homeView .wall-card .wall-owner .wall-person-badge{flex-shrink:0}
#homeView .wall-card:not(.is-tags-open) .photo-swipe-stage{top:var(--wall-photo-top,calc(70px + env(safe-area-inset-top)))}
