@import url('common.css');

.babaci-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 3rem;
}

.limited-width {
  max-width: 1000px;
  margin: 0 auto;
}

.babaci-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.babaci-grid img:hover {
  transform: scale(1.02);
}

.popup-container {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.popup-container img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.popup-close {
  position: absolute;
  top: 1rem;
  right: 2rem;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
}

.grid-padding-xl {
  padding-left: 5rem;
  padding-right: 5rem;
}

.babaci-section {
  padding: 3rem 1rem;
  background-color: #ebebe4;
}

.babaci-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 3rem;
}

.babaci-carousel-section {
  margin: 4rem 0;
}

.swiper {
  width: 100%;
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.swiper-pagination {
  position: relative;
  bottom: 0;
  margin-top: 1rem;
  text-align: center;
  margin-bottom: 1rem;
}

.swiper-pagination-bullets {
  display: inline-block;
}

.swiper-pagination-bullet {
  background-color: #3d1d4f;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.swiper-pagination-bullet-active {
  opacity: 1;
}

.swiper-wrapper {
  display: flex;
}

.swiper-slide {
  flex-shrink: 0;
  width: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
  box-sizing: border-box;
}

.swiper-slide img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  object-fit: contain;
}

.babaci-cover {
  max-width: 300px;
  width: 80%;
  height: auto;
  margin: 1rem auto;
  display: block;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.section-description {
  padding-left: 50px;
  padding-right: 50px;

}

.malessere-gallery-section {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.malessere-gallery-section h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.malessere-gallery-section p {
  margin-bottom: 2rem;
  font-style: italic;
  color: #444;
}

.malessere-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.malessere-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.malessere-img:hover {
  transform: scale(1.02);
}

.babaci-accordion summary {
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  padding: 1rem;
  border: 2px solid #ccc;
  border-radius: 8px;
  background-color: #f5f5f5;
  margin-bottom: 1rem;
  list-style: none;
}

.babaci-accordion[open] summary {
  background-color: #eaeaea;
}

.modal-content {
  background: #fff7f0;
  padding: 1rem;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 2rem;
  cursor: pointer;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 480px) {
  .grid-container {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 2rem;
    row-gap: 5rem;
  }

  .grid-item {
    max-width: 100%;
  }

  .malessere-gallery {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .row {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .row2 {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .babaci-block {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
  }

  .section-wrapper {
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 2rem auto;
    max-width: 1000px;
    max-height: none;
  }

  .babaci-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    width: 90%;
    max-width: 450px;
    white-space: normal;
    max-height: none;
    overflow: visible;
  }

  .babaci-img {
    width: 80%;
    max-width: 200px;
    margin-bottom: 1rem;
  }

  .babaci-text {
    width: 100%;
    text-align: center;
  }

  .grid-padding-xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .malessere-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .section-padding {
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .swiper-slide img {
    max-width: 90%;
  }

  .section-padding {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 2rem;
  row-gap: 3rem;
  padding: 2rem;
  justify-items: center;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.grid-item {
  width: 100%;
  max-width: 450px;
}

@media (min-width: 1024px) {
  .babaci-accordion {
    all: unset;
    display: block;
  }
}