/* === FONT IMPORTS === */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500&family=Playfair+Display:wght@500&display=swap");

/* === GLOBAL STYLES === */
body {
  margin: 0;
  padding: 0;
  font-family: "Cormorant Garamond", "Georgia", serif;
  background-color: #f9f8f7; /* subtle off-white */
  color: #111;
  line-height: 1.6;
}
/* === GLOBAL IMAGE RENDERING & ANTI-ALIASING === */
img {
  -webkit-backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transform: translateZ(0);
  image-rendering: auto; /* ensures smooth photographic rendering */
}



h1, h2, h3, h4 {
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: none;
}

/* === HEADER & SITE TITLE === */
.site-title {
  font-family: "Playfair Display", "Cormorant Garamond", serif;
  font-size: 2.6rem;
  font-weight: 500;
  text-align: center;
  margin: 1.5rem 0 1rem 0;
}

.site-title a {
  text-decoration: none;
  color: #111;
  transition: color 0.3s ease;
}

.site-title a:hover {
  color: #777;
}

/* --- Global image rendering settings --- */
img {
  image-rendering: crisp-edges;
  image-rendering: -webkit-optimize-contrast;
  -webkit-transform: translateZ(0); /* helps with subpixel smoothing */
}

/* === NAVIGATION === */
nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 0 1rem 0;
  border: none; /* remove bottom border for seamless look */
  background: #f9f8f7;
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #111;
  font-size: 1.15rem;
  font-family: "Cormorant Garamond", serif;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #777;
}
/* Dropdown menu */
.dropdown {
  display: none;
  position: absolute;
  top: 1.8rem;
  left: 0;
  background-color: #fff;
  border: 1px solid #eee;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  list-style: none;
  padding: 0.5rem 0;
  min-width: 150px;
  z-index: 10;
}

.dropdown li {
  padding: 0.4rem 1rem;
}

.dropdown li a {
  color: #111;
  text-decoration: none;
}

.dropdown li a:hover {
  color: #777;
}

.nav-item:hover .dropdown {
  display: block;
}

/* === HOME PAGE GALLERY (3 COLUMNS ON DESKTOP, 2 ON MOBILE) === */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 1rem;
  margin: 3rem auto;
  max-width: 1500px;
}

.gallery img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  image-rendering: auto;
}

/* Force 2 columns on mobile ONLY for the home page */
@media (max-width: 768px) {
  body.index-page .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}




/* === FOOTER === */
footer {
  text-align: center;
  padding: 1.5rem 0;
  color: #555;
  font-size: 0.9rem;
  margin: 0;
  border-top: none; /* cleaner, softer look */
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }

  .dropdown {
    position: static;
    box-shadow: none;
    border: none;
  }
}


/* === WORKS PAGE GRID (Crisp uniform 2×2 layout) === */
.works-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns always */
  gap: 0.75rem;
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.work-category {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2; /* every tile same horizontal shape */
}

.work-category a {
  display: block;
  width: 100%;
  height: 100%;
}

.work-category img {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* fills box neatly */
  object-position: center;  /* centers subject */
  image-rendering: auto;    /* smooth high-res scaling */
  display: block;
  transition: filter 0.3s ease, transform 0.3s ease;
}
/* Make the Vertical category image show the top portion within its horizontal frame */
.work-category.vertical img {
  object-fit: cover;
  object-position: top;
}


/* Overlay styling */
.work-category .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 1.8rem;
  font-family: "Playfair Display", serif;
  opacity: 0;
  background-color: rgba(0, 0, 0, 0);
  transition: background-color 0.3s ease, opacity 0.3s ease;
}

/* Desktop hover effect */
@media (hover: hover) and (pointer: fine) {
  .work-category:hover img {
    filter: brightness(0.6);
    transform: scale(1.02);
  }

  .work-category:hover .overlay {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.4);
  }
}

/* Mobile – labels always visible */
@media (hover: none) and (pointer: coarse) {
  .work-category .overlay {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.25);
  }
  .work-category .overlay span {
    font-size: 1.2rem;
  }
}

/* Works page – keep 2×2 on mobile too */
@media (max-width: 768px) {
  .works-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}





/* === ACTIVE PAGE HIGHLIGHT === */
.nav-links a.active {
  font-weight: 500;           /* slightly bolder text */
  color: #333;                /* a bit darker */
  border-bottom: 1px solid #333; /* thin underline for subtle emphasis */
}

/* === CATEGORY PAGES (Street, Scenes, Color, Vertical) === */
body:not(.index-page) .gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  body:not(.index-page) .gallery {
    grid-template-columns: 1fr; /* 1 column only on mobile */
  }
}

/* === ABOUT PAGE (Matches Home Gallery Layout) === */
.about-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem 1rem;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  color: #222;
  line-height: 1.6;
}

/* Text block */
.about-text h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.about-text p {
  font-size: 1.05rem;
  margin: 0 auto 2.5rem auto;
  max-width: 600px;
}

/* Self-portrait gallery (same behavior as home) */
.about-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);  /* 2x2 desktop */
  gap: 0;
  padding: 1rem;
  margin: 0 auto;
  max-width: 1000px;
}

.about-gallery img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  image-rendering: auto;
}

/* On mobile: 1 column per row */
@media (max-width: 768px) {
  .about-gallery {
    grid-template-columns: 1fr;
  }
}

/* === CONTACT PAGE === */
.contact-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1rem 5rem 1rem;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  color: #222;
  line-height: 1.6;
}

.contact-text h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.contact-text p {
  font-size: 1.05rem;
  margin: 0 auto 2.5rem auto;
  max-width: 600px;
  color: #222;
}

.contact-links {
  display: inline-block;
  text-align: left;
}

.contact-links p {
  margin: 0.5rem 0;
  font-size: 1.05rem;
}

/* Neutral minimalist link style */
.contact-links a {
  color: #444;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.contact-links a:hover {
  color: #000;
  border-color: #000;
}

strong {
  font-weight: 500;
  color: #000;
}

