.page-title {
  text-wrap: balance;
}

@media (min-width: 1025px) {
  .n-nav-link.active {
    position: relative;
  }
  .n-nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    background-color: #3498db;
    margin-inline: auto;
    animation: fade 300ms ease-in-out forwards;
  }
}

@keyframes fade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.siguenos-btn {
  background-color: #f4f4f4;
  padding: 0 0.5rem;
  margin-block: 0.5rem;
  color: #3498db;
}
.siguenos-btn a {
  color: #3498db;
}
.siguenos-btn p {
  margin: 0;
}
#donationModal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 99;
  display: none;
}

#donationModal.open {
  display: grid;
  place-items: center;
  opacity: 0;
  animation: show 300ms ease-in-out forwards;
}

@keyframes show {
  100% {
    opacity: 1;
  }
}

#donationModal.open .donation-modal-content {
  animation: slide-down 1000ms 200ms cubic-bezier(0.66, 0, 0.46, 1.51) forwards;
}

.donation-modal-content {
  max-width: 600px;
  width: calc(100% - 2.5rem);
  padding: clamp(1.5rem, 4vw, 4rem);
  background-color: #fff;
  position: relative;
  text-align: left;
  opacity: 0;
  transform: translateY(-50%);
  transition: all 250ms ease-in-out;
  border-radius: 1rem;
  color: #fff;
  background-image: url('/images/donar-modal-bg.png');
  background-size: cover;
  background-position: center center;
}
.donation-modal-content p {
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  font-size: 1.25rem;
}

@keyframes slide-down {
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@media only screen and (max-width: 768px) {
  .donation-modal-content p {
    font-size: 1rem;
  }
}

.modal-close-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: none;
  width: 24px;
  aspect-ratio: 1;
  position: absolute;
  top: 14px;
  right: 14px;
  color: #3498db;
  background-color: transparent;
}

#oracionModal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 98;
  display: none;
}

#oracionModal.open {
  display: grid;
  place-items: center;
  opacity: 0;
  animation: show 300ms ease-in-out forwards;
}

.oracion-modal-content {
  max-width: 700px;
  max-height: 75%;
  overflow-y: auto;
  width: calc(100% - 1rem);
  padding: clamp(1rem, 4vw, 4rem);
  background-color: #fff;
  border-radius: 1rem;
  font-size: clamp(12px, 3vw, 1rem);
}

@media (max-width: 768px) {
  .form-control {
    height: auto;
  }
}
.oracion-modal-content #modal-title {
  font-size: clamp(1rem, 4vw, 1.75rem);
}

#oracionModal.open .oracion-modal-content {
  animation: slide-down 1000ms 200ms cubic-bezier(0.66, 0, 0.46, 1.51) forwards;
}

.title-wrap {
  isolation: isolate;
}

.events-main-wrapper {
  min-height: 189px;
}

#bless-city,
#contactanos {
  position: relative;
}

.simpleParallax {
  position: absolute;
  inset: 0;
}

.simpleParallax img {
  width: 100%;
  height: 100%;
  inset: 0;
  position: absolute;
  object-position: center center;
  object-fit: cover;
}

#form-response.error {
  color: red;
}
#form-response.success {
  color: green;
}

#oracion .btn {
  margin-right: 2rem;
  margin-bottom: 1rem;
}

/* #bless-city > .bg-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: cover;
  transform: translateZ(-5px) scale(1.1);
} */

@media only screen and (max-width: 768px) {
  #bless-city h2.title {
    font-size: 30px;
    line-height: 1.5;
  }
}
.bar-gallery {
  margin-top: 100px;
  padding-inline: 1rem;
}

.gallery-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  height: 100%;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.5s;
}
.fundation .section-about {
  padding-block: 2rem;
}

