

/* ========== BASE STYLES ========== */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: 'Outfit', sans-serif;
  background: transparent;
  color: #333;
  padding-top: 110px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main {
  flex: 1;
}

/* ========== HEADER ========== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 4px #0001;
  z-index: 1000;
}


/* Default spacing for most pages */
main, .about-section, .contact-page {
  padding-top: 20px;
}

/* Projects page – override with smaller spacing */
.projects-page {
  padding-top: 35px !important;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 32px 20px 32px;   /* More space on left/right */
  max-width: 100vw;
  margin: 0;
}

.header-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 100%;
  background-color: black;
  z-index: 1001;
}

.logo {
  font-size: 2.5rem;
  font-weight: 700;
  color: #111;
  margin: 0;
  padding: 0;
  line-height: 1;
}

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

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #999;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}


.nav-links a:hover {
  color: #333;
}


.nav-links a.active {
  color: #000;
  font-weight: 600;
}



.projects-page {
  padding-top: 5px !important;
}

.drawings-page {
  margin-top: 50px;
  padding: 2rem;
}

/* ========== HERO SECTION ========== */
.hero {
  text-align: center;
  padding: 150px 20px;
  }

.hero h2 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.25rem;
  color: #666;
}

/* ========== PROJECT GRID ========== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  display: block;
  text-decoration: none;
}

.project-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.overlay-black {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
  z-index: 2;
}

.project-card:hover .overlay-black {
  opacity: 1;
}

.project-card:hover .overlay-text {
  opacity: 1;
}

@media (max-width: 1200px) {
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== ABOUT SECTION ========== */
.about-section {
  padding: 80px 20px;
  background-color: #fff;
}

.about-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
  flex-wrap: wrap;
}

.about-text {
  flex: 2 1 400px;   /* Give text more space */
  min-width: 300px;
  max-width: 700px;  /* Prevent text from getting too wide */
}

.about-text h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 0.8rem;
  line-height: 1.6;
  color: #333;
}

.about-image {
  flex: 1 1 300px;
  min-width: 220px;
  max-width: 400px;  /* Prevent image from getting too wide */
  text-align: right;
  position: sticky;
  top: 120px;
  align-self: flex-start;
  z-index: 1;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 0;
}

/* ========== CONTACT PAGE ========== */
.contact-page {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
}

.contact-container h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #333;
}

.contact-container p {
  font-size: 0.8rem;
  line-height: 1.6;
  color: #333;
}

.contact-info p {
  margin-bottom: 12px;
}

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

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


.drawing-entry {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.drawing-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.drawing-meta {
  margin-top: 10px;
  font-size: 0.8rem;
  color: #555;
}

.drawing-meta h3 {
  margin: 0 0 4px;
  font-size: 0.8rem;
  font-weight: 500;
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    gap: 20px 8px; /* tighter gap if you want */
  }
  .drawings-gallery {
    padding: 20px 8px; /* less side padding */
  }
}

.project-detail-page {
  max-width: 2000px;
  margin: 40px auto;
  padding: 0 20px;
}

.project-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
  display: block; /* Stack text above images */
}

.project-info {
  margin-bottom: 40px;
  color: #333;
  font-size: 1rem;
  max-width: 1000px;
  text-align: left;
  margin-left: 0 explicitly;
}



