body .brave_form_button  {text-align: center!important}

.brave_popup .brave_element.brave_element--form .brave_form_button {
    text-align: center;
}

.paged .brave_popup {display: none!Important}

.collection_sections .wp-block-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
}
.collection_sections .collection_card { margin: 0; min-width: 0; }
.collection_sections .collection_card figure { margin: 0; }
.collection_sections .collection_card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.collection_sections .collection_card figcaption { text-align: center; margin-top: 8px; }
@media (max-width: 781px) {
  .collection_sections .wp-block-columns { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

:root {
  --yith-wcan-filters_colors_accent: #173f36;
  --yith-wcan-filters_colors_accent_r: 23;
  --yith-wcan-filters_colors_accent_g: 63;
  --yith-wcan-filters_colors_accent_b: 54;
  --yith-wcan-anchors_style_text_hover: #173f36;
  --yith-wcan-anchors_style_text_active: #173f36;
}
.yith-wcan-dropdown .dropdown-wrapper .matching-items {
  max-height: none !important;
  overflow-y: visible !important;
}
.select2-container--open .select2-selection,
.select2-dropdown {
  border-color: rgba(23, 63, 54, 0.3);
  box-shadow: 0 0 7px rgba(23, 63, 54, 0.3);
}
.select2-dropdown li:hover { color: #173f36; }

/* ===== Gallery page only (page 1835). Delete this whole section to go back to the old look. ===== */

/* Year headings: large, light, on the left */
.page-id-1835 .entry-content h1.wp-block-heading {
  text-align: left !important;
  font-size: 88px; font-weight: 300; line-height: .8; letter-spacing: -.01em;
  margin: 96px 0 48px; padding: 6px 0 0;
}
.page-id-1835 .entry-content > h1.wp-block-heading:first-child { margin-top: 40px; }

/* A paragraph typed straight after a year heading (the "Collections: ..." line): small and quiet */
.page-id-1835 .entry-content h1.wp-block-heading + p {
  margin: -28px 0 48px; font-size: 15px; font-weight: 400; color: #56716a;
}
.page-id-1835 .entry-content h1.wp-block-heading + p a {
  color: #173f36; text-decoration: none; border-bottom: 1px solid currentColor;
}
.page-id-1835 .entry-content h1.wp-block-heading + p a:hover { color: #4d7955; }

/* Each gallery: four square photos across, even gaps */
.page-id-1835 .wp-block-gallery.has-nested-images {
  display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px !important; align-items: start; margin: 0 !important;
}
.page-id-1835 .wp-block-columns:has(.wp-block-gallery) { margin-bottom: 0; }
.page-id-1835 .wp-block-gallery.has-nested-images figure.wp-block-image {
  display: block !important; width: auto !important; min-width: 0; margin: 0 !important; position: relative;
}
.page-id-1835 .wp-block-gallery.has-nested-images figure.wp-caption {
  display: block !important; width: auto !important; max-width: 100%; margin: 0 !important;
}
.page-id-1835 .wp-block-gallery.has-nested-images figure.wp-block-image a { display: block !important; height: auto !important; }
.page-id-1835 .wp-block-gallery.has-nested-images figure.wp-block-image img {
  display: block !important; width: 100% !important; height: auto !important; max-width: none;
  aspect-ratio: 1 / 1; object-fit: cover; border-radius: 0;
}

/* The first photo in each gallery is the big one. Add the class fw-right to a gallery to put it on the right */
.page-id-1835 .wp-block-gallery.has-nested-images > figure.wp-block-image:first-child { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.page-id-1835 .wp-block-gallery.has-nested-images.fw-right > figure.wp-block-image:first-child { grid-column: 3 / span 2; }

/* Captions: under the photo, small and quiet, never on top of it */
.page-id-1835 .wp-block-gallery.has-nested-images figure.wp-block-image::before { content: none !important; }
.page-id-1835 .wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
  position: static !important; display: block; width: auto !important; max-height: none !important; overflow: visible !important;
  margin: 12px 0 0 !important; padding: 0 !important; background: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  color: #173f36 !important; text-shadow: none !important; text-align: left !important;
  font-size: 15px !important; font-style: normal; font-weight: 400; line-height: 1.4;
}
.page-id-1835 .wp-block-gallery.has-nested-images figure.wp-block-image figcaption:empty { display: none !important; }
.page-id-1835 .wp-block-gallery.has-nested-images figure.wp-block-image figcaption a { color: inherit; }

/* Hide the brand graphics (file names containing FaerieWigs_) that sit inside the galleries as spacers */
.page-id-1835 .wp-block-gallery.has-nested-images > figure.wp-block-image:has(img[src*="FaerieWigs_"]) { display: none !important; }

/* Separator: a plain Image block showing the Forest "Stardust Breeze", placed between years */
.page-id-1835 .entry-content > .wp-block-image:has(img[src*="FaerieWigs_StardustBreeze_Forest"]) { margin: 0; text-align: center; float: none; width: auto; }
.page-id-1835 .entry-content > .wp-block-image img[src*="FaerieWigs_StardustBreeze_Forest"] {
  display: block; width: 270px; max-width: 70%; height: auto; margin: 77px auto -19px; opacity: .8;
}

/* Space above a paragraph that follows a gallery (the closing line) */
.page-id-1835 .entry-content .wp-block-gallery + p { margin-top: 96px; }

/* Phones: two across, the first photo full width, smaller type */
@media (max-width: 767px) {
  .page-id-1835 .entry-content h1.wp-block-heading { font-size: 64px; margin: 64px 0 32px; }
  .page-id-1835 .entry-content h1.wp-block-heading + p { margin: -14px 0 32px; }
  .page-id-1835 .wp-block-gallery.has-nested-images { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px !important; }
  .page-id-1835 .wp-block-gallery.has-nested-images > figure.wp-block-image:first-child,
  .page-id-1835 .wp-block-gallery.has-nested-images.fw-right > figure.wp-block-image:first-child { grid-column: 1 / -1; grid-row: auto; }
  .page-id-1835 .wp-block-gallery.has-nested-images figure.wp-block-image figcaption { font-size: 14px !important; margin-top: 8px !important; }
  .page-id-1835 .entry-content > .wp-block-image img[src*="FaerieWigs_StardustBreeze_Forest"] { margin: 50px auto -14px; }
}
