/*!
 * WordPress editor base styles
 * Style cho các class mặc định của WP (TinyMCE Classic + Gutenberg/Block Editor)
 * Chỉ áp dụng trong phạm vi .entry-content / .post-content / .page-content / .entry-content
 * để không leak ra layout chung.
 *
 * Quy ước scope: tất cả selector đều có prefix .entry-content
 * (hoặc thay bằng .entry-content / .post-content tuỳ nơi gọi).
 *
 * @package kimkhisonmy
 */

/* ─────────────────────────────────────────────────────────────────────────
   1. ALIGNMENT — Classic + Block editor
   ───────────────────────────────────────────────────────────────────────── */
.entry-content .aligncenter,
.entry-content .alignnone {
  display: block;
  margin: 1.25em auto;
  max-width: 100%;
  height: auto;
  clear: both;
}

.entry-content .alignleft {
  float: left;
  margin: 0.3em 1.25em 1em 0;
  max-width: 100%;
  height: auto;
}

.entry-content .alignright {
  float: right;
  margin: 0.3em 0 1em 1.25em;
  max-width: 100%;
  height: auto;
}

/* Block editor: rộng hơn content / full viewport */
.entry-content .alignwide {
  margin-left: calc(50% - 50vw + var(--scrollbar-w, 0px) / 2);
  margin-right: calc(50% - 50vw + var(--scrollbar-w, 0px) / 2);
  max-width: 100vw;
  width: auto;
}

.entry-content .alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
  width: 100vw;
}

