/**
 * FRONT-PAGE.CSS
 *
 *
 */





 /* HERO SECTION */


.custom-frontpage-hero-container {
  margin-left: var(--site-global-padding);
  margin-right: var(--site-global-padding);

  height: calc(100vh - 4.5rem);

  display: grid;
  grid-template-columns: 1fr 1fr; 
  grid-template-rows: 2.1rem 1fr 2.1rem;
  column-gap: 5rem;
}


@media (max-width: 45rem) {

  .custom-frontpage-hero-container {
    height: unset;
    grid-template-columns: 1fr;
    grid-template-rows: unset;
  }

}





 /* --- --- --- */





.custom-frontpage-hero-heading-text-button-container {
  grid-column: 1 / 2;
  grid-row: 2 / 3;

  display: flex;
  flex-direction: column;
  justify-content: center;
}


@media (max-width: 45rem) {

  .custom-frontpage-hero-heading-text-button-container {
    grid-column: 1 / 2;
    grid-row: 2 / 3;

    display: unset;
    flex-direction: unset;
    justify-content: unset;
  }

}





 /* --- --- --- */





.custom-frontpage-hero-heading {
  font-family: WF Visual Sans Variable;
  font-size: 3.5rem;
  font-weight: 625;
  line-height: 1.15;
  margin-top: -1.5rem;

  /* border: 1px solid red; */
  max-width: 500px;
}


@media (max-width: 75rem) {

  .custom-frontpage-hero-heading {
    font-size: 3.1rem;
    font-weight: 625;

  }

}


@media (max-width: 67.5rem) {

  .custom-frontpage-hero-heading {
    font-size: 2.85rem;
  }

}


@media (max-width: 50rem) {

  .custom-frontpage-hero-heading {
    margin-top: 1.5rem;
    font-size: 2.2rem;
  }

}







 /* --- --- --- */





.custom-frontpage-hero-text {
  margin-top: 1.5rem;
  
  font-family: WF Visual Sans Variable;
  font-size: 20px;
  max-width: 560px;
  line-height: 1.3;
}


@media (max-width: 50rem) {

  .custom-frontpage-hero-text {
    margin-top: 1rem;
    font-size: 17px;
  }

}





 /* --- --- --- */





.custom-frontpage-hero-buttons-container {
  margin-top: 1.75rem;
  display: flex;
}


@media (max-width: 50rem) {

  .custom-frontpage-hero-buttons-container {
    margin-top: 1.25rem;
  }

}


.custom-frontpage-hero-button-a {
  margin-right: 0.5rem;
  padding: 0.5rem 1.25rem;
  text-decoration: none;
  font-family: WF Visual Sans Variable;
  font-size: 0.825rem;
  font-weight: 500;
  letter-spacing: 0.02rem;
  background-color: #FF001F;
  color: white;
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  align-items: center;
}


/* .custom-frontpage-hero-button-b {
  margin-right: 0.5rem;
  padding: 0.438rem 1.25rem;
  text-decoration: none;
  font-family: WF Visual Sans Variable;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.03rem;
  background-color: rgb(235, 235, 235);
  color: rgb(120, 120, 120);
} */


.custom-frontpage-hero-button-b {
  margin-right: 0.5rem;
  padding: 0.5rem 1.25rem;
  text-decoration: none;
  font-family: WF Visual Sans Variable;
  font-size: 0.825rem;
  font-weight: 500;
  letter-spacing: 0.02rem;
  background-color: #FF001F;
  color: white;
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  align-items: center;
}





 /* --- --- --- */





.custom-frontpage-hero-image-container {
  grid-column: 2 / 3;
  grid-row: 2 / 3;

  /* for testing container and figcaption placement */
  /* border: 1px solid blue; */
}


@media (max-width: 45rem) {

  .custom-frontpage-hero-image-container {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    margin-left: calc(var(--site-global-padding) * -1);
    margin-right: calc(var(--site-global-padding) * -1);
  }

}





 /* --- --- --- */





.custom-frontpage-hero-image {
  width: 100%;

  /* pulls up the image and makes room for the figcaption */
  height: calc(100% - 1rem);
  object-fit: cover;
}


