/*
Theme Name: MHCAM Working
Author: Hilary Caws-Elwitt
Description: Base block theme for Mount Holyoke College Art Museum
Version: 1.1
Requires at least: 6.6 
Tested up to: 6.6

--Colors - flesh out w accessibility, move to theme.json?
Charcoal: #373737 - RGBA equivalent (0,0,0, .7)
MHC blue: #0099D8 - RGA equivalent rgba(0, 109, 199, 0.7) ? or rgba(0, 153, 216, 0.4) ? or rgba(0, 51, 177, 0.5)
Light gray (nav menu): #e8e8e8;
Very light blue for homepage slider: #e5ffff
MHC blue darker as background for white text: #0072A3
Dark enough blue for gray background: #006DA3
Dark blue: #007987 rgba(0, 121, 135, 0.7)
Dark green: #00945E
Aqua blue: #00ADD8
Mint blue: #00BCB4 rgba(0, 188, 180, 0.7)
Mayo teal: #56888
Lime green: #77BC1F
Light blue: #8AA9E2 rgba(138, 169, 226, 0.7)
Purple: #93397F rgba(147, 57, 127, 0.7)
Terra cotta: #C04E05
Cappuccino: #BBB0A2
Brown: #CEA052
Red
Gold
Pink 
Orange
*/

/* Handle through Klaro
@import url("https://use.typekit.net/wdy7jcu.css");
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
*/

/* Temporary layout testing
* { outline: 1px solid red; };
*/

/* Variables for home page hover blocks */
/* consider moving this into theme.json? */
:root {
  --hover-events-image: url('/wp-content/uploads/2025/06/event_2019fa_galltalk_sept26_0038-lpr-732x1024.jpg');
  --hover-exhibitions-image: url('/wp-content/uploads/2025/06/gallery_2023fa_weissman_oct02_019-lpr-910x1024.jpg');
  --hover-membership-image: url('/wp-content/uploads/2025/06/edu_2018sp_k12_may02_157-lpr-1024x760.jpg');
  --hover-collection-image: url('/wp-content/uploads/2025/06/mh_1980_8_v1-lpr-1024x872.jpg');
  --hover-gradient-mhcam-blue: rgba(0, 153, 216, 0.7);
  --hover-gradient-dark-blue: rgba(0, 121, 135, 0.7);
  --hover-gradient-light-blue: rgba(138, 169, 226, 0.7);
  --hover-gradient-purple: rgba(147, 57, 127, 0.7);
  --hover-gradient-mint-blue: rgba(0, 188, 180, 0.7);
  --navigation-layout-breakpoint: 1000px;
}

body {
  max-width: 1600px;
  margin: auto;
  font-family: "ars-maquette-web", "Open Sans", Helvetica, Arial, sans-serif;
  background-color: #f0f0f0;
  font-size: 16px;
}

.header-nav-wrapper {
  padding-top: 20px;
  column-gap: 1.2vw;
}

/* Group all media queries related to header/ top nav */
@media (min-width: 1000px) /* WP default 783 */ 
{
  .wp-block-site-logo {
    /*background-color: #0099D8 !important; */
    /*max-width: 20% !important; */
    /* added */
    display: flex;
    align-items: center;
    /*height: 100px; */
    position: relative;
    z-index: 2; /*logo above header background */

  }


  .wp-block-site-logo::after {
  content: "";
  position: absolute;
  bottom: 10px;
  left: 88px; 
  width: 104px;
  height: 30px;
  background: rgba(0, 0, 0, 0.7);
  /* background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.7), 
    rgba(0,0,0,0)
  );
  */
  z-index: -1;
}

  .wp-block-site-logo img{
    width: 100% !important;
  }
  .site-header {
    height: 80px !important;
  }
  button ~ .wp-block-navigation__submenu-container {
  border-top: solid 10px #0099D8 !important;
  }

}

/* Adjust nav menu on mobile */

@media (max-width: 999px) {
  .wp-block-navigation__responsive-container {
    display: none;
  }
  
  ul.wp-block-navigation__submenu-container {
    margin-top: 4px !important;
    z-index: 20;
  }
  /*
  .wp-block-navigation__responsive-container-open {
    display: flex;
  }
*/
.wp-block-navigation__responsive-container,
.wp-block-navigation__responsive-container-content,
.wp-block-navigation ul {
  text-align: left !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
}
  .wp-block-navigation__responsive-container.is-menu-open {
  width: clamp(200px, 33vw, 500px);
}

    .wp-block-navigation__responsive-container-close {
    position: relative !important;
    margin-top: 2vw;
  }
  .wp-block-navigation:not(.has-responsive-open) .wp-block-navigation__container {
    display: none;
  }

  .wp-block-navigation.has-responsive-open .wp-block-navigation__responsive-container {
    display: flex;
  }
    .wp-block-navigation__responsive-container-content {
    padding-top: 1em !important;
  }

  .wp-block-navigation {
    z-index: 20px;
  }

  .wp-block-navigation__submenu-container {
  margin-top: 0 !important;
  
}
  button.wp-block-navigation-submenu__toggle {
    display: none !important;
  }

  .wp-block-navigation__submenu-container {
    margin: 0 !important;
    padding-top: 0 !important;
    z-index: 20 !important;
  }

  .wp-block-navigation__submenu-container li:first-of-type {
    font-size: 16px !important; /* was 4vw, too big */
  }

  .wp-block-navigation-link {
    font-size: 14px !important; /* was 4vw, too big */
  }

  button ~ .wp-block-navigation__submenu-container {
  border-top: 4px solid #0099D8 !important;
}

  body .wp-block-navigation__responsive-container-open:not(.always-shown) {
	display: block !important;
  }
  body .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
    display: none !important;
  }

}

