@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: fade-out 1s forwards;
}

::view-transition-new(root) {
  animation: fade-in 1s forwards;
}

@keyframes fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.person__container {
  padding: 0 6vw;
}

.person__title {
  font-family: "BanamexDisplay";
  font-size: 3rem;
  font-style: normal;
  font-weight: 400;
  line-height: 120%; /* 2.6rem */
  letter-spacing: -0.075rem;
}

.person__tags {
  margin: 0 -6vw;
  overflow: auto;
  white-space: nowrap;
  padding-left: 6vw;
  padding-bottom: 10px;
}

.person__tag {
  background: #f6eb66;
  border-radius: 1.125rem;
  color: #000;
  font-family: "BanamexDisplay";
  font-size: 1.05625rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.02438rem;
  text-transform: uppercase;
  display: inline-block;
  padding: 0.7rem 1rem;
  text-decoration: none;
  margin-right: 4vw;
}

.person__cover {
  object-fit: cover;
  object-position: center top;
  margin: 2rem 0;
  height: 88vw;
  width: 88vw;
}

.person__cover_container {
  align-items: center;
  background-image: url(/wp-content/themes/comunidades_2025/assets/capa-1.webp);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  display: flex;
  justify-content: center;
  height: 100%;
  width: 100%;
}

.person__cover_image {
  width: 100%;
}

.person__info {
  display: flex;
  justify-content: space-between;
}

.person__info h5 {
  font-family: "BanamexDisplay";
  font-size: 0.89375rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-transform: uppercase;
  margin: 0;
}

.person__info_block {
  max-width: 45%;
  min-width: 40%;
}

.person__info_block:nth-child(even) {
  max-width: 57.5%;
  min-width: 57.5%;
}

.person__content {
  padding: 3rem 6vw;
  margin: 4rem -6vw;
  color: #000;
  font-family: "BanamexText";
  font-size: 1.3rem;
  font-style: normal;
  font-weight: 400;
  line-height: 120%; /* 150% */
  letter-spacing: -0.03rem;
}

.person__gallery_container,
.person__related_container {
  border-bottom: solid 1px #000;
  margin: 0 -6vw;
  overflow: auto;
  padding-left: 6vw;
  padding-bottom: 4rem;
}

.person__related_container {
  border: none;
}

.person__gallery_title {
  font-family: "BanamexDisplay";
  font-size: 1.875rem;
  font-style: normal;
  font-weight: 400;
  line-height: 2.25rem; /* 120% */
  letter-spacing: -0.05625rem;
  text-transform: uppercase;
}

.person__gallery_item {
  border-radius: 20px;
  cursor: pointer;
  color: #000;
  display: inline-block;
  font-family: "BanamexDisplay";
  font-size: 1rem;
  font-style: normal;
  font-weight: 400 !important;
  line-height: normal;
  letter-spacing: -0.03rem;
  /*text-transform: uppercase;*/
  position: relative;
  margin-right: 1rem;
  margin-bottom: 2rem;
  text-decoration: none;
  width: 10.25rem;
}

.arrow_down_scroll {
  display: block;
  margin: 0 auto;
  position: absolute;
  left: 0;
  right: 0;
}
/*
.person__gallery_item h3 {
  font-family: "BanamexDisplay";
  font-size: 1rem;
  line-height: 120%;
  font-style: normal;
  font-weight: 400 !important;
  margin: 1rem 0;
}
*/
.mc__related_container .person__gallery_item .cover {
  background: #1a2431;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center center !important;
  border-radius: 1.3125rem;
  height: 15.1875rem;
  overflow: hidden;
  width: 10.25rem;
}

.person__gallery_item .letter {
  color: #f6eb66;
  display: block;
  font-size: 12rem;
  line-height: 12rem;
  margin-top: -2.5rem;
  margin-left: -1.1rem;
}

.person__related_title,
.mc__related_title {
  color: #000;
  font-family: "BanamexDisplay";
  font-size: 3rem;
  font-style: normal;
  font-weight: 400;
  line-height: 3.5rem; /* 126.667% */
  letter-spacing: -0.05625rem;
  text-transform: uppercase;
  white-space: normal;
}
.person__related_title,
.mc__related_title {
  margin-top: 4rem;
  font-size: 2rem;
  line-height: 3rem;
  text-transform: none;
}

.mc__related_container {
  display: flex;
  flex-wrap: wrap;
  padding-right: 6vw;
}

.person__related_item {
  display: inline-block;
  width: 13rem;
  margin-right: 1rem;
  color: #000;
  text-decoration: none;
}

/*
.intereted__related .cover,
.person__related_item .cover {
  object-fit: cover;
  border-radius: 50%;
  background: wheat;
  margin: 0 0.5rem;
  width: 12rem;
  height: 12rem;
}
*/

.intereted__related .cover {
  margin: 0;
}

