/* ==========================
       AUTHOR POST FEED
========================== */

.author-feed {
  padding: 90px 8%;

  background: #faf7f1;
}

.feed-header {
  text-align: center;

  margin-bottom: 50px;
}

.feed-header span {
  color: #b08d57;

  letter-spacing: 3px;

  font-size: 14px;

  font-weight: 600;
}

.feed-header h2 {
  font-family: "Playfair Display", serif;

  font-size: 42px;

  margin: 15px 0;

  color: #2d2d2d;
}

.feed-header p {
  color: #777;

  max-width: 650px;

  margin: auto;

  line-height: 1.8;
}

/* Feed Layout */

.feed-container {
  max-width: 900px;

  margin: auto;

  display: flex;

  flex-direction: column;

  gap: 35px;
}

/* Individual Post */

.feed-post {
  display: flex;

  background: white;

  border-radius: 18px;

  overflow: hidden;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

  transition: 0.3s;
}

.feed-post img {
  width: 300px;

  height: 250px;

  object-fit: cover;
}

.feed-content {
  padding: 30px;
}

.post-date {
  color: #b08d57;

  font-size: 14px;

  font-weight: 600;
}

.feed-content h3 {
  font-size: 28px;

  margin: 15px 0;

  color: #333;
}

.feed-content p {
  color: #666;

  line-height: 1.7;
}

.read-btn {
  display: inline-block;

  margin-top: 20px;

  padding: 12px 25px;

  border-radius: 30px;

  background: #b08d57;

  color: white;

  text-decoration: none;

  transition: 0.3s;
}

.read-btn:hover {
  background: #8c6b3e;
}

/* Mobile */

@media (max-width: 768px) {
  .feed-post {
    flex-direction: column;
  }

  .feed-post img {
    width: 100%;

    height: 230px;
  }

  .feed-content h3 {
    font-size: 24px;
  }
}

/* =========================
   LATEST POSTS
========================= */

.latest-section {
  width: 100%;
}

/* Header */

.latest-header {
  text-align: center;
  margin-top: 60px;
  margin-bottom: 60px;
}

.section-label {
  display: block;
  margin-bottom: 12px;

  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.latest-header h2 {
  margin: 0 0 15px;

  font-family: "Playfair Display", serif;
  font-size: 42px;
  font-weight: 600;
}

.latest-header p {
  max-width: 650px;
  margin: 0 auto;

  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.8;
}

/* Posts */

.feed-container {
  width: 100%;
}

.feed-post {
  display: flex;
  align-items: center;
  gap: 45px;

  padding: 35px 0;
}

/* Post image */

.post-image {
  flex: 0 0 300px;
}

.post-image img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
}

/* Post content */

.feed-content {
  flex: 1;
}

.post-type {
  display: inline-block;
  margin-bottom: 8px;

  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}

.post-date {
  margin: 0 0 10px;

  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
}

.feed-content h3 {
  margin: 0 0 15px;

  font-family: "Playfair Display", serif;
  font-size: 28px;
  font-weight: 600;
}

.feed-content > p:last-child {
  margin: 0;

  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.8;
}

/* Separation between posts */

.post-separator {
  width: 100%;
  height: 1px;
  margin: 10px 0;

  background: rgba(0, 0, 0, 0.12);
}

/* =================================
   POSTS → COMMENTS SEPARATOR
================================= */

.comments-divider {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 20px;

  margin: 90px 0 75px;
}

.comments-divider span {
  width: 120px;
  height: 1px;

  background: rgba(0, 0, 0, 0.15);
}

.comments-divider i {
  font-size: 16px;
  opacity: 0.6;
}

/* =========================
   POSTS PAGINATION
========================= */

.posts-pagination {
  display: flex;
  justify-content: center;
  align-items: center;

  gap: 8px;

  margin-top: 50px;
}

.post-image {
  width: 300px;
  height: 220px;
  flex-shrink: 0;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.pagination-btn {
  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 1px solid rgba(0, 0, 0, 0.15);
  background: transparent;

  font-family: "Inter", sans-serif;
  font-size: 13px;

  cursor: pointer;

  transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: #111;
  color: #fff;
}

.pagination-btn.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.pagination-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.post-thumbnail {
  cursor: zoom-in;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.88);

  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: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;

  border: none;
  background: transparent;

  color: white;
  font-size: 45px;

  cursor: pointer;
  z-index: 100000;
}

body.modal-open {
  overflow: hidden;
}
