@font-face {
    font-family: 'neofolia';
    src: url('font/neofolia.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
/* BACK BUTTON */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: #0b1622;
  color: #e0e8f0;
  line-height: 1.6;
  padding: 40px 5%;
}

/* BACK BUTTON */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9fb0c2;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 40px;
  transition: color 0.3s;
}
.back-btn:hover {
  color: #ffffff;
}

/* HEADER */
.gallery-header {
  text-align: center;
  margin-bottom: 40px;
}
.gallery-subtitle {
  color: #d4a64f;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 12px;

}
.gallery-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  font-family:'neofolia', sans-serif;
}
.gallery-description {
  color: #9fb0c2;
  max-width: 550px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.7;
}

/* FILTERS */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}
.gallery-filters button {
  padding: 10px 24px;
  border-radius: 50px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #162433;
  color: #9fb0c2;
}
.gallery-filters button:hover {
  color: #ffffff;
  background: #1e3044;
}
.gallery-filters button.active {
  background: #d4a64f;
  color: #0b1622;
  box-shadow: 0 6px 20px rgba(212, 166, 79, 0.25);
}

/* GRID */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  max-width: 1400px;
  margin: 0 auto;
    font-family:'neofolia', sans-serif;
}

/* ITEM */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  aspect-ratio: 1;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(11, 22, 34, 0.85));
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .overlay {
  opacity: 1;
}
.gallery-item .overlay h3 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
    font-family:'neofolia', sans-serif;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(11, 22, 34, 0.95);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox.active {
  display: flex;
}
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 32px;
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
}
.lightbox-close:hover {
  color: #d4a64f;
}

/* ANIMATION */
.gallery-item {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.4s ease forwards;
}
.gallery-item:nth-child(1) { animation-delay: 0.05s; }
.gallery-item:nth-child(2) { animation-delay: 0.1s; }
.gallery-item:nth-child(3) { animation-delay: 0.15s; }
.gallery-item:nth-child(4) { animation-delay: 0.2s; }
.gallery-item:nth-child(5) { animation-delay: 0.25s; }
.gallery-item:nth-child(6) { animation-delay: 0.3s; }
.gallery-item:nth-child(7) { animation-delay: 0.35s; }
.gallery-item:nth-child(8) { animation-delay: 0.4s; }
.gallery-item:nth-child(9) { animation-delay: 0.45s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  body {
    padding: 24px 4%;
  }
}