@charset "utf-8";
/* CSS Document */
.page {
  padding: 20px;
}

header {
  text-align: center;
  padding-top: 4.8rem;
  margin-bottom: 64px;
}

header h1 {
  font-family: Impact, Haettenschweiler, 'Arial Black', sans-serif;
  font-size: 72px;
  font-weight: 400;
  margin: 0 0 6rem;
}

.portfolio {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.portfolio img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: transform 0.3s ease, opacity 0.3s ease;
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.portfolio img:nth-child(3n + 1) { animation-delay: .1s; }
.portfolio img:nth-child(3n + 2) { animation-delay: .2s; }
.portfolio img:nth-child(3n + 3) { animation-delay: .3s; }

.portfolio img:hover {
  transform: scale(1.03);
  opacity: 0.95;
}

.portfolio-break {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
  position: relative;
}

.portfolio-break::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-bottom: 12px;
  background: linear-gradient(to right, transparent, #989898, transparent);
}

.portfolio-desc {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-align: center;
  color: #EAEAEA;
  line-height:1.8;
}

.number {
  margin: 0;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-align: center;
  color: #b11226;
  font-family: Impact, Haettenschweiler, 'Arial Black', sans-serif;
  line-height:1.3;
}

@media (max-width: 600px) {
  .portfolio-desc {
    font-size: 12px;
  }
}

.portfolio-break-space {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 84px;
  display: block;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

footer {
  margin-top: 84px;
  padding: 64px 0;
  text-align: center;
  background-image: url(../img/pattern.png);
  background-repeat: repeat;
  border-top: 1px solid;
  border-image: linear-gradient(to right, transparent, #989898, transparent) 1;
}