.alt-blocks {
  max-width: 1100px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
  
  
  
}

.alt-block :hover {
  animation: jiggle 0.3s ease-in-out;
  animation-iteration-count: 1;
  cursor: pointer;
}

.alt-block {
  display: flex;
  align-items: center;
  gap: 20px;
}

.alt-block--reverse {
  flex-direction: row-reverse;
}

.alt-img, .alt-text {
  flex: 1;
  width: 100%;
  box-sizing: border-box;
}

.alt-img img {
  display: block;
  width: 100%;
  max-height: 500px;
  aspect-ratio: 1/1;
  object-fit:cover;
  border-radius: 8px;
}

.alt-text {
  max-width: 500px;
  max-height: 500px;
  height: 500px;
  padding: 20px;
  background-color: rgb(185,203,205);
  color: rgb(40,35,89);
  border-radius: 8px;
  /* display: flex;
  align-items: center ;
  text-align: left; */
  display: flex;
  flex-direction: column;
  justify-content: center; /* optional: vertically center content */
  text-align: left;
  }

.alt-text h3 {
  margin-bottom: 10px;
  font-size: 1.5em;
}

.alt-text p {
  font-size: 1em;
  line-height: 1.6;
}
@keyframes jiggle {
  /* start at 0deg and this scale size.
     scale size is repeated here to maintain smooth scaling */
  0% {transform: rotate(0deg);}
  /* midway rotate 2deg right */
  20% {transform: rotate(1deg) }

  40% {transform: rotate(0deg) }
  60% {transform: rotate(-1deg) }
  80% {transform: rotate(0deg) }

  /* end rotate -2deg left */
  100% {transform: rotate(1deg)}
}

/* Responsive: stack image/text vertically on smaller screens */
@media (max-width: 768px) {
  .alt-block {
    flex-direction: column;
    
  }
  .alt-block--reverse {
    flex-direction: column;
  }
}
