/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *



 */

#submit-loading {
  display: none;
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  text-align: center;
  background: rgba(0, 0, 0, .4);
  margin: 0;
  padding: 0;
  z-index: 9999;    
}

#submit-loading div {
  opacity: 25%;
}

p:empty {
  height: 0!important;
  padding: 0!important;
  margin: 0!important;
  width: 0!important;
}
/* ------------------- */
/*        setup        */
/* ------------------- */
:root {
  /* --primary: #3B4431; */
  --txt-color: #475467;
  --title-color: #2A2A2A;
  --primary: #19818C;
  --munsell: #1999AC;
  --moonstone: #71BBC4;
  --non-photo-blue: #8AD0DB;
  --sunset: #FBD7A1;
  --saffron: #F2CA53;
  --mint-green: #C1DED0;
  --cambridge-blue: #99C7B5;
  --link-color-alpha-0: rgba(25, 129, 140, 0);
  --link-color-alpha-1: rgba(25, 129, 140, 1);
  --light-grey: #F9FAFB;
  /* --title-font: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; */
  --title-font: nexa, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1;
}

body * {
  font-family: nexa, sans-serif;
}

body a {
  text-decoration: none;
}

/* width sizes */
.mw-280 {
  max-width: 280px;
}

.mw-md-280 {
  width: 100%;
}

.mw-480 {
  max-width: 480px;
}

.mw-576 {
  max-width: 576px;
}

.mw-lg-576 {
  width: 100%;
}

.mw-768 {
  max-width: 768px;
}

.mw-lg-768 {
  width: 100%;
}

.mw-991 {
  width: 100%;
  max-width: 991px;
}

.mw-1024 {
  width: 100%;
  max-width: 1024px;
}

.bg-grey {
  background-color: var(--light-grey);
}

.bg-fhprimary {
  background-color: var(--primary);
}

.br-16 {
  border-radius: 16px;
  overflow: hidden;
}

/* row gap */
.row-gap-64 {
  row-gap: 64px;
}

/* headings */
h1,
h2,
h3,
h4,
h5 {
  margin-bottom: 0;
  font-family: nexa, sans-serif;
}

/* section settings */
.section-p {
  padding-top: 64px;
  padding-bottom: 64px;
}

.single-p {
  padding-bottom: 64px;
}

.section-title h2 {
  color: var(--title-color);
  font-size: 30px;
  font-weight: 700;
  line-height: 38px;
  margin-bottom: 24px;
  font-family: var(--title-font);
}

.rich-text-section h2 {
  color: var(--title-color);
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  margin-bottom: 24px;
  font-family: var(--title-font);
}

.rich-text-section h3 {
  color: var(--title-color);
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
  margin-bottom: 16px;
  font-family: var(--title-font);
}

.section-title p,
.section-title ul,
.section-content p,
.section-content ul,
.rich-text-section p {
  color: var(--txt-color);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
}

/* .section-link,
.section-title .section-link,
.section-content .section-link,
.rich-text-section .section-link{
    color: var(--link-color);
    text-decoration: underline 2px var(--link-color-alpha-0);
    transition: text-decoration-color 0.2s ease;
}
.section-link:hover,
.section-title .section-link:hover,
.section-content .section-link:hover,
.rich-text-section .section-link:hover{
    text-decoration: underline 2px var(--link-color-alpha-1);
} */
.section-title p a,
.section-content p a,
.rich-text-section p a {
  color: var(--primary);
  text-decoration: underline 2px var(--link-color-alpha-0);
  transition: text-decoration-color 0.2s ease;
}

.section-title p a:hover,
.section-content p a:hover,
.rich-text-section p a:hover {
  text-decoration: underline 2px var(--link-color-alpha-1);
}

/* --------------------- */
/* large image container */
/* --------------------- */
.large-img-container {
  width: 100%;
  max-width: 576px;
  height: 240px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 16px;
  overflow: hidden;
  background-color: #F9FAFB;
}

.large-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------- */
/* small image container */
/* --------------------- */
.small-img-container {
  width: 100%;
  max-width: 576px;
  height: 240px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 16px;
  overflow: hidden;
  background-color: #F9FAFB;
}

.small-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.small-img-container .img-png {
  width: 100%;
  height: 100%;
  padding: 16px;
  object-fit: contain;
}

