/* ---------- Banner wrapper ---------- */


/* --- Overlay for contrast behind content --- */
.site-header {
  background-image: url('../header_cover.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  min-height: 300px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* dark transparent overlay */
  z-index: 1;
}

/* --- Banner content --- */
.banner {
  display: grid;
  height: 100%;
  width: 100%;
  grid-template-columns: 260px 260px 200px 1fr 200px 260px 260px;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 6px;
  padding: 0 1rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

/* ---------- Images ---------- */
.banner .saint,
.banner .cross {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 8px;
}

.banner .saint {
  grid-row: 1 / span 2;
}

/* ---------- Cross Styling ---------- */
.banner .cross {
  width: 100%;
  max-width: 100px;
  aspect-ratio: 1 / 1;
  justify-self: center;
  grid-column: 3 / 6;
  grid-row: 1;
  margin-bottom: -10px;

  background-color: rgb(243, 220, 170); /* Same as text */
  -webkit-mask-image: url('../cross.png');
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  -webkit-mask-position: center;

  mask-image: url('../cross.png');
  mask-repeat: no-repeat;
  mask-size: contain;
  mask-position: center;

  background-repeat: no-repeat;
}

/* ---------- Title Styling ---------- */
.banner-title {
  grid-column: 3 / 6;
  grid-row: 2;
  text-align: center;
  font-family: "Georgia", serif;
  line-height: 1.2;
  color: rgb(243, 220, 170);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* subtle shadow for contrast */
  position: relative;
  z-index: 3;
}

.banner-title span {
  display: block;
  font-size: clamp(1rem, 2.2vw, 1.6rem);
  font-weight: 400;
}

.banner-title .bold {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 700;
}

/* ---------- Mobile Stack ---------- */
@media(max-width: 768px) {
  .banner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "cross"
      "title";
    gap: 6px;
  }

  .banner .saint {
    display: none;
  }

  .banner .cross {
    grid-area: cross;
    max-width: 100px;
    justify-self: center;
    margin: 0 auto;
  }

  .banner-title {
    grid-area: title;
    text-align: center;
  }
}
