.about-paidis {
  display: grid;
  gap: 24px;
}

.about-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.about-row.second .about-text {
  order: 1; /* default desktop: text left */
}

.about-row.second .about-media {
  order: 2; /* default desktop: image right */
}

.about-text {
  flex: 1 1 0;
}

.about-text p {
  margin: 0;
  line-height: 1.55;
  text-align: left;
}

.about-media {
  flex: 0 0 auto;
}

.about-media img {
  width: 384px;
  height: 288px;          /* Keeps 4:3 ratio */
  object-fit: cover;      /* Crop to fill without distortion */
  border-radius: 16px;    /* Rounded corners */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.about-media img:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  transform: translateY(-6px);
}

/* Responsive behavior: stack on narrow screens */
@media (max-width: 900px) {
  .about-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .about-media img {
    width: 100%;
    max-width: 384px;
    height: auto; /* keep proportions when shrinking */
  }
}

@media (max-width: 768px) {
  .about-row.second {
    flex-direction: column;
  }
  .about-row.second .about-media {
    order: 1; /* image first on mobile */
  }
  .about-row.second .about-text {
    order: 2; /* text after image */
  }
}