/*
Theme Name: Hub Canvas
Theme URI: https://example.local/
Author: Samuel Craissac
Description: Theme minimal plein écran pour afficher un shortcode sans header, footer, marge ni conteneur.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: hub-canvas
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
}

body {
  position: fixed;
  inset: 0;
  overflow-x: hidden;
  background: #fff;
}

.hub-canvas-page,
.hub-canvas-content,
.hub-canvas-content > * {
  width: 100%;
  max-width: none;
}

.hub-canvas-page {
  height: 100vh;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.hub-canvas-content {
  display: block;
  height: 100vh;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.hub-canvas-content > * {
  margin: 0 !important;
}

.hub-canvas-content > p:empty {
  display: none;
}

.hub-canvas-content > p,
.hub-canvas-content > .wp-block-shortcode,
.hub-canvas-content > .wp-block-html {
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  padding: 0 !important;
}

.hub-canvas-content .alignwide,
.hub-canvas-content .alignfull {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

.hub-canvas-content > .hub-app,
.hub-canvas-content .wp-block-shortcode > .hub-app,
.hub-canvas-content .wp-block-html > .hub-app {
  width: 100vw !important;
  max-width: none !important;
  height: 100vh !important;
  min-height: 100vh !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.hub-canvas-content .hub-app-v2 {
  grid-template-rows: 100vh;
}

.hub-canvas-content .hub-sidebar,
.hub-canvas-content .hub-content {
  min-height: 0;
  overflow: auto;
}

.hub-canvas-content .hub-shell {
  min-height: 0;
  overflow: hidden;
}
