/*
Theme Name: Divi Child
Theme URI: https://seusite.com
Description: Tema filho do Divi
Author: Seu Nome
Author URI: https://seusite.com
Template: Divi
Version: 1.0.0
*/

@import url("https://fonts.googleapis.com/css2?family=Italianno&display=swap");

/* === HOME BANNERS === */
.banner-container {
  /* width: 100%; */
  /* max-width: 100%; */
  /* height: 300px; */
  /* overflow: hidden; */
  /* aspect-ratio: 18 / 8; */
  /* aspect-ratio: 12 / 8; */
}

/* garante que toda a estrutura ocupe o espaço */
.banner-container .swiper,
.banner-container .swiper-wrapper,
.banner-container .swiper-slide {
  width: 100%;
  height: 100%;
}

.swiper-pagination-bullet {
  background: #ffff;
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: #9c0712;
}

.banner-container .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-container .banner-link {
  display: block;
  width: 100%;
  height: 100%;
}

/* ajuste principal das imagens */
.banner-container .swiper-slide img {
  width: 100%;
  height: 100%;
  display: block;
  /* object-fit: contain; */
  object-fit: cover;
  /* object-fit: inherit; */
  object-position: center;
}

.footer-banner {
  /* width: 100%; */
  /* max-width: 100%; */
  /* height: 300px; */
  /* overflow: hidden; */
}

/* CLERO */
.clergy-members-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: center;
  gap: 20px;
}

.member-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.member-card img {
  border-radius: 50%;
  height: 200px;
}

.member-role {
  margin-top: 20px;
  font-family: "Italianno", handwriting;
  font-size: 50px;
}

.member-info {
  display: flex;
  flex-direction: column;
  background-color: #f5f6f7;
  padding: 20px;
  text-align: center;
  height: 180px;
}

.member-info .member-name {
  color: #00377a;
  margin-bottom: 6px;
  font-size: 16px;
}

/* SETORIAL COMUNITY */
.setorial-comunity-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  align-items: flex-start;
}

.setorial-map-list-container,
.setorial-comunity-news-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.setorial-comunity-news-container .news-card {
  display: flex;
  flex-direction: column;
  border: solid 2px #C5C5C5;
  width: 25vw;
  gap: 5px;
}

.setorial-comunity-news-container .news-card>*:not(img):not(a:first-of-type) {
  padding: 5px 20px;
}

.setorial-comunity-news-container .news-card a:first-of-type {
  display: block;
  width: 100%;
}

