 * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.container {
  width: 100%;
  min-height: 100vh; /* Changed from vh to min-height to prevent clipping */
  background-color: white;
  display: flex; /* Magic happens here */
  flex-wrap: wrap; /* Allows items to wrap to next line on mobile */
  /* padding: 10px; */
}

.main-img {
  flex: 1 1 70%; /* Takes 70% width on large screens */
  padding: 5px;
}

.main-img img {
  width: 100%;    /* Responsive width */
  height: auto;   /* Maintains aspect ratio */
  max-height: 600px;
  object-fit: cover; /* Keeps image looking sharp */
  border-radius: 2px;
}

.images {
  flex: 1 1 30%; /* Takes 30% width on large screens */
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 5px;
  padding: 5px;
}

.images img {
  width: 100%;
  height: 117px;
  object-fit: cover;
  border-radius: 2px;
  cursor: pointer;
}

/* --- Responsive Media Query --- */
@media (max-width: 768px) {
  .main-img, .images {
    flex: 1 1 100%; /* On mobile, both take full width (stacking) */
  }
  
  .main-img img {
    height: 300px; /* Shorter height for mobile screens */
  }
}

/* Animations */
@keyframes fadeIn {
  to { opacity: 1; }
}

.fadeIn {
  opacity: 0;
  animation: fadeIn 0.5s ease-in-out 1 forwards;
}
