:root {
	--bg: #f7f7f7;
	--fg: #0b0b0b;
	--muted: #6a6a6a;
	--border: #eaeaea;
	--brand: #0b0b0b;
	--spacing-0: clamp(4px, 0.5vw, 6px);
	--spacing-1: clamp(8px, 1vw, 12px);
	--spacing-2: clamp(12px, 1.5vw, 18px);
	--spacing-3: clamp(16px, 2vw, 24px);
	--radius: 5px;
	--shadow: 0 2px 24px rgba(0,0,0,0.06);
}


/* Estilização do scroll */
/* *********************************************************************** */
/* width */
::-webkit-scrollbar {
  width: 6px;
}

/* Track */
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px rgb(128, 128, 128); 
  border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: rgb(139, 139, 139); 
  border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
	background: rgb(102, 102, 102); 
}
/* *********************************************************************** */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
	margin: 0;
	font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
	color: var(--fg);
	background: var(--bg);
}
.logo-container {
    text-align: center;
	margin-bottom: 20px;
	img {
		width: 120px;
		height: auto;
		border-radius: 50%;
		margin-top: 20px;
		margin-bottom: 10px;
	}
}
.container { max-width: 1080px; margin: 0 auto; padding: 0 var(--spacing-2); }

.site-header { 
    position: relative;
	top: 50px;
    transform: translateY(0);
    opacity: 1;
    box-shadow: var(--shadow);
    z-index: 100;
}

.site-header:not(.fixo) {
	transform: translateY(-100%);
	background-color: #efefef;
}

.site-header.fixo {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg);
    box-shadow: var(--shadow);
    z-index: 100;
	opacity: 1;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-header .container { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--spacing-1); padding: var(--spacing-2) 0; }
.brand { font-weight: 600; text-decoration: none; color: var(--brand); letter-spacing: 0.5px; position: relative; padding-bottom: 6px; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: var(--spacing-2); }
.site-nav a { color: var(--fg); text-decoration: none; position: relative; padding-bottom: 6px; }
.site-nav a:hover { opacity: 0.7; }

/* sublinhado discreto para item ativo */
.site-nav a.active::after,
.brand.active::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 2px;
	background: var(--fg);
	border-radius: 2px;
}

.site-main { padding: var(--spacing-3) 10px; }

/* Masonry usando colunas para efeito fluido */
.masonry {
	column-gap: var(--spacing-1);
}
@media (min-width: 340px) { .masonry { column-count: 2; } }
@media (min-width: 640px) { .masonry { column-count: 3; } }
@media (min-width: 900px) { .masonry { column-count: 4; } }
@media (min-width: 1200px) { .masonry { column-count: 5; } }

.project-card { display: inline-block; width: 100%; margin: 0 0 var(--spacing-0); break-inside: avoid; }
.project-card a { display: block; text-decoration: none; color: inherit; }
.project-card .cover {
	width: 100%;
	display: block;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	background: #f6f6f6;
	/* aspect-ratio: 4 / 3; */
	object-fit: cover;
	transition: transform 240ms ease, opacity 240ms ease;
}
.project-card:hover .cover { transform: scale(1.02); }
.project-card .title { font-size: clamp(14px, 2.2vw, 18px); margin-top: var(--spacing-1); }
.project-card .meta { font-size: clamp(12px, 2vw, 14px); color: var(--muted); margin-top: 4px; }

