@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800;900&family=Arial:wght@400;700;900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ----------------------------- */
/* Navigaatio */
/* ----------------------------- */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  padding: 4.2vw 8.5vw;
  background: transparent;
}

.logo-link {
  justify-self: start;
}

.site-logo {
  width: 112px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4vw, 64px);

  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(0.75rem, 1vw, 1rem);
  font-weight: 900;
  letter-spacing: 0.35em;
  text-transform: uppercase;

  color: rgba(255, 255, 255, 0.9);
}

.main-nav a {
  transition: 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #ff5757;
}

.dark-nav {
  color: #111;
}

.dark-nav a:hover,
.dark-nav a.active {
  color: #ff5757;
}

.light-header {
  position: absolute;
}

/* ----------------------------- */
/* Home page */
/* ----------------------------- */

.home-page {
  background-image:
   /*  linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.2)),
    url("../images/block2.png"); */
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 70%,
      rgba(0, 0, 0, 1) 100%
    ),
    url("../images/block2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #000000;
}

.hero {
  min-height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-center-logo {
  width: clamp(150px, 18vw, 350px);
  height: auto;
  opacity: 0.95;
}

/* ----------------------------- */
/* Contact page */
/* ----------------------------- */
/* Musta tausta */
/*

.dark-page {
  background: #030303;
  color: white;
}

.contact-layout {
  min-height: 100vh;
  padding: 180px 8vw 80px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5vw;
  align-items: center;
}

.clear-box {
  background: transparent;
}

.contact-logo-box {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-logo-box img {
  width: min(320px, 60vw);
}

.contact-info-box {
  font-family: "Montserrat", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.contact-info-box h1 {
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 900;
  margin-bottom: 2.5rem;
}

.contact-info-box p {
  margin-bottom: 1.4rem;
  line-height: 1.5;
}

.contact-info-box span {
  display: block;
  color: #777;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.contact-info-box a {
  color: white;
}

.contact-info-box a:hover {
  color: #ff5757;
} */

/*Valkoinen tausta*/
.dark-page {
  background: white;
  color: #111;
}

.contact-layout {
  min-height: 100vh;
  padding: 180px 8vw 14px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5vw;
  align-items: center;
}

.clear-box {
  background: transparent;
}

.contact-logo-box {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-logo-box img {
  width: min(320px, 60vw);
}

.contact-info-box {
  font-family: "Montserrat", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #111;
}

.contact-info-box h1 {
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  color: #111;
}

.contact-info-box p {
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.contact-info-box span {
  display: block;
  color: #777;
  font-size: 0.8rem;
  margin-bottom: 0.10rem;
}

.contact-info-box a {
  color: #111;
}

.contact-info-box a:hover {
  color: #ff5757;
}

/* ----------------------------- */
/* Portfolio selection */
/* ----------------------------- */

.light-page {
  background: white;
  color: #111;
}

.portfolio-choice-layout {
  min-height: 100vh;
  padding: 180px 8vw 80px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4vw;
  align-items: center;
}

.portfolio-choice {
  min-height: 45vh;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 2px solid #111;

  font-family: "Montserrat", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;

  transition: 0.25s ease;
}

.portfolio-choice h1 {
  font-size: clamp(1.4rem, 3vw, 3rem);
  font-weight: 900;
}

.portfolio-choice:hover {
  background: #111;
  color: white;
}

/* ----------------------------- */
/* Gallery pages */
/* ----------------------------- */

.gallery-page {
  background: white;
  color: #111;
}

.gallery-header {
  padding-top: 32px;
  padding-bottom: 32px;
}

.work-grid {
  padding: 145px 1vw 60px;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 14px;
}

.work-card {
  cursor: pointer;
}

.work-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.work-card h2 {
  margin-top: 10px;

  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.1rem, 1.5vw, 1.7rem);
  line-height: 0.95;
  font-weight: 900;
  text-transform: uppercase;
}

.work-card p {
  margin-top: 5px;

  font-size: clamp(0.85rem, 1vw, 1rem);
  line-height: 1.2;
  color: #777;
}

.work-card p strong {
  color: #111;
}

/* ----------------------------- */
/* Photography lightbox */
/* ----------------------------- */

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

  display: none;
  justify-content: center;
  align-items: center;

  padding: 40px;
  background: rgba(0, 0, 0, 0.92);
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 34px;

  background: transparent;
  border: none;
  color: white;

  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
}

/* ----------------------------- */
/* Video cards */
/* ----------------------------- */

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
  cursor: pointer;
}

.video-wrapper img,
.video-wrapper iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-wrapper iframe {
  border: none;
}

.play-button {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);

  width: 68px;
  height: 68px;
  border-radius: 50%;

  border: 2px solid white;
  background: rgba(0, 0, 0, 0.35);
  color: white;

  font-size: 1.7rem;
  cursor: pointer;
  transition: 0.2s ease;
}

.video-wrapper:hover .play-button {
  background: rgba(255, 87, 87, 0.85);
}

/* ----------------------------- */
/* Responsive */
/* ----------------------------- */

@media (max-width: 1100px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 18px;
    padding-left: 18px;
    padding-right: 18px;
    padding-top: 220px;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 24px;
    justify-items: center;
  }

  .logo-link {
    justify-self: center;
  }

  .site-logo {
    width: 92px;
  }

  .main-nav {
    gap: 20px;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    flex-wrap: wrap;
  }

  .contact-layout,
  .portfolio-choice-layout {
    grid-template-columns: 1fr;
    padding-top: 170px;
  }

  .portfolio-choice {
    min-height: 28vh;
  }

  .work-grid {
    grid-template-columns: 1fr;
    padding-top: 250px;
  }

  .home-page {
    background-position: center;
  }
}

@media (max-width: 420px) {
  .main-nav {
    gap: 14px;
    font-size: 0.65rem;
  }

  .site-logo {
    width: 82px;
  }

  .work-grid {
    padding-top: 240px;
  }

  .contact-info-box {
    letter-spacing: 0.08em;
  }
}