/* ----- Hero Banner (Campus Only) ----- */
.hero-banner {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay-full {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  text-align: center;
  color: #fff;
  padding: 0 1rem;
}

.hero-overlay-full h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: bold;
  margin: 0;
}

/* ----- Staff Grid (Shared) ----- */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.staff-member {
  text-align: center;
  cursor: pointer;
}

/* Circular thumbnails on main pages */
.staff-member img {
  width: 100%;
  max-width: 150px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%; /* Circular */
  transition: transform 0.2s ease;
}

.staff-member img:hover {
  transform: scale(1.05);
}

.staff-member .name {
  margin: 0.5rem 0 0;
  font-weight: bold;
}

.staff-member .title {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

/* ----- Category Heading (Staff Page) ----- */
.category-heading {
  border-bottom: 1px solid black;
  padding-bottom: 0.25rem;
  margin: 2rem 0 1rem;
  font-size: 1.5rem;
  font-weight: bold;
}

/* ----- Modal (Shared) ----- */
.staff-modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
  border-radius: 10px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  scroll-behavior: smooth;
  padding-bottom: 2rem;
}

/* Modal images: square with rounded corners */
.modal-content img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px; /* Rounded corners */
  margin-top: 3rem;
  margin-bottom: 1rem;
  display: block;
}

@media (max-width: 600px) {
  .modal-content {
    max-height: 70vh;
  }
}

/* ----- Close Button (Shared) ----- */
.close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  background: transparent;
  border: none;
  padding: 0;
  line-height: 1;
  user-select: none;
}

.close:hover {
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
}

/* ----- Slideshow (Campus Only) ----- */
.slideshow-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  margin-bottom: 1rem;
  padding-top: 3rem;
}

.slideshow-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.slideshow-container::-webkit-scrollbar {
  display: none;
}

.slides-wrapper {
  display: flex;
  width: 100%;
  transition: transform 0.4s ease-in-out;
}

.slide {
  flex: 0 0 100%;
  max-width: 100%;
  scroll-snap-align: center;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  height: auto;
}

.slide.active {
  display: block;
}

.prev,
.next {
  background-color: #fff;
  color: #000;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 2rem;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
}

.dot {
  height: 10px;
  width: 10px;
  background-color: #ccc;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: #333;
}

.modal-content img.slide {
  max-width: 100%;
  width: 100%;
  border-radius: 10px;
  margin: 0 auto 1rem;
  display: block;
  box-sizing: border-box;
}

/* Modal info text styling */
.modal-info {
  margin-top: 1rem;
  text-align: center;
}

.modal-info .name {
  font-weight: bold;
  font-size: 1.8rem;
  margin: 0.5rem 0 0;
}

.modal-info .title {
  font-size: 1.4rem;
  color: #666;
  margin: 0 0 1rem;
}

.modal-info .biography {
  margin: 1rem 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

.modal-info .email a {
  color: #00B2E3;
  text-decoration: none;
}

.modal-info .email a:hover {
  text-decoration: underline;
}

.modal-info .phone {
  margin-top: 0.5rem;
  color: #333;
  font-size: 1.2rem;
}

