:root {
  --heading-color: rgba(255, 255, 255, 0.5);
  --background-color: #28201b;
  --gallery-color: #90c865;
  --text-color: rgba(255, 255, 255, 0.5);
  --link-color: #ffffff;
  --hover-color: #90c865;
  --border-radius: 0.25em;
  --footer-text-color: rgba(255, 255, 255, 0.2);
  --footer-hr-color: rgba(255, 255, 255, 0.1);
}

@font-face {
  font-family: BlackArcade;
  src: url('/fonts/black-arcade.otf');
}

/* Defaults */
/* Defaults */
/* Defaults */

* {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}

body {
  font-size: 1em;
  color: var(--text-color);
  /*background-image: url("/images/background.png");*/
  background-color: var(--background-color);
  /*font-family: 'Courier New', Courier, monospace;*/
  font-family: Arial, sans-serif;
}

a {
  text-decoration: none;
  color: var(--link-color);
  transition: color 0.3s ease;
  cursor: pointer;
}

a:hover {
  color: var(--hover-color);
  /*text-decoration: underline;*/
}

/* Container setup */
/* Container setup */
/* Container setup */

.container {
  margin: auto auto;
  width: 60%;
}

.content {
  padding-top: 1em;
}

/* LOGO */
/* LOGO */
/* LOGO */

.logo {
  display: grid;
  grid-template-rows:  auto auto;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 0;
  padding: 0;
  margin: 0;
}

.logo-image {
  grid-row: 1;
  grid-column: 1 / -1;
  margin-bottom: 1em;
  padding: 1em;
}

.logo-text {
  grid-row: 2;
  grid-column: 1 / -1;
  margin: auto 0;
  text-align: center;

  h1, h2, h3 {
    color: var(--heading-color);
    margin: 0;
    padding: 0;
  }

  h1 {
    font-family: BlackArcade, Arial, sans-serif;
  }
}

/* Main layout */
/* Main layout */
/* Main layout */

.about {
   width: 20%;
   float: left;
   padding: 0.5em;

   text-align: center;

   p {
     margin-top: 1em;
     margin-bottom: 1em;
   }
}

.gallery {
  width: 80%;
  float: left;
}

/* Gallery setup */
/* Gallery setup */
/* Gallery setup */


/* gallery rounded edge defaults */
.gallery-item,
.gallery-grid,
.gallery-main,
.gallery-dimmer,
.gallery-image {
  border-radius: var(--border-radius);
}

/* clearfix */
.gallery:after {
  content: '';
  display: block;
  clear: both;
}

.container:after {
  content: '';
  display: block;
  clear: both;
}

/* Gallery item setup */
/* Gallery item setup */
/* Gallery item setup */

.gallery-item {
  color: var(--gallery-color);
  float: left;
  width: 16.6%;
}

.gallery-grid {
  padding: 0.5em;
}

.gallery-main {
}

.gallery-image {
  width: 100%;
  display: block;
  cursor: pointer;
  box-shadow: 5px 5px 10px 0 rgba(0, 0, 0, 0.2);
   /*filter: drop-shadow(5px 5px 5px black);*/
}

/* selector to control visibility of hover ui */
.gallery-hover {
  display: none;
}

.gallery-dimmer {
  background: rgba(0, 0, 0, 0.6);
  display: none;
  cursor: pointer;
}

/* Gallery skeleton setup */
/* Gallery skeleton setup */
/* Gallery skeleton setup */

.gallery-skeleton {
  padding: 0.5em;
  border-radius: var(--border-radius);

  div {
    background: #bbb;
    width: 100%;
    height: 200px;
    border-radius: var(--border-radius);
  }
}

/* Gallery grid setup */
/* Gallery grid setup */
/* Gallery grid setup */

.gallery-grid {
  display: grid;
  grid-template-columns: auto;
  grid-template-rows: auto;
  grid-gap: 0;
}

