
/* Base & Typography */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden; /* Prevents the offscreen mobile menu from creating a right-side bar */
  font-family: 'Montserrat', sans-serif;
  background-color: #ebe7e7;
  color: #000000;
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: 'Cormorant Garamond', serif;
}

h1 {
  font-weight: 700;
  letter-spacing: 1px;
}

h2 {
  font-weight: 400;
  letter-spacing: 1px;
}



/* Header & Navigation */


header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-toggle {
  display: none;
}

nav a {
  color: #000000;
  text-decoration: none;
  margin-left: 20px;
}

nav a:hover {
  text-decoration: underline;
}


/* Home Hero Section */

.hero {
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url("../images/testing/House.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  color: #ffffff;
  padding: 20px;
}

.hero-overlay h1 {
  font-size: 3.5rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.hero-overlay p {
  font-size: 1.3rem;
  margin-bottom: 24px;
  opacity: 0.9;
}

.hero-btn {
  display: inline-block;
  padding: 12px 28px;
  color: #ffffff;
  border: 2px solid #ffffff;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 1px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.hero-btn:hover {
  background-color: #ffffff;
  color: #111111;
}


/* Shared Page Layout & Intro Headers (Gallery & Category Pages) */

.gallery-page,
.category-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 40px 80px;
}

.page-intro {
  max-width: 560px;
  margin: 0 auto 42px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.62;
}

.page-intro h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.page-intro > p:last-child {
  margin: 12px 0 0;
  font-size: 1.05rem;
  opacity: 0.76;
}


/* Gallery Overview Page (Category Cards Grid) */

.category-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.category-card {
  position: relative;
  grid-column: span 4;
  min-height: 330px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: #333;
}

.category-card--wide {
  grid-column: span 8;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.category-card:hover img {
  transform: scale(1.05);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
}

.category-card__label {
  position: absolute;
  z-index: 1;
  left: 24px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
}

.category-card__label strong {
  font-size: 1.55rem;
}

.category-card__label small {
  margin-top: 3px;
  opacity: 0.8;
}


/* Individual Category Gallery Pages (Photo Grid) */

.back-link {
  color: #000;
  text-decoration: none;
  opacity: 0.68;
}

.back-link:hover {
  opacity: 1;
}

.category-intro {
  margin-top: 52px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 20px;
  column-gap: 10px; /* Reduced horizontal space between photos */
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.category-gallery {
  padding: 0;
}

.gallery-item {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.gallery img,
.gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery img:hover,
.gallery-item img:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Projects Category Page (Project Blocks & Artist Statements) */

.projects-container {
  display: flex;
  flex-direction: column;
  gap: 80px; /* Space between one project and the next */
}

.project-header {
  max-width: 720px;
  margin: 0 auto 32px;
  text-align: center;
}

.project-title {
  font-size: 2rem;
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: 1px;
}

.project-statement {
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0;
  opacity: 0.82;
}


/* Lightbox Modal */

#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}


/* About Page */

.about {
  min-height: 75vh;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 60px;
  padding: 60px 24px;
}

.about-image {
  flex: 1;
  max-width: 420px;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  object-fit: cover;
}

.about-text {
  flex: 1.2;
  text-align: left;
}

.about h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.about p {
  font-size: 1.2rem;
  line-height: 1.8;
  max-width: 720px;
  margin: 0 auto;
}

.about a {
  color: #000000;
  text-decoration: none;
}

.about a:hover {
  text-decoration: underline;
}


/* Contact Page */

.contact {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
}

.contact h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.contact p {
  font-size: 1.2rem;
  margin: 10px 0;
}

.contact a {
  color: #000000;
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}


/* Footer */

footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  opacity: 0.7;
}


/* Mobile Responsive Styles */

@media screen and (max-width: 600px) {
  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
  }

  h1 {
    font-size: 1.35rem;
  }

  .menu-toggle {
    display: block;
    font-size: 1.8rem;
    cursor: pointer;
  }

  nav {
    position: fixed;
    top: 0;
    right: -250px; /* Fully hidden offscreen */
    width: 220px;
    height: 100vh;
    background-color: #ebe7e7;
    display: flex;
    flex-direction: column;
    padding: 60px 24px 20px;
    transition: right 0.3s ease;
    z-index: 1000;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.08);
  }

  nav.show {
    right: 0;
  }

  nav a {
    margin: 15px 0;
    margin-left: 0;
    font-size: 1.2rem;
    color: #000;
    text-decoration: none;
  }

  /* Prevent hero text from overflowing or touching edges on small phones */
  .hero-overlay {
    padding: 20px 24px;
  }

  .hero-overlay h1 {
    font-size: 2.2rem;
  }

  .hero-overlay p {
    font-size: 1.1rem;
  }

  /* Add side padding so page content & text never touch the screen edges */
  .gallery-page,
  .category-page {
    padding: 24px 24px 56px;
  }

  .page-intro,
  .project-header {
    padding: 0 8px;
  }

  .category-grid {
    display: flex;
    flex-direction: column;
  }

  .category-card,
  .category-card--wide {
    min-height: 260px;
  }

  .gallery {
    grid-template-columns: 1fr;
    padding: 0;
  }

  /* Stack About section and keep text away from the edges */
  .about {
    flex-direction: column;
    gap: 32px;
    padding: 40px 28px;
  }

  .about-image {
    max-width: 100%;
  }

  .about-text {
    text-align: center;
  }

  .about p,
  .contact p {
    font-size: 1.05rem;
    overflow-wrap: break-word;
  }

  .contact {
    padding: 40px 28px;
  }
}