.setorial-comunity-news-container .news-card img {
  padding: 0;
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.map_card img {
  width: 354px;
  height: 175px;
}


.setorial-comunity-card {
  display: flex;
  width: calc((100% - 120px) / 5);
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.setorial-comunity-card a {
  text-decoration: underline;
  color: #332dd9;
}

/* SETORIAL COMUNITY INFO */
.setorial-comunity-info {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 1200px;
  margin-bottom: 50px;
  gap: 40px;
}

.setorial-comunity-info .image-container {
  flex-shrink: 0;
}

.setorial-comunity-info .church-img {
  border-radius: 50%;
  width: 150px;
  height: 150px;
  object-fit: cover;
}

.setorial-comunity-info .map-container {
  flex-shrink: 0;
}

.setorial-comunity-info .church-location {
  width: 400px;
  height: 400px;
  object-fit: cover;
}

.setorial-comunity-info .info-container {
  display: flex;
  flex-direction: column;
}

.setorial-comunity-info .mass-title {
  font-family: "Italianno", cursive !important;
  font-size: 50px !important;
  font-weight: normal;
  margin-bottom: 20px;
  color: #333;
}

.setorial-comunity-info .mass-times {
  display: flex;
  margin-bottom: 30px;
  gap: 20px;
}

/* .setorial-comunity-info .mass-times > div {
  margin-bottom: 15px;
} */

.setorial-comunity-info .mass-times .mass-day {
  color: #d61827;
  font-size: 22px;
  display: block;
  margin-bottom: 8px;
}

/* .setorial-comunity-info .address-title {
  margin-bottom: 10px;
} */

.setorial-comunity-info .address-title b {
  font-size: 18px;
  color: #333;
}

.setorial-comunity-info .church-address {
  font-size: 16px;
  color: #555;
  line-height: 1.5;
}

.setorial-comunity-info .church-address p {
  padding-bottom: 0;
}

.setorial-comunity-info-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.setorial-comunity-back-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.setorial-comunity-back-container .exit-button {
  margin: 20px 0 0 0;
}

/* SETORIAL NEWS SECTION */
.setorial-news-title {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 32px;
  font-weight: 600;
  color: #333;
  margin-top: 40px;
  margin-bottom: 25px;
  width: 100%;
}

.news-error-wrapper,
.news-loading-wrapper {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  width: 100%;
}

.no-news-message,
.loading-news-message {
  font-size: 20px;
  color: #666;
  font-weight: normal;
  margin: 10px 0;
}

.news-loading-wrapper .spinner {
  margin: 20px auto;
}

.terms {
  background: none !important;
  padding: 0 !important;
  margin: 0 !important;
  text-decoration: underline !important;
  color: inherit !important;
}

@media (max-width: 1024px) {
  .setorial-comunity-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.setorial-comunity-card img {
  border-radius: 50%;
  height: 200px;
}

/* VIDEOS E FOTOS*/
#videos-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  justify-content: center;
  gap: 20px;
}

.gallery-container {
  display: grid;
  justify-content: center;
  gap: 20px;
}

.gallery-container.photo {
  grid-template-columns: repeat(4, 1fr);
}

.gallery-container.year {
  /* grid-template-columns: repeat(6, 1fr); */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.gallery-container.empty {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 50px;
}

.video-card,
.photo-card,
.map-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #000000;
}

.map-card img {
  max-width: 250px;
  height: 200px;
}

.breadcrumb-container a {
  color: #000;
  margin-right: 6px;
  text-decoration: none;
}

.breadcrumb-container span {
  color: #c30917;
}

.photo-card {
  background-color: #f5f6f7;
  width: 300px;
  padding: 12px;
}

.photo-card img {
  width: 354px;
  height: 200px;
  object-fit: cover;
}

.video-card iframe,
.video-card video {
  width: 354px;
  height: 175px;
}

.video-date,
.photo-date {
  color: #d61827;
}

.gallery-container .years-cards {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 125px;
  width: calc((100% - 50px) / 7);
  font-family: "Italianno", handwriting;
  font-style: italic;
  font-size: 50px;
  color: #fff;
  text-decoration: none;
  background: radial-gradient(ellipse at center,
      #a8b6bc 0%,
      #8fa1a8 50%,
      #6f8288 100%);
  cursor: pointer;
}

/* COMPONENTES */
.empty-state {
  font-size: 20px;
  text-align: center;
  color: #333;
}

.hidden {
  /* visibility: hidden; */
  animation: fadeOpacity 0.5s ease forwards;
}

/* BOTÕES */
.exit-button {
  cursor: pointer;
  background-color: #f5f6f7;
  padding: 14px;
  width: 100px;
  text-align: center;
  border-radius: 10px;
  background-color: #c30917;
  color: #fff;
  border: none;
  margin: 10px 46%;
}

.exit-button:hover {
  background-color: #9c0712;
}

/* RODAPÉ DA GALERIA (BOTÃO VOLTAR E PAGINAÇÃO) */
.gallery-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 40px;
}

.gallery-footer .exit-button-container {
  display: flex;
  justify-content: flex-start;
}

.gallery-footer .pagination-container {
  margin-top: 0;
}

.gallery-footer .exit-button {
  margin: 0 200px;
}

.gallery-footer.center-button {
  display: flex;
  justify-content: center;
}

.gallery-footer.center-button .exit-button-container {
  justify-content: center;
}

/* SPINNER */
.spinner-container {
  /* position: fixed; */
  inset: 0;
  display: flex;
  position: absolute;
  justify-content: center;
  align-items: center;

  z-index: 9999;
}

.spinner-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner {
  width: 25px;
  height: 25px;
  border: 5px solid #ccc;
  border-top: 5px solid #c30917;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes fadeOpacity {
  from {
    opacity: 1;
  }

  to {
    opacity: 0.5;
  }
}

/* PAGINATION */
.pagination-container {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.pagination-container button {
  padding: 8px 12px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  border-radius: 4px;
  transition: 0.2s;
}

.pagination-container button:hover:not(:disabled) {
  border-color: #d61827;
  color: #d61827;
}

.pagination-container button:disabled {
  cursor: not-allowed;
}

.pagination-container button.active {
  background: #c30917;
  color: white;
  border-color: #c30917;
}

/* CUSTOM NAV BUTTONS */
.pagination-container button.nav-btn {
  border: none;
  background: transparent;
  color: #888;
  padding: 0;
  display: flex;
  align-items: center;
}

.pagination-container button.nav-btn:hover:not(:disabled) {
  border: none;
  color: #555;
  background: transparent;
}

.nav-btn-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #ccc;
  transition: border-color 0.2s;
  color: #888;
}

.pagination-container button.nav-btn:hover:not(:disabled) .nav-btn-icon {
  border-color: #d61827;
  color: #d61827;
}

.nav-btn-text {
  font-weight: bold;
  font-size: 13px;
  letter-spacing: 1.5px;
}

/* EFEITOS */

.fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* MODAL FOTOS */
.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo-modal.hidden {
  display: none;
}

.photo-modal-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

.photo-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.photo-modal-content img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 4px;
}

.photo-modal-caption {
  color: #ffffff;
  margin-top: 15px;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  max-width: 100%;
}

.photo-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
}

