/* GALLERY HEADER */

.gallery-header {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 65px 15px 35px;
}

.gallery-header small {
  color: #00eaff;
  letter-spacing: 4px;
  font-size: 10px;
}

.gallery-header h1 {
  font-size: clamp(32px, 5vw, 55px);
  letter-spacing: 5px;
  margin: 15px 0;
}

.gallery-header h1 span {
  color: #00eaff;
  text-shadow: 0 0 20px #00eaff;
}

.gallery-header p {
  color: #888;
  font-size: 13px;
}

/* GALLERY GRID */

.gallery-container {
  position: relative;
  z-index: 1;
  width: min(1100px, 92%);
  margin: auto;
  padding: 15px 0 50px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.gallery-item {
  position: relative;
  height: 260px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #00eaff44;
  background: #080d19;
  cursor: pointer;
  transition: .35s;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s, filter .4s;
  filter: brightness(.75);
}

.gallery-item:hover {
  border-color: #00eaff;
  box-shadow:
    0 0 15px #00eaff77,
    0 0 35px #00eaff33;
  transform: translateY(-6px);
}

.gallery-item:hover img {
  transform: scale(1.1);
  filter: brightness(1);
}

/* IMAGE INFO */

.image-info {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 25px 18px 18px;
  background: linear-gradient(
    transparent,
    rgba(0,0,0,.9)
  );
  pointer-events: none;
}

.image-info span {
  color: #00eaff;
  font-size: 9px;
  letter-spacing: 3px;
}

.image-info h3 {
  color: white;
  font-size: 17px;
  margin-top: 7px;
}

/* LIGHTBOX */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 15px;

  padding: 30px;
  background: rgba(0,0,0,.95);
  backdrop-filter: blur(0px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity .45s ease,
    backdrop-filter .45s ease,
    visibility .45s;
}

.lightbox.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  backdrop-filter: blur(15px);
}

.lightbox img {
  max-width: 90%;
  max-height: 75vh;
  object-fit: contain;

  border: 1px solid #00eaff;
  border-radius: 10px;

  box-shadow: 0 0 35px #00eaff66;

  opacity: 0;
  transform: scale(.85) translateY(20px);

  transition:
    opacity .45s ease,
    transform .55s cubic-bezier(.2,.8,.2,1);
}

.lightbox.show img {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.lightbox p {
  color: #00eaff;
  letter-spacing: 3px;
  opacity: 0;
  transform: translateY(10px);
  transition: .4s ease .1s;
}

.lightbox.show p {
  opacity: 1;
  transform: translateY(0);
}

.close-btn {
  position: absolute;
  top: 25px;
  right: 30px;
  width: 42px;
  height: 42px;
  background: #111;
  border: 1px solid #00eaff;
  border-radius: 50%;
  color: #00eaff;
  font-size: 18px;
  cursor: pointer;
}

.close-btn:hover {
  background: #00eaff;
  color: black;
}

/* FOOTER */

.gallery-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px;
  color: #555;
  font-size: 9px;
  letter-spacing: 3px;
}

/* RESPONSIVE */

@media (max-width: 800px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    height: 250px;
  }
}