/* -------------------- */
/* Skip to main content */
/* -------------------- */
.skip-to-main-content {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 1em;
  background-color: black;
  color: #fff;
  opacity: 0;
}

.skip-to-main-content:focus {
  left: 50%;
  top: 1%;
  transform: translateX(-50%);
  opacity: 1;
  border: 1px solid red;
}

/* --------------------- */
/*    Section divider    */
/* --------------------- */
.section-divider {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.section-divider div {
  height: 1px;
  width: 100%;
  max-width: 1300px;
  padding: 0px 32px;
  align-self: center;
  background-color: #EAECF0;
}

/* ------------------- */
/*       buttons       */
/* ------------------- */
.btn.fhome-btn {
  background-color: var(--primary);
  border-radius: 8px;
  padding: 12px 18px;
  border: 1px solid var(--primary);
  color: #ffffff;
  font-weight: 600;
  /* white-space: nowrap; */
}

.btn.fhome-btn:hover,
.btn.fhome-btn:active,
.btn.fhome-btn:focus,
.btn.fhome-btn:focus-visible {
  border: 1px solid var(--primary);
  background-color: #ffffff;
  color: var(--primary);
}

/* -------------------- */
/*    Navigation bar    */
/* -------------------- */

/* .c-info-bar{
    position: absolute;
    width: 100%;
} */
.fhome-nav .section-divider div {
  max-width: unset;
}

.info-bar-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 8px 0;
  align-items: center;
}

.fhome-nav .c-info-bar ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: row;
  column-gap: 12px;
}

.fhome-nav .c-info-bar ul span {
  display: none;
}

.fhome-nav .c-info-bar ul li a {
  display: flex;
  flex-direction: row;
  align-items: center;
  column-gap: 8px;
  /* color: #2A2A2A; */
  color: var(--primary);
}

.fhome-nav .c-info-bar ul li a span {
  /* text-decoration: underline 2px rgba(59, 68, 49, 0); */
  text-decoration: underline 2px rgba(25, 129, 140, 0);
  transition: text-decoration-color 0.2s ease;
}

.fhome-nav .c-info-bar ul li a:hover span {
  text-decoration-color: rgba(25, 129, 140, 1);
}

/* language switch */
.lang-switch a {
  background-color: #ffffff;
  padding: 5px 12px;
  color: var(--title-color);
  font-weight: 700;
  font-size: 14px;
  transition: background-color 0.2s ease;
  align-content: center;
}

.lang-switch a:hover,
.lang-switch:focus-visible {
  /* background-color: var(--primary); */
  background-color: var(--non-photo-blue);
  /* color: #fff; */
}

.lang-switch a.active {
  /* background-color: var(--primary); */
  background-color: var(--non-photo-blue);
  /* color: #fff; */
}

.lang-switch a:first-child {
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
  border: 1px solid var(--primary);
}

.lang-switch a:last-child {
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
  border: 1px solid var(--primary);
}

/* nav logo */
.c-info-bar .logo {
  display: block;
  /* width: 100%; */
  /* max-width: 320px; */
  /* height: auto; */
  height: 100%;
  max-height: 135px;
  width: auto;
  margin-left: auto;
  margin-right: auto;
}

.c-info-bar .logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header-tagline {
  text-align: center;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--primary);
  margin-top: 4px;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

/* navigation menu */
.fhome-nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  /* z-index: 1056; */
  z-index: 10;
  transition: transform 0.3s ease-in-out;
}

.fhome-nav .navbar {
  border-top: 1px solid #EAECF0;
  border-bottom: 1px solid #EAECF0;
}

.fhome-nav .c-info-bar {
  max-height: 208px;
  transition: max-height 0.4s ease-out, opacity 0.4s ease-out;
  overflow: hidden;
  opacity: 1;
}

.fhome-nav.scrolled .c-info-bar {
  max-height: 0;
  opacity: 0;
}

.fhome-nav+.subpage-banner {
  padding-top: 314px;
}

.fhome-nav+.main .homepage-banner {
  padding-top: 330px;
}

.navbar-toggler {
  margin-left: auto;
  margin-right: auto;
  background-color: var(--primary);
  color: #ffffff;
  padding: 10px 16px;
  width: 100%;
}

