/* Horizontal scrolling strip */


.portfolio-strip {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* Card */
.project-card {
  /* sizing */
  flex: 0 0 400px;
  max-width: 400px;

  /* height behavior (prevents full-screen cards) */
  max-height: min(65vh, 360px);
  min-height: 220px;

  /* layout & style */
  scroll-snap-align: start;
  position: relative;
  overflow-y: auto;
  padding: 1rem;

  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: white;

  white-space: normal;
  scrollbar-gutter: stable;
  cursor: pointer;
}

/* Optional breathing room at bottom of scrollable card */
.project-card::after {
  content: "";
  display: block;
  height: 0.5rem;
}

/* Make entire card clickable (overlay link) */
.project-card .card-link {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
}

/* Keep content above overlay link visually (and selectable) */
.project-card > *:not(.card-link) {
  position: relative;
  z-index: 2;
}

/* Subtitle styling */
.project-subtitle {
  font-weight: 400;
  font-size: 0.95em;
  color: #555;
}

/* Mobile tuning */
@media (max-width: 640px) {
  .project-card {
    flex: 0 0 85%;
    max-width: 85%;

    max-height: 70vh;
    min-height: 260px;
  }
}



















/* About section layout */
.about-wrap{
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

/* Headshot */
.about-photo img{
  width: 160px;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
}

/* Text */
.about-text{
  line-height: 1.4;
  max-width: 720px;
}

/* Mobile: stack vertically */
@media (max-width: 800px){
  .about-wrap{
    flex-direction: column;
    align-items: flex-start;
  }

  .about-photo img{
    width: 140px;
  }
}






















/* Container (stacked cards) */
.book-strip {
  display: grid;
  gap: 1rem;
  max-width: 900px;
}

/* Individual card */
.book-card {
  position: relative;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  background: #fff;
  box-shadow: 0 1px 10px rgba(0,0,0,0.06);
}

/* Make the whole card clickable */
.book-card .card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 16px;
}

/* Ensure content sits above overlay link */
.book-card h3,
.book-card p {
  position: relative;
  z-index: 2;
  margin: 0 0 0.6rem 0;
}

/* Title/subtitle styling */
.book-title {
  font-size: 1.2rem;
  line-height: 1.2;
}
.book-subtitle {
  font-size: 1rem;
  opacity: 0.75;
}

/* Better wrapping */
.book-card p {
  white-space: normal;
  overflow-wrap: anywhere;
}




/* Horizontal scrolling images  */
.scroll-image {
  overflow-x: auto;     /* enables left-right scrolling */
  overflow-y: hidden;   /* prevents vertical scroll bar */
  width: 100%;
}

.scroll-image img {
  max-width: none;      /* CRITICAL — stops auto shrinking */
  width: auto;
  max-height: 65vh;
  height: auto;
  display: block;
}
