/* Image layouts for the municipal and newcomer pages.
   Keep intrinsic proportions at every breakpoint, including images with HTML dimensions. */
.municipal-page .subhero-grid,
.newcomer-page .subhero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(30px, 4.5vw, 65px);
}
.municipal-page .subhero-grid > *,
.newcomer-page .subhero-grid > *,
.municipal-page .contact-rich > *,
.newcomer-page .contact-rich > * { min-width: 0; }

.municipal-page .municipal-poster {
  display: grid;
  justify-items: center;
  align-self: center;
  width: 100%;
  max-width: 540px;
  margin-inline: auto;
  padding: 20px 20px 26px;
  border-radius: 42% 42% 26px 26px;
  overflow: hidden;
}
.municipal-page .municipal-poster > img {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}
.municipal-page .mini-qr {
  position: static;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 370px;
  margin: 12px 0 0;
  padding: 18px;
  transform: none;
  box-shadow: none;
  border: 1px solid var(--line);
}
.municipal-page .mini-qr img {
  display: block;
  width: 84px;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 4px;
}
.municipal-page .mini-qr span {
  min-width: 0;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1.2;
}
.municipal-page .panorama {
  display: block;
  width: 100%;
  max-width: 1120px;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  margin: 40px auto 0;
  border-radius: 24px;
}

.newcomer-page .subhero-grid {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.1fr);
}
.newcomer-page .newcomer-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  gap: 18px;
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  padding: 0;
}
.newcomer-page .newcomer-art > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 26px;
}
.newcomer-page .welcome-sticker {
  position: static;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 22px;
  max-width: 100%;
  padding: 15px 25px;
  border-radius: 24px;
  transform: none;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  line-height: 1.4;
}

.municipal-page .contact-portrait,
.newcomer-page .contact-portrait {
  display: block;
  width: 100%;
  max-width: 330px;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  justify-self: center;
  margin: 0;
  transform: rotate(2deg);
}
@media (max-width: 1000px) {
  .newcomer-page .subhero-grid { grid-template-columns: minmax(0, 1fr); }
  .newcomer-page .newcomer-art { max-width: 720px; }
}
@media (max-width: 900px) {
  .municipal-page .subhero-grid { grid-template-columns: minmax(0, 1fr); }
  .municipal-page .municipal-poster { max-width: 480px; }
}
@media (max-width: 600px) {
  .municipal-page .municipal-poster {
    max-width: 400px;
    padding: 16px 16px 20px;
  }
  .municipal-page .mini-qr {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 15px;
    padding: 14px;
  }
  .municipal-page .mini-qr img { width: 72px; }
  .municipal-page .panorama { margin-top: 28px; border-radius: 18px; }
  .newcomer-page .newcomer-art { gap: 14px; }
  .newcomer-page .newcomer-art > img { border-radius: 18px; }
  .newcomer-page .welcome-sticker { gap: 6px 15px; padding: 12px 18px; }
  .municipal-page .contact-portrait,
  .newcomer-page .contact-portrait {
    max-width: 250px;
    margin-inline: auto;
    transform: none;
  }
}