.fhome-nav .offcanvas-body ul {
  margin-left: auto;
  margin-right: auto;
  column-gap: 8px;
}

.fhome-nav {
  background-color: #ffffff;
  box-shadow: 0 1px 3px 0px rgba(10, 13, 18, 0.10), 0 1px 2px -1px rgba(10, 13, 18, 0.1);
}

.fhome-nav .nav-link {
  transition: box-shadow 0.2s ease;
  padding: 0.5rem;
  color: #2A2A2A;
}

.fhome-nav .nav-link:hover,
.fhome-nav .nav-link:focus {
  -webkit-box-shadow: inset 0px 0px 0px 2px var(--primary);
  box-shadow: inset 0px 0px 0px 2px var(--primary);
}

.fhome-nav .nav-link.active {
  background-color: var(--primary);
  color: #ffffff;
}

.dropdown-item {
  color: #2A2A2A;
}

.dropdown-item.active,
.dropdown-item:active {
  background-color: #EAECF0;
  color: #2A2A2A;
}

@media (min-width: 1200px) {
  .fhome-nav .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }
  .fhome-nav .nav-item.dropdown > .dropdown-toggle::after {
    margin-left: 0.35em;
  }
}

.fhome-nav .offcanvas-header {
  align-items: flex-start;
}

.fhome-nav .offcanvas-header div {
  width: 100%;
  display: flex;
}

.fhome-nav .offcanvas-header img {
  height: 150px;
  margin-left: 18%;
}

.fhome-nav .offcanvas-header button {
  margin: 0;
  flex-shrink: 0;
  background-image: none;
}

/* homepage obituary card */
.home-obituary-card {
  display: flex;
  height: 400px;
  width: 100%;
  max-width: 280px;
  flex-direction: column;
  background-color: #ffffff;
  margin-left: auto;
  margin-right: auto;
  color: #2A2A2A;
  box-shadow: 0.3px 0.5px 0.7px hsl(0deg 0% 63% / 0.34),
    0.4px 0.8px 1px -1.2px hsl(0deg 0% 63% / 0.34),
    1px 2px 2.5px -2.5px hsl(0deg 0% 63% / 0.34);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.home-obituary-card:hover {
  /* background-color: var(--primary); */
  background-color: var(--mint-green);
  color: var(--title-color);
  transform: scale(1.02);
  box-shadow: 0.3px 0.5px 0.7px hsl(0deg 0% 63% / 0.36),
    0.8px 1.6px 2px -0.8px hsl(0deg 0% 63% / 0.36),
    2.1px 4.1px 5.2px -1.7px hsl(0deg 0% 63% / 0.36),
    5px 10px 12.6px -2.5px hsl(0deg 0% 63% / 0.36);
}

.home-obituary-card:focus,
.home-obituary-card:focus-visible {
  background-color: var(--mint-green);
  color: var(--title-color);
}

.home-obituary-card img {
  width: 100%;
  height: 245px;
  object-fit: cover;
  background: #FFF;
}

.home-obituary-card .card-info {
  display: flex;
  padding: 16px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  flex: 1 0 0;
}

.home-obituary-card .card-info h3 {
  font-size: 24px;
}

.home-obituary-card .card-info p {
  margin-bottom: 8px;
}

/* -------------- */
/*     footer     */
/* -------------- */
footer {
  background-color: var(--primary);
  padding-top: 64px;
  padding-bottom: 32px;
}

footer a {
  color: #ffffff;
}

.footer-logo {
  width: 100%;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.footer-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

footer h5 {
  color: #ffffff;
  margin-bottom: 28px;
  font-weight: 600;
}

footer ul,
footer .footer-nav {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

footer .footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

footer .footer-nav li {
  width: 100%;
  max-width: 280px;
}

footer ul li a {
  font-size: 18px;
  color: #ffffff;
  text-decoration: underline 2px rgba(255, 255, 255, 0);
  transition: text-decoration-color 0.2s ease;
}

footer ul li a:hover {
  text-decoration-color: rgba(255, 255, 255, 1);
}

footer p {
  color: #ffffff;
}

/* ----------------- */
/*   About us page   */
/* ----------------- */
.subpage-banner {
  padding-top: 48px;
  padding-bottom: 48px;
  color: #ffffff;
}

.subpage-banner h1 {
  font-size: 36px;
  font-weight: 700;
  line-height: 44px;
}

.team-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 24px;
  row-gap: 48px;
}

.team-container .team-member {
  width: 100%;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  row-gap: 24px;
  text-align: center;
}

.team-member .member-info {
  display: flex;
  flex-direction: column;
  row-gap: 8px;
}

.team-member .member-info h2 {
  font-size: 28px;
  line-height: 34px;
  margin-bottom: 0;
}

.team-member .member-info span {
  font-size: 18px;
  color: var(--txt-color);
}

.team-member img {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1;
  border-radius: 9999px;
  margin-left: auto;
  margin-right: auto;
  object-fit: cover;
}

.team-member .member-info div {
  display: flex;
  flex-direction: row;
  column-gap: 16px;
  justify-content: center;
  align-items: center;
}

.team-member .member-info a {
  color: var(--primary);
  transition: color 0.2s ease;
}

.team-member .member-info a:hover {
  color: var(--txt-color);
}

/* bio modal */
.bio-modal .modal-header {
  align-items: flex-start;
}

.bio-modal .modal-title {
  font-family: var(--title-font);
  color: var(--title-color);
}

.bio-modal__role {
  font-size: 16px;
  color: var(--txt-color);
}

.bio-modal__photo {
  text-align: center;
  margin-bottom: 24px;
}

.bio-modal__photo img {
  width: 140px;
  height: 140px;
  border-radius: 9999px;
  object-fit: cover;
}

.bio-modal__text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--txt-color);
}

