html {
  margin: 0;
  padding: 0;
}

body {
  width: 100vw;
}

body, body * {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

body[fullbleed] {
  min-height: 100vh;
}


/* FLEX */
[flex], [in-flex] > * {
  flex: 1;
}

[no-flex] {
  flex: none;
}

/* ALIGN */
[start] {
  align-self: flex-start;
}

[end] {
  align-self: flex-end;
}

[center] {
  align-self: center;
}

[in-end] {
  align-items: flex-end;
}

[in-start] {
  align-items: flex-start;
}

[in-center] {
  align-items: center;
}

[space-center] {
  justify-content: center;
}

[space-around] {
  justify-content: space-around;
}

[space-between] {
  justify-content: space-between;
}

[space-evenly] {
  justify-content: space-evenly;
}

[wrap] {
  flex-flow: wrap;
}

/************************** VBOX **************************/

[vbox] > [m-auto] {
  margin-top: auto;
}

[vbox] > img {
  max-width: 100%;
  object-fit: scale-down;
}

/************************** HBOX **************************/

body[hbox] {
  min-height: 100vh;
}

[hbox] {
  flex-direction: row;
  align-items: stretch;
}

[hbox] > [m-auto] {
  margin-left: auto;
}

[hbox] > img {
  max-height: 100%;
  object-fit: scale-down;
}

/************************** OVERLAY **************************/

body.show-overlay {
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}

.show-overlay::after {
  content: '';
  min-width: 100vw;
  min-height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 300;
  position: fixed;
}

[overlay] {
  position: absolute;
  z-index: 301;
}




@media (max-width: 1024px) {
  [md-vbox]{
    flex-direction: column;
    align-items: center;
  }
}