/* Emmanuel Angelakis Portfolio — shared component CSS
   Design tokens live in theme.json; bespoke component rules live here.
   Enqueued on front-end and in the block editor (add_editor_style). */

/* ------------------------------------------------------------------ */
/* DESIGN TOKENS (CSS custom properties)                               */
/* ------------------------------------------------------------------ */
:root,
.editor-styles-wrapper {
  --serif: "Newsreader", Georgia, serif;
  --ui:   "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;

  /* Warm paper (default) */
  --paper:      oklch(0.99 0.006 90);
  --ink:        oklch(0.21 0.01 70);
  --muted:      oklch(0.55 0.01 70);
  --faint:      oklch(0.70 0.008 70);
  --line:       oklch(0.90 0.006 70);
  --line-strong:oklch(0.82 0.006 70);
}

/* ------------------------------------------------------------------ */
/* RESET / BASE                                                         */
/* ------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: var(--ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: var(--paper);
  color: var(--ink);
}

html { scroll-behavior: smooth; }

/* ------------------------------------------------------------------ */
/* PAPER TONE VARIATIONS                                               */
/* Set on <html> via a body class added by style variation JS or PHP  */
/* ------------------------------------------------------------------ */
.ep-paper-cool {
  --paper:      oklch(0.99 0.004 255);
  --ink:        oklch(0.21 0.01 260);
  --muted:      oklch(0.55 0.01 260);
  --faint:      oklch(0.70 0.008 260);
  --line:       oklch(0.90 0.006 260);
  --line-strong:oklch(0.82 0.006 260);
}
.ep-paper-pure {
  --paper:      oklch(1 0 0);
  --ink:        oklch(0.17 0 0);
  --muted:      oklch(0.52 0 0);
  --faint:      oklch(0.68 0 0);
  --line:       oklch(0.91 0 0);
  --line-strong:oklch(0.83 0 0);
}

/* ------------------------------------------------------------------ */
/* LAYOUT WRAPPER                                                       */
/* ------------------------------------------------------------------ */
.ep-main {
  padding: clamp(40px, 7vw, 96px) clamp(20px, 5vw, 72px) 40px;
  min-height: 60vh;
}
.ep-page {
  max-width: 1340px;
  margin: 0 auto;
}

/* ------------------------------------------------------------------ */
/* NAV (template part)                                                 */
/* ------------------------------------------------------------------ */
.ep-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 26px clamp(20px, 5vw, 72px) 18px;
  background: color-mix(in oklch, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--line);
}

.ep-nav__brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: inherit;
}

.ep-nav__name {
  font-family: var(--serif);
  font-size: 23px;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  font-weight: 400;
  color: var(--ink);
}

.ep-nav__role {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.ep-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  list-style: none;
}

.ep-nav__links a,
.ep-nav__links li a {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 0;
  position: relative;
  transition: color 0.18s;
}

.ep-nav__links a:hover,
.ep-nav__links li a:hover,
.ep-nav__links .current-menu-item a {
  color: var(--ink);
}

.ep-nav__links .current-menu-item a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -19px;
  height: 2px;
  background: var(--ink);
}

.ep-nav__ig {
  display: flex;
  color: var(--muted);
  transition: color 0.18s;
  margin-left: 4px;
  text-decoration: none;
}
.ep-nav__ig:hover { color: var(--ink); }
.ep-nav__ig svg { display: block; }

/* WP Navigation block inside our nav */
.ep-nav .wp-block-navigation,
.ep-nav .wp-block-navigation__container {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  list-style: none;
}
.ep-nav .wp-block-navigation-item__content {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.18s;
}
.ep-nav .wp-block-navigation-item__content:hover { color: var(--ink); }
.ep-nav .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content { color: var(--ink); }

/* ------------------------------------------------------------------ */
/* FOOTER (template part)                                              */
/* ------------------------------------------------------------------ */
.ep-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 30px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  margin-top: 40px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.ep-footer__mid {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 10px;
}
.ep-footer a {
  color: var(--muted);
  text-decoration: none;
}
.ep-footer a:hover { color: var(--ink); }

/* ------------------------------------------------------------------ */
/* HERO LEDE (pattern)                                                 */
/* ------------------------------------------------------------------ */
.ep-lede {
  margin-bottom: clamp(34px, 5vw, 60px);
}
.ep-lede__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  max-width: 18ch;
}
.ep-lede__sub {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 18px;
}