/* Misc tweaks for narrow widths */
@media (max-width: 600px) {
  .wp-block-image.alignright {
    float: none;
    margin: 1em auto;
    display: block;
    text-align: center;
  }

}

/* don't need this now?
/* default 24px gap prevents left nav from reaching 20% width to match logo */
/* @media (min-width: 1000px) /* was 782
{
  .mobile-reverse-column-direction {
    gap: 0 !important;
  }
}
*/

.site-header {
  max-width: 1600px;
  margin: auto;
  background: rgba(0, 0, 0, 0.7);
  /* new styles */
  position: relative;
  z-index: 1;
  overflow: visible; /* let logo hang down */
}

.wp-block-search__button {
  background-color: #0099D8;
  padding: 10px;
  margin-right: 2px;
}

.wp-block-navigation {
  font-weight: 400;
  /*font-size: 1.4vw; */
  font-size: clamp(1.2vw, 1.3vw, 1.4vw); /* mimimum, preferred, maximum [1,1.2,1.4 too small] */
  color: white;
  column-gap: 1.2vw;
}

.wp-block-navigation__submenu-container {
  margin-top: 15px !important; /* 27 for 100px high */
  
}

.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {
  /*border-top: solid 10px #0099D8 !important; */
  left: -.9em !important; /* Align first letter of menu item with parent */
  right: auto !important; /* override 0 */
}




.wp-block-navigation-link {
  border-bottom: 1px solid #e3f2ff;
  font-size: 1vw;
  font-weight: 400;
  color:#373737;
  text-transform: none;
}

li.wp-block-navigation-link:first-of-type {
  font-size: 1.3vw;
  font-weight: 500;
  padding-top: 2px;
  padding-bottom: 2px;
}

li.wp-block-navigation-item.wp-block-navigation-link:hover {
  color: white;
  background-color: #373737;
}

button.wp-block-navigation-item__content.wp-block-navigation-submenu__toggle:hover,
a.wp-block-navigation-item__content:hover {
  color: #0099D8;
}

.follow-us,
.footer-details {
  width: 50%;
}

.wp-block-group.is-layout-constrained.wp-block-group-is-layout-constrained {
  margin-top: 0;
}

h2 {
  font-size: 2em;
  line-height: 1.5;
  font-weight: 300;
  max-width: 800px;
}

h2.wp-block-post-title {
  font-size: min(10vw, 2.6em); /* replacing 3.4 em) */
  line-height: 120%;
  font-family: 'Poppins', sans-serif;
}

/* Except on Archive pages */
body.archive h2.wp-block-post-title {
  font-size: 2rem;
}

h2.catalogue-title {
  font-size: 1.2rem;
  line-height: 100%;
}

h2.wp-block-post-title.publication-title,
h2.index-title {
  font-size: 1.5em;
}

.title-wrapper {
  padding: 3.5vw 2vw 1.5vw 1.5vw;
}

.title-block {
  margin-top: 0;
  margin-bottom: 24px;
  flex-direction: column;
}

.title-block a {
  color: black;
}

.title-block a:hover {
  color: #006DA3;
}

.post-has-iframe {
  flex: 1 1 auto;
  min-width: 150px;
  max-width: 800px;
  width: 100%;
}
/*
.post-has-iframe {
  position: relative;
  width: 100%;
  max-width: 800px;
  padding-top: 66.66667%; /* aspect ratio 3:2
  margin: 0 auto; /* centers the iframe
  max-height: 450px;
}

.post-has-iframe iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
*/
@media (min-width: 800px)
{
  /* For image/swiper templates */

  /* general first */
  .title-wrapper {
    padding-left: 22.5%;
  }

  /* now exclude */
  /* Override if followed by .hero-image-container or .gallery */
  .title-wrapper:has(+ .hero-image-container),
  .title-wrapper:has(+ .gallery),
  .title-wrapper:has(+ .post-has-iframe) {
    min-width: 400px;
    max-width: 60%;
    padding-left: 2em;
  }
  /* Switch title block to side by side. */
    .title-block {
    flex-direction:row;
  }

}

