:root {
  --bg: #f6f3ee;
  --bg-soft: #efeae2;
  --text: #1c1b19;
  --muted: #6f6a63;
  --line: #d8d1c7;
  --overlay: rgba(28, 27, 25, 0.35);
  --max-width: 1400px;
  --pad: 28px;
  --font-main: "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(246, 243, 238, 0.95);
  -webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad);   /* remove vertical padding */
  height: 80px;            /* FIXED height */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.signature-wrap {
  height: 100%;
  display: flex;
  align-items: center;
   /* allows image to extend */
}

.signature-wrap img {
  height: 100px;   /* bigger than header */
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: flex-end;
}

.main-nav a {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  transition: opacity 0.2s ease;
}

.main-nav a:hover {
  opacity: 0.55;
}

.page-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px var(--pad) 80px;
}

.hero-space {
  padding-top: 22px;
}

.intro-copy {
  max-width: 760px;
  margin-bottom: 36px;
}

.intro-copy h1 {
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 0.95;
  margin: 0 0 16px;
  font-weight: 500;
}

.intro-copy p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 640px;
  margin: 0;
}

/* Homepage category grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.category-card {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.category-card:hover::after {
  opacity: 1;
}

.category-card:hover img {
  transform: scale(1.03);
}

.category-label {
  position: absolute;
  left: 22px;
  bottom: 20px;
  z-index: 2;
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* About page */
.about-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  margin-bottom: 36px;
}

.text-box,
.image-box,
.info-box,
.contact-box,
.education-block {
  border: 1px solid var(--line);
  background: #fbf8f3;
}

.text-box,
.info-box,
.contact-box,
.education-block {
  padding: 28px;
}

.text-box h2,
.education-block h2,
.info-box h3,
.contact-box h3,
.gallery-header h1 {
  margin-top: 0;
  font-weight: 500;
}

.text-box p,
.education-block p,
.info-box p,
.contact-box p {
  line-height: 1.75;
  color: var(--muted);
}

.image-box {
  min-height: 200px;
 
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.image-box img {
  height: 100%;
  object-fit:cover;
  
}

.education-block {
  margin-bottom: 24px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.placeholder-image-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.placeholder-tile {
  min-height: 260px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Gallery / slideshow pages */
.gallery-header {
  margin-bottom: 26px;
}

.gallery-header p {
  max-width: 700px;
  line-height: 1.7;
  color: var(--muted);
}

.slideshow {
  border: none;
  background: none;
}

.slide {
  display: none;
  grid-template-columns: 1.2fr 0.8fr;

  min-height: calc(100vh - 70px); /* NOT fixed height */
  align-items: center;
}
.slide.active {
  display: grid;
}

.slide-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-image img {
  max-height: calc(100vh - 120px); /* 🔥 prevents overflow */
  max-width: 100%;
  object-fit: contain;
}

.slide-caption {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
}

.slide-caption h2 {
  margin: 0 0 10px;
  font-weight: 500;
}

.slide-caption p {
  margin: 0;
  line-height: 1.75;
  color: var(--muted);
}


#body-of-work {
  scroll-margin-top: 90px;
}

.slide-controls {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding: 20px 30px 0;
}

.slide-controls button {
  background: transparent;
  border: 1px solid var(--text);
  color: var(--text);
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.slide-controls button:hover {
  background: var(--text);
  color: var(--bg);
}

.footer-space {
  height: 50px;
}

@media (max-width: 900px) {
  .category-grid,
  .about-layout,
  .info-grid,
  .placeholder-image-row,
  .slide,
  .slide.active {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 260px;
  }

  .slide {
  display: none;
  grid-template-columns: 1.2fr 0.8fr;
  height: 100vh;          /* 🔥 key line */
  max-height: 100vh;
}

  .slide-caption {
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .main-nav {
    gap: 14px;
  }

  .main-nav a {
    font-size: 0.75rem;
  }
}
.link{
  color:blue;
  transition: 0.2s ease;

}
.link:hover{
  color: rgb(209, 11, 209);
}

.slideshow {
  position: relative;
}

.slide-image {
  position: relative;
}

.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(246, 243, 238, 0.8);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease;
  z-index: 20;
  user-select: none;
}

.slideshow:hover .slide-arrow {
  opacity: 1;
}

.slide-arrow:hover {
  background: rgba(28, 27, 25, 0.9);
  color: var(--bg);
}

.slide-arrow.prev {
  left: 18px;
}

.slide-arrow.next {
  right: 18px;
}

.slide-image video {
  max-height: calc(100vh - 120px);
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}