body, html {
  font-family: 'helvetica', sans-serif !important;
}

h1, h2, h3, h4 {
  font-family:'noto', sans-serif !important;
  letter-spacing: 0.04em !important;
}

.site-title img {
        max-height: 4.5rem;
        margin: 1rem 0.5rem;
}

.top-bar {
  background-color: #fff;
}

a {
color: #126ba6;
}

 .top-bar ul {
 background-color: #fff;
}

.menu a {
  font-size: 1.1rem;
  color: #383838;
}


.menu .active > a, .toc-block > ul .active > a, .toc-block ul ul .active > a {
  background: #fbfbfb;
  color: #3f3f3f;
  border: lightgray solid 1px;
}

.off-canvas{
background: #231515;
}



.search-toggle {
background: #fff0;
  color: #648d2f;
  padding: 1.5rem;
  border-radius: 50px;
}

.fas {
  font-size: 1.3rem;
}

  h2  {
    font-size: 1.9rem;
  }

h3 {
     font-size: 1.3rem;
}

.site-page-pagination > a {
  background-color: #fff;
  color: #333;
  border: lightgray solid 1px;
}

#content {
  padding: 0 !important;
  max-width: 2000px !important;
}

footer {
    flex-shrink: 0;
    width: 100% !important;
    max-width: none !important;
    padding: 0px 0px !important;
    margin-top: auto;
    margin-left: 0rem !important;
}

.site-footer{
  background-color: #333;
  color: #fff;
  padding: 20px 0;
  margin-top: 40px;
  flex-shrink: 0;
}
.footer-content {
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.footer-logos img {
  height: 90px;
  margin: 1em 1.5em;
}

.footer-logos > img:nth-child(2) {
padding-top: 1rem;
}

.footer-text {
text-align: end;
padding-top: 1rem;
}


@media (max-width: 900px) {
  .footer-content {
  flex-direction: column; 
  justify-content: center;
}

  .footer-content{
    font-size: 0.8rem;
  text-align: center;
  }
.footer-logos img {
padding: 0.5rem;
   margin: 2em 0 ;
}

.footer-text {
text-align:center;
}

  
}



.blocks {
  -webkit-box-flex: 0;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  width: 90%;
  float: none !important; 
  margin: 0 auto;
  min-height: 67vh;
}

.page-layout-normal .block {
  margin: 0 auto;
}

.splash-block{
margin: 0 !important;
}

.splash-container {
  position: relative;
  height: 600px;
  overflow: hidden;
  margin: 1rem;
  width: 96vw;
}

.splash-container::after {
  content: "";  
  position: absolute;
  inset: 0;           
  background-color: rgba(0, 0, 0, 0.15); 
  z-index: 1;
}


.splash {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
  display: block;
}

.splash-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 2;
  padding: 1.5rem;
  text-align: center;
  pointer-events: none;
  box-sizing: border-box;
}

.splash-text h1 {
  font-size: clamp(2rem, 4vw, 4.5rem);
  font-weight: 500;
  letter-spacing: 0.13em;
  margin: 0;
  padding: 0;
  max-width: 615px;
  width: 100%;
  line-height: 1.25;
  word-wrap: break-word;
}

.splash-text h3 {
  font-size: clamp(1rem, 1.8vw, 1.8rem);
  font-weight: 450;
  margin: 0.5rem 0 0 0;
  padding: 0;
  max-width: 614px;
  width: 100%;
  line-height: 1.4;
  word-wrap: break-word;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}


@media (max-width: 480px) {
  .splash-container {
    height: 400px;  
  }
  
  .splash-text {
    padding: 1rem;
  }
  
  .splash-text h1 {
    font-size: clamp(1.5rem, 8vw, 2.2rem);
    letter-spacing: 0.08em;  /* Tighter letter spacing on small screens */
  }
  
  .splash-text h3 {
    font-size: clamp(0.8rem, 3vw, 1rem);
    margin-top: 0.3rem;
  }
}

.browse-collections .item.resource {
  display: flex;
  flex-direction: column;
    flex: 1 1 30%;
  height: auto; 
  margin: 10px;
}

li.item.resource {
  flex-direction: row; 
}

@media (max-width: 760px) {
li.item.resource {
  flex-direction: column;
  justify-content: flex-start; 
    align-items: flex-start;
}
 .resource-list .resource-meta:not(:only-child)  {
    width: 87% !important;
  font-size: 0.9rem;
  }

.resource-list {
text-align: left;
}

.project-team .resource-link img {
margin: 2rem;
}

.cgh-block .resource-link img {
margin: 2rem;
}

.resource-meta h4 {
  font-size: 1rem;
}

div.block {
padding: 0rem !important;
}

}

.updates .item.resource {
  display: flex;
  flex-direction: column;
    flex: 1 1 100%;
  height: auto; 
  margin: 10px;
}

.browse-collections img {
  max-height: 13rem;
border: none;
}

.browse-collections .resource {
  padding: 1rem;
  background: white;
  border: 1px solid lightgray;
  margin: 1rem;
}

.browse-collections .resource .resource-link img {
  border: none !important;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
}

.resource-grid {
  max-width: 1200px;
}

.browse-collections {
margin: 0 2rem;
}

.limited-size-preview .resource-link img {
max-width: 13rem !important;
}

.resource-image {
min-width: 170px;
}

.updates .resource-link img {
  max-height: 8rem !important;
}

.updates {
margin: 2rem;
}

.preview-header{
border-bottom: none !important;
}

