





.about_dual_column_layout {
  display: grid;
  grid-template-columns: 60% 40%;
}

.about_main_layout {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 20px;
  margin-bottom: 50px;
}

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

.profile_pic img {
  width: auto;
  max-height: 50%;
  height: auto;
  aspect-ratio: 3 / 4;
  /* Keeps consistent shape if height scales */
  border-radius: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  max-width: 200px;
  object-fit: cover;
}

.profile_pic img:hover {
  transform: scale(1.25);
}

.QPT_logo {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-width: 100%;
}

.QPT_logo img {

  width: 100px;

}

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

.about_banner_pic img {

  max-height: 325px;
  width: 100%;
  /* Keeps consistent shape if height scales */
  border-radius: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  max-width: 1250px;
  object-fit: cover;
  margin-bottom: 50px;
}

.about_banner_pic img:hover {
  transform: scale(1.05);
}


.about_text_dual_column {
  display: flex;
  align-items: center;

}

.gallery-container {
  margin-top: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
}

.gallery-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.gallery-scroll img {
  width: 220px;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  scroll-snap-align: start;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.gallery-scroll img:hover {
  transform: scale(1.05);
}


@media (max-width: 900px) {
  .about_main_layout {
    display: flex;
    flex-direction: column-reverse;
    gap: 20px;
    align-items: center;

  }

  .about_dual_column_layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    /* Optional, but clearer */
    justify-items: center;
    text-align: center;
  }

  #special_skills_small {
    display: flex;
    flex-direction: column-reverse;
  }

  .profile_pic img {
    width: 175px;
    height: auto;
  }

  .about_text_dual_column {
    width: 100%;
    text-align: left;
  }
}

#qpc_text {
  display: grid;
  grid-template-rows: 100px auto;
  margin-left: 25px;
}

.about_special_skills_gallery {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 375px;
  min-width: 100%;
}

.about_special_skills_gallery img {
  position: absolute;

  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.5s ease, opacity 0.5s ease;
  opacity: 0;
  z-index: 0;
}

.about_special_skills_gallery img.active {
  opacity: 1;
  z-index: 3;
  transform: translateY(0px) scale(1);
}

.about_special_skills_gallery img.stack-1 {
  z-index: 2;
  transform: translateX(10px) translateY(10px) scale(0.98);
  opacity: 0.7;
}

.about_special_skills_gallery img.stack-2 {
  z-index: 1;
  transform: translateX(20px) translateY(20px) scale(0.95);
  opacity: 0.5;
}

.about_special_skills_gallery .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(128, 128, 128, 0.4);
  border: none;
  color: white;
  font-size: 32px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 5;
  border-radius: 5px;
  transition: background 0.3s;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;

}

.about_special_skills_gallery .arrow.left {
  left: 0px;
}

.about_special_skills_gallery .arrow.right {
  right: 0px;
}


/* Lightbox overlay */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  animation: zoomIn 0.4s ease;
}