.photo-modal-close:hover {
  color: #d61827;
}



@media only screen and (max-width: 1124px) and (min-width: 769px) {

  /* @media only screen and (orientation: landscape) and (max-height: 1024px) { */
  /* GALERIA */
  .gallery-container {
    margin: 0 auto;
    font-size: 16px;
  }

  .gallery-container.photo {
    grid-template-columns: repeat(1, 1fr);
  }

  .gallery-container.year {
    grid-template-columns: repeat(1, 1fr);

  }

  .gallery-footer {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .gallery-footer .exit-button-container {
    justify-content: center;
    width: 100%;
  }

  /* CLERO */
  .clergy-members-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  /* VÍDEOS */
  #videos-container {
    width: 100%;
    /* grid-template-columns: repeat(1, 1fr); */
    font-size: 16px;
  }

  .video-card iframe,
  .video-card video,
  .photo-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .video-card,
  .photo-card {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
  }

  /* COMUNIDADES SETORIAIS */

  .setorial-comunity-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
    font-size: 16px;
  }

  .setorial-comunity-card {
    width: calc((100% - 20px) / 2);
    max-width: 600px;
    margin: 0;
    box-sizing: border-box;
  }

  .setorial-comunity-container>*:only-child {
    width: 100%;
  }
}

@media only screen and (max-width: 768px) {
  .banner-container {
    height: auto;
  }

  /* CLERO */
  .clergy-members-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
  }

  /* VÍDEOS */
  #videos-container {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .video-card iframe,
  .video-card video,
  .photo-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .video-card,
  .photo-card {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
  }

  /* FOTOS */

  .gallery-container .years-cards {
    width: calc((100% - 20px) / 2);
  }

  .gallery-container.photo {
    grid-template-columns: repeat(1, 1fr);
  }

  .gallery-container.photo a {
    margin: 0 auto;
  }

  .gallery-container.year {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }

  .gallery-footer {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .gallery-footer .exit-button-container {
    justify-content: center;
    width: 100%;
  }

  /* SETORIAL COMUNIDADE */
  .setorial-comunity-container {
    width: 100%;
    flex-direction: column;
  }

  .setorial-comunity-container .setorial-comunity-card {
    width: 100%;
    margin-bottom: 30px;
  }

  .setorial-comunity-info .church-location {
    width: 300px;
    height: 300px;
  }

  .setorial-comunity-info .mass-times,
  .setorial-comunity-info .mass-title {
    margin: 0 auto;
  }

  .setorial-comunity-news-container .news-card {
    width: 100%;
  }

  .setorial-map-list-container {
    grid-template-columns: repeat(1, 1fr);
  }

  .setorial-comunity-news-container {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* SETORIAL NEWS SECTION */
.setorial-news-title {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 32px;
  font-weight: 600;
  color: #333;
  margin-top: 40px;
  margin-bottom: 25px;
  width: 100%;
}

.news-error-wrapper,
.news-loading-wrapper {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  width: 100%;
}

.no-news-message,
.loading-news-message {
  font-size: 20px;
  color: #666;
  font-weight: normal;
  margin: 10px 0;
}

.news-loading-wrapper .spinner {
  margin: 20px auto;
}

.terms {
  background: none !important;
  padding: 0 !important;
  margin: 0 !important;
  text-decoration: underline !important;
  color: inherit !important;
}