.breadcrumb-item::after {
  content: ">";
}

.breadcrumb-item:last-child::after {
  content: "";
}
/* ---------------------- */
/* Lightbox Modal Styling */
/* ---------------------- */

.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top of everything */
  padding-top: 60px; /* Location of the box (from the top) */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.65); /* Black w/ opacity */
}

/* Modal Content (The Image) */
.modal-content {
  margin: auto;
  display: block;
  width: 90% !important;
  max-height: 90vh; /* To leave space for padding/caption */
  border-radius: 5px;
}

/* The Close Button */
.close-button {
  position: absolute;
  top: 2px;
  right: 18px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: 500;
  transition: 0.3s;
  cursor: pointer;
}

.close-button:hover,
.close-button:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* Add a class to make images clickable */
.lightbox-trigger {
  cursor: zoom-in;
  transition: transform 0.2s;
}

/* 1. Reset the counter on the WRAPPER, not the list. 
      This ensures counting continues even if an image breaks the list. */
.fixed-list-alignment {
  counter-reset: step-counter;
}

.fixed-list-alignment ol {
  /* Remove default browser styles */
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
  margin-bottom: 0 !important; /* Prevents gaps between broken lists */
}

.fixed-list-alignment ol li {
  /* 2. Key Fix: Use 'relative' instead of 'grid'. 
        This keeps images and notes normal size (not squashed). */
  position: relative !important;

  /* Make space on the left for the number */
  padding-left: 2.5rem !important;
  margin-bottom: 1rem;

  /* Increment our custom counter */
  counter-increment: step-counter;
}

/* 3. Create the number and stick it to the left */
.fixed-list-alignment ol li::before {
  content: counter(step-counter) ".";

  /* Absolute positioning: putting the number in the padding area */
  position: absolute;
  left: 0;
  top: 0; /* Aligns with the top of the text */

  font-weight: bold;
  width: 2rem; /* Fixed width for the number area */
}

/* 4. Ensure paragraphs inside list items behave normally */
.fixed-list-alignment ol li p {
  margin: 0 !important;
  padding: 0 !important;
}
