/*--------------------------------------------------------------
# Lifestyle Gallery Section (GRID VERSION)
--------------------------------------------------------------*/

.lifestyle-gallery-section {
  padding: 4rem 0;
  background-color: #f8f8f8; /* Light background for contrast */
}

.lifestyle-gallery-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.lifestyle-gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr; /* 3 columns: large image + 2 stacked columns */
  /* Define 1 row that takes its height from content */
  grid-template-rows: auto;
  gap: 1.5rem;
  /* No align-items needed like in flexbox */
}

/* --- Left Column (Large Image) --- */
.lifestyle-gallery-column--left {
  /* Grid placement is automatic here (first item) */
  line-height: 0;
  overflow: hidden; /* Good practice */
  /* The row height will be determined by this image's content */
}

/* --- Right Column (Thumbnails) --- */
.lifestyle-gallery-column--right {
  /* Grid placement is automatic (second item) */
  display: flex; /* Use flexbox *inside* the grid cell for vertical stacking */
  flex-direction: column;
  gap: 1.5rem;
  min-height: 0; /* Prevent flexbox overflow issues */
  overflow: hidden; /* Contains the flexing children */
}

/* --- Individual Thumbnail Container --- */
.lifestyle-gallery-thumb {
  flex: 1; /* Grow vertically to fill space in the flex container */
  min-height: 0; /* Prevent overflow */
  overflow: hidden;
  line-height: 0;
  display: flex; /* Helps contain image */
}

/* --- Image Styling --- */
.lifestyle-gallery-grid img {
  display: block;
  width: 100%;
  height: 100%; /* Make images fill their container/cell */
  object-fit: cover; /* Crop to fit */
  max-width: 100%;
}

/* --- Placeholders (Same as before, adjust min-heights if needed) --- */
/* ... placeholder styles ... */

/*--------------------------------------------------------------
# Responsive Adjustments (GRID VERSION)
--------------------------------------------------------------*/
@media (max-width: 768px) {
  .lifestyle-gallery-grid {
    /* Change to 1 column layout */
    grid-template-columns: 1fr;
    /* Rows will stack automatically */
  }
  /* Adjustments inside the right column might be needed if thumbs go side-by-side */
}
