/* =====================================================
   BLOGS.CSS  (merged: postings + post + comments + blogsresponsive)
===================================================== */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --gold: #b08d57;
  --gold-dark: #8c6b3e;
  --gold-bright: #cfa34a;
  --ink: #2d2d2d;
  --muted: #777;
  --paper: #faf7f0;
  --line: rgba(0, 0, 0, 0.12);
}

body {
  background: rgb(246 230 193 / 94%);
}

/* =====================================================
   LATEST POSTS SECTION
===================================================== */

.latest-section {
  width: 100%;
  padding: 0 20px;
}

.latest-header {
  text-align: center;
  margin: 60px 0;
}

.section-label {
  display: block;
  margin-bottom: 12px;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
}

.latest-header h2 {
  margin: 0 0 15px;
  font-family: "Playfair Display", serif;
  font-size: 42px;
  font-weight: 600;
  color: var(--ink);
}

.latest-header p {
  max-width: 650px;
  margin: 0 auto;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.feed-container {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ---------- Post card ---------- */

.feed-post {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.post-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 26px 0;
}

.post-type {
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
}

.post-date {
  margin: 4px 0 0;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  color: #999;
}

.post-delete,
.comment-delete {
  border: none;
  background: transparent;
  color: #a63d3d;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  cursor: pointer;
}
.post-delete:hover,
.comment-delete:hover {
  text-decoration: underline;
}

.post-caption {
  margin: 0;
  padding: 14px 26px 20px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: #444;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ---------- Image gallery ---------- */

.post-gallery {
  display: grid;
  gap: 4px;
  background: #eee;
}
.post-gallery.count-1 {
  grid-template-columns: 1fr;
}
.post-gallery.count-2 {
  grid-template-columns: 1fr 1fr;
}
.post-gallery.count-3 {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.post-gallery.count-3 .gallery-item:first-child {
  grid-row: span 2;
}
.post-gallery.count-many {
  grid-template-columns: 1fr 1fr;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  background: #ddd;
  aspect-ratio: 4 / 3;
}
.count-1 .gallery-item {
  aspect-ratio: auto;
  height: clamp(260px, 62vw, 540px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
}
/* blurred copy of the photo fills any empty space around it */
.count-1 .gallery-item::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: var(--bg) center / cover no-repeat;
  filter: blur(22px) brightness(0.7);
}
.count-3 .gallery-item {
  aspect-ratio: auto;
  min-height: 180px;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.count-1 .gallery-item img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain; /* whole image always visible, never cropped */
}
.gallery-item:hover img {
  transform: scale(1.03);
}
.count-1 .gallery-item:hover img {
  transform: none;
}

.gallery-more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
}

/* ---------- Pagination ---------- */

.posts-pagination,
.comments-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.posts-pagination {
  margin: 48px auto 72px;
}

.posts-pagination:empty {
  margin: 0 auto 48px;
}

.comments-pagination {
  gap: 6px;
  margin: 18px 0 4px;
}

.pagination-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(176, 141, 87, 0.35);
  background: #fff;
  color: var(--gold-dark);
  border-radius: 8px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.pagination-btn:hover:not(:disabled):not(.active) {
  background: var(--paper);
  border-color: var(--gold-bright);
  color: var(--gold-dark);
}

.pagination-btn:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

.pagination-btn.active {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: #fff;
  box-shadow: 0 4px 12px rgba(207, 163, 74, 0.35);
  cursor: default;
}

.pagination-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.comments-pagination .pagination-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 9px;
  border-radius: 6px;
  font-size: 12.5px;
}

@media (max-width: 576px) {
  .posts-pagination {
    gap: 6px;
    margin: 36px auto 56px;
  }

  .posts-pagination .pagination-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
  }
}

.feed-empty {
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.2rem;
  color: #9a9182;
  padding: 40px 0;
}

/* =====================================================
   ADMIN COMPOSER
===================================================== */

.admin-bar {
  max-width: 820px;
  margin: 0 auto 30px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.admin-toggle {
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-dark);
  border-radius: 30px;
  padding: 8px 20px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
}
.admin-toggle:hover {
  background: var(--gold);
  color: #fff;
}

.author-post-panel {
  display: none;
  width: 100%;
  max-width: 820px;
  margin: 0 auto 50px;
  padding: 40px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}
.author-post-panel.open {
  display: block;
}

.panel-header {
  text-align: center;
  margin-bottom: 30px;
}
.panel-header span {
  color: var(--gold);
  letter-spacing: 3px;
  font-size: 13px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
}
.panel-header h2 {
  font-family: "Playfair Display", serif;
  font-size: 34px;
  color: var(--ink);
  margin: 12px 0;
}
.panel-header p {
  color: var(--muted);
  font-size: 15px;
  font-family: "Inter", sans-serif;
  margin: 0;
}

.post-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.form-group {
  display: flex;
  flex-direction: column;
}
.form-group label {
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-family: "Inter", sans-serif;
  font-size: 14px;
}

.form-group textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  resize: vertical;
  min-height: 110px;
  transition: 0.3s;
}
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.15);
}

.drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 16px;
  border: 2px dashed #d8cdb8;
  border-radius: 12px;
  background: #fdfbf6;
  color: #7a6d55;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
  transition: 0.25s;
}
.drop-zone i {
  font-size: 26px;
  color: var(--gold);
}
.drop-zone:hover,
.drop-zone.dragover {
  border-color: var(--gold);
  background: #f8f1e2;
}
.drop-zone input {
  display: none;
}

.image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.preview-item {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 10px;
  overflow: hidden;
}
.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.panel-status {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  min-height: 18px;
}
.panel-status.error {
  color: #a63d3d;
}
.panel-status.success {
  color: #4b7d4b;
}

.publish-btn {
  background: var(--gold);
  color: #fff;
  border: none;
  padding: 14px 35px;
  border-radius: 30px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}
.publish-btn:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
}

/* =====================================================
   PER-POST COMMENTS
===================================================== */

.post-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 26px;
  border-top: 1px solid #f0ebe0;
}

.comment-toggle {
  border: none;
  background: transparent;
  color: var(--gold-dark);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.comment-toggle:hover {
  color: var(--gold-bright);
}

.post-comments {
  display: none;
  padding: 4px 26px 26px;
  background: var(--paper);
  border-top: 1px solid #f0ebe0;
}
.post-comments.open {
  display: block;
}

.post-comment-list {
  padding-top: 18px;
}

.comment-card {
  background: #fff;
  border: 1px solid rgba(111, 102, 91, 0.15);
  border-left: 3px solid var(--gold-bright);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
  animation: fadeInComment 0.4s ease forwards;
}

@keyframes fadeInComment {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.comment-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.comment-name {
  font-family: "Cinzel", serif;
  font-size: 0.95rem;
  color: #1a1a1a;
}
.comment-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.comment-date {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  color: #a39a8a;
}
.comment-message {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #3a3630;
  white-space: pre-wrap;
  margin: 0;
}

.comments-empty {
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.1rem;
  color: #9a9182;
  padding: 14px 0;
  margin: 0;
}

.comment-form {
  background: #fff;
  border: 1px solid rgba(207, 163, 74, 0.25);
  border-radius: 12px;
  padding: 20px;
  margin-top: 8px;
}

.comment-form label {
  display: block;
  font-family: "Cinzel", serif;
  font-size: 0.7rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #6f665b;
  margin-bottom: 6px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid rgba(111, 102, 91, 0.3);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  color: #222;
  background: #fdfcf9;
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}
.comment-form textarea {
  resize: vertical;
  min-height: 90px;
}
.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(207, 163, 74, 0.15);
}

.comment-form .form-footer {
  display: flex;
  justify-content: flex-end;
}

.comment-submit-btn {
  background: var(--gold-bright);
  color: #fffdf8;
  border: 1px solid var(--gold-bright);
  border-radius: 30px;
  padding: 10px 26px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}
.comment-submit-btn:hover {
  background: #9b805b;
  border-color: #9b805b;
  transform: translateY(-2px);
}

/* =====================================================
   IMAGE LIGHTBOX
===================================================== */

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}
.image-modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 28px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 44px;
  cursor: pointer;
  z-index: 100000;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}
.modal-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}
.modal-prev {
  left: 20px;
}
.modal-next {
  right: 20px;
}
.modal-nav.hidden {
  display: none;
}

.modal-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #ddd;
  font-family: "Inter", sans-serif;
  font-size: 13px;
}

body.modal-open {
  overflow: hidden;
}

