* {
  margin: 0;
  padding: 0;
}

:not(:defined)>* {
  display: none;
}

body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
}

#container {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 50% 50%;
  grid-template-rows: 10% 80% 10%;
  grid-template-areas:
    'castle context'
    'model model'
    'logo1 logo2';
  grid-gap: 0;
  overflow: hidden;
}

#castle,
#context {
  font-family: Futura, Helvetica Neue, sans-serif;
  font-weight: 100;
  background-color: transparent;
  align-self: center;
}

#castle {
  grid-area: castle;
  padding-left: 1rem;
  font-size: 0.5rem;
}

#context {
  grid-area: context;
  padding-right: 1rem;
  text-align: right;
  align-self: center;
  font-size: 0.7rem;
  color: rgb(230, 75, 30);
}

#logo1 {
  grid-area: logo1;
}

#logo2 {
  grid-area: logo2;
}

#logo1 img {
  height: 100%;
}

#logo2 {
  align-self: center;
  text-align: right;
}

#logo2 img {
  height: 50px;
  margin-right: 1rem;
}

body.elementor-page #castle,
body.elementor-page #logo1,
body.elementor-page #logo2 {
  display: none;
}

#model {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: transparent;
}

model-viewer {
  height: 100%;
  width: 100%;
}

.Hotspot {
  height: 7px;
  width: 7px;
  padding: 2px;
  background: #fff;
  border-radius: 32px;
  border: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
  cursor: pointer;
  position: relative;
  transition: opacity 0.3s;
}

.Hotspot:not([data-visible]) {
  height: 7px;
  width: 7px;
  background: transparent;
  border: 0px solid #fff;
  box-shadow: none;
  pointer-events: none;
  opacity: 0;
}

.Hotspot:focus {
  height: 7px;
  width: 7px;
  border: 1px solid rgb(0, 128, 200);
  outline: none;
}

.Hotspot>* {
  opacity: 1;
  transform: translateY(-50%);
}

.HotspotAnnotation {
  font-size: 10px;
  /*--------------------------------------------- Taille police */
  padding: 0.2em 0.2em;
  left: calc(100% + 0.5em);
  background: rgba(255, 255, 2550, 0.5);
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  color: rgba(0, 0, 0, 0.8);
  display: block;
  font-family: Futura, Helvetica Neue, sans-serif;
  font-weight: 100;
  max-width: 128px;
  overflow-wrap: break-word;
  position: absolute;
  top: 50%;
  width: max-content;
}

.Hotspot:not([data-visible])>* {
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(-50% + 4px));
  transition: transform 0.3s, opacity 0.3s;
}

*[id~="ar-button"],
*[class~="ar-button"] {
  display: none !important;
}