/* General */
body {
   font-family: 'Almendra', serif;
  color: gold;
  background: url('Strixhaven-cover-wide (1).webp') no-repeat center center;
  background-size: cover;
  height: 100vh;
  overflow: hidden;
  position: relative;
  transition: opacity 0.8s ease-out;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none;    /* Firefox */
  overflow-y: scroll;
}

header {
  text-align: center;
  padding: 20px;
  position: sticky;
  top: 0;
  background: rgba(0,0,0,0.9);
}

.home-button {
  position: fixed;
  top: 20px;
  left: 20px;
  font-family: 'Almendra', serif;
  font-size: 1.5em;
  color: gold;
  background: rgba(0,0,0,0.4);
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  z-index: 9999;}
.home-button::before,
.home-button::after {
  content: '❮';
  margin: 0 10px;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  color: gold;
}

.home-button::after {
  content: '❯';
}

.home-button:hover::before,
.home-button:hover::after {
  opacity: 1;
  transform: scale(1.2);
}

.home-button:hover {
  background: gold;
  color: black;
}


/* College containers */
.college-container {
  margin: 40px auto;
  padding: 20px;
  max-width: 1200px;
  background: rgba(0,0,0,0.5);
  border-radius: 12px;
}

.college-container h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.8em;
  color: gold;
}

/* Faculty grid */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

/* Faculty card */
.faculty-card {
  background: rgba(0,0,0,0.5);
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  padding: 10px;
  transition: transform 0.2s ease;
}

.faculty-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.faculty-card h3 {
  margin: 0;
  font-size: 1.1em;
  color: white;
}

/* Hover effect */
.faculty-card:hover {
  transform: scale(1.05);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background: rgba(0,0,0,0.8);
}

.modal-content {
  background: #222;
  margin: auto;
  padding: 20px;
  border-radius: 12px;
  max-width: 800px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.modal-content img {
  width: 300px;
  height: auto;
  border-radius: 8px;
}

.modal-text {
  flex: 1;
}

.modal h2 {
  margin-top: 0;
  color: gold;
}

.close {
  color: #aaa;
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 32px;
  cursor: pointer;
}
.close:hover {
  color: white;
}
body.faculty-page {
  background: url("Strixhaven-cover-wide (1).webp") no-repeat center center fixed;
  background-size: cover;
  font-family: 'Almendra', serif;
  margin: 0;
  padding: 0;
  color: white; /* ensures readability */
}
.modal {
  display: none; 
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  overflow-y: auto;
}

.modal-content {
  display: flex;
  flex-direction: row; /* default = side by side */
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  max-width: 900px;
  margin: 5% auto;
  background: rgba(0, 0, 0, 0.95);
  border: 2px solid gold;
  border-radius: 12px;
  padding: 20px;
  color: gold;
  font-family: 'Almendra', serif;
}

.modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 90%;
  margin: auto;
}

.modal-content img {
  width: 80%;   /* keeps it from being too huge on small screens */
  max-width: 400px;
  height: auto;
  border-radius: 12px;
  margin-bottom: 15px;
}

/* Desktop styles */
@media (min-width: 768px) {
  .modal-content {
    flex-direction: row;
    justify-content: center;
    text-align: left;
    max-width: 900px;
  }

  .modal-content img {
    width: 50%;
    max-width: 900px; /* larger on desktop */
    margin-right: 20px;
    margin-bottom: 0;
  }

  .modal-text {
    flex: 1;
  }
}