/* Lightbox styles */
.team-item {
    position: relative;
    overflow: hidden;
}

.team-item .lightbox-trigger {
    display: block;
    position: relative;
    text-decoration: none;
    border-radius: 10px;
    width: 100%;
}

.team-item .overlay {
    border-radius: 10px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(7 50 49 / 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.team-item:hover .overlay {
    opacity: 1;
}

.team-item svg {
    width: 70px;
    height: 70px;
    background: #60a5a3;
    padding: 20px;
    border-radius: 100px;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 95%;
    height: 95%;
}

.lightbox-image {
    max-width: 100%;
    max-height: max-content;
    width: 30%;
}

.close-lightbox {
    position: absolute;
    top: -25px;
    right: 0;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  user-select: none;
}

.next {
  right: -50px;
}

.prev {
  left: -50px;
}


@media screen and (max-width:600px){
    .lightbox-image{
        width: 80%;
    }
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.lightbox.active { display: flex; }

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-image,
.lightbox-video {
  max-width: 90vw;
  display: none;
  height: 90vh;
  border-radius: 12px;
}

.close-lightbox {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  padding: 0 10px;
  user-select: none;
}
.prev { left: -30px; }
.next { right: -30px; }