/* rich text */
.rich-text-img {
  margin-top: 32px;
  margin-bottom: 32px;
  width: 100%;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0.3px 0.5px 0.7px hsl(0deg 0% 63% / 0.34),
    0.4px 0.8px 1px -1.2px hsl(0deg 0% 63% / 0.34),
    1px 2px 2.5px -2.5px hsl(0deg 0% 63% / 0.34);
}

.rich-text-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ----------------- */
/*   Obituary info   */
/* ----------------- */
.obit-info-left,
.obit-info-right {
  order: 0;
}

.obit-info-left .obit-info-img,
.obit-info-right .obit-info-img {
  margin-left: auto;
  margin-right: auto;
}

.obit-info-img {
  width: 100%;
  max-width: 240px;
  display: flex;
  flex-direction: column;
  row-gap: 24px;
}

.obit-info-img img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  padding: 8px;
  background-color: #c0c0c0;
}

.obit-info-img .carousel-control-next,
.obit-info-img .carousel-control-prev {
  position: relative;
  background-color: var(--primary);
  border: 1px solid var(--primary);
  opacity: 1;
  width: 100%;
  height: 28px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.obit-info-img .carousel-control-next:hover,
.obit-info-img .carousel-control-prev:hover {
  background-color: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.obit-info-img span {
  font-weight: 600;
}

.obit-info-img a {
  color: var(--primary);
  transition: color 0.2s ease;
}

.obit-info-img a:hover {
  color: var(--txt-color);
}

.obit-info-content {
  display: flex;
  flex-direction: column;
  row-gap: 16px;
}

.obit-info-content h2 {
  font-size: 32px;
  line-height: 40px;
  margin-bottom: 8px;
}

.obit-info-content p {
  font-size: 18px;
  line-height: 28px;
}

.obit-info-content .content-heading {
  display: flex;
  flex-direction: column;
  row-gap: 8px;
  margin-bottom: 16px;
}

.obit-info-content .content-heading p {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 24px;
}

.message-obit {
  padding: 16px;
}

.message-obit form {
  background-color: #ffffff;
  padding: 24px;
  border-radius: 16px;
  margin-bottom: 0;
}

form textarea {
  height: 140px;
  resize: none;
}

.message-obit input {
  padding: 10px 14px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(25, 129, 140, 0.3);
}

label.form-label {
  font-weight: 600;
  font-size: 14px;
}

.message-obit .form-select {
  padding: 10px 14px;
}

.search-obituary {
  column-gap: 16px;
  display: flex;
  flex-direction: row;
  margin-left: auto;
  margin-right: auto;
  margin-top: 48px;
  max-width: 576px;
  width: 100%;
}

.grey-bg-form {
  background-color: var(--light-grey);
  padding: 24px;
  border-radius: 16px;
  margin-bottom: 0;
}

.grey-bg-form .form-control,
.grey-bg-form .form-select {
  padding: 10px 14px;
}

/* --------------- */
/*  Grief support  */
/* --------------- */
.fh-accordion .accordion {
  --bs-accordion-bg: unset;
  --bs-accordion-border-color: unset;
  display: flex;
  flex-direction: column;
  row-gap: 16px;
  /* --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(15, 65, 76, 0.25); */
}

.fh-accordion .accordion-item:first-of-type>.accordion-header .accordion-button {
  border-radius: 0;
}

.fh-accordion .accordion-button:not(.collapsed) {
  background-color: unset;
}

.fh-accordion .accordion-item:first-of-type,
.fh-accordion .accordion-item:last-of-type,
.fh-accordion .accordion-item {
  border-radius: 16px;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border 0.2s ease;
}

.fh-accordion .accordion-item:has(.accordion-button:not(.collapsed)) {
  background-color: var(--light-grey);
}

.fh-accordion .accordion-item:has(.accordion-button.collapsed):hover {
  background-color: var(--light-grey);
  border: 1px solid var(--primary);
}

#faqAccordion .accordion-item .accordion-button {
  border-radius: 16px;
}

.accordion-button:focus {
  box-shadow: 0 0 0 4px rgba(25, 129, 140, 0.3);
}

.fh-accordion .accordion-button,
.fh-accordion .accordion-button:not(.collapsed) {
  font-weight: 500;
  color: var(--dark);
}

.fh-accordion .accordion-body {
  color: var(--txt-color);
}

.fh-accordion .accordion-header .accordion-button {
  font-size: 24px;
  column-gap: 12px;
  font-family: var(--title-font);
  font-weight: 600;
}

.fh-accordion .accordion-item .accordion-body a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline 2px var(--link-color-alpha-0);
  transition: text-decoration-color 0.2s ease;
}