/* ------------------------------------------------------------------ */
/* MASONRY GALLERY (custom block)                                      */
/* ------------------------------------------------------------------ */
.ep-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.ep-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  cursor: pointer;
  font-family: var(--ui);
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--muted);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 15px;
  transition: all 0.16s;
  white-space: nowrap;
}
.ep-chip:hover { color: var(--ink); border-color: var(--line-strong); }
.ep-chip.is-active { color: var(--paper); background: var(--ink); border-color: var(--ink); }

.ep-chip__n {
  font-family: var(--mono);
  font-size: 10px;
  opacity: 0.6;
}

.ep-masonry {
  column-count: var(--ep-cols, 3);
  column-gap: clamp(14px, 1.8vw, 26px);
}

.ep-frame {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 0 clamp(14px, 1.8vw, 26px);
  cursor: pointer;
}
.ep-frame__img {
  position: relative;
  overflow: hidden;
  background: var(--line);
}
.ep-frame__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ep-frame:hover .ep-frame__img img { transform: scale(1.03); }

.ep-frame__hover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.25s;
  background: linear-gradient(transparent 45%, rgba(0,0,0,.42));
  color: #fff;
}
.ep-frame:hover .ep-frame__hover { opacity: 1; }

.ep-frame__title {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.1;
}
.ep-frame__meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}
.ep-frame__cap {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 2px 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.ep-frame__capno { color: var(--faint); }
.ep-frame__capcat { margin-left: auto; text-transform: uppercase; letter-spacing: 0.14em; font-size: 10px; }

/* Masonry responsive breakpoints */
@media (max-width: 1080px) { .ep-masonry { column-count: 3 !important; } }
@media (max-width: 760px)  { .ep-masonry { column-count: 2 !important; } }
@media (max-width: 460px)  { .ep-masonry { column-count: 1 !important; } }

/* ------------------------------------------------------------------ */
/* SERIES ROWS (custom block)                                          */
/* ------------------------------------------------------------------ */
.ep-serie {
  padding: clamp(28px, 4vw, 52px) 0;
  border-top: 1px solid var(--line);
}
.ep-serie:first-of-type { border-top: 0; }

.ep-serie__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(16px, 3vw, 40px);
  align-items: baseline;
  margin-bottom: 26px;
}

.ep-serie__no {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  letter-spacing: 0.1em;
}

.ep-serie__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.06;
  letter-spacing: -0.01em;
}

.ep-serie__blurb {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
  max-width: 46ch;
  line-height: 1.5;
}

.ep-serie__meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: right;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Carousel track — fixed column width so images never shrink with more photos */
.ep-serie__carousel {
  position: relative;
}

.ep-serie__row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(200px, 28vw, 340px); /* fixed width per frame */
  gap: clamp(12px, 1.4vw, 20px);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.ep-serie__row .ep-frame {
  margin: 0;
  scroll-snap-align: start;
}
.ep-serie__row .ep-frame__img {
  aspect-ratio: auto;
  height: clamp(200px, 26vw, 320px);
}

/* Carousel prev / next arrows */
.ep-serie__arrows {
  display: flex;
  justify-content: space-between;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  pointer-events: none;        /* let clicks pass through to the row */
  padding: 0 4px;
}
.ep-serie__arrow {
  pointer-events: all;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.16s, color 0.16s, border-color 0.16s, opacity 0.16s;
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
  flex-shrink: 0;
}
.ep-serie__arrow:hover:not(:disabled) {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.ep-serie__arrow:disabled {
  opacity: 0;
  pointer-events: none;
}

/* ------------------------------------------------------------------ */
/* ABOUT (pattern)                                                     */
/* ------------------------------------------------------------------ */
.ep-about {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) 1.15fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.ep-about__portrait {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: oklch(0.85 0.006 70);
}
.ep-about__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ep-about__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 60px);
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin-bottom: 26px;
}

.ep-about__body p {
  font-size: 17px;
  line-height: 1.7;
  color: oklch(0.32 0.01 70);
  max-width: 58ch;
  margin-bottom: 18px;
}

.ep-about__contacts {
  display: flex;
  gap: 24px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.ep-about__contacts a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
}
.ep-about__contacts a:hover { border-color: var(--ink); }

/* ------------------------------------------------------------------ */
/* PRINTS (pattern)                                                    */
/* ------------------------------------------------------------------ */
.ep-prints {
  border-top: 1px solid var(--line-strong);
  max-width: 880px;
}

.ep-prints__row {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr auto auto;
  gap: clamp(14px, 3vw, 40px);
  align-items: center;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
}
/* Cancel WordPress flow-layout auto-margins so the grid cells align */
.ep-prints__row.is-layout-flow > * {
  margin-block-start: 0;
  margin-block-end: 0;
}