@media (max-width: 50rem) {

  .custom-frontpage-hero-image {
    aspect-ratio: 16 / 10;
  }

}

 
.custom-frontpage-hero-image-caption {
  margin-top: 0.25rem;
  font-family: WF Visual Sans Variable;
  font-size: 0.75rem;
  text-align: right;
  color: rgba(0, 0, 0, 0.6);
}


@media (max-width: 45rem) {

  .custom-frontpage-hero-image-caption {
    margin-right: 0.4rem;
  }

}




 /* --- --- --- */

  
  
  
  











 /* NEWS AND CALENDAR SECTION */
  

.custom-frontpage-section-news {
  margin-top: 8rem;
  font-family: WF Visual Sans Variable;
  font-feature-settings: "ss03" 1;
}


.custom-frontpage-section-calendar {
  margin-top: 8rem;
  font-family: WF Visual Sans Variable;
  font-feature-settings: "ss03" 1;
  /* background-color: pink; */
}


.custom-frontpage-section-departments {
  margin-top: 8rem;
  margin-bottom: 6rem;
  font-family: WF Visual Sans Variable;
  font-feature-settings: "ss03" 1;
  /* background-color: lightgreen; */
}



 /* --- --- --- */

 



.custom-frontpage-slide-heading-and-controls {
  margin-left: var(--site-global-padding);
  margin-right: var(--site-global-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
}


.custom-frontpage-slide-heading {
  margin-top: unset;
  font-size: 28px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.01rem; 
  line-height: 0.75;
}


@media only screen and (max-width: 45rem) { /* 100% = no middle gaps and only 1 column */

  .custom-frontpage-slide-heading---departments---hide-part-of-heading {
    display: none;
  }

}
  

.custom-frontpage-slide-controls {
  display: flex;
}


@media only screen and (max-width: 45rem) { /* 100% = no middle gaps and only 1 column */

  .custom-frontpage-slide-controls {
    display: none;
  }

}


.custom-frontpage-slide-button {
  display: flex;
  align-items: center;
  margin-left: 0.5rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  border: 0;
  height: 32px;
  background-color: #EBEBEB;
  color: #7A7A7A;
  font-family: WF Visual Sans Variable;
  font-feature-settings: "case" 1;
  font-size: 17px;
  font-weight: 350;
  cursor: pointer;
}


.custom-frontpage-slide-link {
  display: block;
  margin-left: 0.5rem;
  padding-top: 0.438rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  height: 32px;
  background-color: #EBEBEB;
  color: #7A7A7A;
  text-decoration: none; 
  font-family: WF Visual Sans Variable;
  font-size: 0.938rem;
  font-weight: 400;
  letter-spacing: 0.03rem;
}





 /* --- --- --- */

 


  
.custom-frontpage-slide-container {
  border-top: 1px solid #E5E5E5;
  gap: 2vw;

  margin-top: 1.7rem;

  padding-top: 3.1rem;


  overflow: auto;
  display: flex;

  scroll-snap-type: x mandatory;
  scroll-padding-left: max(var(--site-global-padding), 50% - 100% / 2);
  padding-left: max(var(--site-global-padding), 50% - 100% / 2);
  padding-right: max(var(--site-global-padding), 50% - 100% / 2);
}
  




 /* --- --- --- */





.custom-frontpage-slide-item {
  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: calc((100% - 6vw) / 4); /* 6vw = 3 x gap: 2vw | 4 = number of columns */

  /* height: 300px; */
  scroll-snap-align: start;
}


.custom-frontpage-slide-item---see-all-link {
  background-color: #EBEBEB;
  color: #7A7A7A;
  aspect-ratio: 6 / 7;
  display: flex;
  align-items: center;
  justify-content: center;
}


.custom-frontpage-slide-item a {
  text-decoration: none;
  color: unset;
}


.custom-frontpage-slide-item-figure  {
  position: relative; /* needed for pinned label */
}


.custom-frontpage-slide-item-figure img {
  aspect-ratio: 6 / 7;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block; /* this removes the little added spacing below images */
}


.custom-frontpage-slide-item-meta {
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 450;
}



.custom-frontpage-slide-item-meta-separator {
  margin-left: 0.2rem;
  margin-right: 0.2rem;
}



.custom-frontpage-slide-item-heading {
  margin-top: 0.875rem;
  font-size: 1.375rem;
  font-weight: 625;
  line-height: 1.2;
}


/* Large desktop: fixed column gap */
@media screen and (min-width: 100rem) {

  .custom-frontpage-slide-item {
    column-gap: 1.875rem;
  }

}


@media only screen and (max-width: 75rem) {

  .custom-frontpage-slide-item {
    flex-basis: calc((100% - 4vw) / 3); /* 4vw = 2 x gap: 2vw | 3 = number of columns */
  }

}


@media only screen and (max-width: 60rem) {

  .custom-frontpage-slide-item {
    flex-basis: calc((100% - 2vw) / 2); /* 2vw = 1 x gap: 2vw | 2 = number of columns */
  }

}


@media only screen and (max-width: 45rem) { /* 100% = no middle gaps and only 1 column */

  .custom-frontpage-slide-item {
    flex-basis: 90%; /* 90% instead of 100% shows a bit of the next slide */
  }

}

  
  
  
  










  



 /* --- --- --- */

  
  
  
  
 /* DEPARTMENTS */
  
  
.custom-frontpage-slide-item---departments {
  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: calc((100% - 4vw) / 3); /* 4vw = 2 x gap: 2vw | 4 = number of columns */

  /* height: 300px; */
  scroll-snap-align: start;
}


.custom-frontpage-slide-item---departments a {
  text-decoration: none;
}


.custom-frontpage-slide-item---departments---container {
  display: grid;
  grid-template-columns: 1.5rem 1fr 1.5rem;
  grid-template-rows: 1.5rem 1fr 1.7rem;
  aspect-ratio: 6 / 7;
}


.custom-frontpage-slide-item-figure---departments {
  grid-area: 1 / 1 / 4 / 4;
  position: relative;

}


.custom-frontpage-slide-item-figure---departments::before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(255, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
  z-index: 1;
}


.custom-frontpage-slide-item-figure---departments img {
  /* aspect-ratio: 6 / 7; */
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block; /* removes the little extra native spacing below img ... otherwise it'll get vertical scrolling */
}


.custom-frontpage-slide-item---departments---inner-container {
  grid-area: 2 / 2 / 2 / 2;
  z-index: 1; 

  display: flex;
  flex-direction: column;
  justify-content: end;
}


.custom-frontpage-slide-item---departments---heading {
  color: white;
  font-family: WF Visual Sans Variable;
  font-size: clamp(0.5rem, 2.78vw, 40px);

}


@media only screen and (max-width: 70rem) {

  .custom-frontpage-slide-item---departments---heading {
    font-size: clamp(0.5rem, 3.5vw, 40px);
  }

}


@media only screen and (max-width: 45rem) { /* 100% = no middle gaps and only 1 column */

  .custom-frontpage-slide-item---departments---heading {
    font-size: clamp(1.65rem, 5.55vw, 40px);
  }

}


.custom-frontpage-slide-item---departments---description {
  color: white;
  font-family: WF Visual Sans Variable;
  font-size: 20px;
}
















/* Large desktop: fixed column gap */
@media screen and (min-width: 100rem) {

  .custom-frontpage-slide-item---departments {
    column-gap: 1.875rem;
  }

}


@media only screen and (max-width: 70rem) {

  .custom-frontpage-slide-item---departments {
    flex-basis: calc((100% - 2vw) / 2); /* 2vw = 1 x gap: 2vw | 2 = number of columns */
  }

}


@media only screen and (max-width: 45rem) { /* 100% = no middle gaps and only 1 column */

  .custom-frontpage-slide-item---departments {
    flex-basis: 90%; /* 90% instead of 100% shows a bit of the next slide */
  }

}






  
  
  
  
  
  
  
  
  























  
  
/* hide slider scrollbars */

/* Hide scrollbar for Chrome, Safari and Opera */
.custom-frontpage-slide-container ::-webkit-scrollbar, .custom-frontpage-slide-container-departments ::-webkit-scrollbar {
  display: none;
}


/* Hide scrollbar for IE, Edge and Firefox */
.custom-frontpage-slide-container, .custom-frontpage-slide-container-departments  {
  
  /* IE and Edge */
  -ms-overflow-style: none;  
  
  /* Firefox */
  scrollbar-width: none;  
}