/* 
  Fun~Canna static landing page
  Built for Cloudflare Pages.
  Keeps the uploaded design identical by displaying the finished artwork as-is.
*/

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  background: #000;
}

body {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.poster-page {
  width: 100%;
  min-height: 100svh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.poster-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100vw;
}

/* iPhone / Android portrait: show the full design without cropping */
@media (max-width: 768px) and (orientation: portrait) {
  .poster-page {
    align-items: flex-start;
    justify-content: center;
    min-height: 100svh;
  }

  .poster-image {
    width: 100vw;
    height: auto;
    max-width: none;
  }
}

/* Small landscape phones: keep the poster visible and centred */
@media (max-width: 932px) and (orientation: landscape) {
  .poster-page {
    min-height: 100svh;
  }

  .poster-image {
    width: auto;
    height: 100svh;
    max-width: 100vw;
    object-fit: contain;
  }
}

/* Very large screens: keep the artwork sharp without forcing distortion */
@media (min-width: 1449px) {
  .poster-image {
    width: 100vw;
    height: auto;
  }
}
