
.bodoni-moda {
  font-family: "Bodoni Moda", serif;
  font-weight: 300px;
  font-style: normal;
}
.section-index {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background-color: #ffffff;
  gap: 30px;
  animation: fade-in 1s ease-in-out;
  border-radius: 16px;
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.1);
}

.section__content {
  flex: 1;
  max-width: 500px;
  padding: 20px;
  text-align: center;
}

.section__content h2 {
  font-size: 4rem;
  color: #a27c27;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.3;
  font-weight: 400;
  font-style: normal;
  font-family: "Pinyon Script", serif;
}

.section__content p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 15px;
  font-family: "Jost", serif;
  font-family: "Bodoni Moda", serif;
}

/* Masonry Grid for Images */
.section__images {
  flex: 1.5;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-auto-rows: 10px; /* Ensures proper masonry effect */
  gap: 15px;
}

.section__image {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  grid-row: span 10; /* Dynamically adjust image size */
}

.section__image--large {
  grid-row: span 20;
}

.section__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.section__image:hover {
  transform: scale(1.05);
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.15);
  opacity: 0.9;
}

.section__image img:hover {
  transform: scale(1.1);
}

/* Fade-in Animation */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .section-index {
    flex-direction: column;
    padding: 30px;
    gap: 25px;
  }

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

  .section__images {
    grid-template-columns: repeat(auto-fit, minmax(60vw, 1fr));
    grid-auto-rows: 8px;
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .section__content h2 {
    font-size: 2rem;
  }

  .section__content p {
    font-size: 1rem;
  }

  .section__images {
    grid-template-columns: repeat(2, 1fr); /* Ensure even layout for smaller screens */
    grid-auto-rows: 7px;
  }
}

@media (max-width: 480px) {
  .section__content h2 {
    font-size: 1.8rem;
  }

  .section__content p {
    font-size: 0.95rem;
  }

  .section__images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  .section__image {
    width: 80vw; /* Images take 80% of the width */
    height: auto; /* Maintain aspect ratio */
    grid-row: span 1;
  }
}




