.project-motivation {
    font-size: 1.5rem;
}

.project-footer {
    margin-top: 20px;
    margin-bottom: 0px;
    line-height: 1.5;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.gallery-nav.prev { left: 0; }
.gallery-nav.next { right: 0; }


.carousel-wrapper {
    width: 700px; /* viewport width */
    position: relative;
    left: 50%;
    transform: translateX(-50%); /* The 'magic' to center an absolute/relative width element */
    overflow: hidden;
    margin-top: 0px;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .carousel-wrapper {
    width: 90vw; // mobile
  }
}

.carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;

    /* ADD PADDING HERE */
    /* This aligns the first image with your text start point */
    padding-left: calc((100vw - 800px) / 2);
    padding-right: 0;/*padding-right: calc((100vw - 800px) / 2);
}

.carousel-item {
    flex: 0 0 auto;
    scroll-snap-align: center; /* Snaps to the center of the screen */
    margin-right: 20px;
}

.carousel-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    margin-right: 15px;
    text-align: center; /* Centers the caption under the image */
    max-width: 400px;
    gap: 0.4rem;
}

.carousel-item a {
    text-decoration: none; /* Removes the blue underline from the link */
    display: block;
}

.carousel-item:last-child {
  margin-right: 0;
}

.carousel-item img {
    width: auto;
    height: 200px;
    display: block;
    border-radius: 0px;
}

.carousel-caption {
    text-decoration: none !important;
    width: auto;
    line-height: 1.0            ;
    margin-bottom: 30px;
}

.carousel-title {
    margin-top: 5px;
    margin-bottom: 0px;
    line-height: 1.6;
}

@keyframes scrollHint {
    0% { transform: translateX(0); }
    15% { transform: translateX(-20px); }
    30% { transform: translateX(0); }
}

.carousel {
    animation: scrollHint 1.5s ease-out;
}

.carousel-wrapper {
    position: relative; /* Essential for the absolute arrow to stay inside */
}

/* Hide the arrow once the user scrolls slightly */
.carousel-scrolled .scroll-hint-arrow {
    opacity: 0;
}

.edu-header {
  line-height: 1.5;   /* tighter lines (default is ~1.5–1.6) */
  margin-bottom: 1.5rem; /* more space below */
}

.about-hero-inner {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.about-photo img {
  width: 150px;
  height: 200px;
  object-fit: cover;
}

.about-content {
  max-width: 650px;
  margin: 0 auto;
}

.about-hero {
  max-width: 650px;
  margin: 0 auto;
  margin-top: 50px;
  text-align: left;
}

.about-cta {
  margin-top: 1rem;
  font-size: 0.95rem;
  opacity: 0.8;
}

.post-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #ddd;
  font-size: 0.9rem;
}

.post-footer a {
  margin-right: 0.8rem;
  text-decoration: none;
  color: #555;
}

.post-footer a:hover {
  text-decoration: underline;
}

.author-avatar {
  width: 1.6em;   /* matches text line height */
  height: 1.6em;
  border-radius: 50%;
  object-fit: cover;
}

.post-meta {
   margin-top: 20px;
   margin-bottom: 25px;
}

.post-meta a {
  color: inherit;
  text-decoration: underline;
}

.post-meta a:hover {
  color: #000;
}

.meta-text {
  line-height: 1.2;
}

.author-intro {
  text-align: left;
  margin-top: 50px;
    /* keeps it visually aligned with centered content */
}

.figure {
  margin: 1.5rem 0;
}

.figcaption {
  font-size: 0.9rem;
  text-align: center;
  margin-top: 0.5rem;
  font-style: normal !important;
}

.copy-code-button {
  background: rgba(0,0,0,0.2);
  border: none;
  color: white;
  padding: 0.3rem;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.copy-code-button:hover {
  background: rgba(0,0,0,0.8);
}

.copy-code-button svg {
  display: block;
}

.home-section + .home-section {
  margin-top: 50px !important;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* or 4 if you want */
  gap: 1rem;
  max-width: 1200px;   /* constrain width */
  margin: 0 auto;      /* center horizontally */
  padding: 1rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 2;   /* forces 4:3 box */
  object-fit: cover;     /* crops image */
  object-position: center; /* center crop */
  display: block;
}

.gallery-meta {
  position: static;       /* remove overlay */
  background: none;       /* remove dark layer */
  color: inherit;         /* normal text color */
  padding: 0.5rem 0;
}

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

.post-caption {
  font-style: normal !important;
  font-size: 0.9rem;
}

/* Force caption to NOT be italic (override theme) */
.wrapper.post .post-featured figcaption.post-caption {
  font-style: normal !important;
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.4rem;
  margin-bottom: 3rem;
  text-align: center;
}

.wrapper.post {
  padding-top: 0.0rem; /* reduce from theme default, adjust as needed */
}

.wrapper.post .page-content {
  margin-top: 0.1rem; /* optional: reduces spacing between header and content */
}
/* Credit styling */
.wrapper.post .post-featured figcaption.post-caption .credit {
  color: #888;
}

.credit {
  color: #888;
}

/* Separator spacing */
.wrapper.post .post-featured figcaption.post-caption .separator {
  margin: 0 0.2rem;
}

.wrapper.blog {
    max-width: 1400px;   /* your custom width */
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px
  }

/* Make the container centered and constrain width */
.blog-container {
  max-width: 1200px;   /* adjust to your site width */
  margin: 0 auto;
  padding: 1rem;
}

/* Optional: intro spacing */
.blog-intro {
  text-align: center; /* center text above gallery */
  margin-bottom: 2rem;
  width: 80%;
  text-align: center;
  margin: 0 auto;
}

.blog-intro h2 {
  margin-bottom: 0.5rem;

}

.blog-intro p {
  font-size: 1rem;
  line-height: 1.6;
}

.pagination {
  text-align: center;
  margin: 2rem 0;
  font-size: 0.9rem;
}

.pagination a {
  margin: 0 0.3rem;
  text-decoration: none;
  color: #0077cc;
}

.pagination a:hover {
  text-decoration: underline;
}

.pagination .current {
  margin: 0 0.3rem;
  font-weight: bold;
}

.blog-filters a {
  display: inline-block;
  margin: 0 0.5rem;
  padding: 0.3rem 0.6rem;
  background: var(--color-bg-alt, #eee); /* fallback to #eee if variable not defined */
  border-radius: 3px;
  text-decoration: none;
  color: var(--color-text, #333);
  transition: background 0.2s, color 0.2s;
}

.blog-filters a:hover {
  background: var(--color-bg-hover, #ddd);
}

.category-toc-wrapper {
  text-align: left;
  margin: 2rem 0;
}