
/* ============================================================
   SJCS ADMIN — PHOTO GALLERY MANAGEMENT
   Page-specific CSS. Shared admin stylesheet remains untouched.
   ============================================================ */

.sj-gallery-admin{
  --g-deep:#003f30;
  --g-green:#00563f;
  --g-green2:#08795a;
  --g-gold:#c9a227;
  --g-gold2:#e5c45b;
  --g-cream:#fbf8ef;
  --g-ink:#182c26;
  --g-muted:#6b7a74;
  --g-line:#dfe8e3;
  --g-soft:#eff7f3;
  --g-danger:#c62828;
  --g-shadow:0 18px 55px rgba(0,55,40,.08);
  padding:28px;
  max-width:1650px;
  margin:0 auto;
}
.sj-gallery-admin *{box-sizing:border-box}
.sj-gallery-admin button,.sj-gallery-admin input,.sj-gallery-admin select,.sj-gallery-admin textarea{font:inherit}
.sj-gallery-admin button{cursor:pointer}

.sj-gallery-hero{
  position:relative;
  overflow:hidden;
  min-height:235px;
  padding:38px 42px;
  border-radius:22px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:30px;
  color:#fff;
  background:
    radial-gradient(circle at 85% 10%,rgba(229,196,91,.20),transparent 28%),
    radial-gradient(circle at 5% 100%,rgba(255,255,255,.07),transparent 35%),
    linear-gradient(135deg,#003d2d,#006248 68%,#004b39);
  box-shadow:0 24px 65px rgba(0,61,45,.18);
}
.sj-gallery-hero:after{
  content:"60";
  position:absolute;
  right:30px;
  top:-75px;
  font:700 280px/1 Georgia,serif;
  color:rgba(255,255,255,.035);
  pointer-events:none;
}
.sj-gallery-eyebrow,.sjg-kicker{
  display:flex;
  align-items:center;
  gap:9px;
  font-size:10px;
  line-height:1.2;
  letter-spacing:.19em;
  text-transform:uppercase;
  font-weight:800;
  color:var(--g-gold2);
}
.sj-gallery-eyebrow span{
  width:30px;height:1px;background:var(--g-gold2);display:inline-block;
}
.sj-gallery-hero h1{
  position:relative;
  z-index:1;
  margin:13px 0 12px;
  font:600 clamp(38px,4vw,63px)/.94 Georgia,serif;
  letter-spacing:-.025em;
}
.sj-gallery-hero h1 em{color:#f0cf68;font-style:italic}
.sj-gallery-hero p{
  position:relative;z-index:1;
  max-width:710px;
  margin:0;
  color:rgba(255,255,255,.78);
  font-size:14px;
  line-height:1.75;
}
.sj-gallery-hero-actions{
  position:relative;z-index:2;
  display:flex;gap:10px;flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}

.sjg-btn{
  border:0;
  min-height:42px;
  padding:11px 16px;
  border-radius:11px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  font-size:13px;
  font-weight:800;
  transition:.18s ease;
}
.sjg-btn:disabled{opacity:.5;cursor:not-allowed}
.sjg-btn-primary{background:var(--g-green);color:#fff}
.sjg-btn-primary:hover:not(:disabled){background:var(--g-deep);transform:translateY(-1px)}
.sjg-btn-gold{background:linear-gradient(135deg,#d6af35,#b58a13);color:#fff;box-shadow:0 8px 20px rgba(201,162,39,.22)}
.sjg-btn-gold:hover:not(:disabled){transform:translateY(-1px);filter:brightness(1.04)}
.sjg-btn-light{background:rgba(255,255,255,.11);color:#fff;border:1px solid rgba(255,255,255,.24)}
.sjg-btn-light:hover:not(:disabled){background:rgba(255,255,255,.18)}
.sjg-btn-outline{background:#fff;color:var(--g-green);border:1px solid #c8d7d0}
.sjg-btn-outline:hover:not(:disabled){background:var(--g-soft);border-color:#9fbbb0}
.sjg-btn-danger{background:#fff0f0;color:#a31e1e;border:1px solid #f0c9c9}
.sjg-btn-danger:hover:not(:disabled){background:#ffe3e3}
.sjg-btn.btn-sm,.sjg-btn-sm{min-height:35px;padding:8px 11px;font-size:12px}

.sj-gallery-stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  margin:18px 0;
}
.sj-gallery-stats>div{
  background:#fff;
  border:1px solid var(--g-line);
  border-radius:16px;
  padding:17px 18px;
  display:flex;
  align-items:center;
  gap:13px;
  box-shadow:0 7px 25px rgba(0,55,40,.035);
}
.sjg-stat-icon{
  width:43px;height:43px;border-radius:13px;
  display:grid;place-items:center;
  background:var(--g-soft);color:var(--g-green);
  font-size:17px;
}
.sj-gallery-stats section{min-width:0}
.sj-gallery-stats small{display:block;color:var(--g-muted);font-size:9px;letter-spacing:.15em;font-weight:800}
.sj-gallery-stats strong{display:block;color:var(--g-green);font-size:25px;line-height:1.05;margin:4px 0}
.sj-gallery-stats em{display:block;font-style:normal;color:#87938e;font-size:10px}

.sj-gallery-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:18px;
  align-items:start;
}
.sj-gallery-main{min-width:0}
.sjg-panel{
  background:#fff;
  border:1px solid var(--g-line);
  border-radius:18px;
  box-shadow:var(--g-shadow);
  padding:25px;
  margin-bottom:18px;
}
.sjg-panel-head{margin-bottom:21px}
.sjg-panel-head-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:20px;
}
.sjg-panel-head h2,.sjg-side-panel h2{
  margin:7px 0 6px;
  color:var(--g-green);
  font:700 25px/1.05 Georgia,serif;
}
.sjg-panel-head p,.sjg-side-panel p{
  margin:0;
  color:var(--g-muted);
  font-size:12px;
  line-height:1.65;
}
.sjg-search{
  width:min(280px,100%);
  position:relative;
}
.sjg-search i{
  position:absolute;left:13px;top:50%;transform:translateY(-50%);
  color:#82908b;font-size:12px;
}
.sjg-search input{
  width:100%;height:40px;padding:0 13px 0 34px;
  border:1px solid #d4dfda;border-radius:10px;outline:none;
}
.sjg-search input:focus{border-color:var(--g-green);box-shadow:0 0 0 3px rgba(0,86,63,.07)}

.sjg-upload-controls{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-bottom:15px;
}
.sjg-field{margin:0}
.sjg-field label{
  display:block;
  margin-bottom:7px;
  font-size:12px;
  font-weight:800;
  color:#344841;
}
.sjg-field label b{color:#b21e1e}
.sjg-field input,.sjg-field select,.sjg-field textarea{
  width:100%;
  border:1px solid #ccd9d3;
  border-radius:10px;
  background:#fff;
  color:#20332c;
  outline:none;
}
.sjg-field input,.sjg-field select{height:44px;padding:0 12px}
.sjg-field textarea{min-height:105px;padding:12px;resize:vertical}
.sjg-field input:focus,.sjg-field select:focus,.sjg-field textarea:focus{border-color:var(--g-green);box-shadow:0 0 0 3px rgba(0,86,63,.07)}
.sjg-field small{display:block;margin-top:6px;color:#8a9691;font-size:10px;line-height:1.45}

.sjg-dropzone{
  min-height:190px;
  border:1.5px dashed #aac2b8;
  border-radius:16px;
  background:linear-gradient(145deg,#fbfdfc,#f3f9f6);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:24px;
  transition:.2s;
  outline:none;
}
.sjg-dropzone:hover,.sjg-dropzone:focus,.sjg-dropzone.is-dragging{
  border-color:var(--g-gold);
  background:#fffdf6;
  box-shadow:inset 0 0 0 1px rgba(201,162,39,.15);
}
.sjg-drop-icon{
  width:54px;height:54px;border-radius:17px;
  background:var(--g-soft);color:var(--g-green);
  display:grid;place-items:center;font-size:22px;margin-bottom:11px;
}
.sjg-dropzone h3{margin:0 0 5px;color:var(--g-green);font:700 20px Georgia,serif}
.sjg-dropzone p{margin:0;color:#64746d;font-size:12px}
.sjg-dropzone p strong{color:var(--g-green)}
.sjg-dropzone>span{margin-top:9px;color:#8b9792;font-size:10px}

.sjg-upload-toolbar{
  margin-top:14px;
  padding:13px 15px;
  border:1px solid var(--g-line);
  border-radius:12px;
  background:#fbfdfc;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
}
.sjg-upload-toolbar strong{display:block;font-size:13px;color:#263a33}
.sjg-upload-toolbar>div>span{display:block;color:#89958f;font-size:10px;margin-top:3px}
.sjg-toolbar-actions{display:flex;gap:8px;flex-wrap:wrap}

.sjg-overall-progress{margin-top:15px;padding:15px 16px;border-radius:13px;background:#f7faf8;border:1px solid #e2eae6}
.sjg-progress-head>div:first-child{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#3c4f48}
.sjg-progress-head>div:last-child{margin-top:5px;color:#8a9691;font-size:10px}
.sjg-progress-track,.sjg-mini-track{
  height:7px;background:#e7eeeb;border-radius:99px;overflow:hidden;
}
.sjg-progress-track{margin-top:9px}
.sjg-progress-track span,.sjg-mini-track span{
  display:block;height:100%;width:0;background:linear-gradient(90deg,var(--g-green),#20a777);border-radius:99px;transition:width .18s linear;
}
.sjg-overall-progress.hidden{display:none}

.sjg-upload-summary{
  margin-top:14px;
  display:flex;
  align-items:center;
  gap:13px;
  padding:14px 15px;
  border-radius:13px;
  border:1px solid #bfe0ce;
  background:#effaf4;
}
.sjg-upload-summary.has-failures{background:#fff8eb;border-color:#efd69a}
.sjg-summary-icon{font-size:22px;color:#087443}
.sjg-upload-summary.has-failures .sjg-summary-icon{color:#9a6700}
.sjg-summary-copy{flex:1;min-width:0}
.sjg-summary-copy strong{display:block;color:#244138;font-size:12px}
.sjg-summary-copy span{display:block;color:#687972;font-size:11px;margin-top:3px}
.sjg-summary-copy b{color:#1d4739}

.sjg-upload-list{margin-top:14px;display:grid;gap:7px}
.sjg-upload-item{
  display:grid;
  grid-template-columns:48px minmax(0,1fr) 26px 32px;
  gap:11px;
  align-items:center;
  padding:8px 10px;
  border:1px solid #e3eae7;
  border-radius:11px;
  background:#fff;
}
.sjg-upload-item.is-failed{background:#fffafa;border-color:#f1d5d5}
.sjg-upload-item.is-success{background:#fbfefc}
.sjg-thumb{
  width:48px;height:48px;border-radius:8px;overflow:hidden;
  background:#edf3f0;display:grid;place-items:center;color:#8b9993;
}
.sjg-thumb img{width:100%;height:100%;object-fit:cover}
.sjg-file-info{min-width:0}
.sjg-file-info strong{
  display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-size:12px;color:#2d4039;
}
.sjg-file-info>span{
  display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  margin:3px 0 5px;color:#8a9691;font-size:9px;
}
.sjg-mini-track{height:4px}
.sjg-file-status{text-align:center;color:#8a9691;font-size:14px}
.sjg-upload-item.is-success .sjg-file-status{color:#087443}
.sjg-upload-item.is-failed .sjg-file-status{color:#bd2929}
.sjg-spinner{
  width:14px;height:14px;border:2px solid #d9e3df;border-top-color:var(--g-green);
  border-radius:50%;display:inline-block;animation:sjg-spin .75s linear infinite;
}
@keyframes sjg-spin{to{transform:rotate(360deg)}}
.sjg-retry-one{
  width:30px;height:30px;border:1px solid #e2c8c8;border-radius:8px;
  background:#fff;color:#a32222;
}
.sjg-retry-one:hover{background:#fff0f0}

.sjg-album-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:15px;
}
.sjg-album-card{
  min-width:0;
  overflow:hidden;
  border:1px solid #dfe8e3;
  border-radius:15px;
  background:#fff;
  transition:.2s;
}
.sjg-album-card:hover{transform:translateY(-3px);box-shadow:0 18px 38px rgba(0,55,40,.1);border-color:#c7d8d0}
.sjg-album-cover{
  height:190px;
  position:relative;
  overflow:hidden;
  background:linear-gradient(145deg,#e9f3ee,#d8e8e0);
  cursor:pointer;
}
.sjg-album-cover img{width:100%;height:100%;object-fit:cover;display:block;transition:.4s}
.sjg-album-card:hover .sjg-album-cover img{transform:scale(1.045)}
.sjg-album-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.08),transparent 45%,rgba(0,0,0,.42))}
.sjg-album-placeholder{height:100%;display:grid;place-items:center;color:rgba(0,86,63,.3);font-size:42px}
.sjg-photo-count{
  position:absolute;left:12px;bottom:11px;
  padding:6px 8px;border-radius:7px;
  background:rgba(0,48,36,.78);backdrop-filter:blur(8px);
  color:#fff;font-size:9px;font-weight:800;letter-spacing:.08em;
}
.sjg-album-more{
  position:absolute;right:10px;top:10px;width:34px;height:34px;
  border:1px solid rgba(255,255,255,.4);border-radius:9px;
  background:rgba(0,44,33,.64);color:#fff;backdrop-filter:blur(8px);
}
.sjg-album-more:hover{background:rgba(0,44,33,.88)}
.sjg-album-body{padding:15px}
.sjg-category{
  color:#9b7a15;font-size:9px;font-weight:800;letter-spacing:.13em;text-transform:uppercase;
}
.sjg-album-body h3{
  margin:7px 0 5px;color:var(--g-green);font:700 20px/1.08 Georgia,serif;
}
.sjg-album-body p{margin:0;color:#7a8782;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sjg-album-body p span{padding:0 3px;color:#bdc6c2}
.sjg-album-actions{margin-top:14px;padding-top:12px;border-top:1px solid #edf1ef}
.sjg-text-btn{
  border:0;background:none;padding:0;color:var(--g-green);font-size:11px;font-weight:800;
}
.sjg-text-btn i{font-size:9px;margin-left:5px;transition:.15s}
.sjg-text-btn:hover i{transform:translateX(3px)}

.sj-gallery-side{position:sticky;top:98px}
.sjg-side-panel{margin-bottom:18px}
.sjg-side-panel h2{font-size:22px}
.sjg-workflow{margin-top:18px;border-top:1px solid #e7eeeb}
.sjg-workflow>div{
  display:grid;grid-template-columns:31px 1fr;gap:11px;
  padding:13px 0;border-bottom:1px solid #e7eeeb;
}
.sjg-workflow b{
  width:27px;height:27px;border-radius:8px;
  background:var(--g-soft);color:var(--g-green);
  display:grid;place-items:center;font-size:9px;
}
.sjg-workflow span{font-size:11px;font-weight:800;color:#3b4e47;line-height:1.35}
.sjg-workflow small{font-size:9px;font-weight:400;color:#87938e}
.sjg-tip-panel{background:linear-gradient(145deg,#f9fbfa,#f2f8f5)}
.sjg-tip-panel>i{
  width:40px;height:40px;border-radius:12px;display:grid;place-items:center;
  background:#fff;color:var(--g-gold);font-size:17px;margin-bottom:13px;
}
.sjg-tip-panel h3{margin:0 0 7px;color:var(--g-green);font:700 18px Georgia,serif}

.sjg-empty,.sjg-loading{
  min-height:210px;
  grid-column:1/-1;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;color:#89958f;padding:30px;
}
.sjg-empty i{font-size:31px;color:#c0ccc7;margin-bottom:11px}
.sjg-empty h3{margin:0 0 6px;color:#42554d;font:700 19px Georgia,serif}
.sjg-empty p{max-width:430px;margin:0;font-size:11px;line-height:1.6}
.sjg-loading{flex-direction:row;gap:5px;min-height:150px}
.sjg-loading span{width:7px;height:7px;border-radius:50%;background:var(--g-green);animation:sjg-bounce .8s infinite alternate}
.sjg-loading span:nth-child(2){animation-delay:.15s}.sjg-loading span:nth-child(3){animation-delay:.3s}
@keyframes sjg-bounce{to{transform:translateY(-6px);opacity:.45}}

.sjg-modal-backdrop{
  position:fixed;inset:0;z-index:1000;
  padding:22px;
  background:rgba(1,22,17,.66);
  backdrop-filter:blur(8px);
  display:grid;place-items:center;
}
.sjg-modal{
  width:min(760px,100%);
  max-height:92vh;
  overflow:auto;
  background:#fff;
  border:1px solid rgba(255,255,255,.4);
  border-radius:20px;
  box-shadow:0 35px 90px rgba(0,0,0,.28);
}
.sjg-modal>header{
  display:flex;justify-content:space-between;align-items:flex-start;gap:20px;
  padding:25px 27px 19px;border-bottom:1px solid #e5ece9;
}
.sjg-modal>header h2{margin:8px 0 5px;color:var(--g-green);font:700 28px/1 Georgia,serif}
.sjg-modal>header p{margin:0;color:#7a8782;font-size:11px;line-height:1.55}
.sjg-modal-close,.sjg-icon-close{
  flex:0 0 auto;width:37px;height:37px;border:0;border-radius:10px;
  background:#f0f5f2;color:#4c5d56;font-size:24px;line-height:1;
}
.sjg-modal-close:hover,.sjg-icon-close:hover{background:#e5eeea}
.sjg-album-modal form{padding:23px 27px 27px}
.sjg-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}
.sjg-span-2{grid-column:1/-1}
.sjg-modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px;padding-top:17px;border-top:1px solid #e7eeeb}
.sjg-modal-actions .sjg-create-album-submit{display:inline-flex !important;visibility:visible !important;opacity:1 !important;position:relative !important;z-index:5 !important;min-width:132px !important;background:#00563f !important;color:#fff !important;border:1px solid #00563f !important;}
.sjg-modal-actions .sjg-create-album-submit:hover:not(:disabled){background:#003f30 !important;color:#fff !important;}

.sjg-photo-manager{width:min(1180px,100%)}
.sjg-manager-head{align-items:center!important}
.sjg-manager-head-actions{display:flex;gap:8px;align-items:center}
.sjg-manager-toolbar{
  padding:13px 18px;
  display:flex;align-items:center;gap:15px;flex-wrap:wrap;
  border-bottom:1px solid #e5ece9;background:#fbfdfc;
  color:#7c8983;font-size:11px;
}
.sjg-manager-toolbar>div:last-child{margin-left:auto;display:flex;gap:7px;flex-wrap:wrap}
.sjg-check-all{display:flex;align-items:center;gap:7px;font-weight:800;color:#44564f}
.sjg-check-all input,.sjg-photo-check input{accent-color:var(--g-green)}
.sjg-photo-grid{
  padding:20px;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:12px;
}
.sjg-photo-tile{min-width:0;border:1px solid #e2e9e6;border-radius:12px;overflow:hidden;background:#fff}
.sjg-photo-image{height:150px;position:relative;background:#edf3f0}
.sjg-photo-image img{width:100%;height:100%;object-fit:cover;display:block}
.sjg-photo-check{
  position:absolute;top:8px;left:8px;
  width:27px;height:27px;border-radius:8px;
  display:grid;place-items:center;
  background:rgba(255,255,255,.9);box-shadow:0 4px 12px rgba(0,0,0,.08);
}
.sjg-photo-hover{
  position:absolute;right:7px;bottom:7px;
  display:flex;gap:5px;opacity:0;transform:translateY(4px);transition:.18s;
}
.sjg-photo-image:hover .sjg-photo-hover{opacity:1;transform:none}
.sjg-photo-hover button{
  width:29px;height:29px;border:0;border-radius:8px;
  background:rgba(0,42,31,.82);color:#fff;
}
.sjg-photo-hover button:hover{background:var(--g-green)}
.sjg-photo-caption{padding:9px 10px}
.sjg-photo-caption span{display:block;font-size:10px;font-weight:700;color:#40524b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sjg-photo-caption small{display:block;margin-top:3px;font-size:8px;color:#9aa59f}
.sjg-empty-wide{grid-column:1/-1;min-height:300px}

.sjg-quick-modal{width:min(530px,100%)}
.sjg-quick-actions{padding:18px;display:grid;gap:8px}
.sjg-quick-actions button{
  border:1px solid #dfe8e3;background:#fff;border-radius:13px;
  padding:15px;display:flex;align-items:center;text-align:left;gap:14px;
  color:#30443c;transition:.16s;
}
.sjg-quick-actions button:hover{border-color:#b9cec4;background:#f8fbf9;transform:translateX(2px)}
.sjg-quick-actions i{
  width:40px;height:40px;border-radius:11px;display:grid;place-items:center;
  background:var(--g-soft);color:var(--g-green);
}
.sjg-quick-actions button[data-qa="delete"] i{background:#fff0f0;color:#b52424}
.sjg-quick-actions span{font-size:12px;font-weight:800}
.sjg-quick-actions small{display:block;margin-top:3px;color:#8a9691;font-size:9px;font-weight:400}

.sj-gallery-toast.is-error{background:#8e1d1d}
.sj-gallery-toast.is-warning{background:#805e00}

@media(max-width:1200px){
  .sj-gallery-layout{grid-template-columns:1fr}
  .sj-gallery-side{position:static;display:grid;grid-template-columns:1fr 1fr;gap:18px}
  .sjg-side-panel{margin-bottom:0}
  .sj-gallery-stats{grid-template-columns:repeat(2,1fr)}
  .sjg-photo-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:900px){
  .sj-gallery-admin{padding:18px}
  .sj-gallery-hero{padding:30px;align-items:flex-start;flex-direction:column}
  .sj-gallery-hero-actions{justify-content:flex-start}
  .sjg-album-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sjg-photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:650px){
  .sj-gallery-admin{padding:12px}
  .sj-gallery-hero{padding:24px 20px;border-radius:16px}
  .sj-gallery-hero h1{font-size:39px}
  .sj-gallery-stats{grid-template-columns:1fr 1fr;gap:9px}
  .sj-gallery-stats>div{padding:13px 12px}
  .sjg-stat-icon{width:36px;height:36px}
  .sj-gallery-stats strong{font-size:21px}
  .sj-gallery-layout{gap:10px}
  .sjg-panel{padding:17px;border-radius:14px}
  .sjg-upload-controls,.sjg-form-grid{grid-template-columns:1fr}
  .sjg-span-2{grid-column:auto}
  .sjg-panel-head-row{display:block}
  .sjg-search{width:100%;margin-top:15px}
  .sjg-album-grid{grid-template-columns:1fr}
  .sj-gallery-side{display:block}
  .sjg-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px}
  .sjg-photo-image{height:135px}
  .sjg-upload-toolbar{align-items:flex-start;flex-direction:column}
  .sjg-toolbar-actions{width:100%}
  .sjg-toolbar-actions .sjg-btn{flex:1}
  .sjg-upload-summary{align-items:flex-start;flex-wrap:wrap}
}
@media(max-width:430px){
  .sj-gallery-stats{grid-template-columns:1fr}
  .sjg-photo-grid{grid-template-columns:1fr}
  .sjg-photo-image{height:210px}
  .sjg-manager-toolbar>div:last-child{margin-left:0}
}

/* ============================================================
   SJCS ADMIN — PHOTO GALLERY
   MASTER HERO STYLE: MATCH LEADERSHIP & MANAGEMENT EXACTLY
   ============================================================ */
.sj-gallery-admin{
  max-width:1400px;
  margin:0 auto;
  padding:6px 0 30px;
}

.sj-gallery-hero{
  min-height:140px;
  height:140px;
  padding:28px 30px;
  margin:0 0 18px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  color:#fff;
  background:linear-gradient(135deg,#0f5132,#176b43);
  box-shadow:0 12px 30px rgba(15,81,50,.14);
}

.sj-gallery-hero:after{
  display:none;
}

.sj-gallery-eyebrow{
  display:flex;
  align-items:center;
  gap:7px;
  margin:0 0 7px;
  color:#fff;
  font-size:11px;
  line-height:1.2;
  letter-spacing:1.5px;
  text-transform:uppercase;
  font-weight:800;
  opacity:.78;
}

.sj-gallery-eyebrow span{
  display:none;
}

.sj-gallery-hero h1{
  position:relative;
  z-index:1;
  margin:0;
  color:#fff;
  font-family:inherit;
  font-size:27px;
  line-height:1.15;
  font-weight:800;
  letter-spacing:-.4px;
}

.sj-gallery-hero h1 em{
  color:#fff;
  font-style:normal;
}

.sj-gallery-hero p{
  position:relative;
  z-index:1;
  max-width:900px;
  margin:7px 0 0;
  color:rgba(255,255,255,.86);
  font-size:14px;
  line-height:1.4;
}

.sj-gallery-hero-actions{
  position:relative;
  z-index:2;
  display:flex;
  gap:9px;
  flex-wrap:nowrap;
  align-items:center;
  justify-content:flex-end;
  flex:none;
}

.sjg-btn-gold{
  background:#c9a227;
  color:#fff;
  box-shadow:0 6px 16px rgba(0,0,0,.12);
  border-radius:10px;
  min-height:42px;
  padding:11px 16px;
}

.sjg-btn-gold:hover:not(:disabled){
  transform:translateY(-1px);
  filter:brightness(1.04);
}

.sjg-btn-light{
  background:rgba(255,255,255,.08);
  color:#fff;
  border:1px solid rgba(255,255,255,.30);
  border-radius:10px;
  min-height:42px;
  padding:11px 16px;
}

.sjg-btn-light:hover:not(:disabled){
  background:rgba(255,255,255,.14);
}

@media(max-width:760px){
  .sj-gallery-admin{padding:6px 0 24px}
  .sj-gallery-hero{
    height:auto;
    min-height:140px;
    padding:22px;
    align-items:flex-start;
    flex-direction:column;
  }
  .sj-gallery-hero-actions{
    width:100%;
    justify-content:flex-start;
    flex-wrap:wrap;
  }
}

/* ============================================================
   SJCS ADMIN — PHOTO GALLERY
   EXACT PAGE FRAME MATCH WITH LEADERSHIP & MANAGEMENT
   ============================================================ */

/* Leadership uses the full authenticated content width with the
   same 20px inner page gutter. */
body:has(.sj-gallery-admin) .main .content{
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:19px 20px 28px !important;
  box-sizing:border-box !important;
}

body:has(.sj-gallery-admin) .sj-gallery-admin{
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:0 0 30px !important;
  box-sizing:border-box !important;
}

/* Exact Leadership hero dimensions, spacing and theme. */
body:has(.sj-gallery-admin) .sj-gallery-hero{
  width:100% !important;
  min-height:140px !important;
  height:140px !important;
  box-sizing:border-box !important;
  padding:28px 30px !important;
  margin:0 0 18px !important;
  border-radius:18px !important;
  background:linear-gradient(135deg,#0f5132,#176b43) !important;
  box-shadow:0 12px 30px rgba(15,81,50,.14) !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:20px !important;
  overflow:hidden !important;
}

/* Exact Leadership heading treatment. */
body:has(.sj-gallery-admin) .sj-gallery-eyebrow{
  margin:0 0 7px !important;
  color:rgba(255,255,255,.78) !important;
  font-size:11px !important;
  line-height:1.4 !important;
  letter-spacing:1.5px !important;
  font-weight:800 !important;
}

body:has(.sj-gallery-admin) .sj-gallery-hero h1{
  margin:0 0 6px !important;
  color:#fff !important;
  font-family:inherit !important;
  font-size:27px !important;
  line-height:1.15 !important;
  font-weight:800 !important;
  letter-spacing:-.4px !important;
  max-width:calc(100% - 100px) !important;
}

body:has(.sj-gallery-admin) .sj-gallery-hero h1 em{
  color:#fff !important;
  font-style:normal !important;
}

body:has(.sj-gallery-admin) .sj-gallery-hero p{
  margin:0 !important;
  color:rgba(255,255,255,.86) !important;
  font-family:inherit !important;
  font-size:14px !important;
  line-height:1.35 !important;
  max-width:900px !important;
}

body:has(.sj-gallery-admin) .sj-gallery-hero > div:first-child{
  min-width:0 !important;
  max-width:calc(100% - 100px) !important;
}

body:has(.sj-gallery-admin) .sj-gallery-hero-actions{
  flex:0 0 auto !important;
  position:relative !important;
  z-index:2 !important;
  display:flex !important;
  gap:9px !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  justify-content:flex-end !important;
}

/* Same Leadership gold action colour and button geometry. */
body:has(.sj-gallery-admin) .sjg-btn-gold{
  background:#c9a227 !important;
  color:#fff !important;
  border-radius:10px !important;
  min-height:42px !important;
  padding:11px 16px !important;
  box-shadow:0 6px 16px rgba(0,0,0,.12) !important;
}

body:has(.sj-gallery-admin) .sjg-btn-light{
  background:rgba(255,255,255,.08) !important;
  color:#fff !important;
  border:1px solid rgba(255,255,255,.30) !important;
  border-radius:10px !important;
  min-height:42px !important;
  padding:11px 16px !important;
}

/* Remove the old decorative "60" treatment so the strip is clean
   and identical in visual language to Leadership. */
body:has(.sj-gallery-admin) .sj-gallery-hero:after{
  display:none !important;
}

@media(max-width:760px){
  body:has(.sj-gallery-admin) .main .content{
    padding:19px 20px 24px !important;
  }

  body:has(.sj-gallery-admin) .sj-gallery-hero{
    height:140px !important;
    min-height:140px !important;
    padding:22px !important;
  }

  body:has(.sj-gallery-admin) .sj-gallery-hero h1{
    font-size:23px !important;
    max-width:calc(100% - 20px) !important;
  }
}
