/* === ESTILOS GENERALES PARA PÁGINAS DE PROYECTOS === */
/* HEADER */
header {
	padding: 10px 40px 0;
	position: relative;
}

header nav ul {
	list-style: none;
	display: flex;
	justify-content: space-between;
	margin-top: 10px;
	padding: 0;
}

header nav li {
	display: inline-block;
}

header nav a {
	text-decoration: none;
	color: #E6D1D0;
	font-size: 14px;
	letter-spacing: 2px;
}

header nav a.active {
	font-weight: bold;
}

header .line {
	position: absolute;
	top: 50px;
	left: 0;
	width: 100vw;
	height: 1px;
	background-color: #E6D1D0;
}

body.project-page {
	background-color: #2A0913;
	color: #E6D1D0;
	font-family: 'League Spartan', sans-serif;
	margin: 0;
}

/* HEADER DEL PROYECTO (TÍTULO Y SUBTÍTULO) */
.project-header {
	text-align: center;
	margin-bottom: 0px;
	margin-top: 60px;
}

.project-header h1 {
	font-size: 48px;
	margin: 0;
	font-weight: normal;
	letter-spacing: 1px;
}

header nav a.active {
  font-weight: bold;
}

.project-header p {
	font-size: 18px;
	margin-top: 10px;
	color: #E6D1D0;
  letter-spacing: 1px;
}

/* --- MOBILE HEADER --- */
@media (max-width: 768px) {
  .project-header {
    text-align: center;
    margin-top: 100px;
    margin-bottom: 60px;
    padding: 0 20px;
  }

  .project-header h1 {
    font-size: 34px;
    line-height: 1.4;
    margin-bottom: 16px;
  }

  .project-header p {
    font-size: 16px;
    margin-top: 8px;
    color: #E6D1D0;
  }
}
/* GRID DE VIDEOS - PROYECTOS CON UN SOLO VIDEO*/

body.project-page .video-container iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  display: block;
  margin: 0 auto;
  margin-top: 10px;
  max-width: 1000px;
}

/* --- MOBILE VIDEO --- */
@media (max-width: 768px) {
  body.project-page .video-container {
    margin-top: 60px;
    margin-bottom: 80px;
    display: flex;
    justify-content: center;
  }

  body.project-page .video-container iframe {
    width: 100%;
    border-radius: 10px;
  }

  body.project-page {
    padding-bottom: 100px;
  }
}

/* GRID DE IMÁGENES — Masonry layout para proyectos con varias imágenes */
body.project-page .image-grid {
  column-count: 4;          
  column-gap: 10px;
  padding: 10px;
}

body.project-page .image-grid img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 10px;
  break-inside: avoid;    
}

/* Mobile */
@media (max-width: 1024px) {
  body.project-page .image-grid {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  body.project-page .image-grid {
    column-count: 1;
  }
}

/* === VARIACIONES SEGÚN PROYECTO === */

/* === ART DIRECTION === */

/* SKIP */

body.skip .video-grid-vertical {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  justify-content: center;
  max-width: 1200px;
  margin: 50px auto 0;
}

/* Cada video vertical */
body.skip .video-grid-vertical .video {
  width: 270px;
  height: 500px;
  overflow: hidden;
  position: relative;
}

/* iframe dentro del contenedor */
body.skip .video-grid-vertical .video iframe {
  position: absolute;
  top: 0;
  left: -50px;
  width: 400px;
  height: 500px;
}

@media (max-width: 768px) {

  body.skip .project-header h1 
    font-size: 22px;
    line-height: 1.2;
    margin-left: 20px;
    margin-top: 10px;
  }

  body.skip .project-header h1 strong {
    font-size: 30px;
  }
  
  body.skip .video-grid-vertical {
    grid-template-columns: 1fr;
    gap: 20px;
    justify-items: center;
    margin: 20px auto;
    max-width: 100%;
    padding: 0 10px;
  }

  body.skip .video-grid-vertical .video {
    width: 100%;
    max-width: 360px;
    height: 640px;
  }

  body.skip .video-grid-vertical .video iframe {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

/*NESPRESSO LISBOA  → video y grilla de imágenes  */
body.project-page.nespresso .grid-top {
  display: grid;
  grid-template-columns: 1fr 1fr; 
  gap: 10px;
  padding: 0px 50px;
  align-items: center;
}

body.project-page.nespresso .image-left img {
  width: 100%;
  height: 370px;
  object-fit: cover;
  display: block;
}

body.project-page.nespresso .video-container {
  width: 100%;
}

body.project-page.nespresso .video-container iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  display: block;
}

body.project-page.nespresso .grid-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 10px 50px 50px 50px;
}

