@import url('https://fonts.googleapis.com/css2?family=Caudex&display=swap');

*{
  margin: 0; padding: 0;
  box-sizing: border-box;
  font-family: 'Caudex', sans-serif;
}

/* Body */
body {
  background-color: black;
  color: Crimson;
  margin: 0;
  padding: 0;
  padding-bottom: 32px;
}

/* Header */
header {
  margin: auto;
  padding: 0px;
  padding-top: 16px;
  text-align: center;
  background-color: black;
}

h1 {
  margin: 0;
  font-size: 48px;
}

h2 {
  margin: 0;
  font-size: 24px;
}

h3 {
  margin: 0;
  font-size: 20px;
}

/* Navigation */
nav {
  margin: auto;
  width: 100%;
  background-color: black;
  border-bottom: 1px solid Crimson;
  /*box-shadow: 0px 16px 16px -12px Crimson;*/
  position:-webkit-sticky;
  position:sticky;
  top: 0;
  left: 0;
  padding-top: 8px;
  padding-bottom: 8px;
}

/*
  -webkit-animation: glow 1s ease-in-out infinite alternate;
  -moz-animation: glow 1s ease-in-out infinite alternate;
  animation: glow 1s ease-in-out infinite alternate;
}

@-webkit-keyframes glow {
  from {
    box-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #e60073, 0 0 40px #e60073, 0 0 50px #e60073, 0 0 60px #e60073, 0 0 70px #e60073;
  }
  to {
    box-shadow: 0 0 20px #fff, 0 0 30px #ff4da6, 0 0 40px #ff4da6, 0 0 50px #ff4da6, 0 0 60px #ff4da6, 0 0 70px #ff4da6, 0 0 80px #ff4da6;
  }
}


@-webkit-keyframes glow {
  from {
    box-shadow: 0 16px 12px -12px Crimson, 0 16px 20px -20px Crimson, 0 16px 30px -30px Crimson, 0 16px 40px -40px Crimson, 0 16px 50px -50px Crimson, 0 16px 60px -60px Crimson, 0 16px 70px -70px Crimson;
  }

  to {
    box-shadow: 0 16px 12px -12px Gold, 0px 16px 16px -16px Gold, 0 16px 32px -32px Gold, 0 16px 50px -50px Gold, 0 16px 60px -60px Gold, 0 16px 70px -70px Gold, 0 16px 80px -80px Gold;
  }
}

*/

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
}

nav ul li {
  margin: 0 10px;
}

nav ul li a {
  color: Crimson;
  font-size: 20px;
  text-decoration: none;
  transition: color 0.1s;
}

nav ul li a:hover {
  color: Gold;
  text-shadow: 0 0 14px Gold;
}

div.sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  padding: 50px;
}

content {
  align-self: center;
  font-size: 20px;
  color: GreenYellow;
  text-shadow: 0 0 8px Black;
  border-radius: 5px;
}

footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: black;
  color: Crimson;
  text-align: right;
  border-top: 1px solid Crimson;
  /*box-shadow: 0px 0px 16px 4px Crimson;*/
}

#linksbelow {
  align-self: center;
  font-size: 20px;
  color: GreenYellow;
  text-shadow: 0 0 8px Black;
  margin: 8px 0px 8px 0px;
  padding: 10px;
}


/* The container <div> - needed to position the dropdown content */
.dropdown {
  display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: black;
  min-width: 120px;
  z-index: 1;
  text-align: right;
  align-items: center;
  overflow: auto;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: red;
  padding: 0px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
  background-color: black;
  color: gold;
  text-shadow: 0 0 14px gold;
  transition: color 0.1s;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}





/* Containers */
.wrapper {
  margin: auto;
  width: 70%;
  border-radius: 5px;
  text-align: center;
  padding-top: 16px;
}

.container-3column{
  columns: 3 250px;
}

.container-3column .item-containerZ img{
  margin-bottom: 8px;
  border-radius: 4px;
  width: 100%;
  gap:16px;
}

.grid-container {
  display: grid;
  grid-template-columns: 10% 10% 10%;
  grid-gap: 16px;
  justify-content: center;
}

.grid-container-center {
  margin: auto;
  display: grid;
  max-width: 80%;
}

.grid-container-item {
  grid-column: span 1;
  grid-row: span 1;
}


.grid-container-2 {
  display: grid;
  grid-template-columns: 15% 15%;
  grid-gap: 16px;
  justify-content: center;
}

.grid-container-item-2 {
  grid-column: span 2;
  grid-row: span 1;
}



/* Image Gallery */
.grid-gallery {
  display: grid;
  grid-auto-rows: 32vh;
  grid-auto-flow: dense;
  align-items: stretch;
  justify-content: center;
  gap: 1rem;
  margin: 16px;
}

@media all and (min-width: 320px) {
  .grid-gallery {
    grid-template-columns: repeat(32vh, 1fr);
  }
  .grid-container {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media all and (min-width: 1024px) {
  .grid-gallery {
    grid-template-columns: repeat(auto-fit, minmax(32vh, 1fr));
  }
  .grid-container {
    grid-template-columns: repeat(3 , 1fr);
  }
}

.grid-gallery__item_1 {
  grid-column: span 1;
  grid-row: span 1;
}

.grid-gallery__item_2h {
  grid-column: span 2;
  grid-row: span 1;
}

.grid-gallery__item_2v {
  grid-column: span 1;
  grid-row: span 2;
}

.grid-gallery__item_4 {
  grid-column: span 2;
  grid-row: span 2;
}

.grid-gallery__item_5 {
  grid-column: span 3;
  grid-row: span 2;
}

.grid-gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
}

.grid-gallery__imagelink {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
}

/* Image Modal */
.modal {
  display: none;
  position:fixed;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: auto;
}

.modal-content {
  display:block;
  justify-content: center;
  align-items: center;
  align-self: center;
  margin:auto;
  max-height: 90%;
  max-width: 90%
}

.modal-img {
  display: block;
  max-width: 90%;
  max-height: 90%;
  justify-content: center;
  align-self: center;
  border-radius: 1px;
}

.close {
  color: red;
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: gold;
}

.prev,
.next {
  color: red;
  position: absolute;
  top: 50%;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  transform: translateY(-50%);
}

.prev:hover,
.next:hover {
  color: gold;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}