.resource-list .resource {
border-bottom: none !important;
}
.resource-list {
  border-top: none !important;
}
.resource-meta h4 {
font-size: 1.1em;
}

.project-team .resource-meta {
  margin: 0.5rem !important;
}

.cgh-block .resource-meta {
  margin: 0.5rem !important;
}


.items.browse, 
.resource-list {
  display: flex;
  flex-wrap: wrap; 
}

.item.resource {
  display: flex;
  flex-direction: column;
  height: auto; 
  margin: 10px;
}

.item.resource .resource-meta {
  margin-top: auto;
}

.updates .description{
    display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;       
  overflow: hidden;  
font-size: 0.9em;
}

.updates h4 {
font-size: 1em;
}

.project-team, cgh-block {
  max-width: 1200px;
}

html {
  scrollbar-color: #ffffff #f0f0f0;
}

::-webkit-scrollbar-track {
  background: #f0f0f0;
}

::-webkit-scrollbar-thumb {
  background-color: #ffffff;
  border-radius: 10px;
  border: 1px solid #dcdcdc;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #e0e0e0;
}

.leaflet-container .leaflet-control-attribution {
  display: none;
}

/*
  Full-width splash gallery 
*/

.cgh-splash {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 80vh;
  height: 79svh;
  min-height: 360px;
  overflow: hidden;
  background: #1c1c1c;
}


@media (max-width: 768px) {
.cgh-splash {
  height: 30svh;
  }

.cgh-caption {
font-size: 0.7rem !important;
}

}

.cgh-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.12);
}

.cgh-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  animation: cgh-fade 30s infinite;
}


.cgh-slide--1 { animation-delay: -1s; }
.cgh-slide--2 { animation-delay: 9s; } 
.cgh-slide--3 { animation-delay: 19s; } 

.cgh-slide img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.cgh-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 4rem 1.5rem 0.4rem;
  text-align: center;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  z-index: 1;

}

@keyframes cgh-fade {
  0%      { opacity: 0; }
  5.56%   { opacity: 1; }
  33.33%  { opacity: 1; }
  38.89%  { opacity: 0; }
  100%    { opacity: 0; }
}

/* Icon grid*/

.cgh-icons .cgh-icon a img,
.cgh-icons .cgh-icon a:hover img,
.cgh-icons .cgh-icon a:focus img {
  border-color: #dad7d7 !important;
}

.cgh-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);   /* 2 rows of 3 on wide screens */
  gap: 3rem 2rem;
  margin: 2rem 0;
}

.cgh-icon a {
  display: block;
  text-align: center;
  color: inherit;
  text-decoration: none;
}

.cgh-icon img {
  display: block;
    width: 100%;
  max-width: 350px;
  margin: 0 auto 1rem;
  object-fit: contain;
border: solid 1px #dad7d7 ;
  padding: 0.2rem;
  box-sizing: border-box;
  transition: padding 0.3s ease;
}

.cgh-icon a:hover img,
.cgh-icon a:focus img {
  padding: 0;
}

.cgh-icon-title {
  font-size: 1.3rem;
  font-weight: lighter;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.cgh-icon a:hover .cgh-icon-title,
.cgh-icon a:focus .cgh-icon-title {
  text-decoration: underline;
}

/* tablet: 3 rows of 2 */
@media (max-width: 900px) {
  .cgh-icons {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* phone: single column */
@media (max-width: 560px) {
  .cgh-icons {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

#offCanvas .active a {
  color: #8f8f8f !important;
}

.slick-track {
  display: block !important;
}

.slick-slide{
padding: 0 30px;
}

.slick-slide .slide-text .title {
  font-weight: inherit;
}

.slick-list {
  padding-top: 1rem;
}

.carousel-block h2 {
  font-size: 1.3rem;
  padding-left: 3rem;
}

.slick-slide img {
  border: solid 1px #dad7d7;
  padding: 0.4rem;
  background: white;
}

.news-splash {
  border: solid #dadada 1px;
  border-radius: 8px;
  background: #f2eae88c;
}

.slide-text {
    display: flex !important;
    flex-direction: column;
}

.slick-next-icon, .slick-prev-icon {
  opacity: 0.5;
}

.caption {
    order: 1; 
}

.title {
    order: 2; 
}

.lg-backdrop {
  background-color: #f8f3f2;
  border-radius: 8px;
}

.lg-outer .lg-object {
  max-height: 95%;
}

.resource-title h2 {
  font-size: 1.3rem;
  text-align: center;
  font-weight: lighter;
  color: #126ba6;
  margin: 1rem 0 0 0;
    margin-right: 0px;
  background-color: #f8f3f2bd;
  padding: 0.4rem;
}

#itemfiles {
  margin: 0.4rem 0 1rem;
}

.lg-sub-html {
  color: #126ba6;
background: #f8f3f261;
}

.project-team .description.fadeout {
  position: inherit;
  max-height: none;
  overflow: visible;
}

dl {
  margin-bottom: 1rem;
  padding: 2rem;
  max-width: 1250px;
}

.label {
  display: none;
}

.breadcrumbs {
  padding-left: 1rem;
}

  #itemfiles {
    height: 100vh;
  }

@media (max-width: 768px) {
  .inline .property dt {
    width: 100% !important;
    flex: 0 0 100% !important;
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  .inline .property dd {
    width: 100% !important;
    max-width: 100% !important; /* Prevents hidden max-width limits */
    flex: 0 0 100% !important;   /* Forces flexbox to give it full width */
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
