/* Exibe fotografias inteiras, sem distorção ou corte automático. */
.cover-preview {
  aspect-ratio: auto !important;
  min-height: 280px;
  max-height: min(62vh, 620px);
  padding: 14px;
  background: linear-gradient(145deg, #e8eef8, #f7f9fc) !important;
}

.cover-preview img {
  width: auto !important;
  max-width: 100%;
  height: auto !important;
  max-height: min(58vh, 580px);
  object-fit: contain !important;
}

.post-row > img {
  object-fit: contain !important;
  padding: 4px;
}

.wysiwyg img,
.article-body img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 72vh;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}

.news-card-image {
  display: grid !important;
  place-items: center;
  padding: 10px;
  background: linear-gradient(145deg, #e7eef8, #f6f8fc) !important;
}

.news-card-image img {
  width: auto !important;
  max-width: 100%;
  height: auto !important;
  max-height: 100%;
  object-fit: contain !important;
}

.article-cover {
  display: block;
  width: auto !important;
  max-width: 100%;
  height: auto !important;
  max-height: min(72vh, 680px) !important;
  margin: 0 auto;
  object-fit: contain !important;
  background: linear-gradient(145deg, #e7eef8, #f7f9fc);
}

.article-gallery-item {
  display: grid !important;
  place-items: center;
  aspect-ratio: 4 / 3 !important;
  padding: 6px;
  background: linear-gradient(145deg, #e7eef8, #f7f9fc);
}

.article-gallery-item img {
  width: auto !important;
  max-width: 100%;
  height: auto !important;
  max-height: 100%;
  object-fit: contain !important;
}

.carousel-visual {
  display: grid;
  place-items: center;
  min-height: clamp(300px, 42vw, 500px) !important;
  background: radial-gradient(circle at center, #f8fafc 0, #dfe8f5 72%, #cad8eb 100%) !important;
}

.carousel-visual img {
  position: relative !important;
  inset: auto !important;
  width: auto !important;
  max-width: 100%;
  height: auto !important;
  max-height: clamp(300px, 42vw, 500px);
  padding: clamp(8px, 1.5vw, 18px);
  object-fit: contain !important;
}

.carousel-visual::after {
  background: linear-gradient(180deg, transparent 68%, rgba(7,31,70,.16)) !important;
  pointer-events: none;
}

@media (max-width: 640px) {
  .cover-preview { min-height: 220px; }
  .carousel-visual { min-height: 260px !important; }
  .carousel-visual img { max-height: 320px; }
  .article-cover { max-height: 62vh !important; border-radius: 18px; }
}

.wall-settings {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid #c9d9ef;
  border-radius: 14px;
  background: #f2f7ff;
}

.wall-settings .check-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
}

.wall-settings .check-label input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.wall-settings small { color: #60728f; }
.wall-settings.is-disabled [data-wall-expiry] { opacity: .48; }
