/* =========================================================
   editorial.css
   Editorial page
   Dreamweaver-safe
   ========================================================= */


/* =========================
   INTRO (full width)
   ========================= */
.editorial-intro p{
  max-width: none;
  margin: 0 0 10px 0;
}

.editorial-intro-note{
  margin: 0;
  opacity: 0.90;
}


/* =========================
   MAIN PIC (hero image block)
   ========================= */
.editorial-hero{
  margin-top: 6px;
  margin-bottom: 10px;
}

.editorial-hero-box{
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,0.10);
  cursor: pointer;
}

.editorial-hero-box img{
  display: block;
  width: 100%;
  height: auto;
}

.editorial-hero-note{
  margin-top: 10px;
  font-size: 0.95em;
  opacity: 0.80;
}


/* =========================
   SECTION HEADINGS
   ========================= */
.editorial-subtitle{
  margin: 10px 0 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}


/* =========================
   COVERS (fills row)
   ========================= */
.editorial-covers{
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: stretch;
}

/* 5-up tiles on desktop */
.cover-box{
  flex: 1 1 calc(20% - 15px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
  cursor: pointer;
}

/* image fills the tile */
.cover-box img{
  display: block;
  width: 100%;
  height: auto;
}


/* =========================
   BACK BUTTON
   ========================= */
.editorial-back{
  text-align: center;
  margin: 2.5rem 0 0;
}

.editorial-back .portfolio-link{
  float: none;
  display: inline-block;
}


/* =========================
   IMAGE MODAL
   ========================= */
.no-scroll{
  overflow: hidden;
}

.img-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.img-modal.is-open{
  display: block;
}

.img-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.70);
}

.img-modal__panel{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 92%;
  max-width: 1100px;
  max-height: 88vh;
  background: #111;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0,0,0,0.45);
}

.img-modal__close{
  position: absolute;
  right: 10px;
  top: 8px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 26px;
  line-height: 44px;
  cursor: pointer;
}

.img-modal__img{
  display: block;
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
  background: #111;
}

.img-modal__cap{
  padding: 10px 14px 14px;
  color: rgba(255,255,255,0.85);
  font-size: 0.95em;
}


/* =========================
   RESPONSIVE (covers)
   ========================= */
@media (max-width: 980px){
  .cover-box{ flex: 1 1 calc(33.333% - 12px); } /* 3-up */
}

@media (max-width: 640px){
  .cover-box{ flex: 1 1 calc(50% - 10px); } /* 2-up */
}

@media (max-width: 560px){
  .editorial-hero-box{ border-radius: 14px; }
  .img-modal__panel{ border-radius: 12px; }
}

@media (max-width: 420px){
  .cover-box{ flex: 1 1 100%; } /* 1-up */
}


/* =========================================================
   PUBLICATIONS (clean + predictable)
   Centre the list block, 2 columns on desktop
   ========================================================= */

.editorial-publications{
  display: flex;
  justify-content: center;
}

.editorial-publications .bullets{
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 56px;
  row-gap: 6px;          /* tightened ~25–30% */

  max-width: 760px;
  margin: 0;
  padding-left: 1.2em;   /* bullet indent */
  text-align: left;
}

/* keep bullets clean */
.editorial-publications .bullets li{
  break-inside: avoid;
}

/* soften catch-all if needed */
.editorial-publications .bullets .pub-note{
  opacity: 0.8;
  font-style: italic;
}

/* Mobile: single column */
@media (max-width: 700px){
  .editorial-publications{
    justify-content: flex-start;
  }

  .editorial-publications .bullets{
    grid-template-columns: 1fr;
    padding-left: 1.2em;
  }
}