/*
.person__related_item:nth-child(1n) .cover,
.intereted__related .person__gallery_item:nth-child(1n) .cover {
  border-radius: 50%;
  border-bottom-right-radius: 0;
}

.person__related_item:nth-child(2n) .cover,
.intereted__related .person__gallery_item:nth-child(2n) .cover {
  border-radius: 50%;
  border-top-left-radius: 0;
}

.person__related_item:nth-child(3n) .cover,
.intereted__related .person__gallery_item:nth-child(3n) .cover {
  border-radius: 50%;
  border-bottom-left-radius: 0;
}

.person__related_item:nth-child(4n) .cover,
.intereted__related .person__gallery_item:nth-child(4n) .cover {
  border-radius: 50%;
  border-top-right-radius: 0;
}
*/

.intereted__related .person__gallery_item {
  width: 14rem;
}

.intereted__related .person__related_container {
  align-items: flex-start;
  display: flex;
  overflow-x: auto;
}

.intereted__related h3 {
  white-space: break-spaces;
}

.person__related_item .category {
  font-family: "BanamexDisplay";
  font-size: 0.9125rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.02438rem;
  text-transform: uppercase;
  margin: 0.5rem 0;
  text-decoration: none;
  color: #000;
}

.person__related_item .category img {
  height: 0.8125rem;
  margin-left: 1rem;
}

.person__related_item h4 {
  color: #000;
  font-family: "BanamexDisplay";
  font-size: 1.225rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5rem; /* 133.333% */
  letter-spacing: -0.03375rem;
  margin: 0;
  text-transform: uppercase;
  white-space: normal;
}

.person__quotes_title {
  color: #000;
  font-family: "BanamexDisplay";
  font-size: 3rem;
  font-style: normal;
  font-weight: 400;
  line-height: 3.5rem; /* 116.667% */
  margin: 3rem 0 2.5rem 0;
  letter-spacing: -0.05625rem;
}

.person__quotes_content {
  background: #edf6f7;
  color: #000;
  font-family: "BanamexText";
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5rem; /* 150% */
  letter-spacing: -0.03rem;
  padding: 1.5rem;
  border-radius: 1.5rem;
}

.person__quotes {
  padding: 0 6vw 3rem 6vw;
  margin: 0 -6vw 6rem -6vw;
}

#persona_popup {
  background: #1a2431;
  bottom: 0;
  display: none;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
}

.close_btn {
  font-size: 1rem;
  -webkit-filter: invert(100%); /* Safari/Chrome */
  filter: invert(100%);
  color: #fff;
  cursor: pointer;
  position: absolute;
  right: 5%;
  top: 5%;
  width: 1.66rem;
}

#persona_popup_iframe {
  height: 100%;
  width: 100%;
}

#persona_popup.visible {
  display: block;
}

#persona_popup.visible.white-bg {
  background: #fff !important;
}

#persona_popup.visible.white-bg .close_btn {
  filter: invert(0) !important;
}

.overflow {
  overflow: hidden;
}

.card__container .title {
  font-size: 1.2rem;
  line-height: 120%;
}

@media screen and (max-width: 769px) {
  .card__cover_container {
    /*height: 300px;*/
  }
}

@media screen and (max-width: 767px) {
  .person__content {
    padding: 0 2rem;
    margin: 0 -7vw;
  }

  .person__info_block {
    min-width: auto !important;
    max-width: 50% !important;
    width: 50% !important;
  }

  .person__title.small {
    font-size: 2rem;
  }

  .person__container {
    overflow: hidden;
  }

  .person__gallery {
    margin: 0 -6vw;
    padding-left: 6vw;
  }

  .mc__related_title {
    margin-top: 3.5rem;
  }

  .person__quotes {
    margin-bottom: 0;
  }

  .person__related_container {
    display: flex;
    flex-wrap: nowrap !important;
    overflow: auto;
    margin: 0 -6vw;
    padding-left: 6vw;
  }

  .intereted__related .person__gallery_item,
  .person__related_item {
    aspect-ratio: 1/1.5;
    width: 10.25rem;
  }

  .person__info h5 {
    font-size: 1rem;
    line-height: 130%;
  }

  .person__quotes_content {
    font-size: 1.3rem;
    line-height: 140%;
    margin-bottom: 1.6rem;
  }

  .person__tags {
    display: none;
  }

  .person__content {
    line-height: 140%;
  }

  .arrow_down_scroll {
    display: none;
  }

  .person__content p {
    min-height: 30vh;
  }

  .person__cover {
    height: 88vw !important;
    width: 88vw !important;
  }

  #page_header {
    display: none;
  }
}

/*
.intereted__related .cover {
  aspect-ratio: 1 !important;
  border-radius: 50%;
}
*/

.person__title {
  display: flex;
  flex-direction: column;
}

.person__title .back_history.close_btn {
  position: relative !important;
  left: 0 !important;
  top: 0 !important;
  margin-bottom: 2rem;
}

@media screen and (max-width: 1200px) {
}