/* =====================================================
   POSTS → COMMENTS DIVIDER (kept for layout parity)
===================================================== */

.comments-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 80px 0 20px;
}
.comments-divider span {
  width: 120px;
  height: 1px;
  background: rgba(0, 0, 0, 0.15);
}
.comments-divider i {
  font-size: 16px;
  opacity: 0.6;
}

/* =====================================================
   RESPONSIVE — POSTS
===================================================== */

@media (max-width: 768px) {
  .latest-header h2 {
    font-size: 32px;
  }
  .author-post-panel {
    padding: 28px 18px;
  }
  .panel-header h2 {
    font-size: 28px;
  }
  .publish-btn {
    width: 100%;
  }
  .post-head,
  .post-caption,
  .post-actions {
    padding-left: 18px;
    padding-right: 18px;
  }
  .post-comments {
    padding-left: 18px;
    padding-right: 18px;
  }
  .modal-prev {
    left: 8px;
  }
  .modal-next {
    right: 8px;
  }
}

@media (max-width: 480px) {
  .post-gallery.count-3 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .post-gallery.count-3 .gallery-item:first-child {
    grid-row: auto;
    grid-column: span 2;
  }
  .preview-item {
    width: 90px;
    height: 90px;
  }
}

/* =====================================================
   RESPONSIVE — HEADER / NAVBAR
===================================================== */

@media (max-width: 900px) {
  .navbar {
    width: 100%;
    min-height: auto;
    padding: 15px 0;
  }
  .navbar .container {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 12px 20px;
  }
  .logo {
    display: block;
    text-align: center;
  }
  .logo-text {
    font-size: 1.8rem;
    white-space: nowrap;
  }
  .nav-links {
    position: static;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 25px;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    transition: none;
  }
  .nav-links.open {
    transform: none;
  }
  .nav-links li {
    display: block;
    margin: 0;
    padding: 0;
  }
  .nav-links a {
    display: block;
    font-size: 1rem;
    padding: 7px 4px;
    white-space: nowrap;
  }
  .nav-toggle {
    display: none;
  }
}

@media (max-width: 600px) {
  .navbar {
    padding: 12px 0;
  }
  .navbar .container {
    padding: 10px 15px;
    gap: 12px;
  }
  .logo-text {
    font-size: 1.55rem;
    letter-spacing: 1.5px;
  }
  .nav-links {
    gap: 6px 17px;
  }
  .nav-links a {
    font-size: 0.9rem;
    padding: 6px 2px;
  }
}

@media (max-width: 400px) {
  .navbar .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .logo-text {
    font-size: 1.35rem;
    letter-spacing: 1px;
  }
  .nav-links {
    gap: 5px 13px;
  }
  .nav-links a {
    font-size: 0.82rem;
  }
}

/* =====================================================
   RESPONSIVE — FOOTER
===================================================== */

@media (max-width: 768px) {
  .site-footer {
    width: 100%;
    padding: 60px 0 20px;
  }
  .footer-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 40px;
    padding: 0 25px;
  }
  .footer-brand,
  .footer-navigation,
  .footer-contact {
    width: 100%;
    max-width: 500px;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: auto !important;
    right: auto !important;
    text-align: center;
  }
  .footer-brand h2,
  .footer-navigation h3,
  .footer-contact h3 {
    text-align: center;
    margin-left: 0;
  }
  .footer-brand p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .footer-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  .footer-navigation li {
    margin: 0;
  }
  .footer-contact p {
    justify-content: center;
    text-align: center;
  }
  .footer-bottom {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    padding: 25px 20px 0;
  }
  .footer-bottom p {
    margin: 0;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 45px 0 20px;
  }
  .footer-container {
    gap: 35px;
    padding: 0 15px;
  }
  .footer-brand h2,
  .footer-navigation h3,
  .footer-contact h3 {
    font-size: 1.4rem;
  }
  .footer-navigation a,
  .footer-contact p {
    font-size: 1rem;
  }
  .footer-bottom {
    padding-left: 15px;
    padding-right: 15px;
  }
  .footer-bottom p,
  .footer-bottom span,
  .footer-bottom a {
    font-size: 0.9rem;
    text-align: center;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 360px) {
  .footer-container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .footer-brand h2,
  .footer-navigation h3,
  .footer-contact h3 {
    font-size: 1.25rem;
  }
  .footer-navigation a,
  .footer-contact p {
    font-size: 0.92rem;
  }
  .footer-bottom p,
  .footer-bottom a {
    font-size: 0.82rem;
  }
}