body.project-page.nespresso .grid-bottom img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px) {

  body.project-page.nespresso .grid-top {
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    padding: 0;
    margin: 0;
  }

  /* Video */
  body.project-page.nespresso .video-container {
    margin: 0;
    padding: 0;
  }

  body.project-page.nespresso .video-container iframe {
    width: 100%;
    margin: 0;
    display: block;
  }

  /* Imagen */
  body.project-page.nespresso .image-left {
    margin: 0;
    padding: 0;
  }

  body.project-page.nespresso .image-left img {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
  }

  body.project-page.nespresso .grid-bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    margin: 10px 0;
  }

  body.project-page.nespresso .grid-bottom img {
    width: 100%;
    height: auto;
  }
}
/* === NESPRESSO COFFEE AMBASSADORS === */
body.coffee-ambassadors .video-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto 60px;
  padding: 0 20px;
  box-sizing: border-box;
}

body.coffee-ambassadors .video-container iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  border: none;
  display: block;
}

@media (max-width: 900px) {
  body.coffee-ambassadors .video-container {
    grid-template-columns: 1fr;
  }
}

/* === TNT SPORTS === */
body.tnt-sports .video-grid {
  display: grid;
  grid-template-columns: 1fr; 
  gap: 10px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 10px;
}

body.tnt-sports .video-grid .video:nth-child(2),
body.tnt-sports .video-grid .video:nth-child(3) {
  grid-column: span 1;
}

body.tnt-sports .video-grid iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  transform-origin: center;
}

@media (min-width: 900px) {
	body.tnt-sports .video-grid {
		grid-template-columns: 1fr 1fr;
	}
	body.tnt-sports .video-grid .video:first-child {
		grid-column: span 2;
	}
}

/* === MASTER ORIGINS === */
body.master-origins .image-grid {
  column-count: 3;
  column-gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
  margin-top: 10px;
}

body.master-origins .image-grid img {
  width: 100%;
  margin-bottom: 20px;
  display: block;
  object-fit: cover;
}
@media (max-width: 768px) {
  
  body.master-origins .video-container {
    margin-bottom: 10px;
  }

  body.master-origins .image-grid {
    column-count: 1;
    column-gap: 0;
    gap: 10px;
    padding: 0;
    margin: 10px 0;
  }

  body.master-origins .image-grid img {
    width: 100%;
    margin-bottom: 10px;
  }
}
/* SLICE BABY GOLF → 2 columnas */
body.slice-baby-golf .video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px; 
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 40px;
  box-sizing: border-box;
}

body.slice-baby-golf .video-grid iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
}
@media (max-width: 768px) {
  body.slice-baby-golf .video-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0;
    margin: 10px 0;
  }

  body.slice-baby-golf .video-grid iframe {
    width: 100%;
    display: block;
  }
}

/* MINGO → 2 columnas de imágenes */
body.mingo .image-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}

body.mingo .image-grid .image img {
	width: 100%;
	height: auto;
	display: block;
}
@media (max-width: 768px) {
  body.mingo .image-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.mingo .image-grid .image img {
    width: 100%;
    height: auto;
  }
}
/* MILKA HELADOS → grid de imagenes */
.milka-helados .image-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	padding: 40px 0;
}

.milka-helados .image-grid img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
}

@media (max-width: 900px) {
	.milka-helados .image-grid {
		grid-template-columns: 1fr;
	}
}

/* === STYLING === */

/* ==== TROPILLA DE INVIERNO ==== */
.tropilla-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.tropilla-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Mobile */
@media (max-width: 768px) {
  body.tropilla .tropilla-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  body.tropilla .tropilla-grid {
    grid-template-columns: 1fr;
    padding: 0 10px;
  }
}



