.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: end;
  margin-bottom: 2rem;
}
.toolbar .field {
  margin: 0;
  min-width: 220px;
  flex: 1 1 220px;
}
#progress {
  position: fixed;
  left: 0;
  top: 0;
  height: 3px;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 150;
}
.article {
  padding: calc(var(--header-h) + 3rem) 0 var(--section);
}
/* Add to the end of css/pages/blog.css */
.bp-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(17, 42, 27, 0.06),
    0 10px 30px rgba(17, 42, 27, 0.08);
}
.bp-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.bp-img {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e9e3d3;
}
.bp-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.bp-link:hover .bp-img img {
  transform: scale(1.04);
}
.bp-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.2rem 1.4rem 1.5rem;
  flex: 1;
}
.bp-body .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  font-size: 0.85rem;
  opacity: 0.75;
}
.bp-body h3 {
  margin: 0;
}
.bp-body p {
  margin: 0;
}
.bp-body .link {
  display: inline-block;
  width: fit-content;
  margin-top: auto;
  padding-top: 0.4rem;
  position: relative;
}
.bp-body .link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

.bp-body .link:hover::after {
  width: 100%;
}

.bp-featured .bp-link {
  flex-direction: row;
}
.bp-featured .bp-img {
  flex: 1 1 52%;
  aspect-ratio: auto;
  min-height: 280px;
}
.bp-featured .bp-body {
  flex: 1 1 48%;
  justify-content: center;
  padding: 2rem;
}
.bp-featured .bp-body h3 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}
@media (max-width: 760px) {
  .bp-featured .bp-link {
    flex-direction: column;
  }
  .bp-featured .bp-img {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}
.bp-hero {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 18px;
  margin: 1.5rem 0;
}
.bp-content {
  font-size: 1.15rem;
  line-height: 1.85;
}
.bp-content img {
  max-width: 100%;
  height: auto;
}
.blog-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  margin-top: 2.5rem;
}
.blog-pager[hidden] {
  display: none;
}
.bp-pg {
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.85rem;
  border: 1px solid rgba(17, 42, 27, 0.25);
  border-radius: 999px;
  background: transparent;
  color: #112a1b;
  font: inherit;
  cursor: pointer;
}
.bp-pg:hover:not(:disabled):not(.on) {
  background: rgba(17, 42, 27, 0.08);
}
.bp-pg.on {
  background: #112a1b;
  border-color: #112a1b;
  color: #f7f2e6;
  cursor: default;
}
.bp-pg:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.bp-pg:focus-visible {
  outline: 3px solid #b8903a;
  outline-offset: 2px;
}
.bp-gap {
  opacity: 0.6;
  padding: 0 0.1rem;
}

/* Selectable photos in an article */
.bp-zoomable {
  cursor: zoom-in;
  transition: opacity 0.2s ease;
}
.bp-zoomable:hover {
  opacity: 0.92;
}
.bp-zoomable:focus-visible {
  outline: 3px solid #b8903a;
  outline-offset: 3px;
}

/* Photo modal */
.bp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1rem 1.5rem;
  background: rgba(10, 22, 15, 0.92);
  opacity: 0;
  transition: opacity 0.25s ease;
  cursor: zoom-out;
}
.bp-lightbox.open {
  opacity: 1;
}
.bp-lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: default;
}
.bp-lb-close {
  position: absolute;
  top: max(0.75rem, env(safe-area-inset-top, 0px));
  right: 1rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(247, 242, 230, 0.15);
  color: #f7f2e6;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
}
.bp-lb-close:hover {
  background: rgba(247, 242, 230, 0.3);
}
.bp-lb-close:focus-visible {
  outline: 3px solid #b8903a;
  outline-offset: 2px;
}