.subtitle {
  font-size: 1.5em;
  line-height: normal;
}


@media (max-width: 799px)
{
  /* Reverse direction of left nav menu
  .mobile-reverse-column-direction {
      flex-direction: column-reverse;
  }
  */
    /* trying to get index pages to stack */
  .wp-block-columns.mobile-reverse-column-direction {
    display: flex;
    flex-direction: column;
  }
  .mobile-reverse-column-direction .left-nav {
    order: 2;
  }
    .mobile-reverse-column-direction .right-panel {
    order: 1;
  }
  /* Gallery becomes a column */
  .event-wrapper,
  .exhibition-wrapper,
  .blog-wrapper,
  .index-wrapper,
  .course-wrapper {
    flex-direction: column;
    padding: 1em;
  }
/* Listing wrapper is inside each li */
  .listing-wrapper {
    display: flex;
    flex-direction: column;
    padding: 1em;
  }
  .blog li.wp-block-post:not(:first-of-type),
  #index-list li.wp-block-post:not(:first-of-type),
  .listing-wrapper:not(:first-of-type),
  .event-wrapper:not(:first-of-type),
  .exhibition-wrapper:not(:first-of-type),
  .course-wrapper:not(:first-of-type) { 
    padding-top: 1em;
    padding-bottom: 1em;
  }
  /* Fix this at some point - it's because the selectors aren't specific enough otherwise */
  .blog li.wp-block-post:first-of-type,
  #index-list li.wp-block-post:first-of-type,
  .listing-wrapper:first-of-type,
  .event-wrapper:first-of-type,
  .exhibition-wrapper:first-of-type,
  .course-wrapper:first-of-type {
    padding-bottom: 1em;
  }

}

@media (max-width: 999px) /*3rd column stacks first */
{
  .wp-block-columns:has(> .categories-column) {
    flex-direction: column;
  }
}

.hero-image-container {
  margin: 1em 0 1em 0;
  position: relative;
  display: inline-block;
}

.single-object .hero-image-container {
  margin: auto;
  display:block;
  margin-bottom: 24px;
}

.hero-image-container img {
  max-height: 500px;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain; /* Ensures the entire image is visible */
  display:block;
}

.single-object .hero-image-container img {
  margin: auto;
  display: block;
}

.hero-image-container .photo-credit-wrapper{
  position: absolute;
  right: 0;
  margin-top: 0;
}

.hover-block a {
  text-decoration: none;
  color: white !important;
}


.hover-block {
  position: relative;
    min-height: 40vh;
    padding: 24px;
    color: white;
    text-align: center;
    display: flex;
    justify-content: center;
    border-radius: 9px;
}

.hover-block-link {
  display: block;
  text-decoration: none;
  margin-top: 0;
}

.hover-block-link:hover {
  text-decoration: underline;
  text-decoration-color: white;
}

