/* Fonts: EB Garamond for body, Times New Roman (Oswald?) for headers */
body {
  font-family: 'EB Garamond', serif;
  color: #222;
  background-color: #fffdf8;
  line-height: 1.7;
}

.title {
  font-family: 'Times New Roman', serif;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.subtitle {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 1.25rem;
  color: #555;
}

.section-heading {
  font-family: 'Times New Roman', serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  border-bottom: 2px solid #000;
  display: inline-block;
  padding-bottom: 0.25rem;
}

.navbar-nav .nav-link {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  margin: 0 1rem;
  font-size: 0.9rem;
}

.navbar-toggler {
  margin-left : auto;
  margin-right : auto;
}

.navbar-light .navbar-toggler {
  border: none !important;       /* kill the border */
  box-shadow: none !important;   /* kill the shadow on click */
  outline: none !important;
}

.languages {
  font-size: 16px;
  color: #555;
  letter-spacing: 1px;
}

.portfolio-card {
  border: 1px solid #333;
  border-radius: 0;
  background: #fff;
  transition: transform 0.2s;
}

.portfolio-card:hover {
  transform: translateY(-3px);
}

.anchor {
  display: block;
  position: relative;
  top: -20px;
  visibility: hidden;
}

.anchor-resume {
  display: block;
  position: relative;
  top: -50px;
  visibility: hidden;
}

.photoseries-anchor {
  display: block;
  position: relative;
  top: -25px;
  visibility: hidden;
}

footer {
  font-size: 0.85rem;
  color: #444;
}

#pdf-viewer {
  display: block;
  width: 95%;
  max-width: 800px;
  border: 1px solid #333;
  margin: 1rem auto;
  /*box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);*/
}

/* Keep navbar inline and responsive without wrapping or hamburger */
.navbar-nav {
  flex-wrap: nowrap;            /* Force inline */
  justify-content: center;
  overflow-x: auto;             /* Allow horizontal scroll if absolutely needed */
  scrollbar-width: none;        /* Hide scrollbar on Firefox */
  -ms-overflow-style: none;     /* Hide scrollbar on IE/Edge */
}

.navbar-nav::-webkit-scrollbar {
  display: none;                /* Hide scrollbar on WebKit browsers */
}

.navbar-nav .nav-link {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  white-space: nowrap;          /* Prevent link text from breaking */
  margin: 0 0.75rem;
  font-size: 0.9rem;
  transition: font-size 0.2s ease, margin 0.2s ease;
}

.contact {
  letter-spacing: 1px;
}

.portfolio-card .border-bottom {
    min-height: 80px;
}

.project-image {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    margin: 1rem 0;
    border: 1px solid #333;
}

.photo-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid #333;
    transition: opacity 0.2s ease;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;

    overflow-y: auto;
    padding: 2rem 1rem;

    display: flex;
    justify-content: center;
    align-items: flex-start;
}

#lightbox-image,
#lightbox-caption {
    display: block;
    width: 100%;
    max-width: min(90vw, 900px);
}

#lightbox-image {
    display: block;
    margin: 0 auto;   /* no bottom margin */
    max-width: min(90vw, 900px);
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

#lightbox-caption {
    margin: 0 auto;
    padding: 0.9rem 1rem;
    background: rgba(0,0,0,0.66);
    color: white;
    text-align: left;
    box-sizing: border-box;
}

.series-description {
    display: inline-block;
    position: relative;
    vertical-align: -0.85em;
    padding-left: 0.75em;
    transform: translateX(1.5rem);
}

.series-description::before {
    content: "";
    position: absolute;

    left: 0;
    top: 15%;
    height: 70%;   /* adjust to taste */

    width: 1px;
    background: #333;
}

/* Shrink spacing and font a bit on smaller screens */
@media (max-width: 768px) {
  .navbar-nav .nav-link {
    margin: 0 0.4rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .navbar-nav .nav-link {
    margin: 0 0.25rem;
    font-size: 0.75rem;
  }

  .section-heading {
    width: 300px;          /* or any fixed width */
    margin-left: auto;
    margin-right: auto;
    text-align: center;    /* centers text inside too */
    display: block;        /* ensures margins work */
  }

  .series-description {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;

    transform: none;
    padding: 0;
    margin: 0 auto;

    text-align: center;
}

  .series-description::before {
    display: none;
    content: none;
  }
}