@import url("normalize.css");
@import url("colors.css");
@import url("buttons.css");
@import url("text.css");
@import url("lists.css");
@import url("forms.css");
@import url("tables.css");
@import url("slideshow.css");
@import url("dropdown.css");
@import url("navbar.css");
@import url("sidebar.css");
@import url("modal.css");
@import url("gallery.css");

*,
::before,
::after {
  box-sizing: inherit;
  padding: 0;
  margin: 0
}

:root {

  box-sizing: border-box;
  width: 100vw;
  height: 100vh;

  /* Font Family */
  font-family: "Helvetica";

  --text-indent: 0;

  /* When Using Grid Templates */
  /*  --template:
    "navbar" "navbar" "navbar"
    "header" "header" "header"
    "main" "main" "main"
    "footer" "footer" "footer";

  --subgrid-columns: 3;
  --gallery-columns: 5;*/

  /*  --header-h: 14vh;
  --logo-h: 10vh;
  --navbar-h: 4vh;
  --footer-h: 8vh;
  --main-h: calc(100vh - var(--header-h) - var(--navbar-h) - var(--footer-h));
  --sidebar-w: 25vw;*/

  /* For non-rounded elements set to 0 */
  /*  --border-radius: 0.25em;
  --border-size: 0.1em;

  --navbar-tab-style: var(--border-radius) var(--border-radius) 0 0;
  --navbar-link-style: 0;*/

}

html {
  color: var(--text-color);
  background-color: var(--background-color);
}

body {
  width: 100vw;
  height: 100vh;
}

body.grid {
  display: grid;
  grid-template-areas: var(--template);
  grid-template-rows: auto;
  grid-gap: var(--gap-size);
}

header,
main,
footer {
  border: none;
  outline: none !important;
  margin: 0;
  padding: 1em 1.5em;
}

header {
  grid-area: header;
  column-span: all;
  width: 100vw;
  height: var(--header-h);
  display: inline-flex;
  align-items: center;
  background-color: var(--header-color);
  z-index: 100;
}

header.sticky {
  position: sticky;
  top: 0;
}

header.fixed {
  position: fixed;
  top: 0;
}

header.bordered {
  border-top: none;
  border-right: none;
  border-left: none;
  border-bottom: var(--border-size) solid var(--border-color);
}

main {
  grid-area: main;
  column-span: all;
  width: 100vw;
  min-height: var(--main-h);
  background-color: var(--main-color);
  overflow-y: auto;
}

footer {
  grid-area: footer;
  column-span: all;
  width: 100vw;
  height: var(--footer-h);
  display: inline-flex;
  align-items: center;
  font-size: var(--font-075);
  background-color: var(--footer-color);
  z-index: 100;
}

footer.bordered {
  border-top: var(--border-size) solid var(--border-color);
  border-bottom: none;
  border-right: none;
  border-left: none;
}

footer.sticky {
  position: sticky;
  bottom: 0;
}

footer.fixed {
  position: fixed;
  bottom: 0;
}

.grid.container {
  display: grid;
  width: 100vw;
  grid-template-areas: var(--template);
  grid-template-rows: auto;
  grid-gap: var(--gap-size);
}

.grid .subgrid {
  display: grid;
  width: max(width, 100% / var(--subgrid-columns));
  grid-template-columns: repeat(var(--subgrid-columns), 1fr);
  column-fill: balance;
  grid-gap: 1em;
  padding: 0;
  overflow-y: auto;
  text-align: justify;
}

.grid .subgrid>.full-width {
  grid-column: 1 / span var(--subgrid-columns);
}

.grid .subgrid.two-columns {
  width: max(width, 100% / 2);
  grid-template-columns: repeat(2, 1fr);
}

.grid .subgrid.two-columns>.full-width {
  grid-column: 1 / span 2;
}

.grid>.section {
  grid-area: section;
  min-height: var(--main-h);
  padding: 2em;
  overflow-y: auto;
}

.container {
  width: 100%;
  min-height: calc(var(--main-h) - 3em);
  /*  min-height: 100%;*/
  padding: 2em;
  align-content: left;
  overflow-y: auto;
  margin-bottom: 1em;
}

.container.centered {
  display: flex;
  align-items: center;
  margin: auto;
  padding: auto;
  text-align: center;
  margin-bottom: 1em;
}

.panel {
  margin-top: 0;
  padding: 0em 0.5em;
  font-size: var(--font-100);
  border-radius: var(--border-radius);
  overflow-y: auto;
  text-align: justify;
}

.panel>h1,
.panel>h2,
.panel>h3 {
  margin-top: 0;
  font-size: var(--font-075);
  font-weight: bold;
  text-transform: uppercase;
}


.panel>.image {
  max-width: 25em;
  margin-right: 1em;
  padding: 0.25em;
  float: inline-start;
  clear: both;
  font-size: var(--font-065);
  text-align: right;
}

.image>img {
  margin-bottom: 0.25em;
  aspect-ratio: initial !important;
}


.tile {
  width: 100%;
  max-height: var(--main-h);
  margin: 1em 0;
  /*  padding: 1.5em;*/
  font-size: var(--font-100);
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  overflow-y: auto;
  text-align: justify;
}

.tile>h1,
.tile>h2,
.tile>h3 {
  margin-top: 0.25em;
  font-size: var(--font-085);
  font-weight: bold;
  text-transform: uppercase;
}

