/* ==========================================================================
   MYSELF: Familia Myself (home)
   ========================================================================== */
.mf { --mf-alt: 320px; width: 100%; margin: 4px 0 8px; }
.mf-topo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  text-align: center;
}
.mf .mf-topo { display: block; margin: 0 0 10px !important; color: #666; font-size: 14px; text-align: center; }
.mf-topo b { color: var(--my-green, #016738); }
.mf .mf-insta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 6px;
  border: 1px solid #e5e9e6;
  border-radius: 999px;
  background: #fff;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.mf .mf-insta:hover { border-color: #d6249f; box-shadow: 0 6px 16px rgba(214, 36, 159, .15); transform: translateY(-1px); }
.mf-insta-ico {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.mf-insta-ico svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2; }
.mf-insta-ico .mf-ponto { fill: #fff; stroke: none; }

/* faixa: uma fileira so, girando devagar; para quando o mouse passa */
.mf-faixa {
  overflow: hidden;
  padding: 8px 0 18px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.mf-trilho {
  display: flex;
  gap: 16px;
  width: max-content;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
  animation: mf-gira 120s linear infinite;
}
.mf-faixa:hover .mf-trilho, .mf-faixa:focus-within .mf-trilho { animation-play-state: paused; }
@keyframes mf-gira { to { transform: translateX(calc(-50% - 8px)); } }
.mf-cartao { flex: none; margin: 0 !important; }
.mf .mf-abrir {
  all: unset;
  display: block;
  width: calc(var(--mf-alt) * 9 / 16);
  height: var(--mf-alt);
  overflow: hidden;
  border-radius: 18px;
  background: #eee;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .10);
  cursor: zoom-in;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
}
.mf .mf-abrir:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(0, 0, 0, .16); }
.mf .mf-abrir:focus-visible { outline: 2px solid var(--my-green, #016738); outline-offset: 3px; }
.mf-abrir img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.mf .mf-abrir:hover img { transform: scale(1.04); }

/* visualizador */
html.mf-aberto { overflow: hidden; }
.mf-ver {
  position: fixed;
  z-index: 100002;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: rgba(12, 12, 12, .88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .2s ease;
}
.mf-ver[hidden] { display: none; }
.mf-ver.is-on { opacity: 1; }
.mf-ver button { all: unset; box-sizing: border-box; cursor: pointer; }
.mf-ver button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.mf-ver img {
  max-width: min(440px, 92vw);
  max-height: calc(100vh - 60px);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  animation: mf-entra .3s cubic-bezier(.2, .8, .2, 1);
}
@keyframes mf-entra { from { opacity: 0; transform: scale(.97); } }
.mf-ver .mf-seta, .mf-ver .mf-fechar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  transition: background-color .2s ease;
}
.mf-ver .mf-seta:hover, .mf-ver .mf-fechar:hover { background: rgba(255, 255, 255, .26); }
.mf-ver .mf-fechar { position: absolute; top: 18px; right: 18px; }
.mf-ver svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mf-conta { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.75); font-size: 13px; font-weight: 600; }

/* celular: fileira para deslizar com o dedo (sem girar sozinha) */
@media (max-width: 767px) {
  .mf { --mf-alt: 260px; }
  .mf .mf-topo { margin: 0 15px 6px !important; font-size: 13px; }
  .mf-faixa {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 6px 15px 18px;
    scrollbar-width: none;
    -webkit-mask: none;
    mask: none;
  }
  .mf-faixa::-webkit-scrollbar { display: none; }
  .mf-trilho { gap: 10px; animation: none; }
  .mf-cartao { scroll-snap-align: center; }
  .mf-cartao[aria-hidden="true"] { display: none; }
  .mf .mf-abrir { border-radius: 16px; }
  .mf-ver { gap: 0; }
  .mf-ver .mf-seta { position: absolute; bottom: 14px; }
  .mf-ver .mf-ant { left: 16px; }
  .mf-ver .mf-prox { right: 16px; }
  .mf-ver img { max-height: calc(100vh - 140px); }
}
@media (prefers-reduced-motion: reduce) {
  .mf-trilho { animation: none; }
  .mf-faixa { overflow-x: auto; }
  .mf-cartao[aria-hidden="true"] { display: none; }
}
.mf .mf-topo a { color: inherit; text-decoration: none; }
.mf .mf-topo a:hover b { text-decoration: underline; text-underline-offset: 3px; }
