.bm-progress-list {
  display: grid;
  gap: 24px;
}

.bm-progress-card {
  padding: 0 0 24px;
  border-bottom: 1px solid #ddd;
}

/* PC / iPad */
.bm-progress-content {
  display: grid;
  grid-template-columns: minmax(180px, 34%) minmax(0, 1fr);
  grid-template-areas:
    "image header"
    "image body";
  column-gap: 22px;
  row-gap: 10px;
  align-items: start;
}

.bm-progress-header {
  grid-area: header;
  display: flex;
  align-items: baseline;
  align-self: start;
  gap: .65em;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  line-height: 1.4;
}

.bm-progress-date {
  flex: 0 0 auto;
  margin: 0;
  color: #999;
  font-size: .88em;
  line-height: 1.4;
  white-space: nowrap;
}

.bm-progress-title {
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  color: #555;
  font-size: 1.12em;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.bm-progress-image-button {
  grid-area: image;
  display: block;
  width: 100%;
  margin: 0 !important;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.bm-progress-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border: 1px solid #ddd;
  box-sizing: border-box;
}


.bm-progress-mobile-lead {
  display: none;
}

.bm-progress-body-wrap {
  grid-area: body;
  position: relative;
  min-width: 0;
  max-height: var(--bm-progress-image-height, none);
  overflow: hidden;
}

.bm-progress-body {
  color: #555;
  line-height: 1.85;
}

.bm-progress-body > :first-child { margin-top: 0; }
.bm-progress-body > :last-child { margin-bottom: 0; }

.bm-progress-fade {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3.8em;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 78%);
}

.bm-progress-card.is-overflowing .bm-progress-fade { display: block; }

.bm-progress-footer {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 1.1em;
  min-height: 1.6em;
  margin-top: 8px;
  margin-left: calc(34% + 22px);
  width: calc(66% - 22px);
  box-sizing: border-box;
  font-size: .92em;
}

.bm-progress-readmore {
  display: none;
  margin-left: auto;
}

.bm-progress-card.is-overflowing .bm-progress-readmore { display: inline; }


.bm-progress-inline-image-placeholder {
  margin: .7em 0;
  font-size: .92em;
}

.bm-progress-inline-image-placeholder a {
  color: #e46ca9;
  text-decoration: none;
}

.bm-progress-inline-image-placeholder-inline {
  display: inline;
  margin: 0 .15em;
}

.bm-progress-lightbox[hidden] { display: none !important; }
.bm-progress-lightbox {
  position: fixed;
  z-index: 99999;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: rgba(0,0,0,.82);
}
.bm-progress-lightbox-image {
  display: block;
  max-width: min(94vw, 1400px);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
}
.bm-progress-lightbox-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}
body.bm-progress-lightbox-open { overflow: hidden; }

@media (max-width: 640px) {
  .bm-progress-list { gap: 24px; }
  .bm-progress-card { padding-bottom: 24px; }
  .bm-progress-content { display: block; }
  .bm-progress-header { display: flex; margin: 0 0 12px !important; }
  .bm-progress-mobile-lead { display: none !important; }
  .bm-progress-body-wrap {
    position: relative;
    max-height: var(--bm-progress-mobile-rest-height, none) !important;
    overflow: hidden;
  }
  .bm-progress-body { display: flow-root; }
  .bm-progress-body .bm-progress-image-button {
    float: left;
    width: min(38vw, 145px);
    margin: 0 14px 0 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
    min-height: 0 !important;
    appearance: none;
  }
  .bm-progress-body > :first-child { margin-top: 0; }
  .bm-progress-footer { margin: 8px 0 0; width: 100%; }
}

/* Overview pagination and full title archive */
.bm-progress-pagination { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin:24px 0; align-items:center; }
.bm-progress-pagination .page-numbers { display:inline-block; padding:4px 9px; text-decoration:none; color:#777; }
.bm-progress-pagination .page-numbers.current { color:#555; font-weight:bold; border-bottom:2px solid #d98aaa; }
.bm-progress-titles { list-style:none; padding:0; margin:0; }
.bm-progress-titles li { margin:0; padding:9px 0; border-bottom:1px solid #eee; display:flex; gap:1em; align-items:baseline; }
.bm-progress-titles time { color:#999; white-space:nowrap; font-size:.85em; flex:none; }
.bm-progress-titles a { color:inherit; text-decoration:none; }
.bm-progress-titles a:hover { text-decoration:underline; }

/* Homepage: match the existing four-column work thumbnails, not the gallery plugin. */
.bm-progress-home-section { margin: 28px 0 32px; }
.bm-progress-home-heading { font-size: 1.5em; font-weight: 700; line-height: 1.4; margin: 0 0 12px; padding: 0; color: #555; }
.bm-progress-home-heading a { color: #d878a4; text-decoration: none; }
.bm-progress-thumbs { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 4px !important; margin: 0 !important; padding: 0 !important; }
.bm-progress-thumbs .bm-progress-thumb-link { display: block !important; width: 100% !important; aspect-ratio: 3 / 4; overflow: hidden; min-width: 0; line-height: 0; text-decoration: none; }
.bm-progress-thumbs .bm-progress-thumb-link img { display: block !important; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; margin: 0 !important; padding: 0 !important; }
