/* 
==================================================
  MEMBER HIGHLIGHTS BLOCK STYLES
==================================================
*/

/* Wrap the entire block container (optional) */
.member-highlights {
  padding-bottom:1.9em;
  padding-top:0.5em;
}

/* 
  The two-column container that splits:
    - Column 1 (left) for the large highlight
    - Column 2 (right) for the scrollable smaller highlights
*/
.member-highlights__two-col {
  display: flex;
  flex-wrap: nowrap;
  height: 80vh; /* The entire block is 80vh tall (adjust as needed) */
  margin: 0;    /* Reset if your theme adds default margins to blocks */
  padding:10px;
}

/* 
  COLUMN 1 (Left):
    - Occupies half the width
    - Contains the single large highlight item
*/
.member-highlights__col1 {
  flex: 1 1 50%;
  position: relative;
}

/* 
  The large highlight item in Column 1:
    - Fills 80vh
    - background-size: cover to show the entire image
*/
.member-highlights__col1 .member-highlights__item {
  border-radius:14px;
  height: 78vh;
  background-position: center;
  background-size: cover;
  position: relative;
  color: #fff; /* Text color for overlaid content */
}
.member-highlights__col1 .member-highlights__item h3{
  font-size: 1.3rem;
}
/* 
  COLUMN 2 (Right):
    - Occupies the other half
    - Will hold multiple smaller highlights in a scrollable area
*/
.member-highlights__col2 {
  flex: 1 1 50%;
  position: relative;
  overflow: hidden; /* Hide scrollbar edges if styling them or to ensure only internal scroll */
  margin-top: -16px;
}
.member-highlights__col2 .member-highlights__item h3{
  font-size:1.2rem;
}
/*
  The internal scroll container:
    - Takes up full height (100% of the 80vh from parent)
    - Allows vertical scrolling for multiple items
*/
.member-highlights__scrollable {
  height: 100%;
  overflow-y: auto;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  
}
.member-highlights__scrollable::-webkit-scrollbar {
  display: none;
}

/*
  The grid inside Column 2:
    - 2 columns of smaller highlights
    - Gaps and padding for spacing
*/
.member-highlights__grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 columns */
  grid-gap: 1rem;
  padding: 1rem;
  box-sizing: border-box;
}

/*
  Each smaller highlight item in Column 2:
    - ~30vh tall
    - background-size: cover
*/

/* Make member-highlights__item a stacking context */
.member-highlights__item {
  position: relative;
  overflow: hidden; /* ensure zoom doesn't leak */
  z-index: 0;
}

/* Use ::before pseudo-element for the zoomable background */
.member-highlights__item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: inherit;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: transform 0.5s cubic-bezier(.25,.8,.25,1);
  will-change: transform;
}

/* Copy background-image from inline style to pseudo-element using JS - see note below */

/* On hover, zoom in the background */
.member-highlights__item:hover::before {
  transform: scale(1.07);
}

/* Place all overlay/content above the pseudo */
.member-highlights__content, .member-highlights__item > *:not(::before), .member-highlights__item::after {
  position: relative;
  z-index: 1;
}
.member-highlights__grid, .member-highlights__item {
  border-radius:14px;
  height: 38.5vh;
  background-position: center;
  background-size: cover;
  position: relative;
  color: #fff;
}

.member-highlights__item::after {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 30%, rgba(0, 0, 0, 0) 60%);
z-index: 0;
}
/*
  Common overlay style for text content
  (used by both the large item and small items)
*/
div.member-highlights__content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  box-sizing: border-box;
  /* background-color: rgba(0, 0, 0, 0.4); */
  z-index:1;

}
.member-highlights__content h3 {
  font-weight: 400;
  color: #fff !important;
  text-decoration: none;
  text-shadow: #333 2px 2px 20px;
}

.member-highlights__section{
 
  margin-bottom: .3em;
}
/* 
==================================================
  RESPONSIVE EXAMPLE (optional)
  You might want to adjust layout for smaller screens.
  For example, stack columns vertically on mobile.
==================================================
*/

@media (max-width: 768px) {
  .member-highlights__two-col {
    flex-direction: column;
    height: auto; /* Let content expand naturally */
  }
  .member-highlights__col1,
  .member-highlights__col2 {
    flex: 1 1 auto;
    height: auto;
  }
  .member-highlights__col1 .member-highlights__item {
    height: 40vh; /* or some other mobile-friendly height */
  }
  .member-highlights__grid .member-highlights__item {
    height: 20vh; 
  }
}