.fh-accordion .accordion-item .accordion-body a:hover {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline 2px var(--link-color-alpha-1);
}

.fh-accordion .accordion-body h3,
.fh-accordion .accordion-body h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--title-color);
}

.fh-accordion .accordion-body h3 {
  font-size: 18px;
}

/* ------------------ */
/*   Fund list page   */
/* ------------------ */

.fund-list-container .fund-item {
  padding: 16px;
  border: 1px solid var(--primary);
  border-radius: 16px;
  max-width: 470px;
  margin-left: auto;
  margin-right: auto;
  height: 100%;
}

.fund-list-container .fund-item h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

.fund-list-container .fund-item ul {
  list-style: none;
  padding-left: 8px;
  display: flex;
  flex-direction: column;
  row-gap: 8px;
  margin-bottom: 0;
}

.fund-list-container .fund-item li,
.fund-list-container .fund-item li a {
  display: flex;
  flex-direction: row;
  column-gap: 8px;
  align-items: flex-start;
  color: var(--primary);
  text-decoration: underline 2px solid var(--link-color-alpha-0);
  transition: text-decoration-color 0.2s ease;
}

.fund-list-container .fund-item li a:hover {
  text-decoration-color: var(--link-color-alpha-1);
}

.fund-list-container .fund-item i {
  flex-shrink: 0;
  padding-top: 4px;
}

/* -------------------- */
/*    Resources page    */
/* -------------------- */
.resource-item {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 32px;
  padding-bottom: 32px;
  border-top: 1px solid #EAECF0;
}

.resource-item img {
  width: 240px;
  height: 175px;
  object-fit: contain;
  align-content: center;
  flex-shrink: 0;
  margin-left: auto;
  margin-right: auto;
}

.resource-item div {
  align-content: center;
}

.resource-item h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.resource-item div a {
  color: var(--primary);
  text-decoration: underline 2px solid var(--link-color-alpha-0);
  transition: text-decoration-color 0.2s ease;
}

.resource-item div a:hover {
  text-decoration-color: var(--link-color-alpha-1);
}

/* -------------------- */
/*     Contact page     */
/* -------------------- */
.contact-info-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 32px;
}

.contact-info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 0 0;
  min-width: 280px;
  row-gap: 24px;
}