.project-info p {
  font-size: 0.8rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.project-info h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.project-description.short {
  display: block;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.project-description.full {
  line-height: 1.6;
  margin-bottom: 0.5rem;
  display: none;
}

.read-more-btn {
  background: none;
  border: none;
  color: #000;
  cursor: pointer;
  font-family: inherit;    /* Inherit font from parent */
  font-size: 0.8rem;       /* Match your paragraph size */
  padding: 0;
  text-decoration: underline;
  min-width: 80px;
  text-align: center;
  display: inline-block;
  transition: background 0.2s;
  font-weight: 400;        /* Match your paragraph weight if needed */
  letter-spacing: normal;  /* Match your paragraph letter spacing */
}

.project-images {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  align-items: center; /* aligns bottoms of images */
  width: 100%;
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 20px;
}
.project-images a {
  display: block;
}
.project-img {
  display: block;
  /* width/height set by class for real-world scale */
  max-width: 100%;
  border-radius: 0;
  background: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transition: transform 0.2s;
}
.project-img:hover {
  transform: scale(1.03);
  z-index: 2;
}
/* Responsive: fewer columns on smaller screens */
@media (max-width: 900px) {
  .project-images {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .project-images {
    grid-template-columns: 1fr;
  }
}

:root {
  --cm: 10px; /* adjust as needed */
}

.project-img.a3-portrait { width: calc(29.7 * var(--cm)); height: calc(42 * var(--cm)); }
.project-img.a4-landscape { width: calc(29.7 * var(--cm)); height: calc(21 * var(--cm)); }
.project-img.a3-landscape { width: calc(42 * var(--cm)); height: calc(29.7 * var(--cm)); }
.project-img.a4-portrait { width: calc(21 * var(--cm)); height: calc(29.7 * var(--cm)); }
.project-img.square { width: calc(29.7 * var(--cm)); height: calc(29.7 * var(--cm)); }
.project-img.stretch { width: calc(72 * var(--cm)); height: calc(21 * var(--cm)); }

/* ========== LIGHTBOX / UTILITY ========== */
.lightbox {
  transition: all 0.3s ease-in-out;
}

.back-button {
  position: fixed;
  top: 30px;
  left: 30px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: background 0.2s, border 0.2s, transform 0.2s;
  font-size: 1.5rem;
  color: #000;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
}
.back-button:hover {
    transform: scale(1.08);
}
.back-button svg {
  display: block;
  width: 28px;
  height: 28px;
  stroke: #000;
}

.project-container {
  position: relative;
}

.back-button {
  position: fixed;
  top: 110px;   /* Just below your header (adjust to match header height) */
  left: 8px;    /* Far left on the screen */
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, border 0.2s, transform 0.2s;
  font-size: 1.5rem;
  color: #000;
  text-decoration: none;
}

footer {
  text-align: center;
  padding: 1em 0;
  background: #fff;
}


.gallery-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 60px 10px;
  max-width: 1400px;
  margin: 0 auto;
}

.drawing-piece {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.drawing-img {
  display: block;
  height: auto;
  image-rendering: auto;
  filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.1));
  transition: transform 0.2s ease;
}

.drawing-piece:hover .drawing-img {
  transform: scale(1.02);
}

.drawing-meta {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #555;
}

@media (max-width: 768px) {
  :root {
    --cm: 6px; /* Smaller units on mobile */
  }
}

@media (max-width: 600px) {
  .drawing-img {
    width: 100% !important;
    height: auto !important;
  }
}

.project-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  font-weight: 900;
  color: black;
  text-decoration: none;
  z-index: 2000;
  padding: 0 10px;
  user-select: none;
  transition: transform 0.2s ease;
}

.project-nav.left {
  left: 20px;
}

.project-nav.right {
  right: 20px;
}

.project-nav:hover {
  transform: translateY(-50%) scale(1.1);
}

.under-construction-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.85);
  z-index: 99; /* Should be above content but below fixed header */
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.under-construction-message {
  text-align: center;
  padding: 2rem 3rem;
  color: #222;
  pointer-events: auto;
}

.glightbox-container,
.glightbox-container * {
  font-family: 'Outfit', sans-serif !important;
  background: rgba(255, 255, 255, 0.103) !important;
  transition: background 0.1s !important;
}



.glightbox-container .gdesc-inner,
.glightbox-container .gdesc,
.glightbox-container .gslide-desc,
.glightbox-desc,
.glightbox-title {
  background: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  color: #222 !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 0.8rem !important;
  padding: 0.7em 1.2em !important;
  margin: 0 auto !important;
  text-align: center !important;
}

.glightbox-title {
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  margin-bottom: 0.3em !important;
}

.glightbox-clean .gdesc-inner {
  background: none !important;
}



.glightbox-arrow {
  width: 48px !important;
  height: 48px !important;
  background: #fff !important;
  border: 2px solid #000 !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #000 !important;
  opacity: 0.95 !important;
  transition: background 0.2s, border 0.2s, transform 0.2s !important;
}

.glightbox-arrow svg {
  width: 28px !important;
  height: 28px !important;
  stroke: #000 !important;
  stroke-width: 3 !important;
  fill: none !important;
}

.glightbox-arrow:hover {
  background: #f0f0f0 !important;
  border-color: #333 !important;
  transform: scale(1.08) !important;
}




/* Fullscreen hero section */
.hero-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}



.slideshow {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
}

/* Each Slide */
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

/* Active Slide */
.slide.active {
  opacity: 1;
}


/* Optional dark overlay for readability */
.hero-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
    z-index: 1;
}

/* Text content */
.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  padding: 0 20px;
}

@keyframes fade {
  0% { opacity: 1; }
  25% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 0; }
}

@media (max-width: 600px) {
  .nav-links a {
    font-size: 1.2rem;
    /* You can increase this value as needed */
  }
}


footer {
  text-align: center;
  padding: 1em 0;
  background: #fff;
  margin-top: auto;
}

.home-preview-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 32px;
  margin: 280px auto 70px auto;
  max-width: 1200px;
}



.preview-box {
  flex: 1 1 0;
  width: 100%;
  height: 220px; /* Smaller height */
  text-align: center;
  z-index: 10;
  background: rgb(255, 255, 255);
  padding: 0.7em 1em 0.8em 1em; /* Less padding */
  border-radius: 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.07);
  position: relative;
  backdrop-filter: blur(4px);
  animation: aboutFadeIn 1.2s cubic-bezier(.23,1.01,.32,1) both;
  margin-bottom: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.preview-box h2 {
  font-size: 1.15rem;
  margin-bottom: 0.3em;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #000;
  position: relative;
  display: inline-block;
  margin-top: 0.2em;           /* Consistent top margin */
}

