.black-and-white {
	filter: grayscale(1);
}

.hidden {
  display: none;
}

.post-content-container {
  margin-left: -2.3vw;
}

p {
  margin-bottom: 20px !important;
}

/* === Carousel Container === */
.carousel {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 1170px;
  margin: auto;
  box-sizing: border-box;
}

/* === Card Container === */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  width: 100%;
  box-sizing: border-box;
}

/* === Individual Card Link === */
.link {
  text-decoration: none;
  background: #0673aa !important;
  color: #ffffff;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  box-sizing: border-box;
  width: 100%;
}

/* Two-column layout on desktop */
@media screen and (min-width: 768px) {
  .link {
    width: calc(50% - 0.5rem);
  }

  .link.full-width {
    width: 100% !important;
  }

  .right-edge .photo-wrapper {
    margin-right: -1.0vw; /* aligns with post-content-container left pull */
  }
}

@media screen and (max-width: 767px) {
  .right-edge .photo-wrapper {
    margin-right: 0;
  }
}

/* Hover effect */
.link:hover {
  background: #ffffff !important;
  color: #0673aa !important;
}

/* === Text Block Inside Each Card === */
.meta {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0.5rem 1rem;
  flex: 1;
}

/* Title of piece */
.title {
  font-size: 1.2em;
  font-weight: bold;
  margin: 0;
  color: inherit;
  line-height: 1.2;
}

/* Author name */
.author {
  font-size: 0.8em;
  margin-top: 0.25em;
  line-height: 1.2;
  margin: 0.2em 0 0 0;
}

/* === Author image on the right === */
.photo {
  width: auto;
  height: 100%;
  max-height: 150px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 4px;
  display: block;
}

/* Full-width call-to-action cards */
.link.full-width {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80px;
  width: 100%;
  background: #0673aa;
  color: #ffffff;
  text-decoration: none;
}

/* Call-to-action text */
.readMore {
  font-size: 1.2em;
  font-weight: bold;
}

/* Optional button style */
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 0.4;
  height: 60px;
  padding: 0 1.5rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: #ffffff;
  background-color: #0673aa;
  text-decoration: none;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.primary-button:hover {
  background-color: #055e8d;
  color: #ffffff;
  text-decoration: none;
}

#daf-direct-container {
  background-color: #f7fafa;
  padding: 2.5rem 1.5rem;
  border-radius: 8px;
  border: 1px solid #d4dfe4;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  max-width: 420px;
  margin: 2rem auto;
  overflow: hidden;
  text-align: left;
}

/* Align DAF widget contents better */
#daf-direct-container select,
#daf-direct-container input,
#daf-direct-container textarea {
  width: 100% !important;
  box-sizing: border-box;
}

#daf-direct-container iframe {
  max-width: 100% !important;
  height: auto !important;
  border: none !important;
}

#daf-direct-container a {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}

@media (min-width: 768px) {
  .donation-row .wpb_column {
    display: flex;
    justify-content: center;
  }
}
