/* Profile Photos / Videos (view/inc/umedia.php, js/umedia.js) */
.UM{--um-line:#e3e5ea;--um-mute:#6b7280;--um-acc:#2e7eff;--um-r:10px;padding-bottom:40px;position:relative}
.UM .TTL{margin-bottom:12px}

/* toolbar: search + owner buttons */
.UMBAR{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:4px 0 10px}
.UMSEARCH{flex:1 1 260px;display:flex;align-items:center;gap:8px;border:1px solid var(--um-line);border-radius:999px;padding:0 6px 0 14px;background:#fff;height:40px;min-width:0}
.UMSEARCH:focus-within{border-color:var(--um-acc);box-shadow:0 0 0 3px rgba(46,126,255,.15)}
.UMSEARCH>i{color:var(--um-mute);font-size:14px}
.UMSEARCH input{flex:1;border:0;outline:0;background:transparent;font-size:15px;min-width:0;height:100%}
.UMSEARCH input::-webkit-search-cancel-button{display:none}
.UMCLR{color:var(--um-mute);width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:50%}
.UMCLR:hover{background:#f1f2f4;color:#111;text-decoration:none}
.UMBTN{display:inline-flex;align-items:center;gap:7px;height:40px;padding:0 16px;border-radius:999px;border:1px solid var(--um-line);background:#fff;color:#1f2937;font-size:14px;font-weight:500;cursor:pointer;margin:0;white-space:nowrap;user-select:none}
.UMBTN:hover{background:#f6f7f9}
.UMBTN.UMPRI{background:var(--um-acc);border-color:var(--um-acc);color:#fff}
.UMBTN.UMPRI:hover{background:#1f6ae6}
.UMBTN:focus-visible,.UMI:focus-visible,.UMALB:focus-visible{outline:3px solid rgba(46,126,255,.45);outline-offset:2px}

/* breadcrumbs + album tools */
.UMCRUMB{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:14px;color:var(--um-mute);margin:2px 0 12px;min-height:30px}
.UMCRUMB a{color:#1f2937;font-weight:500}
.UMCRUMB a:hover{color:var(--um-acc);text-decoration:none}
.UMCRUMB a:last-of-type{color:#111}
.UMSEP{font-size:12px;color:#b3b8c2}
.UMALBTOOLS{margin-left:auto;display:flex;gap:4px}
.UMLINK{border:0;background:transparent;color:var(--um-mute);font-size:13px;padding:4px 8px;border-radius:6px;cursor:pointer}
.UMLINK:hover{background:#f1f2f4;color:#111}
.UMLINK.UMDELALB:hover{color:#dc2626;background:#fef2f2}
.UMNOTE{background:#fff7e6;border:1px solid #fde2b3;color:#8a5a00;border-radius:8px;padding:8px 12px;font-size:14px;margin-bottom:12px}

/* albums */
.UMALBS{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:14px;margin-bottom:18px}
.UMALB{display:block;color:#111;min-width:0}
.UMALB:hover{text-decoration:none;color:#111}
.UMCOV{display:block;aspect-ratio:4/3;border-radius:var(--um-r);overflow:hidden;background:#eef0f3;position:relative;box-shadow:0 1px 0 var(--um-line),4px -4px 0 -1px #fff,4px -4px 0 0 #d9dce2}
.UMCOV img,.UMCOV video{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s}
.UMALB:hover .UMCOV img,.UMALB:hover .UMCOV video{transform:scale(1.04)}
.UMCOV.UMEMPTY{display:flex;align-items:center;justify-content:center;color:#a3a9b5;font-size:34px}
.UMALBN{display:block;font-weight:600;font-size:14px;margin-top:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.UMALBC{display:block;font-size:12px;color:var(--um-mute)}

/* grid */
.UMGRID{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:6px}
.UMVID .UMGRID{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}
.UMI{position:relative;aspect-ratio:1/1;border-radius:8px;overflow:hidden;background:#eef0f3;cursor:pointer;min-width:0}
.UMVID .UMI{aspect-ratio:16/10;background:#111}
.UMI>img,.UMI>video{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s,filter .25s}
.UMI:hover>img{transform:scale(1.03)}
.UMI:hover>video{filter:brightness(.85)}
.UMPLAY{position:absolute;left:50%;top:50%;width:48px;height:48px;margin:-24px 0 0 -24px;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;display:flex;align-items:center;justify-content:center;font-size:18px;padding-left:3px;pointer-events:none;transition:transform .15s}
.UMI:hover .UMPLAY{transform:scale(1.1);background:var(--um-acc)}
.UMDUR{position:absolute;right:6px;bottom:6px;background:rgba(0,0,0,.7);color:#fff;font-size:11px;padding:1px 6px;border-radius:4px;font-variant-numeric:tabular-nums}
.UMDUR:empty{display:none}
.UMVN{position:absolute;left:0;right:0;bottom:0;padding:18px 8px 6px;color:#fff;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:linear-gradient(transparent,rgba(0,0,0,.65));pointer-events:none;padding-right:56px}
.UMDEL{position:absolute;top:6px;right:6px;z-index:3;width:30px;height:30px;border-radius:50%;border:0;background:rgba(0,0,0,.55);color:#fff;font-size:13px;opacity:0;transition:opacity .15s;cursor:pointer}
.UMDEL:hover{background:#dc2626}
.UMI:hover .UMDEL,.UMDEL:focus-visible{opacity:1}
.UMI .FVON{bottom:6px;left:6px;right:auto}
.UMVID .UMI .FVON{bottom:auto;top:6px;right:42px;left:auto}
@media (hover:none){.UMDEL{opacity:1}}

/* empty state */
.UMEMPTYMSG{border:2px dashed var(--um-line);border-radius:14px;padding:46px 16px;text-align:center;color:var(--um-mute);display:flex;flex-direction:column;align-items:center;gap:10px}
.UMEMPTYMSG>i{font-size:40px;color:#c4c9d2}
.UMEMPTYMSG p{margin:0;font-size:16px;color:#374151}
.UMEMPTYMSG small{font-size:12px}

/* pager */
.UMPAGER{display:flex;justify-content:center;gap:4px;margin:22px 0 6px;flex-wrap:wrap}
.UMPAGER a,.UMPAGER span{min-width:36px;height:36px;padding:0 8px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:14px;color:#1f2937;border:1px solid var(--um-line);background:#fff}
.UMPAGER span{border:0;background:transparent;color:var(--um-mute)}
.UMPAGER a:hover{background:#f6f7f9;text-decoration:none}
.UMPAGER a.on{background:var(--um-acc);border-color:var(--um-acc);color:#fff}
.UMPAGER a.off{opacity:.4;pointer-events:none}

/* drag & drop + progress */
.UMDROP{position:fixed;inset:0;z-index:99999;background:rgba(46,126,255,.12);display:flex;align-items:center;justify-content:center;pointer-events:none}
.UMDROP[hidden]{display:none}
.UMDROP>div{background:#fff;border:2px dashed var(--um-acc);border-radius:18px;padding:34px 46px;text-align:center;display:flex;flex-direction:column;gap:6px;box-shadow:0 20px 50px rgba(0,0,0,.15)}
.UMDROP i{font-size:42px;color:var(--um-acc)}
.UMDROP b{font-size:18px;color:#111}
.UMDROP span{font-size:13px;color:var(--um-mute)}
.UMPROG{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:99999;background:#111827;color:#fff;border-radius:12px;padding:10px 14px;width:min(360px,calc(100vw - 32px));box-shadow:0 10px 30px rgba(0,0,0,.3);display:flex;flex-direction:column;gap:7px;font-size:13px}
.UMPROG[hidden]{display:none}
.UMPB{height:6px;background:rgba(255,255,255,.2);border-radius:3px;overflow:hidden}
.UMPB i{display:block;height:100%;width:0;background:#4ade80;transition:width .2s}

/* photo viewer extras (prev/next over the site viewer .GAL) */
.UMNAV{position:fixed;top:50%;z-index:10000000;width:46px;height:46px;margin-top:-23px;border-radius:50%;border:0;background:rgba(0,0,0,.55);color:#fff;font-size:20px;cursor:pointer;display:flex;align-items:center;justify-content:center}
.UMNAV:hover{background:rgba(0,0,0,.8)}
.UMNAV.prev{left:2%}
.UMNAV.next{left:calc(79% - 58px)}
.UMNAV[disabled]{opacity:.25;pointer-events:none}
.UMCNT{position:fixed;top:3%;left:2%;z-index:10000000;background:rgba(0,0,0,.55);color:#fff;font-size:12px;padding:2px 10px;border-radius:999px}

/* video player */
.UMPLAYER{position:fixed;inset:0;z-index:9999999;background:rgba(0,0,0,.92);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:56px 70px 24px}
.UMPLAYER[hidden]{display:none}
.UMPLAYER video{max-width:100%;max-height:calc(100% - 40px);border-radius:8px;background:#000;outline:0}
.UMPLAYER .UMPN{color:#fff;font-size:15px;margin-top:12px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.UMPLAYER .UMX{position:absolute;top:12px;right:14px;width:42px;height:42px;border-radius:50%;border:0;background:rgba(255,255,255,.12);color:#fff;font-size:20px;cursor:pointer}
.UMPLAYER .UMX:hover{background:rgba(255,255,255,.25)}
.UMPLAYER .UMNAV{position:absolute}
.UMPLAYER .UMNAV.prev{left:12px}
.UMPLAYER .UMNAV.next{left:auto;right:12px}

/* phones */
@media (max-width:767.98px){
	.UM{flex:0 0 100%;max-width:100%;padding-left:8px;padding-right:8px}
	.UMBAR{gap:6px}
	.UMSEARCH{flex:1 1 100%;height:42px}
	.UMBTN{flex:1 1 0;justify-content:center;padding:0 10px;height:40px}
	.UMCRUMB{font-size:13px}
	.UMALBTOOLS{margin-left:0;width:100%}
	.UMALBS{grid-template-columns:repeat(2,1fr);gap:10px}
	.UMGRID{grid-template-columns:repeat(3,1fr);gap:3px}
	.UMVID .UMGRID{grid-template-columns:repeat(2,1fr);gap:6px}
	.UMI{border-radius:4px}
	.UMVID .UMI{border-radius:8px}
	.UMVN{font-size:11px;padding-right:44px}
	.UMPLAY{width:38px;height:38px;margin:-19px 0 0 -19px;font-size:14px}
	.UMI .FVON{left:3px;bottom:3px;gap:2px}
	.UMI .FVON .btn{padding:0 5px;font-size:11px}
	.UMI .FVON .btn span{display:none}
	.UMDEL{width:26px;height:26px;font-size:11px;top:4px;right:4px}
	.UMNAV.prev{left:3%}
	.UMNAV.next{left:auto;right:3%}
	.UMNAV{top:20%;width:40px;height:40px;margin-top:-20px}
	.UMCNT{top:1%}
	.UMPLAYER{padding:56px 8px 16px}
	.UMPLAYER .UMNAV{top:auto;bottom:14px;margin:0}
	.UMPLAYER .UMNAV.prev{left:calc(50% - 56px)}
	.UMPLAYER .UMNAV.next{right:calc(50% - 56px)}
	.UMPLAYER video{max-height:calc(100% - 100px)}
}

/* fallbacks: a picture that can't load shows an icon instead of its file name; a video frame that can't load shows a film icon */
.UMI>img,.UMCOV img{color:transparent}
.UMI.IMG::before,.UMV::before,.UMCOV::before{content:"\f03e";font-family:"Font Awesome 6 Free";font-weight:400;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:26px;color:#b8bec9;z-index:0}
.UMVID .UMCOV::before,.UMV::before{content:"\f008";font-weight:900;color:#4b5563}
.UMVID .UMCOV{background:#1f2937}
.UMCOV.UMEMPTY::before{content:none}
.UMI>img,.UMI>video,.UMCOV img,.UMCOV video{position:relative;z-index:1}
.UMI>img[src=""],.UMI>img.UMBAD,.UMCOV img.UMBAD{visibility:hidden}
.UMV .UMPLAY,.UMV .UMDUR,.UMV .UMVN,.UMI .FVLOCK,.UMI .FVON,.UMDEL{z-index:2}
