/* 4.4.2: existing approved lunar art file is unchanged. Only layout and CMS enhancements. */
[data-cms-disabled="true"]{display:none!important}
[hidden]{display:none!important}
@media(min-width:791px){
  .hero{min-height:820px!important;padding:324px 0 108px!important;align-items:center!important}
  .hero-grid{grid-template-columns:minmax(0,500px) minmax(0,1fr)!important;gap:36px!important}
  .hero-intro{min-height:0!important;max-width:500px!important;padding:26px 31px 25px!important;transform:translateY(8px)!important;border:1px solid rgba(246,218,183,.7)!important;
    background:linear-gradient(130deg,rgba(34,20,69,.10),rgba(25,17,56,.16))!important;
    backdrop-filter:blur(3px) saturate(110%)!important;-webkit-backdrop-filter:blur(3px) saturate(110%)!important;
    box-shadow:0 22px 55px rgba(4,2,18,.2),inset 0 1px rgba(255,255,255,.20)!important}
  .hero h1{font-size:clamp(43px,4.3vw,63px)!important;margin:15px 0 16px!important;line-height:1.03!important}
  .hero .hero-perks{margin-top:18px!important;gap:8px!important}
  .hero-description{line-height:1.55!important}
  .hero-intro .actions{margin-top:19px!important}
}
.cms-override{white-space:pre-line}
#admin-portfolio-projects:empty{display:none}
.project-cover.cms-project-cover{cursor:pointer;position:relative;background:linear-gradient(125deg,#201237,#564579)}
.cms-project-cover img,.cms-legacy-cover{width:100%;height:100%;object-fit:cover;display:block}
.cms-legacy-cover{position:absolute;inset:0;z-index:3}
.cms-project-cover .project-label{position:absolute;z-index:4;top:14px;left:17px}
.cms-placeholder{display:grid;place-items:center;width:100%;height:100%;font:19px Georgia;letter-spacing:.2em;color:#efd4b1;text-align:center}
#hatori-gallery{box-sizing:border-box;position:fixed;inset:0;margin:auto;max-width:min(1100px,96vw);width:min(1100px,96vw);max-height:93dvh;overflow:auto;border:1px solid rgba(233,190,140,.64);border-radius:18px;padding:14px;background:#0e0b20;color:#f1e5fb;box-shadow:0 30px 100px #0009}
#hatori-gallery::backdrop{background:#050310da;backdrop-filter:blur(10px)}
.gallery-close{position:sticky;top:0;float:right;z-index:20;width:39px;height:39px;cursor:pointer;border:1px solid #edd2af8a;background:#20152e;color:white;border-radius:11px;font-size:26px}
.gallery-picture{clear:both;min-height:150px;display:grid;place-items:center}
.gallery-picture img{max-width:100%;max-height:65dvh;object-fit:contain;border-radius:8px}
.gallery-caption{display:flex;justify-content:space-between;align-items:center;padding:12px 7px;gap:20px}
.gallery-caption strong{font:clamp(19px,3vw,26px) Georgia;color:#f1d0a8}
.gallery-caption p{margin:5px 0;color:#e1d8e6;font-size:14px;line-height:1.5}
.gallery-counter{white-space:nowrap;font-size:13px;color:#d2bacd}
.gallery-controls{display:flex;justify-content:space-between;gap:12px}
.gallery-controls button{cursor:pointer;background:#30233f;color:#fff;border:1px solid #c5a17e70;padding:11px 16px;border-radius:9px}
.gallery-controls button:disabled{opacity:.3;cursor:default}
.gallery-thumbs{display:flex;overflow-x:auto;gap:6px;padding-top:12px}
.gallery-thumbs button{flex:0 0 70px;height:55px;background:#231c34;padding:0;border:2px solid transparent;border-radius:6px;overflow:hidden;cursor:pointer}
.gallery-thumbs button.selected{border-color:#efd0a5}
.gallery-thumbs img{width:100%;height:100%;object-fit:cover}

/* 4.4.4 — Hero glass card only. Smaller panel and type; keep moon, wordmark,
   star, sky, header, content and admin features exactly as in 4.4.3. */
@media (min-width: 791px) {
  .hero .hero-grid {
    grid-template-columns: minmax(0, 470px) minmax(0, 1fr) !important;
  }
  .hero .hero-intro {
    width: 100%;
    max-width: 470px !important;
    padding: 23px 28px 22px !important;
  }
  .hero .hero-intro h1 {
    font-size: clamp(40px, 3.6vw, 53px) !important;
    line-height: 1.06 !important;
    margin: 13px 0 14px !important;
  }
  .hero .hero-intro .eyebrow {font-size: 10px;}
  .hero .hero-intro .hero-description {
    font-size: 13px;
    line-height: 1.53 !important;
  }
  .hero .hero-intro .actions {margin-top: 17px !important;gap: 10px;}
  .hero .hero-intro .btn {font-size: 12px;padding: 12px 17px;}
  .hero .hero-intro .hero-perks {
    font-size: 9px;
    margin-top: 15px !important;
    padding-top: 14px !important;
    gap: 8px 13px !important;
  }
}
/* Intermediate tablet widths used to clip the last Cyrillic letter. */
@media (min-width: 551px) and (max-width: 790px) {
  .hero .hero-intro h1 {font-size: clamp(37px, 5.5vw, 43px) !important;}
}
