/* Galerías públicas — tabs y mosaico */
.gallery-tabs {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid rgba(15, 107, 63, 0.14);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(10, 63, 39, 0.08);
}

.gallery-tab {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid rgba(15, 107, 63, 0.2);
  background: #e8f5ee;
  color: #083f27;
  border-radius: 999px;
  padding: 10px 16px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.2;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.gallery-tab span {
  display: inline-flex;
  min-width: 22px;
  justify-content: center;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffffff;
  color: #083f27;
  font-size: 0.78rem;
  font-weight: 800;
}

.gallery-tab:hover {
  border-color: #0f6b3f;
  transform: translateY(-1px);
}

.gallery-tab.is-active {
  background: #0f6b3f;
  border-color: #0f6b3f;
  color: #ffffff;
}

.gallery-tab.is-active span {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.gallery-tab:focus-visible {
  outline: 3px solid #f4b000;
  outline-offset: 2px;
}

.public-gallery-block.is-hidden,
.gallery-tabs-empty.is-hidden {
  display: none !important;
}

.public-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.public-mosaic-item {
  position: relative;
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: #e8f5ee;
  aspect-ratio: 1;
  width: 100%;
  max-height: 170px;
  -webkit-appearance: none;
  appearance: none;
}

.public-mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 980px) {
  .public-mosaic {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .public-mosaic-item {
    max-height: 150px;
  }
}

@media (max-width: 640px) {
  .public-mosaic {
    grid-template-columns: 1fr 1fr;
  }

  .public-mosaic-item {
    max-height: 140px;
  }

  .gallery-tabs {
    padding: 10px;
  }
}

.public-reportaje-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  margin-top: 18px;
}

.public-reportaje {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid rgba(18, 58, 95, 0.12);
  border-radius: 18px;
  padding: 20px 22px 22px;
  box-shadow: 0 12px 28px rgba(10, 63, 39, 0.08);
}

.public-reportaje-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.public-reportaje-badge {
  background: #e7eef8;
  color: #123a5f;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}

.public-reportaje-host {
  color: #667085;
  font-size: 12px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-reportaje-layout {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 28px;
  width: 100%;
}

.public-reportaje-cover {
  display: block;
  flex: 0 0 38%;
  width: 38%;
  max-width: 480px;
  min-width: 260px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #e7eef8;
}

.public-reportaje-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.public-reportaje-copy {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.public-reportaje-title {
  margin: 0;
  color: #083f27;
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.35;
}

.public-reportaje-excerpt {
  color: #667085;
  font-size: 0.98rem;
  line-height: 1.55;
  margin: 0;
}

.public-reportaje-body {
  color: #334155;
  font-size: 1rem;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .public-reportaje {
    padding: 16px;
  }

  .public-reportaje-layout {
    flex-direction: column;
  }

  .public-reportaje-cover {
    flex: none;
    width: 100%;
    max-width: none;
    min-width: 0;
  }
}
