/* Namoradinha Fácil — Media Uniforme V1
   Apenas apresentação. Não converte, não reenquadra arquivos e não altera moderação.
   Cards: recorte de prévia; galerias de vídeo: conteúdo inteiro sem esticar;
   galeria de fotos: prévias alinhadas e foto original inteira ao ampliar. */

/* CAPAS DO CATÁLOGO — MESMA PROPORÇÃO NO COMPUTADOR E NO CELULAR */
.nf-listing-card .nf-listing-cover {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  min-width: 0;
  overflow: hidden;
  background: #ebdfd5;
}
.nf-listing-card .nf-listing-cover > .nf-story-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.nf-listing-card .nf-listing-cover > img,
.nf-listing-card .nf-listing-cover > video,
.nf-listing-card .nf-listing-cover > .nf-cover-placeholder,
.nf-listing-card .nf-listing-cover .nf-story-media > img,
.nf-listing-card .nf-listing-cover .nf-story-media > video,
.nf-listing-card .nf-listing-cover .nf-story-media > .nf-cover-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}

/* DESTAQUES — MOLURAS IDÊNTICAS SEM DISTORCER O VÍDEO DE PRÉVIA */
.nf-featured-list .nf-feature-card {
  position: relative;
  aspect-ratio: 16 / 10;
  height: auto;
  min-width: 0;
  overflow: hidden;
}
.nf-featured-list .nf-feature-card > .nf-story-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* PÁGINA INDIVIDUAL — FOTOS EM MINIATURAS DE 3:4 (ORIGINAL NO ZOOM) */
.c3.c3-profile-root .c3-feed .media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  align-items: stretch;
}
.c3.c3-profile-root .c3-feed .media-grid > .media {
  position: relative;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f7ede4;
}
.c3.c3-profile-root .c3-feed .media-grid > .media > button {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  padding: 0;
}
.c3.c3-profile-root .c3-feed .media-grid > .media > button > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}
.c3.c3-profile-root .c3-dialog img {
  width: auto;
  height: auto;
  max-width: 94vw;
  max-height: 86dvh;
  object-fit: contain;
}

/* GALERIA PÚBLICA — VÍDEOS DE PROPORÇÕES DIVERSAS EM QUADROS IGUAIS */
.c3.c3-profile-root .c3-video-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  align-items: start;
}
.c3.c3-profile-root .c3-video-gallery > .c3-media-video {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  min-width: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 13px;
  background: #1a1715;
}
.c3.c3-profile-root .c3-video-gallery > .c3-media-video > video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  background: #1a1715;
}

/* VÍDEO PRINCIPAL — CENTRALIZADO E COM LIMITE DE LARGURA NO DESKTOP */
.c3.c3-profile-root .nf-story-hero > video {
  display: block;
  width: 100%;
  max-width: 410px;
  height: auto;
  max-height: none;
  aspect-ratio: 3 / 4;
  margin-inline: auto;
  object-fit: contain;
  background: #1a1715;
  border-radius: 12px;
}

/* COMPATIBILIDADE COM A GALERIA PÚBLICA ALTERNATIVA */
.nf-public-media-stack .public-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
  gap: 12px;
}
.nf-public-media-stack .public-video-card {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  overflow: hidden;
  background: #171717;
}
.nf-public-media-stack .public-video-card > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.nf-profile-feed .featured-photo-frame {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  max-height: none;
  background: #f5ede6;
}
.nf-profile-feed .featured-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* PAINEL PROFISSIONAL — PRÉVIAS SEM ALTURAS FIXAS DIFERENTES */
.dashboard-section-content .professional-video-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
  align-items: start;
}
.dashboard-section-content .professional-video-card > video {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: #171717;
}
.dashboard-section-content .professional-photo-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: #f7ede4;
}

/* RESPONSIVO: O NÚMERO DE COLUNAS MUDA, A PROPORÇÃO NÃO */
@media (max-width: 650px) {
  .c3.c3-profile-root .c3-feed .media-grid,
  .c3.c3-profile-root .c3-video-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .c3.c3-profile-root .nf-story-hero > video {
    width: min(100%, 360px);
    max-width: 100%;
    max-height: none;
  }
  .dashboard-section-content .professional-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}
@media (max-width: 360px) {
  .c3.c3-profile-root .c3-feed .media-grid,
  .c3.c3-profile-root .c3-video-gallery { gap: 6px; }
}
