/*
******************************
** Team Styles
******************************
*/
/*
******************************
** Media Query Mixin
******************************
*/
.team {
  display: grid;
  gap: 3px;
  margin-bottom: 20px;
}
@media screen and (min-width: 1021px) {
  .team {
    margin-bottom: 70px;
  }
}
@media screen and (min-width:650px) {
  .team {
    grid-template-columns: 1fr 1fr;
  }
}
@media screen and (min-width: 1021px) {
  .team {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media screen and (min-width: 1401px) {
  .team {
    grid-template-columns: repeat(4, 1fr);
  }
}
.team .team-item {
  position: relative;
}
.team .team-item .image {
  position: relative;
}
.team .team-item .image:after {
  content: "";
  width: 100%;
  height: 100%;
  background: rgba(var(--color-main-rgb), 0.7);
  position: absolute;
  left: 0;
  top: 0;
  opacity: 1;
  transition: all 0.2s ease-in-out;
}
.team .team-item .image img {
  display: block;
}
.team .team-item .text {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  text-align: center;
  color: var(--color-minor);
  line-height: 1.3em;
  padding: 30px 20px;
  transition: all 0.2s ease-in-out;
}
.team .team-item .text .name {
  color: var(--color-highlight);
  text-transform: uppercase;
  font-size: var(fontsize-m);
}
.team .team-item .text .title {
  margin-bottom: 10px;
}
.team .team-item .link--box-highlight {
  display: none;
  width: 100%;
  text-align: center;
  position: absolute;
  left: 0;
  bottom: 0;
  margin: 0;
}
.team .team-item .link--box-highlight:before {
  position: static;
  margin-right: 5px;
}
.team .team-item .link--box-highlight:hover {
  background: var(--color-highlight);
  color: var(--color-minor);
}
.team .team-item .popup {
  display: none;
}
.team .team-item:hover .image:after {
  opacity: 0;
  transition: all 0.2s ease-in-out;
}
.team .team-item:hover .text {
  display: none;
  transition: all 0.2s ease-in-out;
}
.team .team-item:hover .link--box-highlight {
  display: block;
  transition: all 0.2s ease-in-out;
}

.fancybox__dialog .popup {
  max-width: 1000px;
  background: var(--color-complement);
  margin: auto 10px;
}
.fancybox__dialog .popup:before {
  content: "";
  width: 100%;
  height: 42%;
  background: var(--color-highlight);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}
.fancybox__dialog .popup .column {
  position: relative;
  gap: 20px;
  z-index: 5;
}
@media screen and (min-width: 1021px) {
  .fancybox__dialog .popup .column {
    gap: 40px;
  }
}
.fancybox__dialog .popup .column .col-1 .image {
  max-width: 200px;
  margin: auto;
}
@media screen and (min-width: 1021px) {
  .fancybox__dialog .popup .column .col-1 .image {
    max-width: none;
    margin: unset;
  }
}
.fancybox__dialog .popup .column .col-1 .image img {
  border-radius: 150px;
  border: 3px solid var(--color-minor);
}
.fancybox__dialog .popup .column .col-2 {
  background: var(--color-minor);
  padding: 25px;
}
.fancybox__dialog .popup .column .col-2 h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--color-highlight);
}
@media screen and (min-width: 1021px) {
  .fancybox__dialog .popup .column .col-2 h3 {
    margin-bottom: 30px;
  }
}
.fancybox__dialog .popup .column .col-2 .info {
  margin-bottom: 8px;
}
@media screen and (min-width:650px) {
  .fancybox__dialog .popup .column .col-2 .info {
    display: grid;
    gap: 40px;
    grid-template-columns: 4fr 7fr;
    margin-bottom: 18px;
    font-size: calc(var(--fontsize-3xl) / 5);
  }
}
.fancybox__dialog .popup .column .col-2 .info label {
  font-weight: bold;
}