.hover-block-events {
  background-image: 
    linear-gradient(var(--hover-gradient-mhcam-blue), var(--hover-gradient-mhcam-blue)),
    var(--hover-events-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hover-block-events:hover {
  background-image: 
    linear-gradient(var(--hover-gradient-dark-blue), var(--hover-gradient-dark-blue)),
    var(--hover-events-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hover-block-exhibitions {
  background-image: 
    linear-gradient(var(--hover-gradient-mhcam-blue), var(--hover-gradient-mhcam-blue)),
    var(--hover-exhibitions-image);
  background-size: cover;
  background-position:  27% 52%;
  background-repeat: no-repeat;
}

.hover-block-exhibitions:hover {
  background-image: 
    linear-gradient(var(--hover-gradient-light-blue), var(--hover-gradient-light-blue)),
    var(--hover-exhibitions-image);
  background-size: cover;
  background-position: 27% 52%;
  background-repeat: no-repeat;
}

.hover-block-membership {
  background-image: 
    linear-gradient(var(--hover-gradient-mhcam-blue), var(--hover-gradient-mhcam-blue)),
    var(--hover-membership-image);
  background-size: cover;
  background-position: 50% 60%;
  background-repeat: no-repeat;
}

.hover-block-membership:hover {
  background-image: 
    linear-gradient(var(--hover-gradient-mint-blue), var(--hover-gradient-mint-blue)),
    var(--hover-membership-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hover-block-collection {
  background-image: 
    linear-gradient(var(--hover-gradient-mhcam-blue), var(--hover-gradient-mhcam-blue)),
    var(--hover-collection-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hover-block-collection:hover {
  background-image: 
    linear-gradient(var(--hover-gradient-purple), var(--hover-gradient-purple)),
    var(--hover-collection-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hover-block h2 {
  font-size: 2.2em;
}

@media (max-width: 962px) {
  .wp-block-columns:has(.hover-block) {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem; /* optional: spacing between columns */
    align-items: stretch;
  }

  .wp-block-columns:has(.hover-block) .wp-block-column {
    display: block !important;
  }

  .hover-block {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: .5em;
    box-sizing: border-box;
  }

  .hover-block h2 {
    line-height: 1.2;
    margin: 0;
  }
}


.single-object h2.wp-block-post-title {
  text-align: center;
}

.object-tombstone {
  clear: both;
  font-weight: bold;
  padding-left: 1em;
}

.on-view-wrapper {
  text-align: right;
}
.on-view {
  background-color: #45413e;
  color: white;
  text-transform: uppercase;
  padding: 10px 40px;
  margin-right: 7em;
}

.photo-credit-wrapper {
  width: 100%;
  text-align: right;
  font-size: .7em;
  margin-top: 0px;
  line-height: 1.2em;
  padding: 0;
}

.single-object .hero-image-container .photo-credit-wrapper,
.gallery-slider .photo-credit-wrapper {
  text-align: center;
}

.photo-credit {
  background-color: rgba(0, 0, 0, 0.1);
  display: inline-block;
  padding: 1em; /* 0 1em 0 1em; */
}

.photo-credit p {
  display: inline;
  margin: 0;
  padding: 0;
}
.gallery-slider .photo-credit {
  background-color: #dcdcdc;
}

.wp-block-post-featured-image img {
  max-height: 617px;
  margin: auto;
}

.wp-block-post-featured-image img {
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
}

/* Keep content width constrained */
p,
.short-description-block,
body:not(.home) .wp-block-heading,
ul.wp-block-list li,
ul li,
.search-context {
  max-width: 800px;
}

/* But override for blog listing pages */
.blog-list li:has(.blog-wrapper) {
  max-width: 100%;
}
li:has(.listing-wrapper) {
  max-width: 100%;
}

.short-description-block a, 
.wp-block-post-content a, 
.photo-credit-wrapper a,
.index-details a,
.index-title a,
.staff-profile a,
.blog-details a {
  color: black;
  font-weight: bold;
}

.short-description-block a:hover, 
.wp-block-post-content a:hover,
.photo-credit-wrapper a:hover,
.resource-link a:hover,

.index-details a:hover,
.blog-details a:hover,
.wp-block-post-terms a:hover {
  color: #0099D8;
}

.grid-collection-container a {
  text-decoration: none;
}

.grid-collection-container a:hover {
  color: #006DA3;
  text-decoration: underline;
}

.related-content {
  border-top: 1px solid #b3b3b3;
  padding-top: 1em;
  text-transform: uppercase;
  font-size: 130%;
  font-weight: bold;
}



.resource-link {
  display: inline-block;
  border: solid 3px #373737;
  padding: 10px 30px 10px 10px;
  margin-top: 1em;
  text-transform: uppercase;
  background: url(assets/images/right-arrow-black-large.png) no-repeat right center;
  border-radius: 9px;
}

/*
* Styles for event and blog filters
*/

.event-wrapper,
.exhibition-wrapper,
.blog-wrapper,
.course-wrapper,
.listing-wrapper {
  padding: 0;
  display: flex;
}

/* If there's an intro paragraph, give it space */
.right-panel .entry-content .wp-block-columns .wp-block-column:first-of-type > p:first-of-type {
  padding: 12px; /* was 0.5em */
}

.video-available {
  font-weight: 600;
  font-style: italic;
  padding-top: .5em;
}

/* Adjust blog and index page to snug up to left nav */
@media (min-width: 782px) /* was 1000px */
{
  .blog-wrapper,
  .index-wrapper,
  /*.course-wrapper, */
  .listing-wrapper {
    margin-left: -24px;
  }

  .categories-column:has(.blog-categories),
  .right-column:has(.event-types),
  .departments {
    margin-top: -24px;
  }

  /* Need section below for index listings */
 body:not(.search-results):not(.archive) li.wp-block-post
   {
    margin-left: -16px;
    margin-block-start: -24px;
  }
  body:not(.search-results) #index-list .wp-block-post:not(:first-child) {
    margin-block-start: -24px;
  }

}

@media (min-width: 782px) /* was 1000px */
{
  body:not(.single) .event-details,
  body:not(.single) .exhibition-details,
  .blog-details,
  .index-details,
  .course-details {
    padding: 1em;
    width: 100%;
    overflow: hidden;
    max-height: 269px;
    display: block;
  }
  /* This eliminates the little white line between listings on desktop */
  .event-wrapper,
  .exhibition-wrapper,
  .blog-wrapper,
  .listing-wrapper,
  .course-wrapper {
    max-height: 269px;
  }
  /* But override for search results since the search-context needs space */
  body.search-results .listing-wrapper {
    margin-block-start: 0;
  }
}

.blog li.wp-block-post:not(:first-of-type),
#index-list li.wp-block-post:not(:first-of-type),
.listing-wrapper:not(:first-of-type),
.event-wrapper:not(:first-of-type),
.exhibition-wrapper:not(:first-of-type),
.course-wrapper:not(:first-of-type) {
  border-top: 0.5px solid #373737;
}

.title-block .blog-author-block {
  font-size: 1.25em;
}

h3 {
  font-size: 130%;
  max-width: 800px;
}
h3 > a {
  text-decoration: none;
}

.event-location,
.exhibition-location {
  font-size: 80%;
  line-height: 105%;
  padding-top: 1em;
}

.single .start-end-block {
  font-size: 1.2em;
}

.single .start-end-block.event {
  font-weight: 600;
}

.single .location-block {
  font-size: 1.2em;
  margin-top: -8px;
}


.event-dates,
.exhibition-dates,
.course-number,
.instructors {
  font-size: 110%;
  line-height: 120%;
}

.course-number {
  font-size: 110%;
  line-height: 120%;
  padding-bottom: 1em;
}

.add-to-calendar {
  background: url('/wp-content/themes/mhcam-working/assets/images/add-to-calendar.png') no-repeat right 20px center;
  text-transform: uppercase;
  width: 10rem;
  padding: .5rem;
  padding-right: 50px;
  border: solid 3px #45413e;
  margin-top: 24px;
}

.add-to-calendar:hover {
  background: url('/wp-content/themes/mhcam-working/assets/images/add-to-calendar-hover.png') no-repeat right 20px center;
  color: white;
  background-color: #45413e;
}

.hidden {
  display: none;
}

#addtocal-menu {
  padding: .5em;
  list-style: none;
  color: white;
  background-color: #45413e;
  padding: .5rem;
  width: 10rem;
}

#addtocal-menu a {
  color: white;
  background-color: #45413e;
}

#addtocal-btn {
  border: none;
  font-size: 120%;
  background-color: #fafafa;
}

#addtocal-btn:hover {
  color: white;
  background-color: #45413e;
}
.related-content {
  padding-left: 1em;
}

.related-content + .grid-gallery {
  padding-left: 1em;
}
.related-content-wrapper {
  max-width: 345px;
  border: 1px solid #373737;
  background-color: white;
}

/* override border for featured pages */
.featured-page .related-content-wrapper {
  border: none;
}

.related-content-image img{
    width: 100%;
    height: 100%;
    aspect-ratio: 345 / 269;
    object-fit: contain;
    display: block;
}
.related-content-by-type {
  /* background: linear-gradient(#dcdcdc, #ffffff); */
  padding: .5vw;
  color:#373737;
  border-top: 1px solid #373737;
}

.related-content-wrapper a {
  text-decoration: none;
}

.related-content-title {
  font-size: 1.2em;
  font-weight: bold;
}

.related-content-wrapper a .related-content-title {
  color: #0099D8;
  text-decoration: none;
}
.related-content-wrapper a:hover .related-content-title {
  text-decoration: underline;
}

.related-content-wrapper .event-date-location {
  font-size: 80%;
}

hr.wp-block-separator {
  border-bottom: 1px solid #373737;
}
.page-term,
.single-post-type {
  text-transform: uppercase;
  font-size: 20px; /* WP "font-size-medium" */
}

.blog-categories,
.blog-authors,
.blog-tags,
.blog-archive,
.event-types,
.departments {
  background: #373737;
  color: white;
  /* text-transform: uppercase; */
  font-size: 1.25em;
  padding: 8px 20px;
}

ul.mhcam-event-category-filter,
ul.blog-category-list li,
ul.blog-author-list li,
ul.tag-list li,
ul.wp-block-archives-list li,
ul.event-types-list li,
ul.departments-list li {
  /* text-transform: uppercase; */
  list-style-type: none;
  line-height: 24px;
  margin-bottom: 20px;
}
ul.mhcam-event-category-filter a,
ul.blog-category-list a,
ul.tag-list a,
ul.wp-block-archives-list a,
ul.blog-author-list a,
ul.event-types-list a,
ul.departments-list a {
  text-decoration: none;
  color: black;
}

.wp-block-categories li > a[aria-current="page"],
.wp-block-archives li > a[aria-current="page"],
.tag-list li > a[aria-current="page"],
.departments-list li > a[aria-current="page"] {
  color: #006DA3;
  font-weight: bold;
}

.right-column {
  padding-top: 24px;
}

/*
Styles for grid display
*/
/* Basic grid container styles */
.grid-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(250px, 20vw, 350px), 1fr));
  gap: 1rem;
}

/* Styling individual grid items 
/* Objects don't need room for text
*/
.grid-object-container {
  /*padding: 20px; */
  border: 1px solid black;
  text-align: center;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  width: 100%;

}

.grid-object-container img{
    width: 100%;
    height: 100%;
    aspect-ratio: 345 / 269;
    object-fit: contain;
    display: block;
}

.grid-collection-container {
  text-align: center;
  display: grid;
  grid-template-rows: auto 1fr;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 349px;
}

.grid-collection-image-container {
  /*padding: 20px; */
  border: 1px solid #373737;
  text-align: center;
  position: relative;
 /*
  max-height: 271px;
  max-width: 347px;
  margin: auto;
  */
}

.grid-collection-image-container img{
    width: 100%;
    height: 100%;
    aspect-ratio: 345 / 269;
    object-fit: contain;
    display: block;
}

/* Use for text on collections */
.grid-collection-title {
  /* text-transform: uppercase; */
  background-color: #dcdcdc;
  font-size: 1.2em;
  text-align: center;
  aspect-ratio: 345 / 76;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family:  'Poppins', sans-serif;
  border-radius: 9px;
  padding: 0 .5em 0 .5em;

}

.grid-text-container{
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  display: none;
  text-align: left;
}

.show-info .grid-text-container {
  display: block;
}

.grid-gallery .obj-title {
  display: block;
  padding: 10px;
  /* text-transform: uppercase; */
  margin-bottom: 30px;
  font-weight: 600;
}
.grid-gallery .maker, .grid-gallery .maker-culture, .grid-gallery .materials {
  display: block;
  padding-left: 10px;
}

/* Related posts */
.featured-info {
  background-color: #373737;
  color: white;
}

  /* Grid styling that works */
  .featured-pages {
    display: grid;
    grid-template-columns: repeat(3, minmax(clamp(75px, 20vw, 175px), 1fr));
    gap: 1rem;
    max-width: 800px;
    padding-top: 1.5em;
  }

  @media (max-width: 800px) { 
    .featured-pages {
      grid-template-columns: repeat(2, minmax(clamp(75px, 20vw, 175px), 1fr));
    }
  } 

  .featured-page-wrapper {
    aspect-ratio: 1 / 1;
    display: grid;
    grid-template-rows: auto 1fr;
    width: 100%;
    /*border: solid 1px green;*/
    overflow: hidden;
    border-radius: 9px;
  }

.featured-page-wrapper a {
  text-decoration: none;
  font-weight: 500;
}

.featured-page-wrapper a:hover {
  text-decoration: underline;
  text-decoration-color: white;
  text-decoration-thickness: .1em;  
}

.featured-page-image img{
    width: 100%;
    height: 100%;
    aspect-ratio: 345 / 269;
    object-fit: contain;
    display: block;
}

.featured-page-title {
  color: white;
  background-color:#0072A3;
  font-size: 1.2em;
  display: flex;
  align-items: center;
  justify-content: center;;
  text-align: center;
  aspect-ratio: 345 / 76;
  padding: 0 .1em 0 .1em;
  font-family: 'Poppins', sans-serif;

}

/* Styles for staff list */

.staff-category {
  font-weight: bold;
  text-transform: uppercase;
  padding-top: 1em;
}
.staff-profile {
  display: flex;
}

@media (max-width: 781px) {
  .staff-profile {
    flex-direction: column;
  }

}

.staff-img-block {
  max-width: 345px;
}

.staff-caption {
  background-color: #373737;
  color: white;
  padding: 0.5em;
  margin-top: -.5em;
  color: white;
  font-size: 110%;
}

.staff-caption a {
  color: white;
  font-size: 90%;
  font-weight: normal;
  text-decoration: none;
}

.staff-caption a:hover {
  text-decoration: underline;
  color: white;
}


.staff-text-block {
  padding-left: 1em;
  max-width: 500px;
}

.name {
  font-size: 130%;
  line-height: 130%;
  padding-top: 0;
}
.position {
  font-size: 110%;
  padding: .25em 0 .25em 0;
}

.left-nav {
  background-color: #e6e6e6; /* #cacaca too dark for blue text */
  margin-bottom: -24px !important;
}

@media (min-width: 782px) /* was 1000px */
{
  .left-nav {
    padding-right: 0 !important;
    flex: 0 0 20%;
  }

  ul.sidebar-nav {
    padding-top: 3em;
    padding-inline-start: 3vw;
  }
}

.title-block {
  margin-bottom: 0 !important;
}

.wp-block-columns.mobile-reverse-column-direction {
  margin-top: 0 !important;
}

/* maybe don't need?
.entry-content  {
  margin-top: 24px !important;
}

*/
.right-panel {
  padding: 1em;
}

/* Enough room for a long photo credit on mobile 
replaced by js check
@media (max-width: 799px) {
  .right-panel {
    padding: 3em 1em 1em 1em;
  }
}
*/

/* When no left nav and not home, appropriate padding */
body:not(.home) :not(.right-panel) > .entry-content,
.single-info {
  padding-left: 1em;
  padding-right: 1em;
}

/* Styling for specific pages */

.home-content {
  padding-left: 1em;
  padding-right: 1em;
}

/* Snug up images on list content type views:
blog, courses (211), events (112), past events, exhibitions, 
past exhibitions; ?but not if there's an intro paragraph? */
.page-id-112 .wp-block-columns,
.page-id-112 .entry-content,
.page-id-180 .wp-block-columns,
.page-id-180 .entry-content,
.page-id-181 .wp-block-columns,
.page-id-181 .entry-content,
.page-id-211 .wp-block-columns,
.page-id-211 .course-wrapper,
.page-id-239 .wp-block-columns,
.page-id-239 .entry-content,
.page-id-258 .wp-block-columns,
.page-id-258 .entry-content {
  gap: 0;
  margin-top: 0 !important;
}

/* Style featured pages block on specific page */
/*.page-id-108 .featured-page-title {
  font-size: 85%;
  padding: 2px;
}
  */

@media (min-width: 782px) /* was 1000px */
{
  .page-id-112 .right-panel,
  .page-id-180 .right-panel,
  .page-id-181 .right-panel,
  .page-id-211 .right-panel,
  .page-id-239 .right-panel,
  .page-id-258 .right-panel {
    padding-left: 0;
    padding-top: 0 !important;
  }
}

/* To un-snug paragraph if they exist */
.page-id-112 .entry-content p {
  padding-left: 1em;
}

/* Left nav */

ul.sidebar-nav li {
  padding-top: .1em;
  margin-left: .5em;
}

/* MHCAM blue, 0099D8, doesn't pass as text */
/* 007283, 006699, 006DA3 ? */
.sidebar-nav a.active {
  text-decoration: underline;
  text-decoration-color: #006DA3;
  text-decoration-thickness: .1em;  
}

/* Change bullet for <li> that contains an .active <a> */
.sidebar-nav li:has(> a.active) {
  list-style-image: url('/wp-content/themes/mhcam-working/assets/images/menu-collapsed.png');
}

.sidebar-nav a.active-parent {
  font-weight: bold;
  color: #006DA3;
}

ul.sidebar-nav > li:first-of-type {
  font-size: 120%;
  padding-bottom: .5em;
  margin-left: 0;  
}

ul.sidebar-nav, ul.sidebar-nav ul {
  list-style: none;
  font-weight: 600;
}
ul.sidebar-nav ul.wp-block-list {
  font-weight: 250;
  font-size: 80%;
  padding: .1em 0 .1em .5em;
}

ul.sidebar-nav a {
  text-decoration: none;
  color: #373737;

}
ul.sidebar-nav a:hover {
  text-decoration: underline;
}
/*

/*
 *  Social media links
 */

.facebook-link a {
  display: inline-block;
  background-image: url('/wp-content/themes/mhcam-working/assets/images/facebook-icon.png');
  width: 43px;
  height: 44px;
  margin: 0 2em;
  background-size: contain;
  background-repeat: no-repeat;
}

.facebook-link a:hover {
  background-image: url('/wp-content/themes/mhcam-working/assets/images/facebook-icon-hover.png');
}

.instagram-link a {
  display: inline-block;
  background: url('/wp-content/themes/mhcam-working/assets/images/instagram-icon.png') no-repeat center;
  width: 43px;
  height: 44px;
  margin: 0 2em 0 2em !important;
}
.instagram-link a:hover {
  background-image: url('/wp-content/themes/mhcam-working/assets/images/instagram-icon-hover.png');
}

.vimeo-link a {
  display: inline-block;
  background-image: url('/wp-content/themes/mhcam-working/assets/images/vimeo_icon.png');
  width: 43px;
  height: 44px;
  margin: 0 2em 0 2em  !important;
}
.vimeo-link a:hover {
  background-image: url('/wp-content/themes/mhcam-working/assets/images/vimeo_icon_hover.png');

}
.youtube-link a {
  display: inline-block;
  background-image: url('/wp-content/themes/mhcam-working/assets/images/youtube_icon.png');
  width: 62px;
  height: 44px;
  margin: 0 2em 0 2em  !important;
}
.youtube-link a:hover {
  background-image: url('/wp-content/themes/mhcam-working/assets/images/youtube_icon_hover.png');
}

.give-button .wp-element-button {
  min-width: 40px !important;
  padding: 0;
  color: #58ceff;
  background-color: rgba(0,0,0,0);
  border-radius: unset;
  font-size: 1.2em;
}

/* 
* FAQs
* /
/* Style for the <details> block */
details {
  border: 2px solid #cacaca; /* Box border */
  padding: 15px;
  margin: 20px 0;
  background-color: #f0f0f0; /* Optional: Background color inside the box */
  position: relative;
  max-width: 800px;
}

.page-id-91 details {
    border: 2px solid #0099D8;
}

/* Style for the <summary> inside the <details> */
details summary {
  cursor: pointer;
  font-weight: bold;
  list-style: none;
  padding-right: 25px; /* Ensure space for the icon */
  position: relative;
}

/* Add the plus sign */
details summary::after {
  content: "+"; /* Default state (closed) icon */
  position: absolute;
  right: 0;
  font-size: 1.5rem;
  font-weight: bold;
  color: #333; /* Change this to match your design */
  transition: transform 0.2s ease;
}

.page-id-91 details summary::after {
  color: #0099D8;
}

/* Change the icon to minus when <details> is open */
details[open] summary::after {
  content: "-"; /* Open state icon */
}
/*
.page-id-91 details[open] summary::after {
  color: #0099D8;
}
*/
/* Special custom styling - removing visible line breaks for example */

.margin-top-0 {
  margin-top: 0;
}

.margin-bottom-0 {
  margin-bottom: 0;
}

/* Targeting legacy content */

.media-element-container,
.media-element-container img {
  /* max-width: 100% !important; */
  height: auto;
}

.media-image_left {
  float: left;
  max-width: 500px;
}
.file-image-left {
  float: left;
  margin: 5px 10px 5px 0;
  max-width: 490px;
}
.media-image_right {
  float: right;
  max-width: 500px;
}
.file-image-right {
  float: right;
  margin: 5px 0 5px 10px;
  max-width: 490px;
}

.media-element-container {
  padding-bottom: 1em;
}

.media-element-container .field-name-field-caption-long-text,
.media-element-container .field-name-field-photo-credit {
  clear: both;
  padding-top: .5em;
  font-size: 0.8125rem;
  padding-left: 2em;
}

.field-name-field-photo-credit > .field-label {
  font-weight: bold;
}

.media-element-container .field-name-field-caption-long-text p {
  padding: 0;
  margin: 0;
  font-size: 0.8125rem; 
  line-height: 1.2rem;
}
.media-element-container .field-name-field-photo-credit p {
  padding: 0;
  margin: 0;
  font-size: 0.8125rem; 
}

.field-label-inline .field-label, .field-label-inline .field-items {
  float: left;
}

.join-button {
  display: block; 
  border-radius: 12px; 
  width: 150px; 
  background-color: #5ba151; 
  background-image: linear-gradient(to right,#33ac7c, #5c7dc2, #55236f); 
  padding: 1em; 
  text-align: center; 
  font-size: 120%;
}

.join-button a {
  color: white;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
}
.join-button a:hover {
  text-decoration: underline;
  color: white;
}

/* from Drupal jquery.fitvids.js
.fluid-width-video-wrapper {
  width:100%;
  position:relative;
  padding:0;}
.fluid-width-video-wrapper iframe,
.fluid-width-video-wrapper object,
.fluid-width-video-wrapper embed {
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
}
  */

/* WP Front Notification Bar styling */
/* To modify the entire bar styling */
#wpfront-notification-bar {
  background: #f3eaac !important;
  margin:auto; 
  max-width: 1600px; 
  font-weight: 700;
}

#wpfront-notification-bar.wpfront-blue {
  background: #d9edf7 !important;
}

/* To modify the message styling */
#wpfront-notification-bar div.wpfront-message {
  color: #000000 !important;
  width: 100% !important;
  font-size: 1.2em;
}