.entry-content .alignfull img,
.entry-content .alignwide img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .entry-content .alignleft,
  .entry-content .alignright {
    float: none;
    display: block;
    margin: 1em auto;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   2. CAPTION (Classic Editor + Block Editor figcaption)
   ───────────────────────────────────────────────────────────────────────── */
.entry-content .wp-caption {
  max-width: 100%;
  margin: 1.25em 0;
  padding: 0;
  background: var(--bg-soft, #f7f9fb);
  border-radius: var(--radius, 10px);
  overflow: hidden;
}

.entry-content .wp-caption img,
.entry-content .wp-caption a img {
  display: block;
  width: 100%;
  height: auto;
}

.entry-content .wp-caption-text,
.entry-content figcaption,
.entry-content .gallery-caption {
  font-size: 13.5px;
  font-style: italic;
  color: var(--text-2, #6b7280);
  text-align: center;
  padding: 10px 14px;
  margin: 0;
  line-height: 1.5;
}

/* ─────────────────────────────────────────────────────────────────────────
   3. IMAGES — generic
   ───────────────────────────────────────────────────────────────────────── */
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.entry-content img.size-thumbnail,
.entry-content img.size-medium {
  border-radius: 6px;
}

.entry-content .is-resized img {
  width: 100%;
  height: auto;
}

/* ─────────────────────────────────────────────────────────────────────────
   4. GALLERY — Classic Editor [gallery] shortcode
   ───────────────────────────────────────────────────────────────────────── */
.entry-content .gallery {
  display: grid;
  gap: 10px;
  margin: 1.5em 0;
}

.entry-content .gallery-columns-1 { grid-template-columns: 1fr; }
.entry-content .gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.entry-content .gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.entry-content .gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.entry-content .gallery-columns-5 { grid-template-columns: repeat(5, 1fr); }
.entry-content .gallery-columns-6 { grid-template-columns: repeat(6, 1fr); }
.entry-content .gallery-columns-7 { grid-template-columns: repeat(7, 1fr); }
.entry-content .gallery-columns-8 { grid-template-columns: repeat(8, 1fr); }
.entry-content .gallery-columns-9 { grid-template-columns: repeat(9, 1fr); }

@media (max-width: 768px) {
  .entry-content .gallery[class*="gallery-columns-"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

.entry-content .gallery-item {
  margin: 0;
  text-align: center;
}

.entry-content .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
}

/* ─────────────────────────────────────────────────────────────────────────
   5. GUTENBERG BLOCKS — Image
   ───────────────────────────────────────────────────────────────────────── */
.entry-content .wp-block-image {
  margin: 1.5em 0;
}

.entry-content .wp-block-image img {
  display: block;
  border-radius: 10px;
}

.entry-content .wp-block-image figcaption {
  margin-top: 6px;
}

.entry-content .wp-block-image.is-style-rounded img {
  border-radius: 9999px;
}

/* ─────────────────────────────────────────────────────────────────────────
   6. GUTENBERG BLOCKS — Gallery (block-based, post-WP 5.9)
   ───────────────────────────────────────────────────────────────────────── */
.entry-content .wp-block-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 1.5em 0;
  list-style: none;
  padding: 0;
}

.entry-content .wp-block-gallery .wp-block-image,
.entry-content .wp-block-gallery .blocks-gallery-item {
  flex: 1 1 calc(33.333% - 12px);
  margin: 0;
}

.entry-content .wp-block-gallery.columns-2 .wp-block-image { flex: 1 1 calc(50% - 12px); }
.entry-content .wp-block-gallery.columns-3 .wp-block-image { flex: 1 1 calc(33.333% - 12px); }
.entry-content .wp-block-gallery.columns-4 .wp-block-image { flex: 1 1 calc(25% - 12px); }
.entry-content .wp-block-gallery.columns-5 .wp-block-image { flex: 1 1 calc(20% - 12px); }
.entry-content .wp-block-gallery.columns-6 .wp-block-image { flex: 1 1 calc(16.666% - 12px); }

.entry-content .wp-block-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .entry-content .wp-block-gallery .wp-block-image,
  .entry-content .wp-block-gallery .blocks-gallery-item {
    flex: 1 1 calc(50% - 12px) !important;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   7. GUTENBERG BLOCKS — Heading, Paragraph, Drop Cap
   ───────────────────────────────────────────────────────────────────────── */
.entry-content .wp-block-heading,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  color: var(--navy, #0b2e4a);
  font-weight: 700;
  line-height: 1.3;
  margin: 1.5em 0 0.6em;
}

.entry-content h1 { font-size: 2em; }
.entry-content h2 { font-size: 1.6em; }
.entry-content h3 { font-size: 1.35em; }
.entry-content h4 { font-size: 1.15em; }
.entry-content h5 { font-size: 1em; }
.entry-content h6 { font-size: 0.92em; text-transform: uppercase; letter-spacing: 0.04em; }

.entry-content p {
  margin: 0 0 1em;
  line-height: 1.7;
}

.entry-content p.has-drop-cap:not(:focus)::first-letter {
  float: left;
  font-size: 4em;
  line-height: 0.85;
  font-weight: 800;
  margin: 0.05em 0.12em 0 0;
  color: var(--orange, #f58220);
}

/* ─────────────────────────────────────────────────────────────────────────
   8. GUTENBERG BLOCKS — Text alignment helpers
   ───────────────────────────────────────────────────────────────────────── */
.entry-content .has-text-align-left   { text-align: left; }
.entry-content .has-text-align-center { text-align: center; }
.entry-content .has-text-align-right  { text-align: right; }
.entry-content .has-text-align-justify{ text-align: justify; }

/* ─────────────────────────────────────────────────────────────────────────
   9. GUTENBERG BLOCKS — Lists
   ───────────────────────────────────────────────────────────────────────── */
.entry-content ul,
.entry-content ol,
.entry-content .wp-block-list {
  margin: 0 0 1em;
  padding-left: 1.5em;
  line-height: 1.7;
}

.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul {
  margin: 0.4em 0;
}

.entry-content ul li,
.entry-content ol li {
  margin-bottom: 0.35em;
}

/* ─────────────────────────────────────────────────────────────────────────
   10. GUTENBERG BLOCKS — Quote / Pullquote
   ───────────────────────────────────────────────────────────────────────── */
.entry-content .wp-block-quote,
.entry-content blockquote {
  border-left: 4px solid var(--orange, #f58220);
  background: var(--bg-soft, #f7f9fb);
  padding: 18px 22px;
  margin: 1.5em 0;
  font-style: italic;
  border-radius: 0 10px 10px 0;
  color: var(--navy, #0b2e4a);
}

.entry-content .wp-block-quote p,
.entry-content blockquote p {
  margin: 0 0 0.5em;
  font-size: 1.05em;
}

.entry-content .wp-block-quote cite,
.entry-content blockquote cite {
  display: block;
  font-style: normal;
  font-size: 0.88em;
  font-weight: 600;
  color: var(--text-2, #6b7280);
  margin-top: 0.6em;
}

.entry-content .wp-block-quote cite::before,
.entry-content blockquote cite::before {
  content: "— ";
}

.entry-content .wp-block-pullquote {
  border-top: 3px solid var(--orange, #f58220);
  border-bottom: 3px solid var(--orange, #f58220);
  padding: 28px 20px;
  margin: 2em 0;
  text-align: center;
  font-style: italic;
  font-size: 1.25em;
  color: var(--navy, #0b2e4a);
}

/* ─────────────────────────────────────────────────────────────────────────
   11. GUTENBERG BLOCKS — Button
   ───────────────────────────────────────────────────────────────────────── */
.entry-content .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 1.5em 0;
}

.entry-content .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: var(--orange, #f58220);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.entry-content .wp-block-button__link:hover {
  background: var(--orange-dark, #d96e10);
  transform: translateY(-1px);
}

.entry-content .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  border: 2px solid var(--orange, #f58220);
  color: var(--orange, #f58220);
}

.entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--orange, #f58220);
  color: #fff;
}

/* ─────────────────────────────────────────────────────────────────────────
   12. GUTENBERG BLOCKS — Columns / Group
   ───────────────────────────────────────────────────────────────────────── */
.entry-content .wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 1.5em 0;
}

.entry-content .wp-block-column {
  flex: 1 1 0;
  min-width: 200px;
}

@media (max-width: 781px) {
  .entry-content .wp-block-columns:not(.is-not-stacked-on-mobile) .wp-block-column {
    flex-basis: 100% !important;
  }
}

.entry-content .wp-block-group {
  margin: 1.5em 0;
}

.entry-content .wp-block-group.has-background {
  padding: 24px;
  border-radius: var(--radius, 10px);
}

/* ─────────────────────────────────────────────────────────────────────────
   13. GUTENBERG BLOCKS — Separator / Spacer
   ───────────────────────────────────────────────────────────────────────── */
.entry-content .wp-block-separator,
.entry-content hr {
  border: 0;
  border-top: 1px solid var(--border, #e5e7eb);
  margin: 2em 0;
  height: 0;
}

.entry-content .wp-block-separator.is-style-dots {
  border: 0;
  text-align: center;
  background: transparent;
  height: auto;
}

.entry-content .wp-block-separator.is-style-dots::before {
  content: "···";
  letter-spacing: 0.5em;
  color: var(--text-3, #9ca3af);
  font-size: 1.2em;
}

.entry-content .wp-block-separator.is-style-wide {
  border-top-width: 2px;
}

.entry-content .wp-block-spacer {
  display: block;
  height: 32px;
}

/* ─────────────────────────────────────────────────────────────────────────
   14. GUTENBERG BLOCKS — Table
   ───────────────────────────────────────────────────────────────────────── */
.entry-content .wp-block-table,
.entry-content table {
  width: 100%;
  margin: 1.5em 0;
  border-collapse: collapse;
  font-size: 0.95em;
}

.entry-content table th,
.entry-content table td {
  padding: 10px 14px;
  border: 1px solid var(--border, #e5e7eb);
  text-align: left;
  vertical-align: top;
}

.entry-content table th {
  background: var(--bg-soft, #f7f9fb);
  color: var(--navy, #0b2e4a);
  font-weight: 700;
}

.entry-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
  background: var(--bg-soft, #f7f9fb);
}

.entry-content .wp-block-table figcaption {
  margin-top: 0.5em;
}

@media (max-width: 600px) {
  .entry-content .wp-block-table {
    overflow-x: auto;
    display: block;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   15. GUTENBERG BLOCKS — Code / Preformatted / Verse
   ───────────────────────────────────────────────────────────────────────── */
.entry-content .wp-block-code,
.entry-content pre {
  background: var(--navy-darker, #061a2c);
  color: #e6f0f7;
  padding: 16px 18px;
  border-radius: var(--radius, 10px);
  overflow-x: auto;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  line-height: 1.6;
  margin: 1.5em 0;
}

.entry-content code {
  background: var(--orange-soft, rgba(245, 130, 32, 0.1));
  color: var(--orange-dark, #d96e10);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.entry-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.entry-content .wp-block-preformatted {
  white-space: pre-wrap;
  background: var(--bg-soft, #f7f9fb);
  padding: 14px 18px;
  border-radius: var(--radius, 10px);
  margin: 1.5em 0;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.entry-content .wp-block-verse {
  white-space: pre-wrap;
  font-style: italic;
  padding: 12px 0;
  font-family: Georgia, serif;
}

/* ─────────────────────────────────────────────────────────────────────────
   16. GUTENBERG BLOCKS — Cover
   ───────────────────────────────────────────────────────────────────────── */
.entry-content .wp-block-cover {
  position: relative;
  min-height: 430px;
  padding: 24px;
  margin: 1.5em 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-lg, 14px);
  color: #fff;
  background-size: cover;
  background-position: center;
}

.entry-content .wp-block-cover.has-parallax {
  background-attachment: fixed;
}

.entry-content .wp-block-cover.is-repeated {
  background-repeat: repeat;
  background-size: auto;
}

.entry-content .wp-block-cover__background,
.entry-content .wp-block-cover__gradient-background {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.entry-content .wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
}

.entry-content .wp-block-cover h1,
.entry-content .wp-block-cover h2,
.entry-content .wp-block-cover h3,
.entry-content .wp-block-cover p {
  color: inherit;
}

/* ─────────────────────────────────────────────────────────────────────────
   17. GUTENBERG BLOCKS — Media & Text
   ───────────────────────────────────────────────────────────────────────── */
.entry-content .wp-block-media-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  margin: 1.5em 0;
}

.entry-content .wp-block-media-text.has-media-on-the-right {
  grid-template-columns: 1fr 1fr;
}

.entry-content .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media {
  order: 2;
}

.entry-content .wp-block-media-text__media img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .entry-content .wp-block-media-text {
    grid-template-columns: 1fr;
  }
  .entry-content .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media {
    order: 0;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   18. GUTENBERG BLOCKS — Embed (YouTube, Vimeo, etc.)
   ───────────────────────────────────────────────────────────────────────── */
.entry-content .wp-block-embed {
  margin: 1.5em 0;
}

.entry-content .wp-block-embed__wrapper {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
}

.entry-content .wp-block-embed__wrapper iframe,
.entry-content .wp-block-embed__wrapper embed,
.entry-content .wp-block-embed__wrapper object {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius, 10px);
}

.entry-content .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper { padding-top: 75%; }
.entry-content .wp-block-embed.wp-embed-aspect-1-1 .wp-block-embed__wrapper { padding-top: 100%; }
.entry-content .wp-block-embed.wp-embed-aspect-21-9 .wp-block-embed__wrapper { padding-top: 42.857%; }

.entry-content .wp-block-embed figcaption {
  margin-top: 6px;
}

/* ─────────────────────────────────────────────────────────────────────────
   19. GUTENBERG BLOCKS — Audio / Video / File
   ───────────────────────────────────────────────────────────────────────── */
.entry-content .wp-block-audio,
.entry-content .wp-block-video {
  margin: 1.5em 0;
}

.entry-content .wp-block-audio audio,
.entry-content .wp-block-video video {
  width: 100%;
  border-radius: var(--radius, 10px);
}

.entry-content .wp-block-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-soft, #f7f9fb);
  border-radius: var(--radius, 10px);
  margin: 1.5em 0;
}

.entry-content .wp-block-file__button {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: var(--orange, #f58220);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9em;
  margin-left: auto;
}

/* ─────────────────────────────────────────────────────────────────────────
   20. GUTENBERG BLOCKS — Latest Posts / Comments / Categories / Archives
   ───────────────────────────────────────────────────────────────────────── */
.entry-content .wp-block-latest-posts,
.entry-content .wp-block-latest-comments,
.entry-content .wp-block-categories,
.entry-content .wp-block-archives {
  margin: 1.5em 0;
  padding-left: 1.5em;
}

.entry-content .wp-block-latest-posts.is-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  padding-left: 0;
  list-style: none;
}

.entry-content .wp-block-latest-posts__post-title {
  display: block;
  font-weight: 600;
  color: var(--navy, #0b2e4a);
  text-decoration: none;
  margin-bottom: 4px;
}

.entry-content .wp-block-latest-posts__post-date,
.entry-content .wp-block-latest-posts__post-author {
  font-size: 0.85em;
  color: var(--text-3, #9ca3af);
}

.entry-content .wp-block-latest-posts__featured-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 8px;
}

/* ─────────────────────────────────────────────────────────────────────────
   21. COLOR & FONT-SIZE PRESET HELPERS (theme.json / inline)
   ───────────────────────────────────────────────────────────────────────── */
.entry-content .has-text-color { /* khi inline color thì WP set sẵn */ }
.entry-content .has-background { /* khi inline bg thì WP set sẵn */ }
.entry-content .has-link-color a { color: inherit; }

/* Tuỳ biến palette theo CSS variables của theme */
.entry-content .has-orange-color { color: var(--orange, #f58220); }
.entry-content .has-orange-background-color { background-color: var(--orange, #f58220); }
.entry-content .has-navy-color { color: var(--navy, #0b2e4a); }
.entry-content .has-navy-background-color { background-color: var(--navy, #0b2e4a); }
.entry-content .has-white-color { color: #fff; }
.entry-content .has-white-background-color { background-color: #fff; }
.entry-content .has-light-gray-background-color { background-color: var(--bg-soft, #f7f9fb); }

.entry-content .has-small-font-size   { font-size: 0.85em; }
.entry-content .has-medium-font-size  { font-size: 1.05em; }
.entry-content .has-large-font-size   { font-size: 1.4em; }
.entry-content .has-x-large-font-size { font-size: 1.8em; line-height: 1.25; }
.entry-content .has-huge-font-size    { font-size: 2.2em; line-height: 1.2; }

/* ─────────────────────────────────────────────────────────────────────────
   22. LINKS inside content
   ───────────────────────────────────────────────────────────────────────── */
.entry-content a:not(.wp-block-button__link):not(.wp-block-file__button) {
  color: var(--orange-dark, #d96e10);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.15s;
}

.entry-content a:not(.wp-block-button__link):not(.wp-block-file__button):hover {
  color: var(--orange, #f58220);
}

/* ─────────────────────────────────────────────────────────────────────────
   23. ACCESSIBILITY — Screen reader text
   ───────────────────────────────────────────────────────────────────────── */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  -webkit-clip-path: none;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 14px;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* ─────────────────────────────────────────────────────────────────────────
   24. COMMENTS — list styling for bypostauthor / depth / parent
   ───────────────────────────────────────────────────────────────────────── */
.comment-list .bypostauthor > .comment-body {
  background: var(--orange-soft, rgba(245, 130, 32, 0.08));
  border-left: 3px solid var(--orange, #f58220);
  padding: 14px 16px;
  border-radius: 0 8px 8px 0;
}

.comment-list .depth-2 { margin-left: 32px; }
.comment-list .depth-3 { margin-left: 64px; }
.comment-list .depth-4 { margin-left: 96px; }
.comment-list .depth-5 { margin-left: 128px; }

@media (max-width: 600px) {
  .comment-list .depth-2,
  .comment-list .depth-3,
  .comment-list .depth-4,
  .comment-list .depth-5 {
    margin-left: 16px;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   25. STICKY POST indicator (optional badge — use in post-loop template)
   ───────────────────────────────────────────────────────────────────────── */
.sticky .post-title::before {
  content: "📌 ";
}

/* ─────────────────────────────────────────────────────────────────────────
   26. EMOJI (wp-smiley)
   ───────────────────────────────────────────────────────────────────────── */
img.wp-smiley,
img.emoji {
  display: inline !important;
  border: 0 !important;
  box-shadow: none !important;
  height: 1em !important;
  width: 1em !important;
  margin: 0 0.07em !important;
  vertical-align: -0.1em !important;
  background: none !important;
  padding: 0 !important;
}

/* ─────────────────────────────────────────────────────────────────────────
   27. ENTRY-CONTENT — Cursor cue for clickable image links
   ───────────────────────────────────────────────────────────────────────── */
.entry-content a[href$=".jpg"] img,
.entry-content a[href$=".jpeg"] img,
.entry-content a[href$=".png"] img,
.entry-content a[href$=".gif"] img,
.entry-content a[href$=".webp"] img,
.entry-content a[href$=".avif"] img,
.entry-content a[href$=".svg"] img {
  cursor: zoom-in;
  transition: filter 0.2s, transform 0.25s;
}
.entry-content a[href$=".jpg"]:hover img,
.entry-content a[href$=".jpeg"]:hover img,
.entry-content a[href$=".png"]:hover img,
.entry-content a[href$=".gif"]:hover img,
.entry-content a[href$=".webp"]:hover img,
.entry-content a[href$=".avif"]:hover img,
.entry-content a[href$=".svg"]:hover img {
  filter: brightness(1.05);
}

/* ─────────────────────────────────────────────────────────────────────────
   28. LIGHTBOX modal (driven by js/entry-lightbox.js)
   ───────────────────────────────────────────────────────────────────────── */
html.entry-lightbox-locked,
html.entry-lightbox-locked body {
  overflow: hidden;
}

.entry-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.entry-lightbox.is-open {
  display: flex;
  opacity: 1;
}

.entry-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 25, 44, 0.92);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  cursor: zoom-out;
}

.entry-lightbox__stage {
  position: relative;
  z-index: 2;
  max-width: 92vw;
  max-height: 86vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.entry-lightbox__img {
  max-width: 92vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  background: #fff;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.entry-lightbox__img.is-ready {
  opacity: 1;
  transform: scale(1);
}

.entry-lightbox__caption {
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  max-width: 88vw;
  margin: 0;
  padding: 0 4px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.entry-lightbox__caption[hidden] {
  display: none;
}

.entry-lightbox__counter {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(0, 0, 0, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  pointer-events: none;
}
.entry-lightbox__counter[hidden] {
  display: none;
}

.entry-lightbox__close,
.entry-lightbox__nav {
  position: absolute;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.15s, transform 0.15s;
}
.entry-lightbox__close:hover,
.entry-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.06);
}
.entry-lightbox__close:focus-visible,
.entry-lightbox__nav:focus-visible {
  outline: 2px solid var(--orange, #f58220);
  outline-offset: 2px;
}

.entry-lightbox__close {
  top: 18px;
  right: 18px;
}

.entry-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
}
.entry-lightbox__nav:hover {
  transform: translateY(-50%) scale(1.06);
}
.entry-lightbox__nav--prev { left: 18px; }
.entry-lightbox__nav--next { right: 18px; }
.entry-lightbox__nav[hidden] { display: none; }

.entry-lightbox__spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  animation: entry-lightbox-spin 0.75s linear infinite;
  z-index: 3;
}
.entry-lightbox.is-loading .entry-lightbox__spinner {
  opacity: 1;
}
@keyframes entry-lightbox-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
  .entry-lightbox__close { top: 10px; right: 10px; width: 38px; height: 38px; }
  .entry-lightbox__nav   { width: 38px; height: 38px; }
  .entry-lightbox__nav--prev { left: 6px; }
  .entry-lightbox__nav--next { right: 6px; }
  .entry-lightbox__counter   { top: 10px; font-size: 12px; padding: 4px 10px; }
  .entry-lightbox__img       { max-height: 72vh; }
}
