.studio-os .os-file-open > img.os-file-cover {
  width: min(100%, 122px) !important;
  height: 78px !important;
  border: 1px solid #cbd5dc;
  border-radius: 3px;
  background: #e8eef1;
  object-fit: cover;
  object-position: top;
  opacity: 1;
}

.os-gallery-tools {
  gap: 12px;
  height: auto;
  min-height: 48px;
  flex-wrap: wrap;
}
.os-gallery-tools > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.os-gallery-controls { display: flex; align-items: center; gap: 3px; margin-left: auto; }
.os-gallery-controls button { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 3px; }
.os-gallery-controls button:hover,
.os-gallery-controls button[aria-pressed=true] { background: #d8e3e9; }
.os-gallery-controls button:disabled { opacity: .35; cursor: default; }
.os-gallery-controls button img { width: 17px; height: 17px; }
.os-gallery-controls .os-zoom-symbol { font: 23px/1 Arial, sans-serif; }
.os-zoom-value { width: 43px; color: #596b77; font-size: 11px; text-align: center; }

.os-gallery-stage { display: flex; min-width: 0; }
.os-gallery-thumbs { display: flex; width: 142px; flex: none; flex-direction: column; gap: 5px; padding: 10px; overflow: auto; border-right: 1px solid #bac5cd; background: #e5ebee; }
.os-gallery-thumbs button { display: grid; gap: 6px; flex: none; min-width: 0; padding: 6px; border: 1px solid transparent; border-radius: 4px; color: #34444e; text-align: left; }
.os-gallery-thumbs button:hover { background: #d7e2e8; }
.os-gallery-thumbs button[aria-current=page] { border-color: #8ba5b8; background: #f7fafb; }
.studio-os .os-gallery-thumbs button img { display: block; width: 100%; height: 76px; border: 1px solid #c2ced5; background: #fff; object-fit: cover; object-position: top; }
.os-gallery-thumbs span { overflow: hidden; font-size: 10px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.os-gallery-scroll { flex: 1; min-width: 0; overflow: auto; padding: 18px; background: #d9e0e4; }
.os-gallery-image { position: relative; display: block; width: 100%; height: max-content; margin: 0 auto; background: #fff; box-shadow: 0 3px 15px rgb(36 58 70 / 16%); }
.os-gallery-art { display: block; width: 100%; height: auto; }
.os-gallery-heat { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: fill; opacity: .82; pointer-events: none; }
.os-gallery-heat[hidden] { display: none; }
.os-heat-meta { position: absolute; right: 18px; bottom: 18px; left: 160px; width: max-content; max-width: min(460px, calc(100% - 180px)); padding: 11px 14px; border: 1px solid #bccbd1; border-radius: 4px; background: #f7faf9f2; box-shadow: 0 5px 16px #253f4d24; }
.os-heat-meta strong { display: block; margin-bottom: 5px; font-size: 11px; }
.os-heat-meta span { display: block; color: #596a72; font: 11px/1.5 Arial, sans-serif; }
.os-heat-meta p { margin: 5px 0 0; color: #2f414a; font: 12px/1.5 Arial, sans-serif; }
.os-gallery-stage .os-project-info { width: min(430px, 92%); padding: 22px 24px; background: #f6f8f8f7; }
.os-gallery-stage .os-project-info h3 { font-size: 21px; line-height: 1.3; }
.os-project-info section { padding: 18px 0; border-top: 1px solid #d6dfe2; }
.os-project-info section h4 { margin: 0 0 9px; color: #344f64; font-size: 13px; }
.os-project-info section p,
.os-project-info .os-case-summary { margin: 0 0 8px; color: #3a4b54; font: 13px/1.6 Arial, sans-serif; white-space: pre-line; overflow-wrap: anywhere; }
.os-project-info .os-case-summary { margin-bottom: 18px; }
.os-project-info .os-case-entry { padding: 12px 0; border-top: 1px dashed #c4d0d5; }
.os-project-info .os-case-entry:first-of-type { border-top: 0; }
.os-case-entry strong { display: block; margin-bottom: 4px; font-size: 11px; }
.os-case-stage { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; }
.os-case-stage span { color: #567989; font-size: 10px; white-space: nowrap; }
.os-project-info a { color: var(--os-accent); text-decoration: underline; }

@media (max-width: 760px) {
  .os-gallery-tools { padding: 6px 8px; }
  .os-gallery-tools > span { width: 100%; font-size: 11px; }
  .os-gallery-tools small { display: inline; }
  .os-gallery-controls { margin-left: 0; }
  .os-gallery-controls button { width: 27px; height: 27px; }
  .os-gallery-stage { flex-direction: column; }
  .os-gallery-thumbs { width: 100%; max-height: 104px; flex-direction: row; gap: 5px; padding: 6px; border-right: 0; border-bottom: 1px solid #bac5cd; overflow-x: auto; overflow-y: hidden; }
  .os-gallery-thumbs button { width: 92px; }
  .studio-os .os-gallery-thumbs button img { height: 54px; }
  .os-gallery-scroll { width: 100%; min-height: 0; padding: 8px; }
  .os-heat-meta { right: 8px; bottom: 8px; left: 8px; max-width: none; width: auto; }
  .os-gallery-stage .os-project-info { width: min(430px, 96%); padding: 16px; }
  .studio-os .os-file-open > img.os-file-cover { height: 66px !important; }
}