.gallery-dimmer {
  grid-row: 1 / -1;
  grid-column: 1 / -1;
  z-index: 10;
}

.gallery-main {
  grid-row: 1 / -1;
  grid-column: 1 / -1;
}

/* Focus overlay setup */
/* Focus overlay setup */
/* Focus overlay setup */

/* overlay padding defaults */
.focus-overlay-main {
  padding: 0.5em;
}

/* overlay rounded edge defaults */
.focus-overlay-item,
.focus-overlay-image {
  border-radius: var(--border-radius);
}

#focus-overlay-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  z-index: 1000;

  overflow: scroll;
  overscroll-behavior: contain;

  display: none;
}

.focus-overlay-item {
  background: var(--gallery-color);
  color: var(--text-color);
  padding: 0.5em;
  font-size: 1em;

  margin: auto auto;
  height: auto;

  object-fit: contain;
  width: 33%;
}

.focus-overlay-main {
}

.focus-overlay-image {
  width: 100%;
  display: block;
  cursor: pointer;
}

/* Footer */
/* Footer */
/* Footer */

.footer {
  font-size: 0.8em;
  color: var(--footer-text-color);
  margin: 2em 0;
  border-top: 1px solid var(--footer-hr-color);
}

.footer-content {
  padding: 0.5em;
}


/* Column Layout with Responsive Design */
/* Column Layout with Responsive Design */
/* Column Layout with Responsive Design */

/* 1 COLUMN */

@media screen and (max-width: 320px) {
  body {
    font-size: 0.9em;
  }

  .about {
    width: 100%;
  }

  .gallery {
    width: 100%;
  }

  .container {
    width: 100%;
  }

  .gallery-item {
    width: 100%;
  }

  .focus-overlay-item {
    width: 100%;
  }

  .page-overlay-item {
    width: 100%;
  }
}

/* 2 COLUMN */

@media screen and (min-width: 321px) and (max-width: 750px) {
  body {
    font-size: 1.1em;
  }

  .about {
    width: 100%;
  }

  .gallery {
    width: 100%;
  }

  .container {
    width: 100%;
  }

  .gallery-item {
    width: 50%;
  }

  .focus-overlay-item {
    width: 95%;
  }

  .page-overlay-item {
    width: 95%;
  }
}

/* 3 COLUMN */

@media screen and (min-width: 751px) and (max-width: 1200px) {
  body {
    font-size: 1.1em;
  }

  .about {
    width: 40%;
  }

  .gallery {
    width: 60%;
  }

  .container {
    width: 100%;
  }

  .gallery-item {
    width: 33.33%;
  }

  .focus-overlay-item {
    width: 60%;
  }

  .page-overlay-item {
    width: 66.66%;
  }
}

/* 4 COLUMN */

@media screen and (min-width: 1201px) and (max-width: 1700px) {
  body {
    font-size: 1.1em;
  }

  .about {
    width: 25%;
  }

  .gallery {
    width: 75%;
  }

  .container {
    width: 90%;
  }

  .gallery-item {
    width: 25%;
  }

  .focus-overlay-item {
    width: 50%;
  }

  .page-overlay-item {
    width: 50%;
  }
}

/* 5 COLUMN */

@media screen and (min-width: 1701px) and (max-width: 2250px) {
  body {
    font-size: 1.1em;
  }

  .about {
    width: 20%;
  }

  .gallery {
    width: 80%;
  }

  .container {
    width: 80%;
  }

  .gallery-item {
    width: 20%;
  }

  .focus-overlay-item {
    width: 40%;
  }

  .page-overlay-item {
    width: 40%;
  }
}

/* 5 COLUMN (wide) */

@media screen and (min-width: 2251px) {
  body {
    font-size: 1.1em;
  }

  .about {
    width: 20%;
  }

  .gallery {
    width: 80%;
  }

  .container {
    width: 70%;
  }

  .gallery-item {
    width: 20%;
  }

  .focus-overlay-item {
    width: 30%;
  }
}