.contact-info-item span {
  background-color: #EAECF0;
  width: 64px;
  height: 64px;
  border-radius: 9999px;
  display: block;
  text-align: center;
  align-content: center;
  font-size: 32px;
  color: var(--primary);
}

.contact-info-item h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--title-color);
  margin-bottom: 12px;
}

.contact-info-item div {
  text-align: center;
  max-width: 320px;
}

.contact-info-item div a {
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline 2px solid var(--link-color-alpha-0);
  transition: text-decoration-color 0.2s ease;
}

.contact-info-item div a:hover {
  text-decoration-color: var(--link-color-alpha-1);
}

form label span {
  color: red;
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border-radius: 16px;
  overflow: hidden;
}

/* --------------------- */
/* Obituary info gallery */
/* --------------------- */
.masonry-container {
  column-count: 1;
  column-gap: 24px;
}

.masonry-container a {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 16px -4px rgba(16, 24, 40, 0.08), 0 4px 6px -2px rgba(16, 24, 40, 0.03);
  transition: transform 0.2s ease;
  margin-bottom: 24px;
  width: 100%;
  height: auto;
}

.masonry-container a:hover {
  transform: scale(1.03);
}

.masonry-container img {
  width: 100%;
  /* height: 100%; */
  object-fit: cover;
  object-position: center;
}

.image-modal .modal-header {
  background-color: var(--beige);
  border-bottom: 0;
}

.modal .modal-header .btn-close {
  background-image: none;
  color: #ffffff;
  background-color: var(--primary);
  padding: 0;
  width: 28px;
  height: 28px;
  opacity: 1;
  border: 1px solid var(--primary);
  transition: background-color 0.2s ease;
}

.modal .modal-header .btn-close:hover {
  background-color: #ffffff;
  color: var(--primary);
}

.modal .modal-header .btn-close i {
  width: 20px;
  height: 20px;
  text-align: center;
  align-content: center;
}

.image-modal button.modal-btn-left,
.image-modal button.modal-btn-right {
  position: absolute;
  width: 28px;
  height: 28px;
  padding: 0;
}

.image-modal button.modal-btn-left {
  left: 1%;
  top: 50%;
}

.image-modal button.modal-btn-right {
  right: 1%;
  top: 50%;
}

.image-modal img {
  width: 100%;
  /* height: 100%; */
  max-height: 900px;
  object-fit: cover;
}

.image-modal .modal-content {
  border-radius: 16px;
  overflow: hidden;
}

.modal.condolences-modal .modal-body {
  background-color: var(--light-grey);
}

/* Tweaks 2025-12-18 */

.rich-text-section img {
  max-width: 100%;
}

form label.required::after {
  content: ' *';
  color: red;
}

form small {
  font-style: italic;
}
form small > span {
  color: red;
}

.home-obituary-card img.no-img {
  object-fit: contain;
  padding: 40px;
}

.team-member img.no-img {
  object-fit: contain;
  border-radius: 0;
  padding: 30px;
}

/* Obituaries Pagy Styling */

#search-reset.reset-hide {
  width: 0;
  opacity: 0;
  max-width: 0;
  padding: 0;
  margin: 0;
  flex-basis: 0%;
  visibility: hidden;
  display: none;
}

#filter-loading {
  display: flex;
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  text-align: center;
  background: rgba(0, 0, 0, .4);
  margin: 0;
  justify-content: center;
  align-items: center;
  z-index: 9999;    

  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

#filter-loading i {
  position: relative;
  font-size: 3em;
  background: white;
  color: var(--munsell);
  padding: 10px;
  border-radius: 50%;
}

#filter-loading.visible {
  opacity: 1;
  pointer-events: auto;
}

.pagy-bootstrap-nav-js .page-item .page-link {
  color: var(--primary);
}

.pagy-bootstrap-nav-js .page-item.active .page-link {
  background-color: var(--primary);
  color: white;
}

.pagy-bootstrap-nav-js .page-item:not(.active):not(.disabled):hover .page-link,
.pagy-bootstrap-nav-js .page-item:not(.active):not(.disabled):focus-within .page-link {
  background-color: var(--mint-green);
  color: var(--title-color);
}


