/* ===== Single Update Layout ===== */
.magazine {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
  color: #1f2937;
  font-family: "Inter", Arial, sans-serif;
}

/* ===== Feature Article ===== */
.feature {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

/* ===== Cover Image ===== */
.feature-media {
  text-align: center;
  background: #f9fafb;
  padding: 1rem;
}

.feature-media img {
  max-height: 420px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

/* ===== Article Header ===== */
.feature-head {
  padding: 1.75rem;
  border-bottom: 1px solid #e5e7eb;
}

.feature-title {
  font-size: 2rem;
  font-weight: 800;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.meta-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.chip {
  background: #e5e7eb;
  color: #374151;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 9999px;
}

.chip.pin {
  background: #fde047;
  color: #111;
}

.meta-date {
  margin-left: auto;
}

.byline {
  font-size: 0.95rem;
  color: #4b5563;
}

/* ===== Article Body ===== */
.feature-body {
  padding: 1.75rem;
  line-height: 1.75;
  font-size: 1.05rem;
  color: #1f2937;
}

.feature-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
  border-radius: 8px;
}

.feature-body h2,
.feature-body h3 {
  margin-top: 1.75rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.feature-body p {
  margin-bottom: 1rem;
}

/* ===== Zoomable Image ===== */
.zoomable-img {
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  max-width: 100%;
  height: auto;
}
.zoomable-img:hover {
  transform: scale(1.03);
  box-shadow: 0 0 14px rgba(0,0,0,0.25);
}

/* ===== Modal for Images ===== */
.img-modal {
  display: none;
  position: fixed;
  z-index: 1050;
  inset: 0;
  background-color: rgba(0,0,0,0.9);
  padding-top: 60px;
  overflow: auto;
}

.img-modal .modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
  transition: transform 0.25s ease;
}

.img-modal.show .modal-content {
  transform: scale(1.02);
}

.img-modal .close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 42px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}
.img-modal .close:hover {
  color: #bbb;
}

/* 📱 Responsive adjustments */
@media (max-width: 768px) {
  .feature-title {
    font-size: 1.6rem;
  }
  .feature-body {
    font-size: 1rem;
  }
}
