/* Events page */

/* Outer panel: textured photo background under a 95% white overlay */
.page-panel {
  padding: 100px 20px;
  background: url("/images/boatshedbremerton-backgrond2.jpg") center center / cover no-repeat;
}
.page-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--c-white);
  opacity: .95;
}
.page-panel > .inner { position: relative; }
@media (min-width: 1401px) { .page-panel { background-attachment: fixed; } }

/* Title on a rule (Elementor "line + text" divider) */
.panel-title { display: flex; align-items: center; width: 100%; }
.panel-title::before, .panel-title::after {
  content: "";
  display: block;
  flex-grow: 1;
  border-top: 1px solid var(--c-primary);
}
.panel-title h1 {
  flex-shrink: 0;
  margin: 0 10px;
  max-width: 95%;
  font-size: 3.5em;
  line-height: 1;
  text-align: center;
}

/* Framed box; pulled up so its side rules meet the title rule */
.panel-box {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  margin-top: -48px;
  padding: 75px 40px 50px;
  border: 1px solid var(--c-primary);
  border-top: 0;
}

/* We are Hiring */
.hiring-title { font-size: 3em; color: var(--c-secondary); text-align: center; }
.hiring-text {
  text-align: center;
  font-family: var(--f-ui);
  font-size: 1.5em;
  font-weight: 500;
  color: var(--c-slate);
}
.hiring-text p { margin-block-end: 11px; }
.hiring-text p:last-child { margin-block-end: 0; }
.hiring-img { margin: 0; text-align: center; }

/* Local gems */
.gems {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap);
  padding: 50px 20px;
  border-top: 1px solid var(--c-primary);
}
.gems-title { width: 80%; max-width: 80%; text-align: center; font-size: 1.5em; }
.gems-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 20px;
  width: 100%;
}
.gems-grid li { display: flex; }
.gem {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 20px;
  overflow: hidden;
  background-color: var(--c-secondary);
  color: var(--c-white);
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  transition: background-color .3s;
}
.gem:hover { background-color: var(--c-slate); color: var(--c-white); }

@media (max-width: 1024px) {
  .page-panel { padding: 50px 20px; }
  .panel-box { padding: 50px 20px; }
  .gems-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .page-panel { padding: 50px 10px; }
  .panel-box { padding: 50px 10px; }
  .hiring-title { font-size: 2.5em; }
  .hiring-text { font-size: 1.1em; }
  .gems-title { width: 100%; max-width: 100%; }
  .gems-grid { grid-template-columns: 1fr; }
}
