/* Two-image column layout with contained overlapping effect */
.wp-block-columns.two-image-left-columns {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  overflow: hidden; /* Prevent any spillover */
}

/* Column containers */
.wp-block-columns.two-image-left-columns .wp-block-column {
  flex: 1;
  min-width: 0;
}

/* Two-image column with proper containment */
.wp-block-columns.two-image-left-columns .two-image-column {
  flex: 0 0 48%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  /* Remove fixed height to allow natural flow */
}

/* First image - large and prominent but contained */
.wp-block-columns.two-image-left-columns .image-1 {
  width: 100%;
  height: auto;
  aspect-ratio: 3/2; /* Maintains consistent proportions */
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.18);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  z-index: 1;
}

/* Second image - overlapping but contained within column */
.wp-block-columns.two-image-left-columns .image-2 {
  width: 70%;
  height: auto;
  aspect-ratio: 4/3;
  margin: -3rem 0 0 auto; /* Negative margin for overlap effect */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  border: 5px solid rgba(255, 255, 255, 0.95);
  transform: rotate(-2deg);
  position: relative;
  z-index: 2;
}

/* Hover effects for images */
.wp-block-columns.two-image-left-columns .image-1:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
  z-index: 3;
}

.wp-block-columns.two-image-left-columns .image-2:hover {
  transform: translateY(-12px) rotate(0deg);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.35);
  z-index: 4;
}

/* Image styling */
.wp-block-columns.two-image-left-columns .wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  filter: contrast(1.05) saturate(1.1);
}

.wp-block-columns.two-image-left-columns .wp-block-image:hover img {
  transform: scale(1.05);
}

/* Content column styling */
.wp-block-columns.two-image-left-columns .wp-block-column:last-child {
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Heading styling with enhanced typography */
.wp-block-columns.two-image-left-columns .wp-block-heading {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 2rem 0;
  color: #1a1a1a;
  letter-spacing: -0.025em;
  position: relative;
}

.wp-block-columns.two-image-left-columns .wp-block-heading::before {
  content: '';
  position: absolute;
  top: -1rem;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 2px;
}

.wp-block-columns.two-image-left-columns .wp-block-heading::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 0;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, rgba(102, 126, 234, 0.3), transparent);
  border-radius: 1px;
}

/* Enhanced paragraph styling */
.wp-block-columns.two-image-left-columns .wp-block-column p {
  font-size: 1.175rem;
  line-height: 1.75;
  color: #4a5568;
  margin: 0 0 1.75rem 0;
  font-weight: 400;
}

.wp-block-columns.two-image-left-columns .wp-block-column p:first-of-type {
  font-size: 1.3rem;
  font-weight: 500;
  color: #2d3748;
  position: relative;
  padding-left: 1.5rem;
}

.wp-block-columns.two-image-left-columns .wp-block-column p:first-of-type::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 4px;
  height: 60px;
  background: linear-gradient(180deg, #667eea, #764ba2);
  border-radius: 2px;
}

/* Tablet styles */
@media (max-width: 1024px) {
  .wp-block-columns.two-image-left-columns {
    gap: 2.5rem;
    padding: 1.5rem 1rem;
  }
  
  .wp-block-columns.two-image-left-columns .two-image-column {
    flex: 0 0 45%;
  }
  
  .wp-block-columns.two-image-left-columns .image-1 {
    border-radius: 16px;
  }
  
  .wp-block-columns.two-image-left-columns .image-2 {
    width: 65%;
    margin-top: -2.5rem;
  }
  
  .wp-block-columns.two-image-left-columns .wp-block-heading {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
  }
  
  .wp-block-columns.two-image-left-columns .wp-block-column p {
    font-size: 1.1rem;
  }
  
  .wp-block-columns.two-image-left-columns .wp-block-column p:first-of-type {
    font-size: 1.2rem;
  }
}

/* Mobile styles - stack layout */
@media (max-width: 768px) {
  .wp-block-columns.two-image-left-columns {
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
  }
  
  .wp-block-columns.two-image-left-columns .two-image-column {
    flex: none;
    width: 100%;
    max-width: 100%;
  }
  
  .wp-block-columns.two-image-left-columns .image-1 {
    width: 100%;
    border-radius: 16px;
  }
  
  .wp-block-columns.two-image-left-columns .image-2 {
    width: 75%;
    margin-top: -2rem;
    margin-left: auto;
    margin-right: 0;
    border-width: 4px;
    transform: rotate(-1deg);
  }
  
  .wp-block-columns.two-image-left-columns .wp-block-column:last-child {
    padding-left: 0;
    margin-top: 1rem;
  }
  
  .wp-block-columns.two-image-left-columns .wp-block-heading {
    margin-top: 0;
    margin-bottom: 1.5rem;
  }
  
  .wp-block-columns.two-image-left-columns .wp-block-column p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
  }
  
  .wp-block-columns.two-image-left-columns .wp-block-column p:first-of-type {
    font-size: 1.15rem;
    padding-left: 1.25rem;
  }
  
  .wp-block-columns.two-image-left-columns .wp-block-column p:first-of-type::before {
    height: 40px;
  }
}

/* Small mobile optimization */
@media (max-width: 480px) {
  .wp-block-columns.two-image-left-columns {
    padding: 0.75rem;
    gap: 1.5rem;
  }
  
  .wp-block-columns.two-image-left-columns .image-1 {
    border-radius: 12px;
  }
  
  .wp-block-columns.two-image-left-columns .image-2 {
    width: 70%;
    margin-top: -1.5rem;
    border-radius: 12px;
    border-width: 3px;
  }
  
  .wp-block-columns.two-image-left-columns .wp-block-heading {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
  }
  
  .wp-block-columns.two-image-left-columns .wp-block-column p {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1rem;
  }
  
  .wp-block-columns.two-image-left-columns .wp-block-column p:first-of-type {
    font-size: 1.05rem;
    padding-left: 1rem;
  }
  
  .wp-block-columns.two-image-left-columns .wp-block-column p:first-of-type::before {
    height: 30px;
    width: 3px;
  }
}

/* Enhanced accessibility and focus states */
.wp-block-columns.two-image-left-columns .wp-block-image {
  outline-offset: 4px;
}

.wp-block-columns.two-image-left-columns .wp-block-image:focus-within {
  outline: 3px solid #667eea;
  outline-offset: 6px;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .wp-block-columns.two-image-left-columns .wp-block-image,
  .wp-block-columns.two-image-left-columns .wp-block-image img {
    transition: none;
  }
  
  .wp-block-columns.two-image-left-columns .image-1:hover,
  .wp-block-columns.two-image-left-columns .image-2:hover {
    transform: none;
  }
  
  .wp-block-columns.two-image-left-columns .image-2 {
    transform: none;
  }
}

/* Print styles */
@media print {
  .wp-block-columns.two-image-left-columns {
    flex-direction: column;
    gap: 1rem;
    padding: 0;
  }
  
  .wp-block-columns.two-image-left-columns .two-image-column {
    display: block;
  }
  
  .wp-block-columns.two-image-left-columns .image-1,
  .wp-block-columns.two-image-left-columns .image-2 {
    width: 100%;
    margin: 0 0 1rem 0;
    box-shadow: none;
    border: 1px solid #ccc;
    transform: none;
  }
  
  .wp-block-columns.two-image-left-columns .wp-block-column p:first-of-type::before {
    display: none;
  }
}