/* Container */
.hero-masonry-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Main masonry grid */
.hero-masonry {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  width: 100%;
  align-items: stretch;
}

/* Left section - large slider */
.hero-left {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 8px;
  background: #f0f0f0;
  flex-shrink: 0;
}

/* Right section - two stacked images */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

.small-1,
.small-2 {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  flex: 1;
  background: #f0f0f0;
}

/* Slides */
.hero-item {
  position: absolute;
  inset: 0;
  opacity: 1; /* static visible by default */
  transition: opacity 1.5s ease;
  display: block;
  text-decoration: none;
}

.hero-left .hero-item {
  opacity: 0;
}

.hero-left .hero-item.active {
  opacity: 1;
}

.hero-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

/* Hover effect for linked images */
.hero-item[href] {
  cursor: pointer;
}

.hero-item[href]::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
  pointer-events: none;
}

.hero-item[href]:hover::after {
  background: rgba(0, 0, 0, 0.15);
}

/* -------------------
   Responsive layout
-------------------- */

/* Hide the entire hero section on smaller screens */
@media (max-width: 767px) {
  .hero-masonry-container {
    display: none !important;
  }
}

