:root {
  --bg: #004225;
  --secondary: #FFD700;
  --light: #ffffff;
}

/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Sibila', sans-serif;
  background-color: var(--bg);
  color: var(--light);
}

.box {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* TEXT */
h1 {
  font-size: 48px;
  color: var(--secondary);
  margin-bottom: 40px;
  text-transform: uppercase;
}

.projekt-intro p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* ===============================
   BILDGRID
=============================== */
.images-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.8fr;
  gap: 30px;
  align-items: end; /* detta linjerar nederkanterna */
}

.image-item {
  display: flex;
  flex-direction: column;
}

.image-item h3 {
  font-size: 18px;
  color: var(--secondary);
  margin-bottom: 15px;
  text-transform: uppercase;
}

/* Wrapper runt varje bild – tar all tillgänglig höjd */
.image-frame {
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* bildens nederkant stannar längst ner */
  height: 400px; /* gemensam höjd */
  width: 100%;
  overflow: hidden;
}

/* Vanliga bilder */
.image-frame img {
  width: 100%;
  height: auto;
  max-height: 100%;
  display: block;
  object-fit: cover; /* fotobilder fyller ytan */
}

/* Logotyp – aldrig beskuren */
.logo-frame {
  justify-content: flex-end;
}

.logo-frame img {
  object-fit: contain;
  height: auto;
  max-height: 100%;
  display: block;
}

/* ===============================
   RESPONSIV MOBIL
=============================== */
@media (max-width: 560px) {

  .images-grid {
    grid-template-columns: 1fr; /* fortfarande en kolumn */
    gap: 20px;
    justify-items: start;       /* ← gör att bilderna följer vänsterkanten */
  }

  .image-frame {
    height: auto;
    width: auto;               /* tar sin naturliga bredd */
    max-width: 100%;           /* men inte bredare än skärmen */
  }

  .image-frame img {
    height: auto;
    max-height: 260px;
    width: auto;               /* bibehåller bildens proportioner */
    object-fit: contain;       /* inga beskärningar */
    display: block;
  }

  .image-item h3 {
    font-size: 16px;
    margin-bottom: 10px;
  }
}
