/* 4-column responsive grid (1 on mobile, 2 on tablet, 4 on desktop) */
.am-team-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .am-team-grid { grid-template-columns: repeat(2,1fr); }
}
@media (min-width: 1024px) {
  .am-team-grid { grid-template-columns: repeat(4,1fr); }
}

/* Card base */
.am-team-member {
  position: relative;
  overflow: hidden;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}
.am-photo img {
  width: 100%;
  height: auto;
  display: block;
}
.am-info {
  padding: 12px;
}
.am-info h3 {
  margin: 8px 0 4px;
  font-size: 1.1rem;
}
.am-info .am-desig {
  margin: 0;
  color: #666;
  font-size: .9rem;
}

/* Hover overlay */
.am-hover-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.75);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 16px;
  opacity: 0;
  transition: opacity .3s ease-in-out;
  text-align: center;
}
.am-team-member:hover .am-hover-overlay {
  opacity: 1;
}
.am-hover-overlay h3,
.am-hover-overlay p {
  margin: 4px 0;
}
.am-hover-overlay button {
  margin-top: 12px;
  padding: 8px 14px;
  background: #fff;
  color: #333;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: .95rem;
}

/* Modal backdrop (hidden by default) */
.am-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  align-items: center;
  justify-content: center;
  display: none;
  z-index: 9999;
}
/* Show modal */
.am-modal.show {
  display: flex;
}

/* Modal window */
.am-modal-content {
 background: #fff;
    padding: 24px;
    max-width: 600px;
    width: 90%;
    border-radius: 6px;
    position: absolute;
    text-align: left;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Close button */
.am-modal-close {
  position: absolute;
  top: 12px; right: 16px;
  font-size: 1.5rem;
  color: #333;
  cursor: pointer;
  z-index: 10000;
}

.am-modal-content h3 {
  margin-top: 0;
}
.am-modal-content .am-desig {
  color: #555;
  margin-bottom: 16px;
}