/* To modify the close button styling */
#wpfront-notification-bar div.wpfront-close {
  border: 1px solid #ee4b2b !important;
  background-color: #ee4b2b !important;
  color: #000000 !important;
  font-size: 1em;
  width: 1em;
  height: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
}

#wpfront-notification-bar div.wpfront-close:hover            {
  border: 1px solid #aaaaaa;
  background-color: #aaaaaa;
  }

#wpfront-notification-bar div.wpfront-message a { 
  color: black !important; 
}

#wpfront-notification-bar-spacer { display:block; }

/* integrate if need be
      #wpfront-notification-bar-table, .wpfront-notification-bar tbody, .wpfront-notification-bar tr            {
                  width: 100%
                  }


    */
/*
  .media-element-container {
    .field-name-field-caption-long-text {
      clear: both;
      padding-top: .5em;  //1.5em;
      font-size: 0.8125rem; //.875 = 14px  .8125 = 13px  .750 = 12px
      p {
        padding: 0px;
        margin: 0px;
        font-size: 0.8125rem; //.875 = 14px  .8125 = 13px  .750 = 12px
        line-height: 1.2rem;
      }
    }
  
    .field-name-field-photo-credit {
      font-size: 0.8125rem; //.875 = 14px  .8125 = 13px  .750 = 12px
      clear: both;
      p {
        padding: 0px;
        margin: 0px;
        font-size: 0.8125rem; //.875 = 14px  .8125 = 13px  .750 = 12px
      }
    }
  }
  */  

/* Move color from title-block color eventuall
.title-wrapper .white-text {
  color: white !important;
}
  etc.
.white-text:hover {
  color: #006DA3 !important;
}
  */

/* For tests - remove after launch */
.test-hce {
  background-color: rgba(0, 153, 216, 0.4);
  color: white;
  font-size: 1.2em;
  font-weight: 700;
}
.test-hce:hover {
  font-style: italic;
}