.mexicogp_white_logo {
  display: block;
}
.mexicogp_black_logo {
  display: none;
}
.section_hero {
  /*height: 70vh;*/
  height: auto;
  aspect-ratio: 16 / 9;
}
.grid_head {
  padding: 0 0 50px;
}

.border_button.grey_border.active {
  border-color: #000;
  background-color: #000;
  color: #fff;
}
.border_button.grey_border.active a,
.border_button.grey_border.active span {
  color: #fff;
}

body.page-template-temp_exposicion_fotos {
  background-color: #f8f4f1;
}

#expo {
  min-height: 50vh;;
}
#expo .fit-content {
  max-width: 70%;
  width: 90vw;
  margin: 0 auto;
}
#expo .fit-content.fit-gallery {
  margin: 0;
  padding: 0 0 50px;
}
#expo .logo_section {
  margin-bottom: 30px;
}
#expo .logo_section img {
  max-width: 200px;
  height: auto;
  object-fit: contain;
  width: 80%;
}

.grid-content {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
  justify-content: space-between;
}
.grid-content .grid-item {
  display: flex;
  width: calc(33.333% - 20px);
}
.grid-content .grid-item-image {
  cursor: pointer;
}
.grid-content .grid-item img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  aspect-ratio: 3 / 2;
  object-position: center;
  object-fit: cover;
}

#gallery-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100vw;
  height: 100vh;
  align-items: center;
  /*display: flex;*/
}
#gallery-popup-content {
  display: flex;
  justify-content: center;
  align-items: center;
  width: calc(94vw - 80px);
  /*height: 80vh;*/
  flex-direction: column;
  margin: 10vh auto;
}
#blackout-gallery {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  width: 100vw;
  height: 100vh;
  background-position: center;
  background-size: cover;
}
#gallery-popup-content .slick-gallery {
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
}
.igallery-slide {
  display: flex !important;
  flex-direction: column;
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
}
.igallery-cover {
  width: 100%;
  height: 60%;
  aspect-ratio: 16/9;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.igallery-image img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.igallery-caption {
  padding: 30px 0;
  color: #fff;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}
.igallery-caption img {
  max-width: 150px;
  height: auto;
  object-fit: contain;
}
.igallery-caption h4 {
  font-size: 1.5rem;
  line-height: 1.7rem;
  margin: 0 0 1rem;
}
.igallery-caption p {
  font-size: 1.1rem;
  line-height: 1.3rem;
  font-weight: bold;
  margin: 0;
}
.igallery-caption .author-caption {
  margin: 0 0 10px;
}
#close-gallery {
  position: absolute;
  top: 40px;
  right: 10px;
  z-index: 1001;
  background: #fff;
  border: none;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}
#close-gallery img {
  width: 20px;
  height: auto;
  object-fit: contain;
}
#gallery-popup .custom-arrow {
  position: absolute;
  top: 50%;
  z-index: 1001;
  background: #fff;
  border: none;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-origin: center;
  border-radius: 50%;
}
#gallery-popup .custom-arrow img {
  filter: invert(100%);
}
#gallery-popup .prev-arrow {
  left: -60px;
  transform: rotate(90deg);
}
#gallery-popup .next-arrow {
  right: -60px;
  transform: rotate(-90deg);
}

@media(max-width:1200px) {
  .fit-content {
    max-width: 80%;
  }
}
@media(max-width:992px) {
  .fit-content {
    max-width: 100%;
    width: 100vw;
  }
  .grid-content .grid-item {
    width: calc(50% - 10px);
  }
}
@media(max-width:767px) {
  .grid_head {
    padding: 0 0 20px;
  }
  .section_hero {
    aspect-ratio: auto;
  }
  #expo .fit-content.fit-gallery {
    padding: 0 0 20px;
  }
  .igallery-caption img {
    max-width: 100px;
  }
  .igallery-caption h4 {
    font-size: 1.3rem;
    line-height: 1.7rem;
  }
  .igallery-caption p {
    font-size: 0.8rem;
    line-height: 1rem;
  }
}
@media(max-width:600px) {
  #expo .fit-content {
    max-width: 90%;
  }
  .grid-content .grid-item {
    width: 100%;
  }
  .igallery-caption {
    padding: 20px 0;
    gap: 10px;
  }
  .igallery-caption img {
    max-width: 80px;
  }
  .igallery-caption h4 {
    font-size: 1rem;
    line-height: 1.2rem;
  }
  .igallery-caption p {
    font-size: 0.6rem;
    line-height: 0.8rem;
  }
  #close-gallery {
    width: 40px;
    height: 40px;
  }
  #gallery-popup .custom-arrow {
    width: 40px;
    height: 40px;
  }
  #gallery-popup .prev-arrow {
    left: -50px;
  }
  #gallery-popup .next-arrow {
    right: -50px;
  }
}
@media only screen and (min-width: 1024px) and (max-height: 1200px) {
  .igallery-slide {
    transform: scale(0.8);
    transform-origin: center;
  }
}
@media only screen and (min-width: 1024px) and (max-height: 900px) {
  .igallery-slide {
    transform: scale(0.7);
    transform-origin: center;
  }
}