.region-header,
.region-highlighted {
  position: absolute;
  width: 100%;
  z-index: 5;
}

.region-header {
  margin-top: 0 !important;
  color: #fff;
}
.region-header .nav-link:hover {
  color: inherit;
}

.region-highlighted {
  margin-top: 110px;
}

.cklb-slideshow .block-layout-builder > .content {
  margin-top: 2rem;
}

/* ALTERATIONS */

/* reset all logo colors to white for the front page */
.region-header #av-logo,
.region-header #wset-logo,
.region-header #by,
.region-header #ab-logo,
.region-header #as-logo {
  color: #fff;
}

/* hero image hack */
.block-inline-blockhero {
  padding-top: 10rem !important;
  padding-bottom: 10rem !important;
  min-height:800px;
}

/***
 Highlighted section
 **/

.landing-highlighted {
  margin: 2rem 0;
  padding: 0;
  text-align: center;
}

/* Subsection titles */
.landing-highlighted .field-title {
  margin: 1rem auto 0.5rem auto;
  padding: 0.5rem 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  border-bottom: 2px solid #333;
  max-width: 90vw;
  text-align: left;
}

/* Shared base styles for image containers */
.landing-highlighted .field-linked-image,
.landing-highlighted .field-linked-image-with-caption {
  display: inline-block;
  margin: 0.5rem;
  padding: 0;
  background-color: #cc0;
  vertical-align: top;
  width: 28vw;
  height: auto;
  max-width: 300px;
  border-radius: 0.2rem;
/*  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); */
  transition: transform 0.2s ease;
  text-align: center;
  overflow: hidden;
}

.landing-highlighted .field-linked-image a,
.landing-highlighted .field-linked-image-with-caption a {
  display: block;
  width: 100%;
}

/* Keep the image square */
.landing-highlighted .field-linked-image img,
.landing-highlighted .field-linked-image-with-caption img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  box-sizing:border-box;
  padding:0;
  margin:0;
}

/* Hover effect */
.landing-highlighted .field-linked-image:hover,
.landing-highlighted .field-linked-image-with-caption:hover {
  transform: scale(1.02);
}

/* Caption styling */
.landing-highlighted .field-linked-image-with-caption .caption {
  display: block;
  width:100%;
  font-size: 0.9rem;
  font-weight:600;
  padding: 0.4rem 0.6rem;
  color: #333;
  background: #FBFAF8;
  border-top:solid 1px #ccc;
  line-height: 1.3;
  height: 4.4em;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

/* Responsive: Medium screens */
@media (max-width: 992px) {
  .landing-highlighted .field-linked-image,
  .landing-highlighted .field-linked-image-with-caption {
    width: 45vw;
    max-width: none;
  }
}

/* Responsive: Mobile stacking */
@media (max-width: 576px) {
  .landing-highlighted .field-linked-image,
  .landing-highlighted .field-linked-image-with-caption {
    width: 90vw;
    margin: 0.5rem 0;
  }

  .landing-highlighted .field-linked-image-with-caption .field-caption {
    height: auto; /* allow flexible height for mobile */
  }
}


/* Ensure consistent image styling in both containers */
.landing-highlighted .field-linked-image-with-caption img {
  width: 100% !important;
  height: auto !important;
  display: block;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* Remove any potential paragraph wrapper spacing */
.landing-highlighted .field-linked-image-with-caption > div {
  margin: 0;
  padding: 0;
}