/* ------------------- */
/*       New CTA       */
/* ------------------- */
.fhome-cta-banner{
    display: flex;
    flex-direction: column;
    row-gap: 32px;
    padding: 48px 24px;
    text-align: center;
    background-color: rgba(25, 129, 140, 0.1);
    border: 2px solid var(--primary);
    border-radius: 16px;
    text-wrap-style: balance;
}
.fhome-cta-banner .section-title p{
    font-size: 20px;
    line-height: 30px;
    text-wrap-style: pretty;
}
.fhome-cta-banner__contact{
    color: var(--txt-color);
    font-size: 14px;
    line-height: 20px;
}
.fhome-cta-banner__contact a{
    color: inherit;
    text-decoration: underline 2px var(--link-color-alpha-0);
    transition: text-decoration-color 0.2s ease;
}
.fhome-cta-banner__contact a:hover{
    text-decoration: underline 2px var(--link-color-alpha-1);
}
@media screen and (min-width: 375px) {
    .fhome-nav .offcanvas-header img{
        margin-left: 22%;
    }
}
/* Phablet */
@media screen and (min-width: 425px) {
    /* large image container */
    .large-img-container{
        height: 320px;
    }
    /* small image container */
    .small-img-container{
        height: 320px;
    }
    /* nav */
    .fhome-nav .offcanvas-header img{
        margin-left: 24%;
    }
    /* rich text image */
    .rich-text-img{
        height: 280px;
    }
}
@media screen and (max-width: 575px) {
}
@media screen and (min-width: 576px) {

    /* small image container */
    .small-img-container{
        height: 400px;
    }

    .navbar-toggler{
        width: auto;
    }

    /* rich text image */
    .rich-text-img{
        height: 360px;
    }

    /* obituary info gallery */
    .masonry-container{
        column-count: 2;
    }
}

/* Tablet */
@media screen and (min-width: 768px) {
    .mw-md-280{
        max-width: 280px;
    }
    .row-gap-64{
        row-gap: 96px;
    }

    .section-p{
        padding-top: 96px;
        padding-bottom: 96px;
    }
    .section-p h2{
        font-size: 36px;
        line-height: 44px;
    }
    .single-p{
        padding-bottom: 96px;
    }
    .section-title h2{
        font-size: 36px;
        line-height: 44px;
    }
    .rich-text-section h2{
        font-size: 30px;
        line-height: 38px;
    }
    .rich-text-section h3{
        font-size: 24px;
        line-height: 32px;
    }

    /* image-text section */
    .section-title h3{
        font-size: 30px;
        line-height: 38px;
    }

    /* large image container */
    .large-img-container{
        height: 400px;
    }

    /* nav */
    .fhome-nav + .main .homepage-banner{
        padding-top: 331px;
    }
    .fhome-nav .c-info-bar ul span{
        display: block;
    }

    /* footer */
    footer{
        padding-top: 96px;
    }

    /* rich text image */
    .rich-text-img{
        margin-top: 48px;
        margin-bottom: 48px;
        height: 400;
    }
    .obit-info-content h2{
        font-size: 32px;
        line-height: 40px;
    }

    /* obituary info alignment */
    .obit-info-right{
        order: 1;
    }

    /* resources page */
    .resource-item{
        flex-direction: row;
    }

    
    /* New CTA */
    .fhome-cta-banner{
        padding: 64px;
    }
}


/* Laptop */
@media screen and (min-width: 992px) {
    .mw-lg-576{
        max-width: 576px;
    }
    .mw-lg-768{
        max-width: 768px;
    }

    .large-img-container{
        height: 654px;
    }

    /* row gap */
    .row-gap-lg-64{
        row-gap: 64px !important;
    }

    /* rich text image */
    .rich-text-img{
        height: 480px;
    }

    /* obituary info alignment */
    .obit-info-left .obit-info-img{
        margin-left: auto;
        margin-right: 0;
    }
    .obit-info-right .obit-info-img{
        margin: 0;
    }

    /* obituary info gallery */
    .masonry-container{
        column-count: 3;
    }
}

/* Small screen */
@media screen and (max-width:1199px) {
}
@media screen and (min-width: 1200px) {
    /* .main{
        padding-top: 233px;
    } */
    /* obituary info gallery */
    .masonry-container{
        column-count: 4;
    }
}
/* Large screen */
@media screen and (min-width: 1400px) {

}
/* ultra large */
@media screen and (min-width:1536px) {
}
