.home-gallery-event{display:grid;grid-template-columns:52px 1fr;gap:5px 12px;width:100%;padding:22px;margin:20px 0;border:1px solid var(--line,#ddd);border-radius:22px;background:#fff;color:var(--ink,#172033);text-align:left;cursor:pointer;box-shadow:0 8px 24px #1720330a}.home-gallery-event strong{font-size:19px}.home-gallery-event>span:last-child{grid-column:2;font-size:14px;color:#606879}.event-gallery-icon{grid-row:span 2;font-size:42px;color:var(--gold,#b5804f)}
.event-gallery-dialog{box-sizing:border-box;width:min(1200px,calc(100vw - 24px));height:calc(100dvh - 28px);max-height:calc(100dvh - 28px);padding:0;border:0;border-radius:22px;background:#f8f9fb;color:#172033}.event-gallery-dialog::backdrop,.event-gallery-view::backdrop{background:#0b1424d9}.event-gallery-header{position:sticky;top:0;z-index:5;display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:18px 24px;background:#fff;border-bottom:1px solid #dce1e8}.event-gallery-header h2{flex:1;margin:0;font-size:22px;overflow-wrap:anywhere}.event-gallery-body{padding:0 24px 28px}.event-gallery-status{margin:0;padding:12px 24px;white-space:pre-line;font-size:14px}.event-gallery-status:empty{padding:6px}.event-gallery-status.error{color:#a12d32}.event-gallery-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px;margin-top:22px}.event-gallery-service{display:grid;gap:8px;padding:24px;border:1px solid #d9dee8;border-radius:18px;background:#fff;text-align:left;cursor:pointer;color:inherit}.event-gallery-service strong{font-size:21px}.event-gallery-service small{overflow-wrap:anywhere;color:#596579}.event-gallery-create{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));align-items:end;gap:14px;padding:20px;border:1px solid #d9dee8;border-radius:18px;background:#fff}.event-gallery-create label,.event-gallery-upload label{display:grid;gap:8px;font-size:14px;font-weight:700}.event-gallery-dialog input:not([type=file]),.event-gallery-dialog select{width:100%;box-sizing:border-box;padding:12px;border:1px solid #cbd3de;border-radius:10px;background:white;font:inherit;color:inherit}.event-gallery-note{font-size:13px;line-height:1.5;color:#596579}.event-gallery-toolbar{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.event-gallery-toolbar .btn,.event-gallery-dialog .btn{white-space:normal;text-decoration:none;font-size:13px}.event-gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px}.event-gallery-photo{display:flex;flex-direction:column;gap:10px;padding:8px;border:1px solid #dce1e8;border-radius:14px;background:#fff;content-visibility:auto;contain-intrinsic-size:260px}.event-gallery-photo[hidden]{display:none}.event-gallery-photo>span{font-size:12px;overflow-wrap:anywhere}.event-gallery-photo[data-selected='1']{border:2px solid #b44165;background:#fff6f9}.event-gallery-photo b{font-size:12px;color:#a12f53}.event-gallery-image{width:100%;padding:0;border:0;background:#edf0f4;border-radius:10px;overflow:hidden;cursor:zoom-in}.event-gallery-image img{width:100%;height:210px;object-fit:contain;display:block}.event-gallery-heart{margin-top:auto;border:0;border-radius:10px;background:#f0f2f7;padding:11px;color:#714052;font-size:15px;cursor:pointer}.event-gallery-heart[aria-pressed=true]{background:#af3458;color:white}.event-gallery-count{font-weight:750;padding:12px 0;line-height:1.5}.event-gallery-upload{padding:20px;margin:16px 0;border:1px solid #cdd5df;border-radius:16px;background:#fff}.event-gallery-upload progress{display:block;width:100%;height:16px;margin-top:16px}.event-gallery-upload input[type=file]{display:block;max-width:100%;margin-top:12px}.event-gallery-upload .btn{margin:6px}.event-gallery-view{width:min(1500px,calc(100vw - 16px));height:calc(100dvh - 20px);max-height:calc(100dvh - 20px);box-sizing:border-box;border:0;border-radius:15px;background:#111;color:white;padding:12px;text-align:center}.event-gallery-view img{display:block;width:100%;height:calc(100% - 90px);object-fit:contain}.event-gallery-view p{margin:8px;overflow-wrap:anywhere}.event-gallery-view .btn{margin-bottom:8px}@media(max-width:600px){.event-gallery-body{padding:0 12px 20px}.event-gallery-header{padding:12px}.event-gallery-header h2{font-size:18px}.event-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.event-gallery-image img{height:170px}.event-gallery-toolbar .btn{flex:1;min-width:130px}.event-gallery-create{grid-template-columns:1fr;padding:14px}.event-gallery-status{padding:10px 12px}.event-gallery-dialog{width:100vw;height:100dvh;max-height:100dvh;border-radius:0}}
.event-gallery-chat{margin:16px 0;padding:20px;border:1px solid #cdd5df;border-radius:18px;background:#fff}.event-gallery-chat[hidden]{display:none}.event-gallery-chat-list{display:flex;flex-direction:column;gap:12px;max-height:420px;overflow:auto;margin:16px 0}.event-gallery-chat-message{box-sizing:border-box;align-self:flex-start;max-width:90%;padding:12px 16px;border-radius:16px;background:#edf1f7;overflow-wrap:anywhere}.event-gallery-chat-message.mine{align-self:flex-end;background:#f4eadd}.event-gallery-chat-message p{white-space:pre-wrap;margin:8px 0}.event-gallery-chat-message small{color:#596579;font-size:11px}.event-gallery-chat-message strong{font-size:12px}.event-gallery-chat form{display:grid;gap:12px}.event-gallery-chat label{display:grid;gap:8px}.event-gallery-chat textarea{box-sizing:border-box;width:100%;padding:12px;border:1px solid #cbd3de;border-radius:10px;font:inherit;resize:vertical}
.event-gallery-admin-section[hidden]{display:none}.event-gallery-admin-list{display:grid;gap:14px}.event-gallery-admin-card{border:1px solid #d9dee8;border-radius:15px;padding:18px;background:#f8f9fb;overflow-wrap:anywhere}.event-gallery-admin-card h3{margin:0 0 8px}.event-gallery-admin-card>strong{color:#78425a}.event-gallery-admin-card p{font-size:14px;margin:8px 0}.event-gallery-admin-card .btn{font-size:12px;white-space:normal;text-decoration:none}
.event-gallery-intro{box-sizing:border-box;width:min(480px,calc(100vw - 32px));max-height:85dvh;overflow:auto;padding:28px;border:0;border-radius:22px;color:var(--ink,#172033);background:#fff;box-shadow:0 22px 80px #10182744}.event-gallery-intro::backdrop{background:#0b1424b8}.event-gallery-intro-label{font-size:12px;font-weight:850;letter-spacing:2px;color:#96653a}.event-gallery-intro h2{font-size:25px;line-height:1.2;margin:12px 0 18px}.event-gallery-intro p{font-size:16px;line-height:1.6;margin:14px 0}.event-gallery-intro .btn{display:block;box-sizing:border-box;width:100%;margin-top:22px;min-height:48px;font-size:16px}

.event-gallery-download-permission,.event-gallery-download-choice{display:flex;align-items:center;gap:.6rem;padding:.6rem;flex-wrap:wrap}.event-gallery-download-permission input,.event-gallery-download-choice input{width:22px;height:22px;flex:0 0 22px}
