:root{
  --mf-font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --mf-font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.mf-formatrices-wrap,
.mf-profile{
  --mf-gap: 24px;
  color: var(--mf-accent, #261B15);
  font-family: var(--mf-font-sans);
}
.mf-formatrices-wrap a,
.mf-profile a{ text-decoration:none; }
.mf-card__button,
.mf-program-card__button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  padding:14px 28px;
  background:#000;
  color:#fff;
  border:1px solid #000;
  transition:all .25s ease;
  font-weight:600;
}
.mf-card__button:hover,
.mf-program-card__button:hover{
  background:transparent;
  color:#000;
}

/* Archive / listing */
.mf-formatrices-wrap{ max-width:1280px; margin:0 auto; padding:20px 20px 80px; }
.mf-formatrices-toolbar{ display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:34px; flex-wrap:wrap; }
.mf-filter-group--buttons{ display:flex; flex-wrap:wrap; gap:14px; align-items:center; }
.mf-filter-chip,
.mf-filter-select{
  min-height:48px;
  border:1px solid rgba(38,27,21,.2);
  background:#fff;
  color:#000;
  padding:0 22px;
  font-size:15px;
}
.mf-filter-select{
  -webkit-appearance:none;
  appearance:none;
  cursor:pointer;
  min-width:180px;
  padding-right:52px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M2.25 4.75 7 9.25l4.75-4.5' fill='none' stroke='%23261B15' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 18px center;
  background-size:14px 14px;
}
.mf-filter-select:focus,
.mf-filter-select.is-open{
  outline:none;
  border-color:rgba(38,27,21,.45);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M2.25 9.25 7 4.75l4.75 4.5' fill='none' stroke='%23261B15' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.mf-filter-chip{ cursor:pointer; }
.mf-filter-chip.is-active,
.mf-filter-chip:hover{ background:#000; color:#fff; border-color:#000; }
.mf-filter-group--selects{ display:flex; gap:14px; flex-wrap:wrap; align-items:center; }
.mf-formatrices-grid{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:54px 34px; }
.mf-card{ color:var(--mf-accent, #261B15); }
.mf-card__image-link{ display:block; }
.mf-card__image{ aspect-ratio: 0.82 / 1; background:#f0ece8; overflow:hidden; }
.mf-card__image img,.mf-card__placeholder{ width:100%; height:100%; object-fit:cover; display:block; }
.mf-card__body{ padding-top:14px; }
.mf-card__title{ margin:0 0 10px; font-family:var(--mf-font-serif); font-size:30px; line-height:1; font-weight:400; }
.mf-card__title-link,.mf-card__title-link:visited{ color:inherit; }
.mf-card__cityline,
.mf-profile-bio__meta{ display:flex; flex-wrap:wrap; align-items:center; gap:12px; font-size:12px; letter-spacing:.24em; text-transform:uppercase; color:rgba(38,27,21,.5); }
.mf-card__specialite::before,
.mf-profile-bio__meta span + span::before{ content:"•"; margin-right:12px; }
.mf-profile-bio__meta span + span::before{ margin-left:0; }
.mf-card__excerpt{ margin-top:22px; color:rgba(38,27,21,.82); line-height:1.85; font-size:14px; }
.mf-card__button{ margin-top:24px; }
.mf-empty-state{ margin-top:20px; }

/* Single profile */
.mf-single-template__inner,
.mf-profile{ max-width:1280px; margin:0 auto; padding:25px 20px 100px; }
.mf-profile-hero{ display:grid; grid-template-columns:minmax(0, 1.05fr) minmax(0, .95fr); gap:64px; align-items:start; }
.mf-profile-hero__media-wrap{ min-width:0; }
.mf-profile-hero__media img{ width:100%; display:block; height:auto; object-fit:cover; }
.mf-profile-hero__content{ padding-top:90px; }
.mf-profile-hero__title{ margin:0 0 22px; font-family:var(--mf-font-serif); font-size:78px; line-height:.95; font-weight:400; color:var(--mf-accent, #261B15); }
.mf-profile-hero__meta{ margin-bottom:22px; }
.mf-profile-hero__text{ max-width:720px; color:rgba(38,27,21,.82); font-size:16px; line-height:1.95; }
.mf-profile-hero__text p{ margin:0 0 16px; }
.mf-profile-hero__text + .mf-profile-hero__button{ margin-top:40px; }
.mf-profile-hero__button{ margin-top:42px; }


/* Contact & social links */
.mf-profile-whatsapp-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  background:#000 !important;
  border-color:#000 !important;
  color:#fff !important;
}
.mf-profile-whatsapp-button:hover{
  background:#000 !important;
  color:#fff !important;
  opacity:.88;
}
.mf-profile-whatsapp-button img{
  width:28px;
  height:28px;
  display:block;
  object-fit:contain;
  filter:none;
}

.mf-profile-socials{
  margin-top:18px;
}
.mf-profile-socials__title{
  margin:0 0 10px;
  font-size:14px;
  line-height:1.2;
  font-weight:600;
  color:#000;
}
.mf-profile-socials__icons{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.mf-profile-socials__icons a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:22px;
  height:22px;
  transition:opacity .25s ease, transform .25s ease;
}
.mf-profile-socials__icons a:hover{
  opacity:.65;
  transform:translateY(-1px);
}
.mf-profile-socials__icons img{
  width:18px;
  height:18px;
  display:block;
  object-fit:contain;
}

.mf-card__button,
.mf-program-card__button{
  background:#000 !important;
  border-color:#000 !important;
  color:#fff !important;
}
.mf-card__button:hover,
.mf-program-card__button:hover{
  background:#000 !important;
  border-color:#000 !important;
  color:#fff !important;
  opacity:.88;
}

.mf-profile-gallery-section{ margin-top:56px; width:100%; }
.mf-profile-gallery-section--full{
  clear:both;
  width:min(1280px, calc(100vw - 80px));
  max-width:100%;
  box-sizing:border-box;
  margin-left:auto;
  margin-right:auto;
}
.mf-profile-gallery-header,
.mf-profile-gallery,
.mf-profile-gallery-arrows--below{
  width:100%;
  margin-left:auto;
  margin-right:auto;
}
.mf-profile-gallery-header,
.mf-profile-carousel-header{ display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:18px; }
.mf-profile-gallery-title,
.mf-profile-carousel-title,
.mf-profile-bio__title{ margin:0; font-family:var(--mf-font-serif); font-size:62px; line-height:1; font-weight:400; color:var(--mf-accent, #261B15); }
.mf-profile-gallery-arrows,
.mf-profile-carousel-arrows{ display:flex; gap:10px; flex-shrink:0; }
.mf-profile-gallery-header{ justify-content:center; margin-bottom:24px; }
.mf-profile-gallery-header .mf-profile-gallery-title{ text-align:center; width:100%; }
.mf-profile-gallery-arrows--below{ display:flex; justify-content:flex-end; gap:10px; margin-top:18px; }
.mf-carousel-arrow{
  width:44px; height:44px; display:inline-flex; align-items:center; justify-content:center;
  border:1px solid rgba(38,27,21,.35); background:#fff; color:var(--mf-accent, #261B15); cursor:pointer; transition:all .25s ease;
}
.mf-carousel-arrow:hover{ background:#000; color:#fff; border-color:#000; }

.mf-profile-gallery{
  --mf-gallery-gap: 18px;
  display:flex;
  gap:var(--mf-gallery-gap);
  overflow-x:auto;
  overflow-y:hidden;
  scroll-behavior:smooth;
  scrollbar-width:none;
  -ms-overflow-style:none;
  align-items:flex-start;
  padding-bottom:8px;
  scroll-snap-type:x mandatory;
  width:100%;
  margin-left:auto;
  margin-right:auto;
}
.mf-profile-gallery::-webkit-scrollbar,
.mf-profile-carousel::-webkit-scrollbar{ display:none; }
.mf-profile-gallery__item{
  flex:0 0 calc((100% - (var(--mf-gallery-gap) * 4)) / 4.3333);
  min-width:0;
  scroll-snap-align:start;
  display:block;
  position:relative;
  overflow:hidden;
}
.mf-profile-gallery__item::after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(38,27,21,.08);
  opacity:0;
  transition:opacity .25s ease;
  pointer-events:none;
}
.mf-profile-gallery__item:hover::after{ opacity:1; }
.mf-profile-gallery__item img{ width:100%; aspect-ratio:.78/1; object-fit:cover; display:block; transition:transform .35s ease; }
.mf-profile-gallery__item:hover img{ transform:scale(1.02); }

.mf-profile-bio{ max-width:940px; margin:72px auto 0; text-align:center; }
.mf-profile-bio__content{ margin:22px auto 0; max-width:940px; color:rgba(38,27,21,.82); font-size:16px; line-height:1.95; text-align:justify; text-align-last:center; }
.mf-profile-bio__content p{ margin:0 0 16px; }

.mf-profile-carousel-section{ margin-top:86px; }
.mf-profile-carousel-header{ margin-bottom:28px; }
.mf-profile-carousel{
  --mf-gap: 18px;
  display:flex; gap:var(--mf-gap); overflow-x:auto; overflow-y:hidden; scroll-behavior:smooth; scrollbar-width:none; -ms-overflow-style:none;
  align-items:flex-start; padding-bottom:12px;
}
.mf-program-card{
  flex:0 0 calc((100% - (var(--mf-gap) * 4)) / 4.3333);
  min-width:0;
}
.mf-program-card__image{ width:100%; aspect-ratio:1/1; background:var(--mf-accent, #261B15); overflow:hidden; }
.mf-program-card__image img{ width:100%; height:100%; object-fit:cover; display:block; }
.mf-program-card__body{ padding-top:18px; text-align:center; }
.mf-program-card__title{ margin:0 0 12px; font-family:var(--mf-font-serif); font-size:20px; line-height:1.18; font-weight:400; color:var(--mf-accent, #261B15); }
.mf-program-card__text{ margin:0 0 16px; color:rgba(38,27,21,.82); font-size:14px; line-height:1.7; }
.mf-program-card__button{ margin-top:6px; }

/* Lightbox portfolio */
.mf-lightbox[hidden]{ display:none !important; }
.mf-lightbox{
  position:fixed;
  inset:0;
  z-index:99999;
  background:rgba(20,14,11,.92);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:32px;
}
.mf-lightbox__backdrop{
  position:absolute;
  inset:0;
  background:transparent;
  border:0;
  cursor:pointer;
}
.mf-lightbox__dialog{
  position:relative;
  z-index:2;
  width:min(92vw, 1180px);
  max-height:90vh;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  justify-items:center;
  gap:16px;
}
.mf-lightbox__image-wrap{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
}
.mf-lightbox__image{
  max-width:100%;
  max-height:76vh;
  width:auto;
  height:auto;
  object-fit:contain;
  box-shadow:0 20px 60px rgba(0,0,0,.28);
  background:#fff;
}
.mf-lightbox__close,
.mf-lightbox__prev,
.mf-lightbox__next{
  position:absolute;
  z-index:3;
  width:52px;
  height:52px;
  border:1px solid rgba(255,255,255,.45);
  background:rgba(255,255,255,.06);
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:all .25s ease;
}
.mf-lightbox__close:hover,
.mf-lightbox__prev:hover,
.mf-lightbox__next:hover{
  background:#fff;
  color:var(--mf-accent, #261B15);
}
.mf-lightbox__close{ top:-6px; right:-6px; }
.mf-lightbox__prev{ left:24px; top:50%; transform:translateY(-50%); }
.mf-lightbox__next{ right:24px; top:50%; transform:translateY(-50%); }
.mf-lightbox__caption{
  color:#fff;
  font-size:14px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
body.mf-lightbox-open{ overflow:hidden; }

@media (min-width: 1025px){
  .mf-profile-gallery-section{ max-width:100%; margin-top:56px; }
  .mf-profile-gallery-header{ margin-bottom:22px; }
  .mf-profile-gallery-arrows--below{ justify-content:flex-end; }
}
@media (max-width: 1199px){
  .mf-profile-hero{ grid-template-columns:1fr 1fr; gap:40px; }
  .mf-profile-hero__content{ padding-top:30px; }
  .mf-profile-hero__title{ font-size:60px; }
  .mf-profile-gallery-title,
  .mf-profile-carousel-title,
  .mf-profile-bio__title{ font-size:52px; }
}

@media (max-width: 1024px){
  .mf-formatrices-toolbar{ align-items:stretch; }
  .mf-profile-gallery-section--full{ width:min(100%, calc(100vw - 32px)); }
  .mf-profile-gallery-header,
  .mf-profile-gallery,
  .mf-profile-gallery-arrows--below{ width:100%; }
  .mf-filter-group--buttons,
  .mf-filter-group--selects{ width:100%; }
  .mf-filter-group--buttons > *,
  .mf-filter-group--selects > *{ flex:1 1 220px; }
  .mf-formatrices-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:40px 24px; }
  .mf-profile-gallery-section--full{ padding-left:24px; padding-right:24px; }
  .mf-profile-gallery{ --mf-gallery-gap: 14px; }
  .mf-profile-gallery__item{ flex:0 0 calc((100% - (var(--mf-gallery-gap) * 2)) / 2.3333); }
  .mf-profile-hero{ grid-template-columns:1fr; }
  .mf-profile-hero__content{ padding-top:0; }
  .mf-profile-hero__title{ font-size:52px; }
  .mf-profile-gallery-title,
  .mf-profile-carousel-title,
  .mf-profile-bio__title{ font-size:42px; }
  .mf-program-card{ flex:0 0 calc((100% - (var(--mf-gap) * 2)) / 2.3333); }
}

@media (max-width: 767px){
  .mf-formatrices-toolbar{ gap:14px; }
  .mf-filter-group--buttons,
  .mf-filter-group--selects{ width:100%; gap:12px; }
  .mf-filter-group--buttons > *,
  .mf-filter-group--selects > *{ flex:1 1 calc(50% - 6px); min-width:0; }
  .mf-formatrices-wrap,
  .mf-single-template__inner,
  .mf-profile{ padding-left:16px; padding-right:16px; }
  .mf-formatrices-grid{ grid-template-columns:1fr; gap:34px; }
  .mf-card__title{ font-size:26px; }
  .mf-profile-hero{ gap:26px; }
  .mf-profile-hero__title{ font-size:38px; }
  .mf-profile-hero__text,
  .mf-profile-bio__content{ font-size:15px; line-height:1.85; }
  .mf-profile-gallery-title,
  .mf-profile-carousel-title,
  .mf-profile-bio__title{ font-size:30px; }
  .mf-profile-gallery-section--full{ padding-left:16px; padding-right:16px; }
  .mf-profile-gallery-header,
  .mf-profile-carousel-header{ align-items:flex-end; }
  .mf-profile-gallery-header{ margin-bottom:16px; }
  .mf-profile-gallery{ --mf-gallery-gap: 14px; }
  .mf-profile-gallery__item{ flex:0 0 calc((100% - var(--mf-gallery-gap)) / 1.3333); }
  .mf-profile-gallery-arrows--below{ justify-content:flex-end; width:100%; }
  .mf-profile-bio{ margin-top:54px; }
  .mf-profile-bio__content{ text-align:justify; text-align-last:auto; }
  .mf-profile-carousel-section{ margin-top:60px; }
  .mf-profile-carousel-header{ margin-bottom:20px; }
  .mf-profile-carousel{ --mf-gap: 14px; }
  .mf-program-card{ flex:0 0 calc((100% - var(--mf-gap)) / 1.3333); }
  .mf-profile-carousel-arrows{ justify-content:flex-end; width:100%; }
  .mf-lightbox{ padding:14px; }
  .mf-lightbox__close,
  .mf-lightbox__prev,
  .mf-lightbox__next{ width:44px; height:44px; }
  .mf-lightbox__close{ top:0; right:0; }
  .mf-lightbox__prev{ left:6px; }

  .mf-profile-whatsapp-button{
    width:100%;
    max-width:320px;
    gap:12px;
  }
  .mf-profile-whatsapp-button img{
    width:24px;
    height:24px;
  }
  .mf-profile-socials{
    margin-top:16px;
  }
  .mf-profile-socials__icons{
    gap:14px;
  }
  .mf-profile-socials__icons a{
    width:24px;
    height:24px;
  }

  .mf-lightbox__next{ right:6px; }
}
