@font-face {
  font-family: 'mainFont';
  src: url("Fonts/lato-normal-400.woff2") format('woff2'); 
  font-weight: normal;
    font-style: normal;
    font-display: swap; 
}
body {
    font-family: 'mainFont', sans-serif;
    background-color: #F2F0EF;
    margin-top: 1.5rem;
    margin-left: 2%;
    margin-right: 4%;

}

.container {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
}

.decorative {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: auto;
  height: 8px;
  background-color: #041E2B;
  z-index: 9999;
  transform: translateX(100%);
  animation: slideInBar 1s ease-out forwards;
}

@keyframes slideInBar {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.title {
  margin-bottom: -1rem;
}

.titleP {
  margin-bottom: 0.3rem;
  font-size: 14px;
}

.timeline {
  flex: 15%;
  background-color: #f1f1f1;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 20px;
  position: sticky;
  height: fit-content;
  overflow: visible;
  top: 1.5rem;
  align-self: flex-start;
  isolation: isolate;
}

.timelineBox:last-of-type {
  margin-bottom: 0; 
}

.timelineBox:not(:last-of-type)::after {
  content: ""; 
  position: absolute; 
  left: 50%; 
  transform: translateX(-50%); 
  top: 100%; 
  width: 4px; 
  height: 24px;
  background-color: black; 
  z-index: -1; 
  pointer-events: none; 
}

.timelineBox {
  background-color: #003153;
  padding: 5px;
  border: #003153;
  border-style: solid;
  border-width: 0px;
  border-radius: 5px;
  position: relative; /* allows layering above line */
  z-index: 1; /* keeps boxes above the line */
  width: 80%; /* controls box width */
  margin: 0 auto 24px; /* centers boxes */
  text-align: center;
  transition: transform 0.2s ease;
}

.timelineBox:hover {
  transform: translateY(-4px) scale(1.02);
}

.timelineBox a {
  text-decoration: none;
  color: inherit;
  display: block;
  padding-left: 10px;
  padding-right: 10px;
}

.timelineBox h3 {
  margin-bottom: -0.5rem;
  color: white;
}

.timelineBox p {
  font-size: 14px;
  color: white;
}

.ux {
  flex: 70%;
  min-width: 0;
  background-color: #D9D9D9;
  padding-left: 30px;
  padding-right: 20px;
  border: 0px solid white;
  border-radius: 5px;
  background-image: url("Repeat group 1.svg");
  background-repeat: repeat; 
  background-size: 200px; 
  background-position: center;
  overflow: visible;
  min-width: 0;
}

.uxItem {
  scroll-margin-top: 1.5rem; 
}

.container1 {
  display: flex;
  align-items: auto;
  justify-items: normal;
  height: auto;
  align-items: flex-start;
}

.card {
  background-color: #f1f1f1;
  margin: 10px;
  padding: 20px;
  font-size: 30px;
  flex-grow: 1;
  flex-basis: 33%;
  max-width: 26rem;
}

.card p {
  min-height: 150px;
}

.card button {
  background-color: aqua;
  position: relative;
  left: 10rem;
  top: .5rem;
  right: 1rem;
  width: 6rem;
  height: 2rem;
  border-radius: 2rem;
}

.line {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}



@media (max-width: 480px) {
  .container {
    flex-direction: column;
  }
  .timeline {
    position: relative; /* 🔥 remove sticky */
    height: auto; /* 🔥 allow natural height */
    top: auto;
  }
}

html {
  overflow-x: clip;          /* NEW (preferred over hidden) */
  overflow-y: auto;          /* NEW keep vertical scroll normal */
  scroll-behavior: smooth;
}

body {
  overflow-x: clip;          /* NEW */
}

.scrollTop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background-color: #003153;
  color: white;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 14px;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.scrollTop:hover {
  transform: translateY(-2px);
}

/*lightbox starts here!!!!*/
/* ===== Reusable page thumbnail rows ===== */
.lightbox-row {
  display: flex;
  flex-wrap: nowrap; /* keep one row */
}

.lightbox-row::after {
  content: none;
  display: none;
}

.lightbox-row > .column {
  float: none;       /* override old float behavior only for lightbox rows */
  width: auto;
  flex: 1 1 0;       /* equal-width thumbnails */
  min-width: 0;
  padding: 0 8px;
}

.lightbox-row > .column img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== Modal shell ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 99999;            /* above decorative bar and scroll-to-top */
  padding-top: 40px;         /* smaller top gap than the original */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;          /* no modal/page scrollbar feel */
  background-color: rgba(0, 0, 0, 0.96);
}

.modal-content {
  position: relative;
  margin: auto;
  padding: 0;
  width: 90%;
  max-width: 1100px;         /* close to original feel, slightly tighter */
  max-height: 90vh;
  background-color: transparent;
}

/* Lock page scroll while modal is open */
html.lightbox-open,
body.lightbox-open {
  overflow: hidden;
}

/* ===== Close button ===== */
.close {
  color: white;
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 35px;
  font-weight: bold;
  z-index: 100000;
}

.close:hover,
.close:focus {
  color: #999;
  text-decoration: none;
  cursor: pointer;
}

/* ===== Slides ===== */
.mySlides {
  display: none;
  position: relative; /* anchors .numbertext to each slide */
  text-align: center;
}

.lightbox-main-image {
  display: block;
  width: auto;             /* do not force gigantic full-width screenshots */
  max-width: 100%;
  max-height: 75vh;        /* main image size control */
  margin: 0 auto;
  object-fit: contain;     /* preserve aspect ratio while fitting the box */
}

/* ===== Navigation arrows ===== */
.cursor {
  cursor: pointer;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;                /* vertically centered */
  transform: translateY(-50%);
  width: auto;
  padding: 16px;
  margin-top: 0;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
}

.prev {
  left: 0;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* ===== Number text + caption ===== */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
  left: 0;
}

.caption-container {
  text-align: center;
  background-color: black;
  padding: 8px 16px;
  color: white;
}

/* ===== Optional modal thumbnail strip ===== */
.lightbox-thumb-strip {
  display: flex;
  flex-wrap: nowrap;
}

.lightbox-thumb-strip::after {
  content: none;
  display: none;
}

.lightbox-thumb-strip > .column {
  float: none;
  width: auto;
  flex: 1 1 0;
  min-width: 0;
  padding: 8px 8px 0;
}

.lightbox-thumb-strip .demo {
  display: block;
  width: 100%;
  opacity: 0.6;
}

.active,
.demo:hover {
  opacity: 1;
}

/* ===== Original hover styling preserved ===== */
img.hover-shadow {
  transition: 0.3s;
}

.hover-shadow:hover {
  box-shadow:
    0 4px 8px 0 rgba(0, 0, 0, 0.2),
    0 6px 20px 0 rgba(0, 0, 0, 0.19);
}