.tile>img {
  max-width: 100%;
  margin-bottom: 1em;
  padding: 0.1em;
  float: inline-start;
  clear: both;
}

.tile.full-width>img {
  margin-right: 1em;
  margin-bottom: 0;
}


.tile-overlay {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
}

.tile-overlay a {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
  height: inherit;
  width: inherit;
  opacity: 0;
  transition: .5s ease;
  background-color: var(--overlay-color);
}

.tile-overlay a>span {
  color: var(--overlay-text-color);
  font-size: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: center;
}

.tile-overlay a:hover {
  opacity: 0.85;
}

.unpadded {
  padding: 0 !important;
}

.full-width {
  width: 100% !important;
}

.half-width {
  width: 50% !important;
}

.one-third-width {
  width: 33% !important;
}

.centered {
  margin: auto;
  text-align: center;
  justify-content: center;
}

.pulled-right {
  float: right;
  clear: right;
  text-align: right;
  margin-left: 0.5em;
}

.absolute-right {
  position: absolute;
  right: 2em;
  text-align: right;
  justify-content: right;
}


.absolute-bottom-center {
  position: absolute;
  left: 50vw;
  text-align: center;
  justify-content: center;
  bottom: 1em;
}

.absolute-bottom-right {
  position: absolute;
  right: 2em;
  text-align: right;
  justify-content: right;
  bottom: 1em;
}

.absolute-bottom-left {
  position: absolute;
  left: 2em;
  text-align: left;
  justify-content: left;
  bottom: 1em;
}

.hidden {
  display: none !important;
}

.rounded {
  border-radius: var(--border-radius) !important;
}

.bordered {
  border: var(--border-size) solid var(--border-color);
}

.no-border {
  border: none !important;
}

.outlined {
  outline: var(--border-size) solid var(--border-color);
}

.shadowed {
  box-shadow: 0 0 0.75em 0.25em var(--shadow-color);
}

.backlit {
  box-shadow: 0 0 0.75em 0.25em var(--backlite-color);
}

/* Animation */
.fade-in {
  animation-name: fade-in;
  animation-duration: 1s;
}

@keyframes fade-in {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

@keyframes fade-out {
  from {
    opacity: 1
  }

  to {
    opacity: 0
  }
}


@media (max-width: 35em) {

  :root {
    --subgrid-columns: 1;
    --gallery-columns: 1;
    --sidebar-w: 100vw;
  }

  .hide-s {
    display: none;
  }

  .column {
    margin-left: 0;
  }

  .column:first-child {
    margin-left: 0;
  }
}


@media (min-width: 35.0625em) and (max-width: 55em) {

  :root {
    --subgrid-columns: 1;
    --gallery-columns: 3;
    --sidebar-w: 35vw;
  }

  .hide-m {
    display: none;
  }

  .column {
    margin-left: 0;
  }

  .column:first-child {
    margin-left: 0;
  }
}

@media (min-width: 55.0625em) {

  :root {
    --subgrid-columns: 3;
    --gallery-columns: 5;
    --sidebar-w: 25vw;
  }


  .hide-l {
    display: none;
  }


  .columns {
    display: flex;
    column-gap: 1em;
  }

  .column:first-child {
    margin-left: 0;
  }

  .column.x1 {
    width: 6.5%;
  }

  .column.x2 {
    width: 15%;
  }

  .column.x3 {
    width: 23.5%;
  }

  .column.x4 {
    width: 32%;
  }

  .column.x5 {
    width: 40, 5;
  }

  .column.x6 {
    width: 49%;
  }

  .column.x7 {
    width: 57.5%;
  }

  .column.x8 {
    width: 66%;
  }

  .column.x9 {
    width: 74.5%;
  }

  .column.x10 {
    width: 83%;
  }

  .column.x11 {
    width: 91.5%;
  }

  .column.x12 {
    width: 100%;
    margin-left: 0;
  }

  .column.one-third {
    width: 32%;
  }

  .column.two-thirds {
    width: 66%;
  }

  .column.one-half {
    width: 49%;
  }

  /* Offsets */
  .column.offset-by-one {
    margin-left: 8.5%;
  }

  .column.offset-by-two {
    margin-left: 17%;
  }

  .column.offset-by-three {
    margin-left: 25.5%;
  }

  .column.offset-by-four {
    margin-left: 34%;
  }

  .column.offset-by-five {
    margin-left: 42.5%;
  }

  .column.offset-by-six {
    margin-left: 51%;
  }

  .column.offset-by-seven {
    margin-left: 59.5%;
  }

  .column.offset-by-eight {
    margin-left: 68%;
  }

  .column.offset-by-nine {
    margin-left: 76.5%;
  }

  .column.offset-by-ten {
    margin-left: 85%;
  }

  .column.offset-by-eleven {
    margin-left: 93.5%;
  }

  .column.offset-by-one-third {
    margin-left: 34.6666666667%;
  }

  .column.offset-by-two-thirds {
    margin-left: 69.3333333333%;
  }

  .column.offset-by-one-half {
    margin-left: 52%;
  }
}

/* Self Clearing Goodness */
.container:after,
.row:after,
.clear-float {
  content: "";
  display: table;
  clear: both;
}
