/* Global Formating - Start */
html,
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden; /* avoid x scroll or bounce on mobile */
}
body {
  height: 100%;
}
footer {
  text-align: center;
}
footer p {
  line-height: 16px;
  margin: 0 auto 0;
}
small {
  line-height: 16px;
}

p {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
}

h1,
h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
}

/* Page styling */
#header-main nav {
  display: flex;
}
#header-main nav h1 {
  flex-grow: 2;
  font-size: 20px;
  margin: 50px 0 40px 0px;
}
#header-main nav img {
  height: 50px;
  margin: 25px 0;
  flex-grow: 1;
  border-radius: 50px;
}

#header-main nav ul {
  justify-self: end;
}

#header-main nav ul li {
  display: inline-block;
  list-style: none;
  justify-self: end;
  margin: 40px 40px 40px 0px;
}

#header-main nav ul li a {
  color: #111111;
  font-family: Arial, Helvetica, sans-serif;
  text-decoration: none;
  text-transform: uppercase;
}
#header-main nav ul li a:hover {
  opacity: 0.7;
}
main {
  max-width: 90vw;
  margin: auto;
}
#index-gallery {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1em;
  margin: auto;
}
#index-gallery h2 {
  margin: 0;
}
.gallery-img {
  width: 350px;
  height: 450px;
  background-repeat: no-repeat;
  background-position-x: center;
  object-fit: contain;
  cursor: pointer;
}
/* Gallery image titles */

.gallery-img div {
  width: 100%;
  height: 100%;
  background-color: #000000;
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery-img div:hover {
  opacity: 0.8;
  transition: all ease-in-out 100ms;
}

.gallery-img a {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
}
/* Popup window when clicked */
.img-window {
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  position: fixed;
  top: 0;
  left: 0;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.img-window img {
  max-height: 80vh;
  max-width: 80vw;
}

/* Images */

#index-gallery .img-1 {
  grid-area: img1;
  background-image: url("../img/thumbs/img1.jpg");
  background-position-y: center;
}

#index-gallery .img-2 {
  grid-area: img2;
  background-image: url("../img/thumbs/img2.jpg");
}

#index-gallery .img-3 {
  grid-area: img3;
  background-image: url("../img/thumbs/img3.jpg");
}

#index-gallery .img-4 {
  grid-area: img4;
  background-image: url("../img/thumbs/img4.jpg");
  background-position-y: center;
}

#index-gallery .img-5 {
  grid-area: img5;
  background-image: url("../img/thumbs/img5.jpg");
  background-position-y: center;
}

#index-gallery .img-6 {
  grid-area: img6;
  background-image: url("../img/thumbs/img6.jpg");
  background-position-y: bottom;
}

#index-gallery .img-7 {
  grid-area: img7;
  background-image: url("../img/thumbs/img7.jpg");
  background-position-y: center;
}
@media (min-width: 800px) {
  #index-gallery {
    max-width: 800;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-gap: 10px;
    grid-template-areas:
      "gallery-p gallery-p"
      "gallery-h2 gallery-h2"
      "img1 img2"
      "img3 img4"
      "img5 img6"
      "img7 .";
  }
  .gallery-img {
    justify-self: center;
  }
}

/* Gallery container */
@media (min-width: 1250px) {
  #header-main nav {
    max-width: 900px;
    margin: auto;
  }
  #index-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: auto;
    grid-gap: 10px;
    grid-template-areas:
      "gallery-p gallery-p gallery-p gallery-p"
      "gallery-h2 gallery-h2 gallery-h2 gallery-h2"
      "img1 img2 img3 img4"
      "img5 img6 img3 img7";
  }
  #index-gallery .img-3 {
    grid-row-start: 3;
    grid-row-end: 5;
    height: 710px !important;
  }
  #index-gallery .gallery-img {
    width: 100%;
    height: 350px;
    cursor: pointer;
  }

  #index-gallery p {
    grid-area: gallery-p;
  }

  #index-gallery h2 {
    grid-area: gallery-h2;
    padding-bottom: 10px;
  }
  /* Next image */

  .img-btn-next {
    display: block;
    padding: 6px 10px;
    border-radius: 4px;
    background-color: #111111;
    position: fixed;
    top: 48vh;
    z-index: 500;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #ffffff;
    cursor: pointer;
    text-transform: uppercase;
  }

  .img-btn-next:hover {
    opacity: 0.8;
  }

  .img-btn-prev {
    display: block;
    padding: 6px 10px;
    border-radius: 4px;
    background-color: #111111;
    position: fixed;
    top: 48vh;
    z-index: 500;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #ffffff;
    cursor: pointer;
    text-transform: uppercase;
  }

  .img-btn-prev:hover {
    opacity: 0.8;
  }
}
.videoGallery {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 1em;
}
.videoTall {
  display: block;
  aspect-ratio: 9/16;
  padding: 1em;
}

@media (max-width: 800px) {
  .VideoGallery {
    flex-direction: column;
  }
}
.center {
  text-align: center;
  margin: auto;
}

iframe {
  width: 200px;
  height: 350px;
  aspect-ratio: 16/9;
  object-fit: contain;
  background-color: transparent;
}

h1 {
  font-size: 2em;
  margin: 1em 0 1em 0;
  text-align: center;
}

/* iphone design */
@media screen and (max-width: 440px) {
  h1 {
    margin-top: 2em;
    font-size: 18px;
  }
  h2 {
    font-size: 16px;
  }
}
/* iphone design */
@media screen and (max-width: 300px) {
  h1 {
    margin-top: 1em;
    margin-bottom: 0.5em;
  }
}