/* Página do projeto */
.project-hero { padding-bottom: var(--spacing-3); margin-bottom: var(--spacing-3); }
.project-hero h1 { font-size: clamp(24px, 4vw, 30px); margin: 0 0 var(--spacing-1); font-weight: 400; text-align: center; color: #393939;}
.project-hero .slogan { color: var(--muted); font-size: clamp(14px, 2.2vw, 18px); text-align: center; }
.project-hero .desc { margin-top: var(--spacing-2); max-width: 72ch; line-height: 1.6; display: none; }

.gallery { column-gap: var(--spacing-0); }
@media (min-width: 340px) { .gallery { column-count: 2; } }
@media (min-width: 700px) { .gallery { column-count: 3; } }
@media (min-width: 1100px) { .gallery { column-count: 4; } }
.gallery figure { display: inline-block; width: 100%; margin: 0 0 var(--spacing-0); break-inside: avoid; }
.gallery img { width: 100%; height: auto; display: block; border-radius: var(--radius); box-shadow: var(--shadow); background: #f6f6f6; }
.gallery figcaption { font-size: clamp(12px, 2vw, 14px); color: var(--muted); margin-top: 6px; }

.site-footer { border-top: 1px solid var(--border); padding: var(--spacing-3) 0; color: var(--muted); }

/* Lightbox */
.lightbox {
	position: fixed;
	inset: 0;
	display: none;
	place-items: center;
	z-index: 1000;
}
.lightbox.open { display: grid; }
.lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.7);
}
.lightbox-content {
	position: relative;
	max-width: 92vw;
	max-height: 92vh;
	display: grid;
	grid-template-areas:
		'prev img next'
		'cap cap cap';
	grid-template-columns: auto 1fr auto;
	gap: var(--spacing-2);
	align-items: center;
}
.lightbox-img {
	grid-area: img;
	max-width: 82vw;
	max-height: 82vh;
	width: auto;
	height: auto;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
.lightbox-caption {
	grid-area: cap;
	color: #e8e8e8;
	text-align: center;
	margin-top: var(--spacing-1);
}
.lightbox-btn,
.lightbox-close {
	appearance: none;
	border: 0;
	background: rgba(255,255,255,0.1);
	color: white;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	display: grid;
	place-items: center;
	cursor: pointer;
}
.lightbox-prev { grid-area: prev; }
.lightbox-next { grid-area: next; }
.lightbox-close {
	position: absolute;
	top: -16px;
	right: -16px;
}


/* Project inline carousel */
.project-carousel {
	padding: 24px 0 48px;
}
.project-carousel .container {
	max-width: none;
	width: 100%;
	height: 85vh;
	.swiper-mount {
		width: 100%;
		height: 100%;
	}
}

/* Estilos antigos (.pc-*) removidos — Swiper cuida do layout do slider */


/* Ajustes slide swiper */

/* Project inline carousel - Minimalista */

.project-carousel {
  width: 100%;
  padding: 40px 0;
}

.swiper {
  width: 100%;
  height: 9k.5vh;
}

.swiper-wrapper {
  align-items: center;
}

.swiper-slide {
	width: auto !important;   /* CRÍTICO */
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.3;
	transition: opacity 0.3s ease;
}

.swiper-slide-active {
  opacity: 1;
}

/* .swiper-slide {
  display: flex;  
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  opacity: 0.3;
} */

/* .swiper-slide-active {
  opacity: 1;
} */

.swiper-slide img {
  height: 90vh;            /* ALTURA PADRÃO */
  width: auto;              /* LARGURA CALCULADA */
  max-width: none;          /* NÃO limitar */
  object-fit: contain;
  display: block;
}

/* Mobile */
@media (max-width: 640px) {
  .swiper-slide img {
    height: 80vh;
  }
}

/* Botões de navegação minimalistas */
.swiper-button-next, 
.swiper-button-prev {
  color: var(--muted);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.575);
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
  padding: 12px;
}

.swiper-button-next:hover, 
.swiper-button-prev:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.05);
}

.swiper-button-next::after, 
.swiper-button-prev::after {
  font-size: 18px;
  font-weight: bold;
}

/* Paginação minimalista */
.swiper-pagination-bullet {
  background: var(--muted);
  opacity: 0.4;
  width: 8px;
  height: 8px;
  transition: all 0.2s ease;
}

.swiper-pagination-bullet-active {
  background: var(--muted);
  opacity: 1;
  width: 24px;
  border-radius: 4px;
}

/* Oculta caption */
.swiper-caption {
  display: none;
}

/* Lightbox minimalista */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(10px);
}

.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}

.lightbox .close {
position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.575);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    padding: 12px;
    color: var(--muted);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 400;
    transition: transform 0.2s ease;
    border: solid 0.1px #6a6a6a3b;


}

.lightbox .close:hover {
  transform: scale(1.1);
}