.ep-prints__size {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 28px);
  margin: 0;
}
.ep-prints__ed {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin: 0;
}
.ep-prints__price {
  font-family: var(--mono);
  font-size: 15px;
  text-align: right;
  margin: 0;
}
/* Paragraph wrapper — no margin; the <a> inside carries all the button styling */
.ep-prints__cta { margin: 0; }
.ep-prints__cta a,
.ep-prints__cta .wp-block-button__link {
  font-family: var(--ui);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: #FDFCF7;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 16px;
  transition: all 0.16s;
  white-space: nowrap;
  display: inline-block;
}
.ep-prints__cta a:hover,
.ep-prints__cta .wp-block-button__link:hover {
  background: #FDFCF7;
  color: var(--ink);
  border-color: var(--ink);
}
.ep-prints__note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 24px;
  max-width: 60ch;
  line-height: 1.6;
}

/* ------------------------------------------------------------------ */
/* CONTACT (pattern)                                                   */
/* ------------------------------------------------------------------ */
.ep-contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  max-width: 1080px;
}
.ep-contact > * { min-width: 0; }

@media (min-width: 900px) {
  .ep-contact {
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px, 6vw, 90px);
  }
}

.ep-contact__direct {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}
.ep-contact__direct a {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
  width: fit-content;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
}
.ep-contact__direct a:hover { border-color: var(--ink); }

/* CF7 / form overrides */
.ep-form,
.ep-contact .wpcf7 { width: 100%; }

.ep-contact .wpcf7-form,
.ep-contact form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ep-contact .wpcf7-form-control-wrap,
.ep-contact .ep-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ep-contact .wpcf7-form label,
.ep-contact .ep-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.ep-contact .wpcf7-form input[type="text"],
.ep-contact .wpcf7-form input[type="email"],
.ep-contact .wpcf7-form select,
.ep-contact .wpcf7-form textarea,
.ep-contact input,
.ep-contact select,
.ep-contact textarea {
  font-family: var(--ui);
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 8px 2px;
  outline: none;
  transition: border-color 0.18s;
  border-radius: 0;
  width: 100%;
}
.ep-contact textarea { resize: vertical; line-height: 1.5; }
.ep-contact input:focus,
.ep-contact select:focus,
.ep-contact textarea:focus { border-color: var(--ink); }

.ep-contact .wpcf7-submit,
.ep-contact .ep-btn {
  font-family: var(--ui);
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 12px 22px;
  color: var(--paper);
  transition: opacity 0.16s;
  width: fit-content;
}
.ep-contact .wpcf7-submit:hover,
.ep-contact .ep-btn:hover { opacity: 0.86; }

/* ------------------------------------------------------------------ */
/* LIGHTBOX                                                            */
/* ------------------------------------------------------------------ */
/* [hidden] on .ep-lb must beat display:flex — class+attribute wins over class alone */
.ep-lb[hidden] { display: none; }

.ep-lb {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(15, 14, 13, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 5vw, 64px);
  animation: ep-lbfade 0.25s ease both;
}
@keyframes ep-lbfade { from { opacity: 0; } to { opacity: 1; } }

.ep-lb__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 100%;
  max-height: 100%;
}

.ep-lb__imgwrap {
  max-width: min(90vw, 1100px);
  max-height: 78vh;
  display: flex;
  align-items: center;
}
.ep-lb__imgwrap img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  display: block;
}

/* Placeholder in lightbox */
.ep-lb__imgwrap .ep-ph {
  width: min(70vw, 640px);
  max-height: 78vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: oklch(0.30 0.006 70);
}

