html { scroll-snap-type: none; }
body.gallery-page { min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
body.gallery-page .page-bg-overlay { background-image: linear-gradient(to right, rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.03) 1px, transparent 1px); animation: none; }
.gallery-page .nav-links a { white-space: nowrap; }
.gallery-main { width: 100%; min-width: 0; position: relative; z-index: 2; flex: 1 0 auto; padding-top: var(--nav-height); }
.gallery-page > .footer { width: 100%; margin-top: auto; }
.gallery-hero {
  min-height: 300px;
  padding: 62px 0 24px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.gallery-hero-content { position: relative; z-index: 2; text-align: center; }
.gallery-hero .section-badge { margin-bottom: 14px; }
.gallery-hero .hero-title { margin-bottom: 10px; }
.gallery-hero .hero-subtitle { margin-bottom: 22px; }
.gallery-hero .glow-orb { display: none; }
.gallery-content-section { padding: 34px 0 78px; min-height: 420px; position: relative; }
.gallery-content-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1152px, calc(100% - 48px));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, .42) 18%, rgba(255,255,255,.12) 50%, rgba(167, 139, 250, .42) 82%, transparent);
  box-shadow: 0 0 16px rgba(139,92,246,.12);
  pointer-events: none;
}
.gallery-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 18px; padding-bottom: 0; border: 0; }
.gallery-heading-row .section-title { font-size: 1.8rem; }
.gallery-admin-trigger { flex: 0 0 auto; }
.gallery-status { min-height: 58px; display: flex; justify-content: center; align-items: center; margin: 12px 0 18px; padding: 16px 20px; color: var(--text-muted); text-align: center; background: rgba(18,14,28,.48); border: 1px solid var(--border-color); border-radius: 14px; }
.gallery-status[hidden] { display: none !important; }
.gallery-status.is-error { color: #fecaca; border-color: rgba(248,113,113,.35); }
.gallery-seasons { min-width: 0; display: flex; flex-wrap: wrap; gap: 9px; margin: 8px 0 14px; }
.gallery-season { min-width: 0; display: inline-flex; align-items: center; gap: 9px; padding: 9px 13px; color: var(--text-muted); font: inherit; text-align: left; cursor: pointer; background: rgba(255,255,255,.035); border: 1px solid var(--border-color); border-radius: 12px; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.gallery-season:hover, .gallery-season.active { color: #fff; background: rgba(139,92,246,.16); border-color: rgba(139,92,246,.48); }
.gallery-season-copy { display: grid; line-height: 1.2; }
.gallery-season-copy strong { font-size: .83rem; }
.gallery-season-copy small { margin-top: 3px; color: var(--text-muted); font-size: .7rem; }
.gallery-season-count { min-width: 25px; padding: 3px 7px; color: #ddd1ff; font-size: .7rem; text-align: center; background: rgba(139,92,246,.16); border-radius: 999px; }
.gallery-season.active .gallery-season-count { color: #fff; background: rgba(139,92,246,.48); }
.gallery-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 4px 0 20px; }
.gallery-filter {
  min-height: 36px;
  padding: 7px 13px;
  color: var(--text-muted);
  font: inherit;
  font-size: .81rem;
  cursor: pointer;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.gallery-filter:hover, .gallery-filter.active { color: #fff; background: rgba(139,92,246,.2); border-color: rgba(139,92,246,.45); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 18px; }
.gallery-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(155deg, rgba(22,17,34,.94), rgba(11,9,17,.92));
  border: 1px solid var(--border-color);
  border-radius: 17px;
  min-width: 0;
  box-shadow: 0 8px 26px rgba(0,0,0,.2);
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.gallery-card:hover { transform: translateY(-3px); border-color: rgba(139,92,246,.42); box-shadow: 0 16px 36px rgba(0,0,0,.32), 0 0 20px rgba(139,92,246,.11); }
.gallery-card-media { position: relative; flex: 0 0 auto; aspect-ratio: 4 / 3; overflow: hidden; background: rgba(0,0,0,.22); }
.gallery-open { width: 100%; height: 100%; display: block; padding: 0; overflow: hidden; border: 0; background: transparent; cursor: zoom-in; }
.gallery-open { position: relative; }
.gallery-open img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .45s ease; }
.gallery-video-play { position: absolute; top: 50%; left: 50%; width: 58px; height: 58px; display: grid; place-items: center; color: #fff; font-size: 1.15rem; background: rgba(13,10,20,.76); border: 1px solid rgba(255,255,255,.45); border-radius: 50%; box-shadow: 0 8px 25px rgba(0,0,0,.4); transform: translate(-50%,-50%); transition: background .2s ease, transform .2s ease; }
.gallery-card-media-video .gallery-open:hover .gallery-video-play { background: rgba(139,92,246,.86); transform: translate(-50%,-50%) scale(1.08); }
.gallery-video-badge { position: absolute; left: 12px; bottom: 11px; padding: 5px 8px; color: #fff; font-size: .64rem; font-weight: 750; letter-spacing: .04em; background: rgba(9,7,15,.78); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; }
.gallery-card:hover .gallery-open img { transform: scale(1.025); }
.gallery-card-caption { flex: 1; padding: 14px 15px 15px; cursor: zoom-in; }
.gallery-caption-open { display: inline-flex; max-width: 100%; padding: 0; color: inherit; font: inherit; text-align: left; cursor: zoom-in; background: transparent; border: 0; }
.gallery-caption-title-open { width: 100%; display: block; padding: 0; color: inherit; font: inherit; text-align: left; cursor: zoom-in; background: transparent; border: 0; }
.gallery-card-category, .lightbox-category { display: inline-flex; align-items: center; gap: 6px; color: #c4b5fd; font-size: .69rem; font-weight: 750; letter-spacing: .7px; text-transform: uppercase; }
.gallery-card-caption h3 { margin-top: 5px; color: #fff; font-size: 1rem; line-height: 1.35; overflow-wrap: anywhere; }
.gallery-card-author { display: block; margin-top: 6px; color: var(--text-muted); font-size: .72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery-card-share { display:inline-flex; align-items:center; gap:5px; margin-top:9px; padding:4px 7px; color:#9c91ad; font:inherit; font-size:.62rem; cursor:pointer; background:rgba(255,255,255,.025); border:1px solid rgba(255,255,255,.07); border-radius:7px; opacity:.68; transition:color .16s,border-color .16s,background .16s,opacity .16s; }
.gallery-card-share:hover,.gallery-card-share:focus-visible { color:#e3d5ff; border-color:rgba(167,139,250,.3); background:rgba(139,92,246,.09); opacity:1; }
.gallery-lore-references { display:flex; flex-wrap:wrap; gap:6px; margin-top:11px; }
.gallery-lore-references a,.gallery-lore-references span { display:inline-flex; align-items:center; gap:5px; max-width:100%; padding:5px 8px; color:#d8c8fa; font-size:.68rem; line-height:1.35; text-decoration:none; background:rgba(139,92,246,.09); border:1px solid rgba(167,139,250,.17); border-radius:999px; overflow-wrap:anywhere; }
.gallery-lore-references a:hover,.gallery-lore-references a:focus-visible { color:#fff; border-color:rgba(190,164,255,.45); background:rgba(139,92,246,.16); }
.gallery-card-admin-actions { position: absolute; z-index: 2; top: 11px; right: 11px; display: flex; gap: 6px; opacity: 0; transform: translateY(-4px); transition: opacity .2s ease, transform .2s ease; }
.gallery-card:hover .gallery-card-admin-actions, .gallery-card:focus-within .gallery-card-admin-actions { opacity: 1; transform: translateY(0); }
.gallery-card-admin-actions button { width: 36px; height: 36px; display: grid; place-items: center; color: #fff; cursor: pointer; background: rgba(9,7,15,.82); border: 1px solid rgba(255,255,255,.18); border-radius: 11px; backdrop-filter: blur(9px); }
.gallery-card-admin-actions button:hover { background: var(--accent-purple-hover); }
.gallery-empty { min-height: 180px; display: grid; place-items: center; gap: 5px; padding: 28px; color: var(--text-muted); text-align: center; background: rgba(18,14,28,.34); border: 1px dashed rgba(196,181,253,.2); border-radius: 18px; }
.gallery-empty i { color: #c4b5fd; font-size: 1.8rem; margin-bottom: 5px; }
.gallery-empty strong { color: #eee8ff; font-size: 1rem; }
.gallery-admin { width: 100%; min-width: 0; max-width: 100%; margin: 0 0 22px; padding: 16px 18px; box-sizing: border-box; border: 1px solid rgba(139,92,246,.28); border-radius: 16px; background: linear-gradient(145deg, rgba(20,16,32,.9), rgba(12,9,20,.82)); box-shadow: 0 12px 34px rgba(0,0,0,.18); }
.gallery-content-section > .container { min-width: 0; }
.gallery-admin[hidden], .gallery-editor-content[hidden], .gallery-edit-modal[hidden], .gallery-lightbox[hidden], .gallery-auth-modal[hidden] { display: none !important; }
.gallery-admin-bar { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.gallery-admin-copy .section-badge { display: block; width: max-content; max-width: 100%; margin: 0 0 5px; }
.gallery-admin-copy h2 { color: #fff; font-size: 1.08rem; line-height: 1.25; }
.gallery-admin-copy p { margin-top: 3px; color: var(--text-muted); font-size: .8rem; }
.gallery-admin-actions { min-width: 0; display: flex; align-items: center; flex: 0 0 auto; gap: 8px; }
.gallery-admin-actions .btn-primary, .gallery-admin-actions .btn-secondary { padding: 9px 14px; font-size: .82rem; }
.gallery-editor-content { padding-top: 20px; margin-top: 16px; border-top: 1px solid var(--border-color); }
.gallery-upload-form { padding: 18px; background: rgba(8,6,15,.43); border: 1px solid var(--border-color); border-radius: 15px; }
.gallery-video-form { margin-top: 14px; padding: 18px; background: linear-gradient(135deg, rgba(52,34,82,.58), rgba(12,10,20,.7)); border: 1px solid rgba(167,139,250,.32); border-radius: 15px; box-shadow: inset 0 1px rgba(255,255,255,.025); }
.gallery-video-form .upload-form-heading h3 i { color: #c4b5fd; }
.gallery-video-providers { display:flex; flex-wrap:wrap; gap:7px; margin-top:11px; }
.gallery-video-provider { display:inline-flex; align-items:center; gap:6px; padding:5px 9px; color:#e9e2f4; background:rgba(255,255,255,.045); border:1px solid rgba(255,255,255,.09); border-radius:999px; font-size:.68rem; font-weight:700; }
.gallery-video-provider-youtube i { color:#ff5263; }
.gallery-video-provider-tiktok i { color:#8fe8ef; text-shadow:1px 0 #f46a9b; }
.gallery-youtube-fields { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1.2fr) minmax(130px,.85fr) minmax(145px,.8fr); align-items: end; gap: 12px; }
.gallery-youtube-fields .field-label { min-width: 0; }
.gallery-youtube-fields .optional-label { color: var(--text-muted); font-size: .7rem; font-weight: 400; }
.upload-form-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.upload-form-heading h3 { color: #fff; font-size: 1rem; }
.upload-form-heading h3 i { color: #c4b5fd; margin-right: 6px; }
.upload-form-heading p { margin-top: 4px; color: var(--text-muted); font-size: .77rem; }
.gallery-upload-drop { min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; position: relative; overflow: hidden; color: #e9e5f4; text-align: center; cursor: pointer; background: rgba(139,92,246,.055); border: 1px dashed rgba(196,181,253,.36); border-radius: 13px; transition: background .2s ease, border-color .2s ease; }
.gallery-upload-drop:hover { background: rgba(139,92,246,.11); border-color: var(--accent-purple); }
.gallery-upload-drop > i { color: #c4b5fd; font-size: 1.55rem; margin-bottom: 3px; }
.gallery-upload-drop strong { font-size: .9rem; }
.gallery-upload-drop span { color: var(--text-muted); font-size: .77rem; }
.gallery-upload-drop input { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; opacity: 0; }
.gallery-upload-items { display: grid; gap: 8px; margin-top: 12px; }
.gallery-upload-items:empty { display: none; }
.gallery-upload-item { min-width: 0; display: grid; grid-template-columns: 58px minmax(0,1fr); align-items: center; gap: 11px; padding: 8px; background: rgba(255,255,255,.025); border: 1px solid var(--border-color); border-radius: 11px; }
.gallery-upload-thumb { width: 58px; height: 48px; display: block; object-fit: cover; background: rgba(0,0,0,.25); border-radius: 7px; }
.gallery-upload-item-fields { min-width: 0; display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,.9fr) minmax(0,1fr) minmax(90px,.45fr); align-items: end; gap: 10px; }
.gallery-upload-item-fields .field-label { min-width: 0; }
.gallery-upload-item-fields .field-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery-upload-controls { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 12px; margin-top: 13px; }
.gallery-upload-submit { display: flex; justify-content: flex-end; margin-top: 13px; }
.gallery-upload-submit .btn-primary { min-height: 44px; }
.gallery-page .field-label { display: flex; flex-direction: column; gap: 7px; color: #e9e5f4; font-size: .84rem; font-weight: 650; }
.gallery-page .field-label input { width: 100%; min-height: 44px; padding: 10px 12px; color: var(--text-main); font: inherit; font-weight: 400; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; outline: none; }
.gallery-page .field-label select { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; color: var(--text-main); font: inherit; font-weight: 400; background: #171321; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; outline: none; }
.gallery-page .field-label select option { color: #f3f3f7; background: #171321; }
.gallery-page .field-label input:focus { border-color: var(--accent-purple); box-shadow: 0 0 0 3px rgba(139,92,246,.13); }
.gallery-upload-controls .btn-primary { min-height: 44px; }
.gallery-upload-message, .gallery-edit-message { min-height: 18px; margin-top: 10px; color: #c4b5fd; font-size: .82rem; }
.gallery-upload-message.is-error, .gallery-edit-message.is-error { color: #fca5a5; }
.gallery-admin-list-section { margin-top: 24px; }
.gallery-admin-list { display: grid; gap: 9px; }
.gallery-admin-row { display: grid; grid-template-columns: 72px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 9px 12px; background: rgba(255,255,255,.035); border: 1px solid var(--border-color); border-radius: 12px; }
.gallery-admin-thumb { width: 72px; height: 54px; object-fit: cover; background: rgba(0,0,0,.25); border-radius: 8px; }
.gallery-admin-copy { min-width: 0; }
.gallery-admin-copy strong, .gallery-admin-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery-admin-copy strong { color: #fff; font-size: .85rem; }
.gallery-admin-copy span { margin-top: 3px; color: var(--text-muted); font-size: .74rem; }
.gallery-admin-row-actions { display: flex; gap: 6px; }
.gallery-admin-row-actions button { min-height: 34px; padding: 6px 9px; font-size: .76rem; }
.gallery-admin-row-actions .delete-button { color: #fecaca; border-color: rgba(248,113,113,.22); }
.gallery-lightbox { position: fixed; inset: 0; z-index: 2500; display: grid; place-items: center; padding: 24px; }
.lightbox-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(4,3,8,.92); backdrop-filter: blur(12px); cursor: zoom-out; }
.lightbox-panel { width: min(100%, 1280px); height: min(90vh, 900px); display: grid; grid-template-columns: 54px minmax(0,1fr) 54px; align-items: center; gap: 12px; position: relative; z-index: 1; }
.lightbox-close, .lightbox-nav { width: 44px; height: 44px; display: grid; place-items: center; color: #fff; cursor: pointer; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 50%; backdrop-filter: blur(8px); }
.lightbox-close { position: absolute; top: 0; right: 4px; z-index: 2; }
.lightbox-nav:hover, .lightbox-close:hover { background: rgba(139,92,246,.5); }
.lightbox-nav[hidden] { display: none !important; }
.lightbox-figure { width: 100%; height: 100%; min-width: 0; min-height: 0; margin: 0; display: grid; grid-template-rows: minmax(0,1fr) auto; align-items: center; }
.lightbox-media { width: 100%; height: 100%; min-width: 0; min-height: 0; display: grid; place-items: center; }
.lightbox-figure img { width: 100%; height: 100%; min-width: 0; min-height: 0; display: block; object-fit: contain; border-radius: 8px; box-shadow: 0 16px 60px rgba(0,0,0,.4); }
.lightbox-media iframe { width:min(100%,92vw,calc(74vh * 16 / 9)); height:auto; max-height:74vh; aspect-ratio:16/9; justify-self:center; align-self:center; display:block; border:1px solid rgba(255,255,255,.12); border-radius:10px; background:#08070d; box-shadow:0 16px 60px rgba(0,0,0,.4); }
.lightbox-media iframe[src*="tiktok.com/player"] { width:min(100%,420px,calc(74vh * 9 / 16)); height:auto; max-height:74vh; aspect-ratio:9/16; margin:auto; }
.lightbox-figure figcaption { min-height: 60px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; padding-top: 8px; text-align: center; }
.lightbox-figure figcaption strong { color: #fff; font-size: .95rem; }
.lightbox-author { color: var(--text-muted); font-size: .75rem; }
.lightbox-description { max-width: 760px; color: var(--text-secondary); font-size: .84rem; line-height: 1.6; white-space: pre-wrap; }
.gallery-edit-modal, .gallery-auth-modal { position: fixed; inset: 0; z-index: 3200; display: grid; place-items: center; padding: 18px; }
.gallery-modal-backdrop, .gallery-auth-modal .team-modal-backdrop { position: absolute; inset: 0; background: rgba(5,4,9,.8); backdrop-filter: blur(8px); }
.gallery-edit-card, .gallery-auth-modal .team-modal-card { width: min(100%, 460px); max-height: min(90vh, 780px); overflow-y: auto; position: relative; padding: 30px; background: #110e1b; border: 1px solid rgba(139,92,246,.35); border-radius: 20px; box-shadow: 0 24px 80px rgba(0,0,0,.55); }
.gallery-edit-card h2, .gallery-auth-modal .team-modal-card h2 { font-size: 1.4rem; margin: 3px 0 18px; }
.gallery-edit-close, .gallery-auth-modal .modal-close { position: absolute; top: 16px; right: 16px; }
.gallery-edit-form, .gallery-auth-modal .auth-form { display: grid; gap: 14px; }
.gallery-edit-form .form-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 0; }
.gallery-auth-modal .auth-form .btn-primary { justify-content: center; }
.gallery-auth-modal .section-badge { margin-bottom: 8px; }
.gallery-auth-modal .modal-copy { margin-bottom: 18px; color: var(--text-muted); font-size: .84rem; }
.gallery-auth-modal .setup-notice { display: flex; gap: 10px; padding: 12px; color: #dcd4ec; font-size: .78rem; line-height: 1.5; background: rgba(139,92,246,.09); border: 1px solid rgba(139,92,246,.2); border-radius: 10px; }
.gallery-auth-modal .setup-notice i { margin-top: 3px; color: #c4b5fd; }
.gallery-auth-modal .auth-message { min-height: 18px; margin: 12px 0 0; color: #c4b5fd; font-size: .82rem; }
.gallery-auth-modal .auth-message.is-error { color: #fca5a5; }
.gallery-auth-modal .auth-form[hidden] { display: none !important; }
.gallery-auth-modal .icon-button, .gallery-edit-card .icon-button { width: 36px; height: 36px; display: inline-grid; place-items: center; cursor: pointer; color: var(--text-muted); background: rgba(255,255,255,.04); border: 1px solid var(--border-color); border-radius: 10px; }
@media (max-width: 992px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-content-section { padding-top: 28px; }
  .gallery-youtube-fields { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .gallery-admin-bar { align-items: stretch; flex-direction: column; }
  .gallery-admin-bar > *, .gallery-admin-copy { width: 100%; min-width: 0; max-width: 100%; }
  .gallery-admin-copy p { overflow-wrap: anywhere; }
  .gallery-admin-actions { flex-wrap: wrap; }
  .gallery-admin-actions > * { min-width: 0; max-width: 100%; white-space: normal; }
  .gallery-upload-item-fields { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gallery-upload-item-fields .field-label:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .gallery-page .nav-container { padding: 0 16px; }
  .gallery-page .nav-actions .btn-copy-ip { padding: 9px 11px; font-size: .76rem; }
  .gallery-page .nav-actions .btn-icon { display: none; }
  .gallery-hero { min-height: 270px; padding: 48px 0 17px; }
  .gallery-hero .hero-title { font-size: 2.5rem; }
  .gallery-hero .hero-subtitle { font-size: .94rem; }
  .gallery-content-section { padding: 24px 0 54px; }
  .gallery-heading-row { align-items: flex-start; flex-direction: column; gap: 14px; }
  .gallery-youtube-fields { grid-template-columns: minmax(0,1fr); }
  .gallery-heading-row .section-title { font-size: 1.55rem; }
  .gallery-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; }
  .gallery-filter { flex: 0 0 auto; }
  .gallery-seasons { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; }
  .gallery-season { justify-content: space-between; gap: 5px; padding: 8px 9px; }
  .gallery-season-copy strong { font-size: .76rem; }
  .gallery-season-copy small { font-size: .65rem; }
  .gallery-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .gallery-card-admin-actions { opacity: 1; transform: none; }
  .gallery-admin { padding: 14px 12px; margin-bottom: 18px; }
  .gallery-admin-actions { display: grid; grid-template-columns: minmax(0,1fr) auto; }
  .gallery-admin-actions .btn-primary { justify-content: center; }
  .gallery-editor-content { padding-top: 15px; margin-top: 13px; }
  .gallery-upload-form { padding: 13px 10px; }
  .gallery-video-form { padding: 14px 10px; }
  .gallery-youtube-fields { grid-template-columns: minmax(0,1fr); gap: 9px; }
  .gallery-upload-item { grid-template-columns: 48px minmax(0,1fr); gap: 8px; padding: 7px; }
  .gallery-upload-thumb { width: 48px; height: 44px; }
  .gallery-upload-item-fields { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .gallery-upload-item-fields .field-label:last-child { grid-column: auto; }
  .gallery-upload-submit .btn-primary { width: 100%; justify-content: center; }
  .gallery-admin-row { grid-template-columns: 58px minmax(0,1fr); gap: 9px; padding: 9px; }
  .gallery-admin-thumb { width: 58px; height: 48px; }
  .gallery-admin-row-actions { grid-column: 2; }
  .lightbox-panel { width: 100%; grid-template-columns: 38px minmax(0,1fr) 38px; gap: 4px; height: 84vh; }
  .lightbox-nav { width: 34px; height: 34px; font-size: .78rem; }
  .lightbox-close { width: 38px; height: 38px; top: -8px; right: -2px; }
  .gallery-lightbox { padding: 12px 6px; }
  .gallery-edit-card, .gallery-auth-modal .team-modal-card { padding: 26px 20px 22px; }
  .footer-container { align-items: flex-start; flex-direction: column; gap: 10px; }
}
.gallery-tag-filters { display:flex; align-items:center; flex-wrap:wrap; gap:7px; margin:0 0 18px; }
.gallery-tag-label { margin-right:3px; color:var(--text-muted); font-size:.64rem; font-weight:800; letter-spacing:.12em; }
.gallery-tag { padding:6px 10px; color:var(--text-secondary); font:inherit; font-size:.72rem; cursor:pointer; background:rgba(255,255,255,.025); border:1px solid var(--border-color); border-radius:999px; }
.gallery-tag.active,.gallery-tag:hover { color:#e8dcff; background:rgba(139,92,246,.12); border-color:rgba(167,139,250,.35); }
.gallery-proposal{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(0,1.2fr);gap:28px;margin:46px 0 12px;padding:clamp(20px,4vw,34px);background:linear-gradient(145deg,rgba(27,20,42,.82),rgba(13,11,19,.82));border:1px solid rgba(167,139,250,.22);border-radius:18px}.gallery-proposal h2{margin:9px 0;color:#f4efff;font-size:1.35rem}.gallery-proposal>div>p{max-width:420px;color:#a99fb4;font-size:.82rem;line-height:1.65}.gallery-proposal-form{display:grid;gap:12px}.gallery-proposal-form .field-label{display:grid;gap:6px;color:#cfc5dc;font-size:.74rem}.gallery-proposal-form input,.gallery-proposal-form textarea{width:100%;padding:11px 12px;color:#f2ecfb;background:rgba(8,7,12,.8);border:1px solid rgba(255,255,255,.1);border-radius:9px;font:inherit}.gallery-proposal-form input:focus,.gallery-proposal-form textarea:focus{outline:0;border-color:rgba(167,139,250,.65)}.gallery-proposal-media{display:grid;grid-template-columns:1fr 1fr;gap:12px}.gallery-proposal-submit{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.gallery-proposal-submit [role=status]{color:#a9d8b8;font-size:.75rem}.gallery-proposal-submit .is-error{color:#e1a0a7}.gallery-proposal-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}.gallery-submissions-section{margin-top:22px;padding-top:18px;border-top:1px solid rgba(255,255,255,.08)}.gallery-submissions-list{display:grid;gap:12px}.gallery-submission-count{display:inline-grid;min-width:23px;height:23px;margin-left:5px;place-items:center;color:#eee4ff;background:rgba(139,92,246,.2);border-radius:999px;font-size:.7rem}.gallery-submission-card{display:grid;grid-template-columns:170px minmax(0,1fr);gap:15px;padding:13px;background:rgba(255,255,255,.025);border:1px solid rgba(255,255,255,.08);border-radius:12px}.gallery-submission-preview{width:100%;aspect-ratio:16/10;object-fit:cover;background:#09070e;border-radius:8px}.gallery-submission-content{min-width:0}.gallery-submission-content h4{margin:0;color:#f2ecfb}.gallery-submission-meta{margin:4px 0;color:#8f849c;font-size:.67rem}.gallery-submission-description{margin:8px 0;color:#c0b6ca;font-size:.76rem;line-height:1.5;white-space:pre-wrap}.gallery-submission-fields{display:grid;grid-template-columns:1fr 1.4fr .8fr;gap:8px}.gallery-submission-fields .field-label{display:grid;gap:5px;color:#a99fb4;font-size:.67rem}.gallery-submission-fields input,.gallery-submission-fields select{min-width:0;width:100%;padding:8px;color:#eee8f7;background:#100d17;border:1px solid rgba(255,255,255,.1);border-radius:7px}.gallery-submission-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.gallery-card-description{margin:2px 0 0;color:#a79bad;font-size:.74rem;line-height:1.45}
.gallery-pending-badge{min-width:21px;height:21px;display:inline-grid;place-items:center;padding:0 6px;color:#fff;background:#a94f67;border-radius:999px;font-size:.65rem;font-weight:800}.gallery-pending-badge[hidden]{display:none!important}
@media(max-width:760px){.gallery-proposal{grid-template-columns:1fr;gap:14px}.gallery-submission-card{grid-template-columns:110px minmax(0,1fr)}.gallery-submission-fields{grid-template-columns:1fr 1fr}.gallery-submission-fields label:first-child{grid-column:1/-1}}
@media(max-width:520px){.gallery-proposal-media{grid-template-columns:1fr}.gallery-submission-card{grid-template-columns:1fr}.gallery-submission-preview{max-height:200px}.gallery-submission-fields{grid-template-columns:1fr}.gallery-submission-fields label:first-child{grid-column:auto}}
.gallery-submission-preview-wrap{min-width:0}.gallery-submission-video-open{position:relative;display:block;width:100%;padding:0;overflow:hidden;color:#fff;background:#09070e;border:0;border-radius:8px;cursor:pointer}.gallery-submission-video-open .gallery-submission-preview{display:block}.gallery-submission-play{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#fff;background:linear-gradient(0deg,rgba(5,4,9,.64),rgba(5,4,9,.08));font-size:.7rem;font-weight:800;text-shadow:0 1px 5px #000}.gallery-submission-play i{display:grid;width:42px;height:42px;place-items:center;padding-left:3px;background:rgba(139,92,246,.92);border:1px solid rgba(255,255,255,.5);border-radius:50%;box-shadow:0 5px 24px rgba(0,0,0,.4)}.gallery-submission-video-open:hover .gallery-submission-play i{transform:scale(1.08)}.gallery-submission-fields{grid-template-columns:repeat(4,minmax(0,1fr))}.gallery-submission-fields .field-label{min-width:0}.gallery-submission-fields input,.gallery-submission-fields textarea{min-width:0;width:100%;padding:8px;color:#eee8f7;background:#100d17;border:1px solid rgba(255,255,255,.1);border-radius:7px;font:inherit;font-size:.74rem}.gallery-submission-fields textarea{resize:vertical;line-height:1.45}.gallery-submission-wide-field{grid-column:1/-1}.gallery-submission-actions{align-items:center}.gallery-review-log{margin-top:18px;padding:13px 15px;background:rgba(10,8,16,.36);border:1px solid rgba(167,139,250,.14);border-radius:11px}.gallery-review-log>summary{color:#d8c8f4;font-size:.82rem;font-weight:750;cursor:pointer}.gallery-review-log>p{margin:10px 0;color:#9f94aa;font-size:.7rem}.gallery-review-log-list{display:grid;gap:9px}.gallery-review-log-card{padding:12px 13px;background:rgba(255,255,255,.025);border:1px solid rgba(255,255,255,.075);border-radius:9px}.gallery-review-log-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.gallery-review-log-heading strong{color:#f3edf9;font-size:.78rem}.gallery-review-log-heading span{padding:4px 8px;color:#b6edca;background:rgba(66,190,121,.1);border-radius:999px;font-size:.62rem;font-weight:750}.gallery-review-log-card.is-rejected .gallery-review-log-heading span{color:#f0adb3;background:rgba(214,87,103,.1)}.gallery-review-log-card small,.gallery-review-log-card p{display:block;margin:5px 0 0;color:#a99fb3;font-size:.68rem;line-height:1.55;overflow-wrap:anywhere}.gallery-review-log-result{color:#d8cbed!important}.gallery-review-log-comment{padding:7px 9px;background:rgba(255,255,255,.025);border-left:2px solid rgba(167,139,250,.45);border-radius:4px}.gallery-review-log-link{display:inline-flex;margin-top:8px;color:#c8adff;font-size:.7rem;font-weight:700}.gallery-review-video-modal{position:fixed;z-index:6000;inset:0;display:grid;padding:20px;place-items:center}.gallery-review-video-backdrop{position:absolute;inset:0;background:rgba(3,2,7,.86);border:0;backdrop-filter:blur(8px)}.gallery-review-video-dialog{position:relative;width:min(900px,95vw);aspect-ratio:16/9;overflow:hidden;background:#050408;border:1px solid rgba(167,139,250,.4);border-radius:16px;box-shadow:0 25px 90px rgba(0,0,0,.7)}.gallery-review-video-dialog.is-tiktok{width:min(430px,90vw);aspect-ratio:9/16;max-height:88vh}.gallery-review-video-dialog iframe{width:100%;height:100%;border:0}.gallery-review-video-close{position:absolute;z-index:2;top:10px;right:10px;display:grid;width:36px;height:36px;place-items:center;color:#fff;background:rgba(12,9,18,.8);border:1px solid rgba(255,255,255,.2);border-radius:10px;cursor:pointer}
@media(max-width:760px){.gallery-submission-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-submission-wide-field{grid-column:1/-1}}
@media(max-width:520px){.gallery-submission-fields{grid-template-columns:1fr}.gallery-submission-wide-field{grid-column:auto}.gallery-review-video-modal{padding:10px}.gallery-review-video-dialog{width:96vw}}
.gallery-review-log-media{display:block;width:min(100%,280px);margin-top:9px;overflow:hidden;background:#09070e;border:1px solid rgba(255,255,255,.1);border-radius:8px}.gallery-review-log-media img{display:block;width:100%;max-height:190px;object-fit:cover}
.gallery-review-video-modal{overflow:auto;padding:16px}.gallery-review-video-backdrop{position:fixed}.gallery-review-video-dialog{place-self:center;width:min(900px,92vw,calc(88vh * 16 / 9));max-height:88vh}.gallery-review-video-dialog.is-tiktok{width:min(430px,92vw,calc(88vh * 9 / 16));height:auto;max-height:88vh}
.lightbox-panel { height:min(90dvh,900px); }
.lightbox-media iframe { width:min(100%,92vw,calc((100dvh - 170px) * 16 / 9)); max-height:calc(100dvh - 170px); }
.lightbox-media iframe[src*="tiktok.com/player"] { width:min(100%,420px,calc((100dvh - 130px) * 9 / 16)); max-height:calc(100dvh - 130px); }
.gallery-review-video-dialog { width:min(900px,92vw,calc(88dvh * 16 / 9)); max-height:88dvh; }
.gallery-review-video-dialog.is-tiktok { width:min(430px,92vw,calc(88dvh * 9 / 16)); max-height:88dvh; }
