/* --------------------------------------------------
   Base Page Styling
-------------------------------------------------- */
body {
  color: #000;
  background-color: #e1e5f5;
  font-family: Arial, Helvetica, sans-serif;
}

#wrapper_large {
  width: 100%;          /* fill phone screens */
  max-width: 1200px;    /* optional upper limit */
  margin: 0 auto;       /* center on desktop */
  padding: 10px;
  background: #fff;
}

/* Desktop view: shrink to half width */
@media (min-width: 1024px) {
  #wrapper_large {
    width: 50%;         /* half the screen */
  }
}

h1 {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

p {
  font-size: 1rem;
  line-height: 1.3;
}

/* --------------------------------------------------
   Global Image Behavior
-------------------------------------------------- */
img {
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
  display: block;
}

/* Panoramas (explicit protection) */
.panorama {
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* --------------------------------------------------
   Language Links
-------------------------------------------------- */
.links {
  display: flex;
  justify-content: space-around;
  text-align: center;
  margin: 1rem 0;
}

.links a {
  font-size: 1rem;
  text-decoration: none;
}

/* --------------------------------------------------
   Gallery Links Section
-------------------------------------------------- */
.gallery-links {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  text-align: center;
  margin: 1rem 0;
}

.gallery-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 45%;              /* equal columns on mobile */
  margin-bottom: 1.5rem;
}

.gallery-links img {
  display: block;
  margin: 0 auto 0.5rem auto;
}

/* --------------------------------------------------
   Contributors Section
-------------------------------------------------- */
.contributors {
  display: flex;
  justify-content: space-around;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.contributors div {
  text-align: center;
  font-size: 1rem;
}

/* --------------------------------------------------
   Footer
-------------------------------------------------- */
footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 1.25rem;
}

footer a {
  display: block !important;
  text-align: center !important;
  margin: 0 auto !important;
  width: 100% !important;
}