.preview-box h2::after {
  content: "";
  display: block;
  margin: 0.35em auto 0 auto;
  width: 38px;
  height: 2.5px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.65);
  opacity: 100%;
}

.preview-box p {
  font-size: 0.9rem;
  color: #333;
  line-height: 1.6;
  margin-top: 0.5em;
}

.preview-box a {
  color: #3a5ad7;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.preview-box a:hover {
  color: #222;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .home-preview-row {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin: 600px auto 60px auto;
  }
  .preview-box {
    width: 100%;
    height: auto; /* Let height grow naturally on mobile */
    max-width: 95vw;
  }
}

.sorting-bar {
  position: fixed;
  top: 90px;
  left: 0;
  width: 100vw;
  height: 28px;
  background-color: black;
  border-bottom: 1px solid #444;
  display: flex;
  align-items: center;
  padding: 0;
  box-sizing: border-box;
  z-index: 999;
}

.sort-btn {
  flex: 1;
  height: 100%;
  background-color: black;
  color: white;
  border: none;
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background-color 0.3s, color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sort-btn:hover,
.sort-btn.active {
  background-color: white;
  color: black;
}

.sort-buttons {
  display: flex;
  justify-content: space-between; /* evenly spaces items across the container */
  align-items: center; /* vertically center buttons */
  gap: 10px; /* optional: space between buttons */
  width: 100%; /* full width of container */
}

/* If buttons have a class, e.g. 'sort-btn', ensure consistent sizing */
.sort-buttons button {
  flex: 1; /* make all buttons grow equally */
  max-width: 150px; /* optional: prevent buttons from getting too wide */
}

/* === Collection Dropdown === */
.collection-menu {
  flex: 1;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: black;
}

#collection-toggle {
  all: unset; /* removes default button styles */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0 6px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: black;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  box-sizing: border-box;
}

/* Hover/active states */
#collection-toggle:hover,
#collection-toggle.active {
  background-color: white;
  color: black;
}


/* Dropdown styling */
.collection-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: white;
  color: black;
  z-index: 1000;
  box-sizing: border-box;
  border: 1px solid black;
  border-top: none;
}

.collection-options.show {
  display: block;
}

.collection-option {
  padding: 6px 10px;
  font-size: 0.65rem;
  background-color: white;
  color: black;
  cursor: pointer;
  text-align: left;
}

.collection-option:hover {
  background-color: black;
  color: white;
}

#backToTop {
  position: fixed;
  bottom: 30px;
  right: 20px;
  font-size: 3rem;
  font-weight: 900;
  color: black;
  background: none;
  border: none;
  cursor: pointer;
  user-select: none;
  padding: 0 10px;
  z-index: 2000;
  transform: rotate(-90deg);
  display: none;
  transition: color 0.3s ease, transform 0.2s ease;
}

#backToTop:hover {
  color: gray;
  transform: rotate(-90deg) scale(1.1);
}

.collection-dropdown {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: black;
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  border-left: 1px solid #444;
  border-right: 1px solid #444;
}

.collection-dropdown:hover {
  background-color: white;
  color: black;
}

.collection-dropdown label {
  display: none; /* hide the label text */
}

#collectionSelect {
  background-color: black;
  color: white;
  border: none;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

#collectionSelect:hover {
  background-color: white;
  color: black;
}

.drawing-meta {
  display: none !important;
}

.drawing-piece {
  position: relative;
}
.drawing-piece:hover .drawing-meta {
  display: block;
}

.drawing-tooltip {
  position: fixed;
  pointer-events: none;
  background: none;                /* No box */
  color: #3a5ad7;
  font-weight: 700;                /* Bold text */
  font-size: 0.9rem;               /* Slightly larger */
  padding: 0.2em 0.6em;
  border: none;
  box-shadow: none;
  border-radius: 0;
  z-index: 9999;
  min-width: 0;
  max-width: 400px;
  display: none;
  transition: opacity 0.15s;
  text-shadow: 0 2px 8px rgba(0,0,0,0.10); /* Subtle shadow for readability */
  background: none;
  letter-spacing: 0.02em;
  /* Optional: gradient text */
  /* background: linear-gradient(90deg, #b6a3f5 0%, #7ec8e3 100%);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent; */
}

.gallery-wall,
.gallery-grid {
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  padding: 30px 80px;      /* Larger gap on left/right */
  box-sizing: border-box;
  justify-content: stretch;
}

/* ========== DRAWINGS GALLERY ========== */
.drawings-gallery {
  padding: 100px 100px 0 40px; /* 40px top, 40px left/right, 0 bottom */
  margin: 0;
  max-width: 100vw;
  width: 100vw;
}

@media (max-width: 600px) {
  .sorting-bar {
    position: static;
    top: auto;
    width: 100vw;
    height: auto;
    padding: 8px 4px;
    background: #fff;
    border-bottom: 1px solid #eee;
    z-index: 1000;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .sort-btn {
    font-size: 0.8rem;
    padding: 6px 8px;
    min-width: 70px;
  }
  .collection-dropdown {
    width: 100%;
    margin-top: 8px;
  }
}