/* Shared spacing for the Environments and Spacecraft category galleries. */
#content-project.lm-styles #projects > .vehicle-category {
  margin: 80px 0 36px;
}
#content-project.lm-styles #projects > .vehicle-category:first-of-type {
  margin-top: 10px;
}

.cf-cinema {
  display: none; position: fixed; inset: 0; z-index: 2000;
  align-items: center; justify-content: center;
  padding: 28px 24px; box-sizing: border-box;
}
.cf-cinema.is-open { display: flex !important; }
.cf-cinema:focus { outline: none; }
.cf-cinema-dim { position: absolute; inset: 0; background: rgba(0,0,0,var(--lm-gallery-backdrop-opacity, .9)); }
.cf-gallery-load-status { color: #ddd; font: 14px/1.5 Arial, sans-serif; margin: 12px 0; }
.cf-cinema-stage { position: relative; z-index: 1; max-width: 100%; min-width: 0; }
html body .cf-shared-gallery .cf-cinema-frame {
  position: relative; box-sizing: border-box; min-width: 0;
  background: #000; padding: 22px; padding-bottom: 22px !important;
}
.cf-cinema-stage img {
  display: block; width: auto; height: auto;
  max-width: min(80vw,1440px); max-height: min(78vh,810px);
  object-fit: contain; background: #000; cursor: default;
}
html body .cf-shared-gallery .cf-cinema-hit {
  position: absolute; top: 22px; bottom: calc(var(--cf-caption-height, 40px) + 36px) !important; width: 28%; z-index: 2;
  margin: 0; padding: 0; border: 0; background: transparent;
  box-shadow: none; cursor: pointer; appearance: none;
}
.cf-cinema-prev { left: 22px; }
.cf-cinema-next { right: 22px; }
.cf-cinema-caption {
  position: relative; margin: 14px 4px 0; max-width: 100%; width: 0; min-width: 100%; box-sizing: border-box; overflow-wrap: anywhere;
  font-family: Arial,Helvetica,sans-serif; color: #777; text-align: left;
}
.cf-cinema-title { margin: 0 0 5px; font-size: 15px; font-weight: 400; line-height: 1.25; }
.cf-cinema-count { margin: 0; font-size: 13px; line-height: 1.2; }
/* Gallery hotspots stay invisible for mouse, touch and keyboard focus. */
html body .cf-cinema .cf-cinema-hit {
  outline: 0 !important; border: 0 !important; box-shadow: none !important;
  -webkit-appearance: none; appearance: none;
  -webkit-tap-highlight-color: transparent;
}
.cf-cinema [hidden] { display: none !important; }
@media (max-width:760px) {
  .cf-cinema { padding: 20px 8px; }
  html body .cf-shared-gallery .cf-cinema-frame { padding: 12px; padding-bottom: 12px !important; }
  .cf-cinema-stage img { max-width: calc(100vw - 40px); max-height: min(74vh,810px); }
  html body .cf-shared-gallery .cf-cinema-hit { top: 12px; }
  .cf-cinema-prev { left: 12px; }
  .cf-cinema-next { right: 12px; }
  html body .cf-shared-gallery .cf-cinema-hit { bottom: calc(var(--cf-caption-height, 40px) + 26px) !important; }
}

/* Prevent browser focus/touch decoration around the floating artwork. */
html body .cf-cinema,
html body .cf-cinema .cf-cinema-stage,
html body .cf-cinema .cf-cinema-frame,
html body .cf-cinema .cf-cinema-stage img {
  outline: 0 !important; border: 0 !important; box-shadow: none !important;
}
html body .cf-cinema, html body .cf-cinema * {
  -webkit-tap-highlight-color: transparent;
}
