@keyframes spin-vertical {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(1080deg); }
}

.feature-container {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
}

.feature-block {
  display: flex;
  width: 100%;
  gap: 2rem; /* Gap between columns */
  padding: 1rem; /* Overall padding for the block */
}

.feature-block__image-column {
  flex: 1; /* Allow the image column to grow proportionally */
  max-width: 33.33%; /* Ensure it occupies at least 1/3 of the width */
  overflow: hidden;
  border-radius: 8px;
}

.feature-block__image-link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  transition: transform 1.5s ease-in-out;
  align-content: center;
}

.feature-block__image-link img {
  width: 100%;
  height: 100%;
  object-fit: contain; 
  display: block; /* Remove extra space below image */
}

.feature-block__image-link.spin {
  animation: spin-vertical 1.5s ease-in-out;
}

.feature-block__content-column {
  flex: 2; /* Adjust the content column to take the remaining space */
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* gap: 1rem; */
  padding: 1rem 0;
}

.feature-block__title {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  margin-top: 0; /* Reset margin */
}

.feature-block__subtitle {
  font-size: 1.25rem;
  color: #666;
  margin-bottom: 1rem;
  margin-top: 0; /* Reset margin */
}

.feature-block__description {
  color: var(--text-color);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.feature-block__link { /* Optional: If you add a separate link/button later */
  display: inline-block;
  align-self: flex-start;
  padding: 0.75rem 1.5rem;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.feature-block__link:hover {
  background-color: #0056b3;
}

.feature-block__media-wrapper {
  position: relative; /* Needed if using padding-top trick, good practice anyway */
  display: block; /* Ensure it takes up space */
  width: 100%;
  overflow: hidden; /* Contain the media */
}

/* Modern aspect-ratio property */
.feature-block__media-wrapper--1-1 { aspect-ratio: 1 / 1; }
.feature-block__media-wrapper--16-9 { aspect-ratio: 16 / 9; }
.feature-block__media-wrapper--4-3 { aspect-ratio: 4 / 3; }
.feature-block__media-wrapper--3-2 { aspect-ratio: 3 / 2; }
.feature-block__media-wrapper--9-16 { aspect-ratio: 9 / 16; } /* Portrait */
.feature-block__media-wrapper--3-4 { aspect-ratio: 3 / 4; } /* Portrait */
.feature-block__media-wrapper--2-3 { aspect-ratio: 2 / 3; } /* Portrait */
/* Add other ratios as needed */

.feature-block__media-wrapper img,
.feature-block__media-wrapper video {
  display: block; /* Remove extra space below */
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover the wrapper area */
  position: static; /* Position within the wrapper */
  top: 0;
  left: 0;
}


/* Responsive Breakpoints */
/* Tablet Layout (stacked columns) */
@media (max-width: 768px) {
  .feature-block {
    flex-direction: column; /* Stack the columns */
    /* Add other necessary stacking styles if not flexbox, e.g., display: block; */
  }
  .feature-block__image-column,
  .feature-block__content-column {
    width: 100%; /* Ensure columns take full width when stacked */
    max-width: 100%; /* Override any potential max-width from desktop view */
    /* Reset margins/paddings if they interfere with full width */
    aspect-ratio: auto; /* Let height be determined by content on small screens */
    margin-left: 0;
    margin-right: 0;
  }

  .feature-block__media-wrapper img,
  .feature-block__media-wrapper video {
    position: static; /* Reset position to default for normal document flow */
  }

}

/* Mobile Layout (small screens) */
@media (max-width: 480px) {
  .feature-block__title {
    font-size: 1.3rem;
  }

  .feature-block__subtitle {
    font-size: 1rem;
  }

  .feature-block__description {
    font-size: 0.9rem;
  }

  .feature-block {
    gap: 0.5rem; /* Reduce gap further */
  }

  /* Image column already full width from tablet styles */
}