/* =====================================================
   COMMENT REPLIES + DELETE
===================================================== */

.comment-actions {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}
.comment-action {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #9b805b;
  transition: color 0.2s;
}
.comment-action:hover {
  color: #6e5a3a;
}
.comment-action.danger {
  color: #a63d3d;
}
.comment-action.danger:hover {
  color: #7d2626;
}

.comment-replies {
  margin-left: 22px;
  padding-left: 14px;
  border-left: 2px solid rgba(207, 163, 74, 0.35);
}
.comment-card.is-reply {
  border-left-width: 2px;
  background: #fdfcf9;
}

.reply-form {
  margin-top: 12px;
  padding: 14px;
  background: #fdfcf9;
}
.reply-form input,
.reply-form textarea {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(111, 102, 91, 0.3);
  border-radius: 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
}
.reply-form textarea {
  min-height: 70px;
  resize: vertical;
}
.reply-form input:focus,
.reply-form textarea:focus {
  outline: none;
  border-color: #cfa34a;
  box-shadow: 0 0 0 3px rgba(207, 163, 74, 0.15);
}
.reply-form .form-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}
.reply-cancel {
  border: 0;
  background: none;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  color: #6f665b;
}

@media (max-width: 576px) {
  .comment-replies {
    margin-left: 8px;
    padding-left: 10px;
  }
}

/* Post title */
.post-title {
  margin: 6px 0 0;
  font-family: "Playfair Display", serif;
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.25;
  color: #2d2d2d;
  overflow-wrap: anywhere;
}
@media (max-width: 576px) {
  .post-title {
    font-size: 1.4rem;
  }
}
/* =====================================================
   REACTIONS (posts + comments)
===================================================== */

.post-actions {
  flex-wrap: wrap;
}

.reactions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.reaction-add {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-dark);
  transition: color 0.2s;
}
.reaction-add:hover,
.reaction-add.mine {
  color: var(--gold-bright);
}

.reaction-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.reaction-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border: 1px solid rgba(176, 141, 87, 0.35);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: #6f665b;
  line-height: 1.4;
  transition: background 0.2s, border-color 0.2s;
}
.reaction-chip:hover {
  background: var(--paper);
  border-color: var(--gold-bright);
}
.reaction-chip.mine {
  background: rgba(207, 163, 74, 0.18);
  border-color: var(--gold-bright);
  color: var(--gold-dark);
}
.reaction-emoji {
  font-size: 15px;
  line-height: 1;
}

.reaction-picker {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px 8px;
  width: fit-content;
  max-width: 100%;
  background: #fff;
  border: 1px solid rgba(176, 141, 87, 0.3);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}
.reaction-pick {
  border: 0;
  background: transparent;
  padding: 2px 6px;
  font-size: 22px;
  line-height: 1.2;
  cursor: pointer;
  border-radius: 50%;
  transition: transform 0.15s;
}
.reaction-pick:hover {
  transform: scale(1.25);
}
.reaction-pick.mine {
  background: rgba(207, 163, 74, 0.22);
}

/* Comment reactions sit in the comment action row */
.comment-actions {
  flex-wrap: wrap;
  align-items: center;
}
.comment-actions .reaction-add,
.comment-actions .reaction-chip {
  font-size: 0.78rem;
}
.comment-actions .reaction-emoji {
  font-size: 13px;
}
.comment-actions .reaction-pick {
  font-size: 19px;
}

/* =====================================================
   CAPTION "VIEW MORE / VIEW LESS"
===================================================== */

.caption-toggle {
  display: inline;
  margin: 0 0 0 6px;
  padding: 0;
  border: 0;
  background: none;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-dark);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(176, 141, 87, 0.45);
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.caption-toggle::after {
  content: " \25BE";
  font-size: 0.85em;
  text-decoration: none;
  display: inline-block;
}

.caption-toggle[data-expanded="true"]::after {
  content: " \25B4";
}

.caption-toggle:hover {
  color: var(--gold-bright);
  text-decoration-color: var(--gold-bright);
}

.caption-toggle:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 3px;
}
