@import url("https://fonts.googleapis.com/css?family=Spectral");
body {
  background-color: #333333;
  text-align: center;
  color: white;
  font-family: "Spectral", serif;
  margin: 0em 6em 1em 6em;
  max-width: 1280px;
}

@media all and (min-width: 1190px) {
  body {
    margin: 0 auto;
  }
}

header {
  text-align: left;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 0.5px solid white;
  margin-bottom: 2em;
  margin-top: 2em;
  box-sizing: border-box;
  height: 5em;
  white-space: nowrap;
}

header > section {
  display: flex;
  align-items: center;
}

header a {
  text-decoration: none;
  padding: 0 16px;
}

nav {
  color: grey;
}

h1 {
  font-size: 2.1em;
  margin-bottom: 0.4em;
  margin-top: 0;
}

h1 > a:hover,
h1 > a:focus {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.4s;
  border-radius: 15px;
}

h2 {
  margin-left: 2em;
  margin-bottom: 7px;
  margin-top: 0;
  font-style: italic;
}

a {
  color: inherit;
}

a:hover {
  opacity: 0.7;
}

#fotogallery h2 {
  text-align: left;
}

hr {
  border-color: #191919;
}

main {
  margin: 2em auto;
  max-width: 1100px;
}

main img {
  margin: 10px;
}

main img:hover {
  transform: scale(1.05);
  transition: all 0.5s;
}

footer {
  border-top: 0.5px solid white;
  height: 3em;
  text-align: right;
  padding-top: 0.8em;
  padding-top: 0.8em;
  font-size: 1.5em;
}

/* ********************** RESPONSIVITY *************************** */

@media only screen and (max-width: 1190px) {
  .gallery-container a {
    flex-basis: 25%;
  }
}

@media all and (max-width: 1190px) {
  body * {
    text-align: center !important;
  }
  header {
    flex-direction: column;
    border-bottom: none;
    height: auto;
  }

  header > section {
    flex-direction: column;
    border-bottom: 0.5px solid white;
    margin-bottom: 2rem;
  }

  nav {
    text-align: center;
    display: flex;
    flex-direction: column;
  }

  h2 {
    margin-left: 0;
    margin-bottom: 1rem;
  }

  header a {
    margin: 0.1em 0.2em 0em 0.4em;
  }
}

@media all and (min-width: 918px) {
  header > section {
    width: 80%;
  }
}

@media all and (max-width: 768px) {
  body {
    margin: 0em 3em 1em 3em;
  }
}

/* ********************** CLASSES *************************** */

.button {
  line-height: 50px;
  height: 50px;
  text-align: center;
  cursor: pointer;
  padding-left: 30px;
  padding-right: 30px;
  color: red;
}

.button__link {
  color: #fff;
  transition: all 0.3s;
  position: relative;
  bottom: 5px;
}

.button__link span {
  transition: all 0.3s;
}

.button::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
  transition: all 0.3s;
  border-top-width: 1px;
  border-bottom-width: 1px;
  border-top-style: solid;
  border-bottom-style: solid;
  border-top-color: #fff;
  border-bottom-color: #fff;
  transform: scale(0.1, 1);
}

.button__link:hover span {
  letter-spacing: 2px;
  color: #fff !important;
}

.button__link:hover::before {
  opacity: 1;
  transform: scale(1, 1);
}

.button__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transition: all 0.3s;
  background-color: rgba(255, 255, 255, 0.1);
}

.button__link:hover::after {
  opacity: 0;
  transform: scale(0.1, 1);
}

.text-shadow-box {
  padding: 20px 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  margin-bottom: 2rem;
}

@media all and (min-width: 1190px) {
  .text-shadow-box {
    margin-right: 0;
  }
}

.text-shadow-box__list {
  padding: 20px;
}

.text-shadow-box__list__item {
  text-align: left !important;
}
 
.link:hover {
  text-decoration: none;
}

.gallery-item img:hover {
  transform: scale(1.1);
  transition: all 0.3s;
}

.gallery-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  flex-direction: row;
}

.gallery-container a {
  flex-basis: 33.3333%;
  color: transparent;
}

.gallery-item {
  border-radius: 16px;
}

.wrapper {
  display: flex;
  flex-direction: column;
}

@media all and (min-width: 1190px) {
  .wrapper {
    flex-direction: row;
  }
}
