@font-face {
  font-family: "Old Standard TT";
  src: url(assets/Old_Standard_TT/OldStandardTT-Bold.ttf);
  font-style: normal;
  font-weight: 600;
}
body {
  background-color: #000000;
}

::selection {
  background-color: orangered;
  color: #000;
}

.gallery-container {
  max-width: 90%;
  margin: 0 auto;
  font-family: "Old Standard TT", sans-serif;
}

.gallery-container h2.gallery-title {
  font-size: 40px;
  text-align: center;
  color: #fff;
  padding-bottom: 5rem;
}

.gallery-container .image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-container .image-grid img {
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
}

.lightbox-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 100;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 600ms;
}

.lightbox-container.active {
  background: rgba(0, 0, 0, 0.8);
  pointer-events: auto;
}

.size-6,
.size-4 {
  width: 15px;
}

.lightbox-container .lightbox {
  width: 30%;
  max-height: 90vh;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  transform: translateY(-120%);
  opacity: 0;
  transition: all 500ms;
}

.lightbox-container.active .lightbox {
  transform: translateY(0);
  opacity: 1;
}

.lightbox-container .lightbox img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  vertical-align: middle;
}

.gallery-container .lightbox .close-btn {
  position: absolute;
  right: 4px;
  top: 4px;
  background-color: #222;
  padding: 10px 20px;
  font-size: 20px;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 8px -4px rgba(0, 0, 0, 0.3);
}

/* NAVIGATION */
.links {
  position: absolute;
  top: 0;
  right: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 0;
}

.links a:link,
.links a:visited {
  font-size: 1.3rem;
  text-decoration: none;
  color: #fff;
  display: inline-block;
  font-weight: 500;
  transition: all 0.2s ease-in;
  padding: 1rem;
}

.links a:hover,
.links a:active {
  color: #c5725c;
}

/* HORIZONTAL-IMAGES */
.image-horizontal {
  grid-column: span 2;
}

.lightbox-container.active .previous-btn {
  position: absolute;
  z-index: 100000;
  left: 0;
  top: 50%;
  background-color: rgba(255, 250, 250, 0.9);
  font-size: 18px;
  padding: 16px;
  cursor: pointer;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 500ms;
  border-radius: 4px;
}

footer {
  padding-top: 5rem;
  font-size: 0.9rem;
  cursor: default;
  text-align: center;
  margin: auto 0;
}

.footer-text,
footer p {
  color: #fff;
}

@media (max-width: 700px) {
  .gallery-container .lightbox:hover .title {
    bottom: -20px;
  }

  .gallery-container .image-grid {
    justify-items: center;
    grid-template-columns: 100%;
  }

  .lightbox-container {
    display: none;
  }

  .gallery-container .image-grid img {
    cursor: default;
  }

  .links a:link,
  .links a:visited {
    font-size: 1rem;
  }
}

.page-counter {
  margin-top: 2rem;
  display: grid;
  place-items: center;
}

.page-counter a img {
  height: 3rem;
}
