:root {
  --gallery-bg: #02020b;
  --gallery-text: #ffffff;
  --gallery-accent: #fff62b;
  --gallery-card: rgba(255, 255, 255, 0.08);
  --gallery-border: rgba(255, 246, 43, 0.15);
}

.gallery-page {
  padding: 90px 0 120px;
  background-color: var(--gallery-bg);
  color: var(--gallery-text);
}

.gallery-page__heading {
  max-width: 760px;
  margin: 0 auto 60px;
}

.gallery-page__intro {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  line-height: 1.8;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 24px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--gallery-card);
  border: 1px solid var(--gallery-border);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.gallery-item__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px;
  background: linear-gradient(180deg, transparent 0%, rgba(2, 2, 11, 0.95) 90%);
  backdrop-filter: blur(8px);
}

.gallery-item__title {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.gallery-item__caption {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
