/* Additions use the site's existing Montserrat, Playfair Display, navy and gold. */
#clientes { scroll-margin-top: 100px; }
#casos { scroll-margin-top: 80px; }
.mf-instagram-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: -34px auto 58px; padding: 13px 20px; border: 1px solid #b8975880; border-radius: 3px; color: #d3b47c; background: #0d141d; font-size: 13px; line-height: 1.5; letter-spacing: .04em; text-decoration: none; transition: color .2s, border-color .2s, background .2s; }
.mf-instagram-link:hover { color: #fff; border-color: #d3b47c; background: #121b27; }
.mf-instagram-link:focus-visible { outline: 2px solid #d3b47c; outline-offset: 5px; }
.mf-clients-title { margin-bottom: 18px; }
.mf-clients-hint { position: relative; z-index: 20; padding: 0 24px; text-align: center; color: #747474; font-size: 14px; line-height: 1.7; }
#clientes .carrossel { margin-top: 24px; overflow-x: hidden; overflow-y: hidden; scroll-behavior: auto; overflow-anchor: none; scrollbar-width: none; }
#clientes .carrossel::-webkit-scrollbar { height: 0; }
#clientes .carrossel-wrapper { align-items: flex-start; padding-block: 14px; gap: 14px; animation: none; transform: none; }
#clientes .mf-client { cursor: pointer; padding: 0; border: 0; background: none; text-align: center; }
.mf-client-photo { display: block; position: relative; border-radius: 12px; overflow: hidden; }
#clientes .mf-client img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
#clientes .nome { opacity: 1; font-size: 12px; font-weight: 500; padding: 20px 3px 7px; line-height: 1.25; border-radius: 0; background: linear-gradient(transparent, #050505e6); }
.mf-client-link { display: block; margin-top: 9px; color: #886731; font-size: 12px; line-height: 1.5; white-space: nowrap; }
#clientes .mf-client:hover, #clientes .mf-client:focus-visible { transform: none; }
#clientes .mf-client:focus-visible .mf-client-photo { outline: 2px solid #b89758; outline-offset: 3px; }
.mf-clients-actions { position: relative; z-index: 20; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 28px; padding: 14px 24px 30px; }
.mf-text-button { color: #886731; font-size: 14px; padding: 9px 0; border-bottom: 1px solid #b8975870; cursor: pointer; }
.mf-pause-button { color: #777; font-size: 12px; cursor: pointer; padding: 10px 0; }

.mf-dialog, .mf-viewer { padding: 0; width: min(1180px, calc(100vw - 48px)); height: min(94dvh, 1200px); max-width: none; max-height: none; margin: auto; border: 1px solid #b8975845; border-radius: 14px; color: #fff; background: #0a0f16; font-family: var(--font-sans, Montserrat, sans-serif); box-shadow: 0 32px 120px #000a; overflow: hidden; }
.mf-dialog::backdrop, .mf-viewer::backdrop { background: #000c; backdrop-filter: blur(7px); }
.mf-dialog-layout, .mf-viewer-layout { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.mf-dialog-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; padding: 14px 30px; border-bottom: 1px solid #ffffff12; background: #0a0f16; }
.mf-dialog-brand { font-family: var(--font-serif, 'Playfair Display', serif); font-size: 14px; color: #d3b47c; letter-spacing: .08em; }
.mf-close-button, .mf-back-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer; min-height: 44px; font-size: 14px; line-height: 1.4; color: #dedede; border: 0; background: transparent; padding: 6px 2px; }
.mf-close-button span { color: #d3b47c; font-size: 26px; line-height: 1; }
.mf-back-button:hover, .mf-close-button:hover, .mf-footer-back:hover { color: #d3b47c; }
.mf-dialog-scroll, .mf-viewer-scroll { overflow: auto; overscroll-behavior: contain; min-height: 0; flex: 1; scrollbar-color: #6a5a3f #0a0f16; }
.mf-project-header { padding: 42px 44px 34px; }
.mf-eyebrow { color: #c7a56a; font-size: 12px; letter-spacing: .16em; line-height: 1.7; margin: 0 0 14px; }
.mf-project-header h2 { font-family: var(--font-serif, 'Playfair Display', serif); font-size: clamp(30px, 4.2vw, 52px); font-weight: 400; line-height: 1.15; letter-spacing: -.015em; margin: 0; max-width: 760px; color: #fff; outline: none; }
.mf-project-subtitle { color: #a5a9af; font-size: 14px; line-height: 1.7; margin: 18px 0 0; }
.mf-project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 24px; padding: 0 44px 48px; }
.mf-project-card { text-align: left; min-width: 0; padding: 0; border: 0; color: #fff; cursor: pointer; background: transparent; }
.mf-project-cover { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: #131a25; border: 1px solid #ffffff12; }
.mf-project-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.mf-project-card:hover img { transform: scale(1.04); }
.mf-project-card-caption { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; font-size: 14px; line-height: 1.5; }
.mf-project-card-caption > span:last-child { color: #c7a56a; font-size: 21px; }
.mf-artworks { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 20px; padding: 0 44px 32px; }
.mf-artwork { margin: 0; min-width: 0; }
.mf-artwork-button { display: block; width: 100%; position: relative; padding: 0; background: #121923; border: 1px solid #ffffff10; border-radius: 3px; overflow: hidden; cursor: zoom-in; }
.mf-artwork img { display: block; width: 100%; height: auto; }
.mf-expand-label { position: absolute; right: 12px; bottom: 12px; padding: 8px 12px; font-size: 12px; line-height: 1.4; border: 1px solid #ffffff35; background: #0a0f16e6; color: white; border-radius: 3px; opacity: 0; transition: opacity .2s; }
.mf-artwork-button:hover .mf-expand-label, .mf-artwork-button:focus-visible .mf-expand-label { opacity: 1; }
.mf-image-error { min-height: 180px; padding: 24px; background: #121923; color: #aaa; font-size: 14px; line-height: 1.7; }
.mf-image-error a { color: #d3b47c; text-decoration: underline; }
.mf-project-footer { border-top: 1px solid #ffffff12; margin: 12px 44px 0; padding: 36px 0 44px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.mf-project-footer p { font-family: var(--font-serif, 'Playfair Display', serif); font-size: 25px; color: #e6e6e6; line-height: 1.4; margin: 0 0 24px; }
.mf-gold-button { display: inline-block; color: #0a0f16; background: #c7a56a; border: 1px solid #c7a56a; border-radius: 3px; padding: 16px 24px; font-size: 14px; font-weight: 500; line-height: 1.5; text-decoration: none; }
.mf-gold-button:hover { background: #d7b77d; }
.mf-footer-back { color: #a5a9af; cursor: pointer; padding: 16px; margin-top: 8px; font-size: 14px; }
.mf-viewer { width: min(1540px, calc(100vw - 24px)); height: 96dvh; }
.mf-viewer-scroll img { display: block; width: 100%; height: auto; margin: auto; }
.mf-dialog button:focus-visible, .mf-viewer button:focus-visible, .mf-dialog a:focus-visible, #clientes > .mf-clients-actions button:focus-visible { outline: 2px solid #d3b47c; outline-offset: 5px; border-radius: 3px; }
@media (max-width: 767px) {
  .mf-instagram-link { margin: -24px 20px 46px; padding: 12px 16px; text-align: center; }
  #clientes .slide { width: 108px; }
  #clientes .carrossel { mask-image: linear-gradient(90deg, transparent, #000 5% 95%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 5% 95%, transparent); }
  .mf-dialog, .mf-viewer { width: 100%; height: 100dvh; border-radius: 0; border: 0; }
  .mf-dialog-bar { padding: 10px 20px; min-height: 64px; }
  .mf-dialog-brand { font-size: 12px; letter-spacing: .04em; }
  .mf-project-header { padding: 32px 22px 26px; }
  .mf-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 22px 32px; gap: 24px 16px; }
  .mf-artworks { grid-template-columns: minmax(0, 1fr); padding: 0 12px 24px; gap: 16px; }
  .mf-expand-label { opacity: 1; right: 8px; bottom: 8px; }
  .mf-project-footer { margin-inline: 22px; padding-bottom: 30px; }
  .mf-project-card-caption { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .mf-project-card img, #clientes .slide { transition: none; }
}

/* The track never resets or hides copies when paused, focused or opened. */
#clientes .mf-paused { overflow-x: auto; scrollbar-width: thin; scrollbar-color: #b89758 #efefef; }
#clientes .mf-paused::-webkit-scrollbar { height: 8px; }
#clientes .mf-paused::-webkit-scrollbar-track { background: #efefef; }
#clientes .mf-paused::-webkit-scrollbar-thumb { background: #b89758; border-radius: 8px; }