.ep-lb__cap {
  display: flex;
  align-items: baseline;
  gap: 16px;
  color: #e9e6e1;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  flex-wrap: wrap;
}
.ep-lb__capno { color: #8b8782; }
.ep-lb__captitle { font-family: var(--serif); font-size: 18px; letter-spacing: 0; }
.ep-lb__capmeta { text-transform: uppercase; letter-spacing: 0.16em; color: #a8a39d; }

.ep-lb__close {
  position: absolute;
  top: 22px; right: 26px;
  background: none;
  border: 0;
  color: #cfcbc5;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s;
}
.ep-lb__close:hover { color: #fff; }

.ep-lb__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: #bdb9b3;
  font-size: 46px;
  cursor: pointer;
  padding: 10px 18px;
  line-height: 1;
  transition: color 0.15s;
  font-family: var(--serif);
}
.ep-lb__nav:hover { color: #fff; }
.ep-lb__prev { left: max(8px, 2vw); }
.ep-lb__next { right: max(8px, 2vw); }

/* ------------------------------------------------------------------ */
/* PLACEHOLDER TILES (until real photos are uploaded)                  */
/* ------------------------------------------------------------------ */
.ep-ph {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: oklch(0.85 0.006 70);
  background-image: repeating-linear-gradient(
    135deg,
    oklch(0.80 0.006 70) 0 1px,
    transparent 1px 14px
  );
}
.ep-ph__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.65;
}

/* ------------------------------------------------------------------ */
/* STYLE VARIATION: EDITORIAL                                          */
/* ------------------------------------------------------------------ */
.ep-dir-editorial .ep-nav__name {
  font-family: var(--ui);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: 21px;
}
.ep-dir-editorial .ep-lede__title {
  font-family: var(--ui);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(40px, 8vw, 108px);
  line-height: 0.92;
  max-width: 14ch;
}
.ep-dir-editorial .ep-serie__title {
  font-family: var(--ui);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.015em;
}
.ep-dir-editorial .ep-about__name {
  font-family: var(--ui);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.ep-dir-editorial .ep-frame__title {
  font-family: var(--ui);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.ep-dir-editorial .ep-lb__captitle {
  font-family: var(--ui);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 14px;
}
.ep-dir-editorial .ep-prints__size {
  font-family: var(--ui);
  font-weight: 800;
  text-transform: uppercase;
}
.ep-dir-editorial .ep-chip { border-radius: 0; }
.ep-dir-editorial .ep-prints__cta a,
.ep-dir-editorial .ep-prints__cta .wp-block-button__link,
.ep-dir-editorial .ep-btn { border-radius: 0; }

/* ------------------------------------------------------------------ */
/* STYLE VARIATION: INDEX (Swiss/mono)                                 */
/* ------------------------------------------------------------------ */
.ep-dir-index .ep-nav__name {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.ep-dir-index .ep-lede__title {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 20ch;
}
.ep-dir-index .ep-serie__title {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 30px);
}
.ep-dir-index .ep-about__name {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 44px);
}
.ep-dir-index .ep-frame {
  position: relative;
  border: 1px solid var(--line-strong);
}
.ep-dir-index .ep-frame__cap {
  padding: 8px 10px;
  border-top: 1px solid var(--line-strong);
  margin: 0;
}
.ep-dir-index .ep-frame__title { font-family: var(--mono); }
.ep-dir-index .ep-chip { border-radius: 2px; }
.ep-dir-index .ep-prints__size { font-family: var(--mono); font-weight: 700; font-size: clamp(16px, 2vw, 22px); }
.ep-dir-index .ep-prints__cta a,
.ep-dir-index .ep-prints__cta .wp-block-button__link,
.ep-dir-index .ep-btn { border-radius: 2px; }
.ep-dir-index .ep-lb__captitle { font-family: var(--mono); font-size: 14px; }

/* ------------------------------------------------------------------ */
/* RESPONSIVE                                                          */
/* ------------------------------------------------------------------ */
@media (max-width: 760px) {
  .ep-about    { grid-template-columns: 1fr; }
  .ep-prints__row {
    grid-template-columns: 1fr auto;
    row-gap: 6px;
  }
  .ep-prints__ed { grid-column: 1/-1; order: 3; }
  .ep-nav { flex-wrap: wrap; gap: 10px; }
  .ep-nav__links { gap: 14px; flex-wrap: wrap; }
  .ep-nav__links .current-menu-item a::after { bottom: -6px; }
}

/* ------------------------------------------------------------------ */
/* EDITOR COMPATIBILITY                                                */
/* ------------------------------------------------------------------ */
.editor-styles-wrapper .ep-masonry { column-count: 3; }
.editor-styles-wrapper .ep-serie__row { overflow-x: auto; }

/* Hero lede inside the block editor — preserve design typography */
.editor-styles-wrapper .ep-lede { margin-bottom: clamp(34px, 5vw, 60px); }
.editor-styles-wrapper .ep-lede__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  max-width: 18ch;
}
.editor-styles-wrapper .ep-lede__sub {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 18px;
}

/* Masonry Gallery block canvas placeholder */
.editor-styles-wrapper .ep-masonry-gallery--editor {
  border: 1px dashed var(--line, #e6e3df);
  border-radius: 4px;
  background: var(--paper, #faf9f7);
}
