/* RA0 Embed Gallery v1.2 | KYURI: midnight cobalt / starlight theme
   Only .ra0-gallery classes are styled. The site's existing cosmic background
   remains visible through the transparent gallery. No background image required. */
.ra0-gallery {
  --rg-ink:#f1f5ff;
  --rg-muted:#b6c6e9;
  --rg-soft:#8da7df;
  --rg-border:rgba(168,193,255,.26);
  --rg-border-strong:rgba(198,216,255,.5);
  --rg-blue:#9dbaff;
  --rg-bg:rgba(4,19,65,.42);
  --rg-surface:rgba(8,29,88,.68);
  --rg-surface-strong:rgba(12,38,104,.88);
  color:var(--rg-ink);
  width:100%; max-width:1050px; margin:18px auto 55px;
  font-family:inherit; line-height:1.6; text-align:left;
  box-sizing:border-box;
}
.ra0-gallery *, .ra0-gallery *::before, .ra0-gallery *::after {box-sizing:border-box;}
.ra0-gallery a, .ra0-gallery a:link, .ra0-gallery a:visited {color:inherit; text-decoration:none;}
.ra0-gallery button, .ra0-gallery input, .ra0-gallery textarea, .ra0-gallery select {font:inherit;}
.ra0-gallery button {cursor:pointer;}
.ra0-gallery :is(a, button, input, textarea, select):focus-visible {
  outline:2px solid #dce6ff; outline-offset:3px;
}
.ra0-gallery-head {
  display:flex; align-items:flex-end; justify-content:space-between; gap:14px;
  margin:0 0 24px; padding:19px 5px 18px;
  border-top:1px solid var(--rg-border); border-bottom:1px solid var(--rg-border);
  background:repeating-linear-gradient(to bottom, transparent 0 18px,rgba(155,184,250,.07) 18px 19px);
}
.ra0-gallery-head h2 {
  margin:6px 0 0; color:#f8faff;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(20px, 3vw, 28px); font-weight:400;
  line-height:1.25; letter-spacing:.16em;
  text-shadow:0 1px 14px rgba(160,201,255,.33);
}
.ra0-gallery-eyebrow {
  display:inline-block; color:#b3c7ef;
  font-family:Georgia,"Times New Roman",serif;
  font-size:10px; font-weight:400; letter-spacing:.33em; line-height:1.45;
}
.ra0-gallery-button {
  display:inline-flex; align-items:center; justify-content:center; gap:6px; white-space:nowrap;
  min-height:35px; padding:7px 14px; border:1px solid var(--rg-border-strong);
  border-radius:10px; color:var(--rg-ink) !important;
  background:rgba(61,98,173,.22); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
  font-size:12px; font-weight:400; letter-spacing:.02em;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12);
  transition:background-color .2s,border-color .2s,transform .2s;
}
.ra0-gallery-button:hover {background:rgba(100,141,226,.34); border-color:rgba(226,237,255,.72);}
.ra0-gallery-button.is-primary {background:rgba(86,126,220,.55); border-color:rgba(213,228,255,.65);}
.ra0-gallery-note {padding:8px 4px 20px; color:var(--rg-muted); font-size:12px; line-height:1.8;}
.ra0-gallery-categories {display:flex; flex-wrap:wrap; gap:8px; margin:0 0 20px; font-size:11px;}
.ra0-gallery-categories a {
  padding:5px 12px; border:1px solid var(--rg-border); border-radius:99px;
  background:var(--rg-bg); color:var(--rg-muted) !important;
  transition:background-color .2s;
}
.ra0-gallery-categories a:hover {background:rgba(103,135,209,.2);}
.ra0-gallery-categories a.is-active {background:rgba(120,154,224,.3); color:#fff !important; border-color:var(--rg-border-strong);}
/* Square artwork cards: no opaque white tile behind the art. */
.ra0-gallery-grid {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px 14px;}
.ra0-gallery-item {display:block; min-width:0;}
.ra0-gallery-square {
  position:relative; width:100%; aspect-ratio:1/1; overflow:hidden;
  background:rgba(11,30,81,.65); border:1px solid var(--rg-border);
  border-radius:5px; box-shadow:0 4px 22px rgba(1,7,30,.17),inset 0 0 0 1px rgba(221,233,255,.05);
  transition:border-color .25s, box-shadow .25s;
}
.ra0-gallery-square > img {
  display:block; width:100%; height:100%; object-fit:cover;
  transition:transform .32s ease,filter .32s ease;
}
.ra0-gallery-item:hover .ra0-gallery-square {border-color:var(--rg-border-strong); box-shadow:0 7px 24px rgba(1,8,35,.32),0 0 0 1px rgba(153,193,255,.16);}
.ra0-gallery-item:hover .ra0-gallery-square img {transform:scale(1.04); filter:brightness(1.055);}
.ra0-gallery-noimage {
  display:flex; width:100%; height:100%; align-items:center; justify-content:center;
  color:#b0c5f3; text-align:center; font-family:Georgia,serif;
  font-size:10px; font-weight:400; letter-spacing:.18em;
  background:repeating-linear-gradient(0deg,rgba(112,152,230,.06) 0 1px,transparent 1px 19px);
}
.ra0-gallery-count {
  position:absolute; top:8px; right:8px; padding:3px 8px;
  color:#f7faff; background:rgba(3,17,59,.79); border:1px solid rgba(212,228,255,.23);
  border-radius:30px; font-size:10px; line-height:1.7; backdrop-filter:blur(4px);
}
.ra0-gallery-cardmeta {
  display:flex; align-items:baseline; justify-content:space-between;
  gap:2px 7px; margin-top:9px; padding:0 2px;
  color:var(--rg-ink); font-size:12px; line-height:1.45;
}
.ra0-gallery-cardname {min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; text-shadow:0 1px 5px rgba(0,12,46,.48);}
.ra0-gallery-carddate {flex-shrink:0; color:var(--rg-muted); font-family:Georgia,"Times New Roman",serif; font-size:10px; letter-spacing:.04em;}
.ra0-gallery-empty {padding:64px 12px; text-align:center; color:var(--rg-muted); font-size:13px; background:var(--rg-bg); border:1px solid var(--rg-border); border-radius:8px;}
.ra0-gallery-pages {margin:29px 0 0; text-align:center; color:var(--rg-muted); font-size:12px;}
.ra0-gallery-pages a,.ra0-gallery-pages strong {display:inline-block; min-width:28px; padding:6px; margin:2px;}
.ra0-gallery-pages strong {color:#fff; border-bottom:1px solid #afc8ff;}
.ra0-gallery-listfoot {display:flex; justify-content:flex-end; margin-top:20px; font-size:11px; color:var(--rg-soft);}
/* Single artwork viewer: quiet navy glass frame and subtle icy controls. */
.ra0-gallery-detail {max-width:1150px;}
.ra0-gallery-detailhead {
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; padding:0 3px 13px; margin-bottom:14px;
  border-bottom:1px solid var(--rg-border); font-size:12px;
}
.ra0-gallery-back {color:var(--rg-ink) !important; letter-spacing:.02em;}
.ra0-gallery-detail-actions {display:flex; gap:16px; color:var(--rg-muted);}
.ra0-gallery-detail-actions a:hover,.ra0-gallery-detailnav a:hover,.ra0-gallery-back:hover {color:#fff !important;}
.ra0-gallery-stage {
  position:relative; display:flex; align-items:center; justify-content:center;
  width:100%; height:clamp(420px,76vh,920px); min-height:0;
  padding:18px 64px 48px;
  background:rgba(1,12,45,.68); border:1px solid var(--rg-border);
  border-radius:8px; overflow:hidden; backdrop-filter:blur(3px); -webkit-backdrop-filter:blur(3px);
  box-shadow:0 8px 28px rgba(0,5,22,.18);
}
.ra0-gallery-slide {width:100%; height:100%; min-width:0; min-height:0; align-items:center; justify-content:center;}
.ra0-gallery-slide.is-active {display:flex;}
.ra0-gallery-slide[hidden] {display:none !important;}
/* Enlarge even a small intrinsic image; preserve the source ratio without cropping. */
.ra0-gallery .ra0-gallery-stage .ra0-gallery-slide img {
  display:block; width:100%; height:100%; max-width:100%; max-height:100%;
  object-fit:contain; margin:0 auto;
}
.ra0-gallery-arrow {
  position:absolute; z-index:2; top:50%; transform:translateY(-50%);
  display:flex; align-items:center; justify-content:center;
  width:37px; height:47px; padding:0;
  border:1px solid rgba(229,239,255,.3); border-radius:8px;
  background:rgba(14,36,98,.73); color:#fff; font-size:29px; font-weight:300;
  line-height:1; backdrop-filter:blur(5px); -webkit-backdrop-filter:blur(5px);
  transition:background-color .2s,border-color .2s;
}
.ra0-gallery-arrow:hover {background:rgba(68,111,207,.85); border-color:rgba(240,246,255,.8);}
.ra0-gallery-arrow-prev {left:18px;}
.ra0-gallery-arrow-next {right:18px;}
.ra0-gallery-position {
  position:absolute; z-index:2; left:50%; bottom:21px; transform:translateX(-50%);
  padding:3px 12px; border:1px solid rgba(215,228,255,.28); border-radius:30px;
  color:#f6f9ff; background:rgba(2,15,53,.75); font-family:Georgia,"Times New Roman",serif;
  font-size:11px; letter-spacing:.11em;
}
.ra0-gallery-filmstrip {display:flex; justify-content:flex-start; gap:9px; margin:13px 0 0; padding:3px 1px 9px; overflow-x:auto;}
.ra0-gallery-film-thumb {
  width:57px; height:57px; flex:0 0 57px; padding:0; overflow:hidden;
  border:1px solid var(--rg-border); border-radius:4px;
  background:var(--rg-bg); opacity:.6; transition:opacity .2s,border-color .2s;
}
.ra0-gallery-film-thumb.is-current {opacity:1; border:2px solid #d0e0ff; box-shadow:0 0 0 1px rgba(130,168,255,.28);}
.ra0-gallery-film-thumb:hover {opacity:1;}
.ra0-gallery-film-thumb img {display:block; width:100%; height:100%; object-fit:cover;}
.ra0-gallery-detailmeta {display:flex; justify-content:center; gap:12px; margin:16px 0; color:var(--rg-muted); font-size:11px; letter-spacing:.02em;}
.ra0-gallery-poster {color:#f4f8ff;}
.ra0-gallery-detailnav {display:flex; justify-content:space-between; min-height:35px; gap:10px; margin-top:18px; padding-top:12px; border-top:1px solid var(--rg-border); color:var(--rg-muted); font-size:11px;}
/* Write form: consistent glass panels, accessible contrast. */
.ra0-gallery-compose {max-width:780px;}
.ra0-gallery-fields {
  padding:22px; background:var(--rg-surface); border:1px solid var(--rg-border);
  border-radius:12px; backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
  box-shadow:0 8px 26px rgba(1,8,35,.17);
}
.ra0-gallery-fields label {display:block; margin:0 0 19px; color:var(--rg-ink); font-size:13px; font-weight:500;}
.ra0-gallery-hint {color:var(--rg-muted); font-size:11px; font-weight:400;}
.ra0-gallery-fields input:not([type=checkbox]),.ra0-gallery-fields select,.ra0-gallery-fields textarea {
  display:block; width:100%; min-width:0; margin:7px 0 0; padding:11px 12px;
  border:1px solid rgba(169,195,250,.34); border-radius:7px;
  background:rgba(1,14,52,.66); color:#f5f8ff !important;
  font-size:13px; font-weight:400; line-height:1.6;
}
.ra0-gallery-fields input::placeholder,.ra0-gallery-fields textarea::placeholder {color:#9fb3df; opacity:.85;}
.ra0-gallery-fields select option {background:#061942; color:#fff;}
.ra0-gallery-fields textarea {resize:vertical; line-height:1.7; font-family:ui-monospace,Consolas,monospace;}
.ra0-gallery-fields .ra0-gallery-check {display:flex; align-items:center; gap:7px; font-size:12px; font-weight:400;}
.ra0-gallery-tip {margin:0 0 25px; color:var(--rg-muted); font-size:12px; line-height:1.8;}
.ra0-gallery-preview-heading {display:flex; gap:10px; margin-bottom:12px; color:var(--rg-ink); font-size:13px; font-weight:500;}
.ra0-gallery-preview-heading span {color:var(--rg-muted); font-weight:400;}
.ra0-gallery-writepreview {display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:7px; min-height:60px;}
.ra0-gallery-previewcell {aspect-ratio:1; overflow:hidden; background:rgba(2,17,56,.5); border:1px solid var(--rg-border); border-radius:4px;}
.ra0-gallery-previewcell img {display:block; width:100%; height:100%; object-fit:cover;}
.ra0-gallery-previewcell.is-error {display:flex; align-items:center; justify-content:center; padding:6px; text-align:center; color:var(--rg-muted); font-size:10px;}
.ra0-gallery-writeactions {display:flex; justify-content:flex-end; gap:10px; margin:17px 0;}
@media (max-width:540px) {
  .ra0-gallery {margin:12px auto 30px;}
  .ra0-gallery-head {align-items:center; padding:14px 3px; gap:9px; margin-bottom:17px;}
  .ra0-gallery-head h2 {font-size:20px; letter-spacing:.12em;}
  .ra0-gallery-eyebrow {font-size:9px; letter-spacing:.25em;}
  .ra0-gallery-button {font-size:11px; min-height:32px; padding:6px 9px;}
  .ra0-gallery-grid {gap:15px 7px;}
  .ra0-gallery-cardmeta {font-size:10px; margin-top:6px;}
  .ra0-gallery-carddate {font-size:9px;}
  .ra0-gallery-count {top:5px;right:5px;font-size:9px;padding:2px 5px;}
  .ra0-gallery-fields {padding:14px;}
  .ra0-gallery-stage {height:clamp(300px,68vh,620px); padding:12px 32px 39px; min-height:0;}
  .ra0-gallery-arrow {width:30px;height:42px;}
  .ra0-gallery-arrow-prev {left:7px;}
  .ra0-gallery-arrow-next {right:7px;}
  .ra0-gallery-position {bottom:10px;}
  .ra0-gallery-film-thumb {width:45px;height:45px;flex-basis:45px;}
  .ra0-gallery-writepreview {grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media (prefers-reduced-motion:reduce) {
  .ra0-gallery-square,.ra0-gallery-square > img,.ra0-gallery-button,.ra0-gallery-film-thumb {transition:none;}
}
