@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Bebas+Neue&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Bebas+Neue&family=Contrail+One&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Contrail One", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: rgb(30, 30, 30);
  background-color: #e8e6e0;
  padding: 40px 20px;
  max-width: 1280px;
  margin: 0 auto;
}

a {
  color: #8d3f0f;
  text-decoration: underline;
}

a:hover {
  text-decoration: none;
}

/* Header & Dividers */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.contact-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-info {
  text-align: right;
  line-height: 1.35;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  color: rgb(30, 30, 30);
  transition: opacity 0.2s ease;
}

.social-links a:hover {
  opacity: 0.6;
}

/* Dynamically scales icon height to match the 2 lines of text (~2.6em) */
.social-links svg {
  height: 2.6em;
  width: auto;
  fill: rgb(164 149 137);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  body {
    padding: 24px 16px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .contact-wrapper {
    width: 100%;
    justify-content: space-between;
  }

  .contact-info {
    text-align: left;
  }
}



.divider {
  border: none;
  border-top: 2px solid rgb(30, 30, 30);
  margin-bottom: 36px;
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

/* Project Row & Accordion */
.project {
  margin-bottom: 24px;
  cursor: pointer;
  transition: margin-bottom 0.35s ease;
}

.project.expanded {
  margin-bottom: 60px;
}

.project-meta {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 14px;
}

.project-title {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 4em;
  flex: 0 0 auto;
  white-space: nowrap;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgb(30, 30, 30);
}

.project-title::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1;
  color: rgb(30, 30, 30);
  min-width: 24px;
}

.project.expanded .project-title::before {
  content: "−";
}

.project-description {
  flex: 1;
  max-width: none;
  line-height: 1.6;
  font-size: 0.95rem;
  color: rgb(30, 30, 30);
  padding-top: 2px;
}

/* Horizontal Carousel */
.carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 6px;
  padding-left: 2.5em;
  cursor: grab;
  user-select: none;
  scrollbar-width: thin;
  scrollbar-color: rgb(30, 30, 30) transparent;
}

.carousel:active {
  cursor: grabbing;
}

.carousel::-webkit-scrollbar {
  height: 4px;
}

.carousel::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}

.carousel::-webkit-scrollbar-thumb {
  background: rgb(30, 30, 30);
}

.carousel-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
}

.carousel-item img {
  height: 150px;
  width: auto;
  border: 2px solid rgb(30, 30, 30);
  object-fit: contain;
  display: block;
  filter: grayscale(100%);
  opacity: 0.9;
  transition: height 0.35s ease, filter 0.35s ease, mix-blend-mode 0.35s ease, opacity 0.35s ease;
  
  -webkit-user-drag: none;
  user-drag: none;
  user-select: none;
}

.project.expanded .carousel-item img {
  height: 300px;
  filter: grayscale(0%);
  mix-blend-mode: normal;
  opacity: 1;
}

/* Hover Captions */
.caption {
  margin-top: 8px;
  font-size: 0.85rem;
  font-style: italic;
  color: rgb(30, 30, 30);
  max-width: 100%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.carousel-item:hover .caption {
  opacity: 1;
}

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(232, 230, 224, 0.96);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 40px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox img {
  max-width: 85vw;
  max-height: 80vh;
  border: 2px solid rgb(30, 30, 30);
  box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.lightbox-caption {
  margin-top: 16px;
  font-size: 0.95rem;
  font-style: italic;
  color: rgb(30, 30, 30);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  color: rgb(30, 30, 30);
  user-select: none;
}

/* Lightbox Navigation Buttons */
.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 3rem;
  color: rgb(30, 30, 30);
  cursor: pointer;
  padding: 16px;
  line-height: 1;
  user-select: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lightbox-btn:hover {
  opacity: 0.6;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  body {
    padding: 24px 16px;
  }

    .carousel {

      padding-left: unset;
    }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .project-meta {
    flex-direction: column;
    gap: 12px;
  }

  .project-title {
    flex: none;
    width: 100%;
    white-space: normal;
  }

  .project-description {
    max-width: 100%;
    padding-top: 0;
  }

  .lightbox-btn {
    font-size: 2rem;
    padding: 8px;
  }
  
  .lightbox-prev {
    left: 8px;
  }
  
  .lightbox-next {
    right: 8px;
  }
}