/**
* @license
*
* Font Family: Switzer
* Designed by: Jérémie Hornus
* URL: https://www.fontshare.com/fonts/switzer
* © 2026 Indian Type Foundry
*
* Switzer Thin 
* Switzer ThinItalic 
* Switzer Extralight 
* Switzer ExtralightItalic 
* Switzer Light 
* Switzer LightItalic 
* Switzer Regular 
* Switzer Italic 
* Switzer Medium 
* Switzer MediumItalic 
* Switzer Semibold 
* Switzer SemiboldItalic 
* Switzer Bold 
* Switzer BoldItalic 
* Switzer Extrabold 
* Switzer ExtraboldItalic 
* Switzer Black 
* Switzer BlackItalic 
* Switzer Variable (Variable font)
* Switzer VariableItalic (Variable font)

*
*/
@font-face {
  font-family: 'Switzer-Thin';
  src: url('../fonts/Switzer-Thin.woff2') format('woff2'),
       url('../fonts/Switzer-Thin.woff') format('woff'),
       url('../fonts/Switzer-Thin.ttf') format('truetype');
  font-weight: 100;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Switzer-ThinItalic';
  src: url('../fonts/Switzer-ThinItalic.woff2') format('woff2'),
       url('../fonts/Switzer-ThinItalic.woff') format('woff'),
       url('../fonts/Switzer-ThinItalic.ttf') format('truetype');
  font-weight: 100;
  font-display: swap;
  font-style: italic;
}
@font-face {
  font-family: 'Switzer-Extralight';
  src: url('../fonts/Switzer-Extralight.woff2') format('woff2'),
       url('../fonts/Switzer-Extralight.woff') format('woff'),
       url('../fonts/Switzer-Extralight.ttf') format('truetype');
  font-weight: 200;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Switzer-ExtralightItalic';
  src: url('../fonts/Switzer-ExtralightItalic.woff2') format('woff2'),
       url('../fonts/Switzer-ExtralightItalic.woff') format('woff'),
       url('../fonts/Switzer-ExtralightItalic.ttf') format('truetype');
  font-weight: 200;
  font-display: swap;
  font-style: italic;
}
@font-face {
  font-family: 'Switzer-Light';
  src: url('../fonts/Switzer-Light.woff2') format('woff2'),
       url('../fonts/Switzer-Light.woff') format('woff'),
       url('../fonts/Switzer-Light.ttf') format('truetype');
  font-weight: 300;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Switzer-LightItalic';
  src: url('../fonts/Switzer-LightItalic.woff2') format('woff2'),
       url('../fonts/Switzer-LightItalic.woff') format('woff'),
       url('../fonts/Switzer-LightItalic.ttf') format('truetype');
  font-weight: 300;
  font-display: swap;
  font-style: italic;
}
@font-face {
  font-family: 'Switzer-Regular';
  src: url('../fonts/Switzer-Regular.woff2') format('woff2'),
       url('../fonts/Switzer-Regular.woff') format('woff'),
       url('../fonts/Switzer-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Switzer-Italic';
  src: url('../fonts/Switzer-Italic.woff2') format('woff2'),
       url('../fonts/Switzer-Italic.woff') format('woff'),
       url('../fonts/Switzer-Italic.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
  font-style: italic;
}
@font-face {
  font-family: 'Switzer-Medium';
  src: url('../fonts/Switzer-Medium.woff2') format('woff2'),
       url('../fonts/Switzer-Medium.woff') format('woff'),
       url('../fonts/Switzer-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Switzer-MediumItalic';
  src: url('../fonts/Switzer-MediumItalic.woff2') format('woff2'),
       url('../fonts/Switzer-MediumItalic.woff') format('woff'),
       url('../fonts/Switzer-MediumItalic.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
  font-style: italic;
}
@font-face {
  font-family: 'Switzer-Semibold';
  src: url('../fonts/Switzer-Semibold.woff2') format('woff2'),
       url('../fonts/Switzer-Semibold.woff') format('woff'),
       url('../fonts/Switzer-Semibold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Switzer-SemiboldItalic';
  src: url('../fonts/Switzer-SemiboldItalic.woff2') format('woff2'),
       url('../fonts/Switzer-SemiboldItalic.woff') format('woff'),
       url('../fonts/Switzer-SemiboldItalic.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
  font-style: italic;
}
@font-face {
  font-family: 'Switzer-Bold';
  src: url('../fonts/Switzer-Bold.woff2') format('woff2'),
       url('../fonts/Switzer-Bold.woff') format('woff'),
       url('../fonts/Switzer-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Switzer-BoldItalic';
  src: url('../fonts/Switzer-BoldItalic.woff2') format('woff2'),
       url('../fonts/Switzer-BoldItalic.woff') format('woff'),
       url('../fonts/Switzer-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
  font-style: italic;
}
@font-face {
  font-family: 'Switzer-Extrabold';
  src: url('../fonts/Switzer-Extrabold.woff2') format('woff2'),
       url('../fonts/Switzer-Extrabold.woff') format('woff'),
       url('../fonts/Switzer-Extrabold.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Switzer-ExtraboldItalic';
  src: url('../fonts/Switzer-ExtraboldItalic.woff2') format('woff2'),
       url('../fonts/Switzer-ExtraboldItalic.woff') format('woff'),
       url('../fonts/Switzer-ExtraboldItalic.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
  font-style: italic;
}
@font-face {
  font-family: 'Switzer-Black';
  src: url('../fonts/Switzer-Black.woff2') format('woff2'),
       url('../fonts/Switzer-Black.woff') format('woff'),
       url('../fonts/Switzer-Black.ttf') format('truetype');
  font-weight: 900;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Switzer-BlackItalic';
  src: url('../fonts/Switzer-BlackItalic.woff2') format('woff2'),
       url('../fonts/Switzer-BlackItalic.woff') format('woff'),
       url('../fonts/Switzer-BlackItalic.ttf') format('truetype');
  font-weight: 900;
  font-display: swap;
  font-style: italic;
}
/**
* This is a variable font
* You can control variable axes as shown below:
* font-variation-settings: wght 400.0;
*
* available axes:
'wght' (range from 100.0 to 900.0
*/
@font-face {
  font-family: 'Switzer-Variable';
  src: url('../fonts/Switzer-Variable.woff2') format('woff2'),
       url('../fonts/Switzer-Variable.woff') format('woff'),
       url('../fonts/Switzer-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}
/**
* This is a variable font
* You can control variable axes as shown below:
* font-variation-settings: wght 400.0;
*
* available axes:
'wght' (range from 100.0 to 900.0
*/
@font-face {
  font-family: 'Switzer-VariableItalic';
  src: url('../fonts/Switzer-VariableItalic.woff2') format('woff2'),
       url('../fonts/Switzer-VariableItalic.woff') format('woff'),
       url('../fonts/Switzer-VariableItalic.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
  font-style: italic;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Switzer-Variable';
  font-weight: 300;
  background: ghostwhite;
  min-height: 100vh;
  padding: 1rem;
}

a {
  color: #161616;
  text-decoration: none;
}
a:hover { color:grey; }

nav {
  font-family: 'Switzer-Regular';
  font-size: 2rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 2rem;
}

footer{
  font-size: 1rem;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 1rem;
}

.menu h2 {
  font-family: 'Switzer-Regular';
  font-size: 2rem;
  font-weight: 300;
  line-height: 1.4;
  margin-bottom: 0.3rem;
}

/* ── Modais ── */
.modal,
.modal-info {
  display: none;
  position: fixed;
  z-index: 101;
  background: ghostwhite;
  border: 0.5px solid #b0afaa;
}

.modal {
  top: 1rem;
  right: calc(47vw + 1rem);
  width: 50vw;
  min-width: 260px;
}

.modal-info {
  top: 1rem;
  right: 1rem;
  width: 47vw;
  min-width: 200px;
  z-index: 102;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

/* botões dentro dos modais */
.modal button,
.modal-info button {
  font-family: 'Figtree', sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  background: none;
  border: none;
  cursor: pointer;
  color: #161616;
  letter-spacing: 0.04em;
}
.modal button:hover,
.modal-info button:hover { color:grey; }

.modal-header {
  display: flex;
  justify-content: flex-end;
  padding: 5px 8px;
  border-bottom: 0.5px solid #b0afaa;
}

/* cabeçalho do modal-info */
.modal-info > button:first-child {
  display: block;
  width: 100%;
  text-align: right;
  padding: 5px 8px;
  border-bottom: 0.5px solid #b0afaa;
  margin-bottom: 0;
}

.info-imagens {
  border: 0.5px solid #b0afaa;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0.8rem 0;
}

.info-imagens img {
  width: 100%;
  height: auto;
  display: block;
}

.info-slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin: 0.8rem 0;
}

.info-slideshow .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.info-slideshow .slide.active { opacity: 1; }

/* ── Slideshow ── */
.slideshow {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #e0dfd9;
}

.slide {
  position: relative;
  width: 100%;
  height: auto;
  display: none;
  object-fit: contain;
}

.slide.active {
  display: block;
}

/* vídeo */
video.slide {
  width: 100%;
  height: auto;
  display: none;
}

video.slide.active {
  display: block;
}

/* ── Texto do modal-info ── */
.modal-info h3,
.modal-info p {
  padding: 0 0.8rem;
}

.modal-info h3 {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  margin-top: 0.8rem;
  margin-bottom: 0.4rem;
}

.modal-info p {
  font-size: 0.8rem;
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 0.8rem;
}

/* -- CV -- */

.row {
  display: flex;
  gap: 1rem;
  padding: 0rem;
  margin-bottom: 0.8rem;
}

.column {
  flex: 1;
}

/* ── Mobile ── */
@media (max-width: 768px) {

  nav {
    font-size: 1.1rem;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .menu h2 {
    font-size: 1rem;
  }

  /*
   * Mobile modal strategy:
   * — Um overlay cobre o ecrã e tem scroll vertical.
   * — O modal de media (imagem/vídeo) aparece no topo, em 3:4, largura total.
   * — O modal-info aparece logo abaixo, sem altura máxima, para dar scroll natural.
   * — Fazer scroll para baixo "empurra" o media para fora de vista.
   */

  /* overlay de fundo que ocupa o viewport e permite scroll */
  #mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: ghostwhite;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  #mobile-overlay.active {
    display: block;
  }

  /* modal-info dentro do overlay: bloco normal em fluxo */
  #mobile-overlay .modal-info {
    position: relative;
    display: block;
    width: 100%;
    top: unset;
    right: unset;
    left: unset;
    bottom: unset;
    min-width: unset;
    border-left: none;
    border-right: none;
    border-top: none;
  }

  /* modal de media: largura total, altura definida pela proporção 3:4 */
  #mobile-overlay .modal {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    top: unset;
    right: unset;
    left: unset;
    bottom: unset;
    min-width: unset;
    overflow: visible;
    border: none;
    border-bottom: 0.5px solid #b0afaa;
  }

  #mobile-overlay .modal .modal-header {
    position: relative;
    z-index: 2;
  }

  #mobile-overlay .modal .slideshow {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
  }

  #mobile-overlay .modal .slideshow .slide,
  #mobile-overlay .modal .slideshow video.slide {
    position: relative;
    width: 100%;
    height: auto;
    display: none;
  }

  #mobile-overlay .modal .slideshow .slide.active,
  #mobile-overlay .modal .slideshow video.slide.active {
    display: block;
  }

  /* modal-info: fluxo normal, sem altura máxima, scroll livre */
  #mobile-overlay .modal-info {
    max-height: unset;
    overflow-y: visible;
    border-top: 0.5px solid #b0afaa;
  }

  /* CV abre como overlay próprio fixo, sem modal de media */
  #cv.modal-info {
    position: fixed;
    inset: 0;
    width: 100%;
    max-height: 100vh;
    overflow-y: auto;
    z-index: 200;
    border: none;
  }

  /* CV two-column layout → single column on mobile */
  .row {
    flex-direction: column;
  }
}