@media screen and (min-width: 769px) {
  #page_header {
    display: none;
  }
}

@media screen and (min-width: 768px) and (orientation: landscape) {
  /*#page_header {
    display: none;
  }*/

  .person__container {
    min-height: calc(min(50vw, 100vh) + 4rem);
    display: grid;
    grid-template-columns: 50% 5% 40% 5%;
    grid-template-rows: 0rem auto 2rem auto auto auto auto;
    grid-template-areas:
      "cover . tags ."
      "cover . title ."
      "cover . info ."
      "cover . content ."
      "cover . quotes ."
      "cover . gallery ."
      "cover . related ."
      "cover . intereted .";
    padding: 0;
    position: relative;
  }

  .person__quotes {
    border: none;
    grid-area: quotes;
    padding: 0;
    margin: 10rem 0 5rem 0;
  }

  .person__tags {
    display: none;
    grid-area: tags;
    padding-left: 0;
    margin: 0;
  }

  .person__title {
    grid-area: title;
    font-family: "BanamexDisplay";
    font-size: 4.5rem;
    font-style: normal;
    font-weight: 400;
    line-height: 104%; /* 5.85rem */
    letter-spacing: -0.16875rem;
    margin: 4rem 0 1rem 0;
  }

  .person__content {
    border: none;
    grid-area: content;
    margin: 4rem 0 0 0;
    padding: 0;
    text-align: justify;
    font-family: "BanamexText";
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5rem; /* 150% */
    letter-spacing: -0.03rem;
    position: relative;
  }

  .person__info {
    grid-area: info;
  }

  .person__gallery {
    grid-area: gallery;
  }

  .person__gallery_container {
    border: none;
  }

  .person__related {
    grid-area: related;
    margin-right: -5vw;
    margin-bottom: 10rem;
    width: 100%;
  }

  .intereted__related {
    grid-area: intereted;
    margin-right: -5vw;
    margin-bottom: 10rem;
    width: 100%;
  }

  .person__gallery_container,
  .person__related_container {
    margin: 0;
    padding: 1rem 0;
  }

  .intereted__related .person__related_container,
  .person__related_container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .intereted__related .person__related_container {
    grid-template-columns: repeat(4, 1fr);
  }

  .person__related_item {
    display: block;
  }

  .person__cover {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    width: min(50vw, 100vh);
    height: min(50vw, 100vh);
  }

  .intereted__related .person__gallery_item,
  .person__related_item {
    aspect-ratio: 1/1.5;
    display: none;
    width: 100% !important;
  }

  .person__related .category {
    align-items: center;
    display: flex;
  }

  .person__related_item span {
    display: inline-block;
    hyphens: auto;
    white-space: break-spaces;
    width: 12vw;
  }

  .intereted__related .person__gallery_item:first-child,
  .intereted__related .person__gallery_item:nth-child(2),
  .intereted__related .person__gallery_item:nth-child(3),
  .person__related_item:first-child,
  .person__related_item:nth-child(2),
  .person__related_item:nth-child(3) {
    display: block;
    margin-right: 1vw;
  }

  .person__related_item:nth-child(3n) {
    margin-right: 0;
  }

  /*
  .intereted__related .cover,
  .person__related_item .cover {
    margin: 0;
    height: 12vw;
    width: 12vw;
  }

  .intereted__related .cover {
    border-radius: 50%;
  }*/

  .intereted__related h3 {
    white-space: break-spaces;
  }
}

@media screen and (min-width: 1201px) and (max-width: 1400px) {
  /* 1134px 769px */
  .intereted__related .person__related_container,
  .person__related_container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    display: flex;
    flex-wrap: wrap;
  }
  .person__related_container .card__container {
    height: 21rem;
    margin: 0;
  }
}

@media screen and (max-width: 1200px) {
  /* 1133px */
  .person__related_item,
  .intereted__related .person__gallery_item {
    width: 27vw;
    height: 40vh;
  }
  .intereted__related .person__related_container,
  .person__related_container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}
@media screen and (max-width: 768px) {
  .person__related_item,
  .intereted__related .person__gallery_item {
    width: 40vw;
  }

  .persona-template-default .mc__related_container .person__gallery_item h3 {
    font-size: 1rem;
    line-height: 120%;
  }
  /*
  .intereted__related .person__related_container,
  .person__related_container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  */

  .person__related_container {
    display: flex !important;
  }

  .intereted__related .person__gallery_item,
  .person__related_item {
    height: 15.1875rem !important;
    margin-left: 0;
  }
}
@media screen and (max-width: 600px) {
  /*
  
  .intereted__related .person__related_container,



  .person__related_item,
  .intereted__related .person__gallery_item {
    width: 90vw;
    aspect-ratio: 1 / 1.2;
  }
  .person__related_container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
  }
  .intereted__related .person__related_container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0rem;
  }
  .intereted__related .person__gallery_item {
    width: 42vw;
    aspect-ratio: 1 / 1.5;
  }
  */
}
