.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  overflow: hidden;
}

.project-thumb {
  height: 150px;
  background: #f3f1ee;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-thumb-fallback::before {
  content: "\f03e";
  font-family: "FontAwesome";
  font-size: 2rem;
  color: rgba(0, 0, 0, 0.25);
}

.project-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem;
}

.project-tags {
  margin-bottom: 0.5rem;
}

.project-tag {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 0.25rem;
  background: rgba(189, 93, 56, 0.12);
  color: #BD5D38;
  margin: 0 0.35rem 0.35rem 0;
}

.project-tag-year {
  background: rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.5);
}

.project-title {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.project-blurb {
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.65);
  flex: 1;
}

.project-view-btn {
  align-self: flex-start;
}

#project-modal .modal-dialog {
  max-width: 850px;
}

#project-modal .modal-embed-frame {
  width: 100%;
  height: 65vh;
  border: 0;
}

#project-modal .modal-embed-fallback {
  display: none;
  margin: 2rem 0;
  text-align: center;
  color: rgba(0, 0, 0, 0.55);
}

/* --- Image carousel (Interests / Awards cards) --- */

.card-carousel {
  position: relative;
  display: block;
  padding: 0;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-slide.slide-missing {
  background: #f3f1ee;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide.slide-missing::before {
  content: "\f03e";
  font-family: "FontAwesome";
  font-size: 2rem;
  color: rgba(0, 0, 0, 0.25);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.7rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}

.card-carousel:hover .carousel-arrow {
  opacity: 1;
}

.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }

.carousel-dots {
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.carousel-dot.active {
  background: #fff;
}

/* --- Support goal progress bar (matches the site's card + blue accent style) --- */

.support-goal-card {
  max-width: 460px;
  margin-top: 0.75rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
}

.support-goal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.support-goal-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #343a40;
  line-height: 1.3;
}

.support-goal-share {
  flex-shrink: 0;
}

.support-goal-bar {
  position: relative;
  height: 30px;
  padding: 3px;
  background: #e9ecef;
  border-radius: 999px;
}

.support-goal-fill {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  background: #007bff;
  border-radius: 999px;
  transition: width 0.6s ease;
  overflow: hidden;
}

.support-goal-bar-label {
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0 0.75rem;
  white-space: nowrap;
}

.support-goal-bar-label-out {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  color: #495057;
  padding: 0 0 0 0.5rem;
}

.support-goal-updated {
  margin-top: 0.4rem;
  font-size: 0.7rem;
  color: rgba(0, 0, 0, 0.45);
}

.support-goal-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.support-goal-link .kofi-cup {
  height: 1.3em;
  vertical-align: -0.3em;
  margin-right: 0.25rem;
}

/* --- About section tagline --- */

.about-tagline {
  font-size: 1.35rem;
  font-weight: 700;
}

/* Left-align the visible social circles with the text column
   (each fa-stack is 2.5em wide but its 2em circle is centered, leaving
   a ~0.25em transparent gutter on the left) */
.list-social-icons {
  margin-left: -6px;
}

/* --- Image lightbox (click a card image to expand) --- */

.image-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.image-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 6px;
}

.image-lightbox-close {
  position: absolute;
  top: 12px;
  right: 20px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
}

.image-lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.image-lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.35);
}

.image-lightbox-prev { left: 16px; }
.image-lightbox-next { right: 16px; }

.image-lightbox-footer {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  pointer-events: none;
}

.image-lightbox-dots {
  display: flex;
  gap: 7px;
  pointer-events: auto;
}

.image-lightbox-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.image-lightbox-dot.active {
  background: #fff;
}

.image-lightbox-counter {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
}

.project-thumb img {
  cursor: zoom-in;
}

/* --- Ko-fi inline button: match the floating widget's yellow --- */

.btn-container .kofi-button {
  background-color: #fcbf47 !important;
}

.btn-container .kofi-button .kofitext {
  color: #323842 !important;
}

/* --- Experience thumbnails (gaming jobs) --- */

.experience-thumb {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
}

.experience-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.experience-thumb-fallback {
  background: #f3f1ee;
  display: flex;
  align-items: center;
  justify-content: center;
}

.experience-thumb-fallback::before {
  content: "\f11b";
  font-family: "FontAwesome";
  font-size: 1.5rem;
  color: rgba(0, 0, 0, 0.25);
}

/* Education thumbnails share the experience-thumb styling but fall back
   to a graduation cap instead of a gamepad */
.experience-thumb--edu.experience-thumb-fallback::before {
  content: "\f19d";
}

/* Carousel arrows: hover-reveal needs a fallback on touch screens */
@media (hover: none) {
  .carousel-arrow {
    opacity: 0.85;
  }
}

/* --- Skills section --- */

.skill-group {
  margin-bottom: 2rem;
}

.skill-group-blurb {
  font-size: 0.95rem;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 0.75rem;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-pill {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(189, 93, 56, 0.1);
  color: #9c4a2a;
  font-size: 0.9rem;
  white-space: nowrap;
}

a.skill-pill {
  text-decoration: none;
  border: 1px solid rgba(189, 93, 56, 0.35);
}

a.skill-pill:hover {
  background: rgba(189, 93, 56, 0.2);
  color: #7a3820;
}

a.skill-pill .fa {
  font-size: 0.75em;
  margin-left: 0.25rem;
}

/* --- Card hover affordance --- */

.project-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
