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

body {
  overflow-x: hidden;
  background: #f0f8ff;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  text-align: center;
  background: linear-gradient(90deg, #0a58ca, #176cc6);
  color: white;
  padding: 40px 20px;
  width: 100%;
}

header h1 {
  font-size: 2rem;
  font-weight: 700;
}

header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.content {
  padding: 20px;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}

.card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  transition: 0.4s ease;
  width: 100%;
  /* Makes it responsive */
  max-width: 350px;
  text-align: center;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

.card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.card-content {
  text-align: center;
  padding: 20px;
}

.card-content h3 {
  font-size: 1.5em;
  color: #0a58ca;
  margin-bottom: 10px;
}

.card-content p {
  font-size: 1em;
  color: #555;
}

.latest-pictures {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  margin-left: 0;
}

.latest-pictures .picInfo {
  margin-bottom: 30px;
}

.latest-pictures .pic {
  gap: 25px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  width: 100%;
  max-width: 1200px;
  padding: 0;
  justify-items: center;
}

.latest-pictures h1 {
  font-size: 2.2rem;
  color: #0056b3;
  margin-bottom: 10px;
}

.latest-pictures p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
}

.latest-pictures img {
  width: 100%;
  max-width: 400px;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
  border: 3px solid #ffffff;
}

.latest-pictures img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 90%;
  }

  .latest-pictures {
    margin-left: 2rem;
  }

  .latest-pictures .pic {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  .latest-pictures img {
    width: 90%;
    height: 220px;
  }
}

@media (max-width: 480px) {
  .latest-pictures {
    padding: 30px 10px;
  }

  .latest-pictures .pic {
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
  }

  .latest-pictures img {
    height: 200px;
  }

  .latest-pictures h1 {
    font-size: 2rem;
  }

  .latest-pictures p {
    font-size: 1rem;
  }
}
