@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Playfair+Display:wght@400;600&display=swap');

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

body {
  font-family: 'Inter', sans-serif;
  background: #f5f6f4;
  color: #1e1e1e;
  line-height: 1.6;
}

/* ---------- NAV ---------- */
nav {
  width: 100%;
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: #1e1e1e;
  margin-left: 30px;
  font-size: 14px;
}

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

/* ---------- SECTION LAYOUT ---------- */
.section {
  width: 100%;
  padding: 50px;
}

.section-grid {
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 40px;
  align-items: center;
}

/* ---------- IMAGES (UNIFORM SIZE) ---------- */
img {
  width: 100%;
  height: 700px;       /* Uniform height for all images */
  object-fit: cover;   /* Crop without stretching */
  display: block;
}

/* ---------- SPLIT LAYOUT ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
}

.split-image {
  width: 100%;
  height: 100%;
}

.split-text {
  padding: 80px;
  display: flex;
  flex-direction: column;
  justify-content: justify;
}

/* ---------- FANCY HEADINGS ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;        
  letter-spacing: 1px;     
  color: #1e1e1e;         
  line-height: 1.2;       
}

h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

h2 {
  font-size: 32px;
  margin-bottom: 15px;
}

h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

/* Optional hover effect for headings */
h1:hover, h2:hover {
  letter-spacing: 2px;
  transition: 0.3s;
}

/* ---------- TEXT BOX ---------- */
.text-box p {
  font-size: 9px;
  max-width: 500px;
  text-align: justify; 
}

/* ---------- VERTICAL TITLE ---------- */
.vertical-title {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: rotate(90deg) translateY(-50%);
  font-size: 14px;
  letter-spacing: 3px;
  color: #444;
}

/* ---------- RESEARCH / BLOG ITEMS ---------- */
.list-item {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 40px;
  margin-bottom: 80px;
}

/* Images inside list-items use global img styles */
.list-item h2 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 15px;
}

/* ---------- LINKS ---------- */
a.button-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 14px;
  text-decoration: underline;
  color: #1e1e1e;
}

/* ---------- MOBILE FRIENDLY ---------- */
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split-image {
    height: 50vh; 
  }

  img {
    height: 300px; 
  }

  .split-text {
    padding: 40px;
  }
}
/* ---------- GALLERY LAYOUT FOR BLOG & GALLERY ---------- */
.gallery {
  column-count: 3;
  column-gap: 2.5rem;
  padding: 4rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 3rem;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.gallery-meta a {
  color: #000;
  text-decoration: underline;
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  font-weight: 300;
  opacity: 0.75;
}

.gallery-meta a:hover {
  opacity: 1;
}
.gallery-meta a:visited {
  color: #000;
}


/* ---------- MOBILE FRIENDLY---------- */
@media (max-width: 900px) {
  .gallery {
    column-count: 2;
    padding: 2rem;
  }
}

@media (max-width: 600px) {
  .gallery {
    column-count: 1;
  }

  .gallery-meta {
    flex-direction: column;
    gap: 0.4rem;
  }
}