.fundation .pastores-img-container {
  position: sticky;
  top: 0;
}
.fundation .go-back-link {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.fundation .go-back-link .link-icon {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  background-color: #3498db;
  clip-path: polygon(100% 0%, 50% 49%, 100% 100%, 50% 100%, 0% 50%, 50% 0);
}

.fundation .breadcrumb {
  font-size: 1.125rem;
}
.fundation h1.page-title {
  font-size: clamp(1.5rem, 4vw + 1rem, 4rem);
  line-height: 1.5;
  margin-block: 2rem;
}

.fundation .page-title-inner {
  max-width: 90ch;
  margin-inline: auto;
  text-wrap: balance;
}

.fundacion-donation-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}
.fundacion-donate-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.donate-item-icon-wrapper {
  max-width: 150px;
}

body.fundation {
  font-size: 20px;
  line-height: 1.5;

  text-wrap: balance;
}

.fundation .page-title {
  margin-block: 3rem;
}

.fundation .gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding-block: 2rem;
}

.fundation .gallery-grid img,
.fundation .gallery-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.fundation .gallery1-item-1 {
  grid-column: 1 / 2;
}
.fundation .gallery1-item-2 {
  grid-column: 2 / 3;
}

.fundation .gallery1-item-3 {
  grid-column: 1 / 2;
}
.fundation .gallery1-item-4 {
  grid-column: 2 / 3;
}
.fundation .gallery1-item-5 {
  grid-column: 1 / 2;
}
.fundation .gallery1-item-6 {
  grid-column: 2 / 3;
}
.fundation .gallery-item-1 {
  grid-column: 1 / 2;
}
.fundation .gallery-item-2 {
  grid-column: 2 / 3;
}

.fundation .gallery-item-3 {
  grid-column: 1 / 2;
}
.fundation .gallery-item-4 {
  grid-column: 2 / 3;
}
.fundation .gallery-item-5 {
  grid-column: 1 / 2;
}
.fundation .gallery-item-6 {
  grid-column: 2 / 3;
}

.fundation .font-weight-bold {
  font-weight: 700 !important;
}

.fundation .go-back-link {
  color: rgb(36 54 77);
}

.fundation footer {
  padding-block: 2rem;
  color: #fff;
  background-color: rgba(0, 21, 47, 0.86);
}

.fundation footer img {
  border-radius: 8px;
}

.fundation footer .section-title {
  color: #fff;
}

.colofon {
  padding: 2rem;
  background-color: #f4f4f4;
  color: #333;
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
}

.que-hacemos-gallery {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0.5rem;
  padding-block: 1rem;
  height: 200px;
}

.que-hacemos-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

@media only screen and (min-width: 768px) {
  .bar-gallery {
    padding-inline: 1.5rem;
  }
  .gallery-wrap {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .fundation .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
  }

  .fundation .gallery1-item-1 {
    grid-column: 1 / 3;
  }
  .fundation .gallery1-item-2 {
    grid-column: 3 / 5;
  }

  .fundation .gallery1-item-3 {
    grid-column: 5 / 7;
  }
  .fundation .gallery1-item-4 {
    grid-column: 1 / 3;
  }
  .fundation .gallery1-item-5 {
    grid-column: 3 / 5;
  }
  .fundation .gallery1-item-6 {
    grid-column: 5 / 7;
  }

  .fundation .gallery-item-1 {
    grid-column: 1 / -1;
  }
  .fundation .gallery-item-2 {
    grid-column: 1 / 3;
  }

  .fundation .gallery-item-3 {
    grid-column: 3 / 5;
  }
  .fundation .gallery-item-4 {
    grid-column: 5 / 7;
  }
  .fundation .gallery-item-5 {
    grid-column: 1 / 4;
  }
  .fundation .gallery-item-6 {
    grid-column: 4 / 7;
  }

  .fundation footer {
    padding-block: 2rem;
  }
  .que-hacemos-gallery {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    overflow-x: unset;
    gap: 2rem;
    padding-block: 2rem;
    height: auto;
  }

  .que-hacemos-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }
}

@media (min-width: 992px) {
  .gallery-wrap {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    /* gap: 1rem; */
  }
  .fundation footer {
    padding-block: 4rem;
  }
}

@media (min-width: 1200px) {
  .gallery-wrap {
    grid-template-columns: repeat(6, 1fr);
    /* display: flex;
    flex-wrap: wrap; */
  }
  .gallery-item {
    /* max-width: 200px; */
  }
}

@media (min-width: 1400px) {
}
