/* =========================================
   ONEPAGE — Smooth Monday
   ========================================= */

/* --- Portfolio-galleria --- */
.portfolio {
  padding-top: calc(var(--nav-height) + 6px);
  padding-bottom: 0;
}

.section-title {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: var(--space-3);
}

.portfolio-grid {
  columns: 4 240px;
  column-gap: 6px;
  padding: 0 6px;
}

.portfolio-item {
  break-inside: avoid;
  margin-bottom: 6px;
  overflow: hidden;
  cursor: pointer;
}

.portfolio-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease, filter 0.3s ease;
}

.portfolio-item:hover img {
  transform: scale(1.04);
  filter: brightness(1.05);
}

/* --- Videotyöt --- */
.videos {
  padding-block: var(--space-20);
  background: var(--color-surface);
}

.videos__header {
  margin-bottom: var(--space-10);
}

.showreel-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-8);
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.showreel-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.video-item {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface-2);
}

.video-item iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Info & Yhteystiedot --- */
.about {
  padding-block: var(--space-20);
}

.about__layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--space-16);
  align-items: center;
}

.about__photo {
  position: relative;
}

.about__photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
  display: block;
  box-shadow: var(--shadow-lg);
}

.about__title {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-5);
}

.about__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-4);
  max-width: 560px;
}

.about__contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-8);
}

.contact-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-row:hover {
  color: var(--color-accent);
}

.contact-row svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

/* --- Footer minimal --- */
.footer-minimal {
  display: flex;
  align-items: center;
  gap: var(--space-10);
  padding-block: var(--space-6);
}

.footer-minimal__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-text);
}

.footer-minimal__logo img {
  height: 28px;
  width: auto;
}

.footer-minimal__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-minimal__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-minimal__item:hover {
  color: var(--color-text);
}

.footer-minimal__item svg {
  flex-shrink: 0;
  opacity: 0.6;
}

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  user-select: none;
}

.lightbox__btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 1001;
}

.lightbox__btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }

.lightbox__close {
  position: fixed;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.2s;
}

.lightbox__close:hover {
  color: #fff;
}

.lightbox__counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: var(--text-sm);
  font-family: var(--font-sans);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .portfolio-grid {
    columns: 3 180px;
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__layout {
    grid-template-columns: 1fr;
    gap: var(--space-10);
    justify-items: center;
    text-align: center;
  }

  .about__photo {
    max-width: 240px;
    width: 100%;
  }

  .about__contact {
    align-items: center;
  }
}

@media (max-width: 600px) {
  .portfolio-grid {
    columns: 2 140px;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .videos__header {
    margin-bottom: var(--space-4);
  }

  .footer-minimal {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-5);
    max-width: 187px;
    margin-inline: auto;
  }

  .footer-minimal__info {
    align-items: center;
  }

  .footer-minimal__logo {
    width: 100%;
    justify-content: center;
  }

  .footer-minimal__logo img {
    width: auto;
    height: 32px;
  }
}
