/* ============================================================================
   responsive.css — mobile / tablet overrides for photomambo.o235.dev
   ----------------------------------------------------------------------------
   Additive only: it is loaded AFTER master.css and leaves the original 1280px
   desktop layout untouched above 1279px.

   Two ranges:
     * <= 1279px : the 1280px composition is scaled proportionally. Text keeps
                   its position over the band artwork by converting master.css's
                   pixel paddings to percentages of width, and font sizes to vw
                   with a readable floor.
     * <=  699px : the layout becomes a single stacked column: artwork on top,
                   text below it in normal flow at fixed, readable sizes.
   ========================================================================== */

html {
  -webkit-text-size-adjust: 100%;
}

/* ---------- background artwork ----------
   1326px of artwork centred in a 1280px viewport overflows 23px each side.
   Cap it to the viewport and keep it centred; a no-op at >= 1326px. */
div#backgroundContainer {
  margin-left: max(-663px, -50vw);
  width: min(1326px, 100vw);
}


/* ==========================================================================
   TABLET / NARROW DESKTOP  (<= 1279px) — proportional scale
   ========================================================================== */
@media (max-width: 1279px) {

  /* Content images / embeds never blow out a narrow column. */
  img,
  iframe {
    max-width: 100%;
  }

  /* ---- page shell ---- */
  html, body {
    width: 100%;
    max-width: 100%;
  }

  div#bodyContainer {
    min-width: 0;
    width: 100%;
  }

  div#backgroundContainer {
    position: static;
    left: auto;
    margin-left: 0;
    width: 100%;
    background-size: 100% auto;
    background-position: top center;
  }

  div#container {
    width: 100%;
    float: none;
  }

  div#content {
    width: 100%;
    background-size: 100% auto;
    background-position: top center;
  }

  /* ---- header ---- */
  div#header {
    width: 100%;
    height: auto;
    padding: 0 2.3438%;
    box-sizing: border-box;
    overflow: hidden;
  }

  div#logo {
    float: none;
    width: auto;
    height: auto;
    margin: 10px auto 0;
    text-align: center;
  }

  div#logo img {
    max-width: 224px;
  }

  div#headerLinks, div#headerLinksUserContainer {
    float: none;
    width: 100%;
    height: auto;
    box-sizing: border-box;
    margin: 12px 0 0;
    padding: 6px 0;
    background-image: none;
    background-color: #f4f0fa;
    border-radius: 10px;
    text-align: center;
    overflow: hidden;
  }

  div#headerLinksPrimary {
    float: none;
    width: auto;
    margin: 0;
    text-align: center;
  }

  div#headerLinksPrimary a,
  div#headerLinksSecondary a {
    display: inline-block;
    padding: 8px 8px;
  }

  a.headerLinksPrimaryFollowing {
    padding-left: 8px;
  }

  div#headerLinksSecondary {
    float: none;
    width: auto;
    margin: 6px 0 0;
    text-align: center;
  }

  /* sign-in panel: the 353x160 background art cannot fit, so restyle it */
  div#headerLinksSignIn {
    float: none;
    width: 100%;
    height: auto;
    box-sizing: border-box;
    margin: 10px 0 0;
    padding: 10px 2.3438%;
    background-image: none;
    background-color: #f4f0fa;
    border-radius: 10px;
    position: static;
  }

  div#headerLinksSignInStatus {
    width: auto;
    height: auto;
    margin: 0 0 6px;
  }

  table#headerLinksSignInTable,
  table#headerLinksSignInTable tbody,
  table#headerLinksSignInTable tr,
  table#headerLinksSignInTable td {
    display: block;
    width: auto !important;
    margin: 0;
    padding: 2px 0;
    text-align: left;
  }

  div#headerLinksSignIn .signInInputField {
    width: 100% !important;
    max-width: 320px;
    box-sizing: border-box;
    margin: 0;
  }

  /* ---- home hero ---- */
  div#homeHero {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    background-size: 100% auto;
    background-position: top left;
  }

  div#homeHeroTitle {
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
    /* padding-right keeps the text column at its original 410px (32.03%) */
    padding: 18.6719% 55.2344% 14.2969% 12.7344%;
    font-size: clamp(16px, 2.9688vw, 38px);
    line-height: 1.1;
  }

  div.homeBox {
    float: none;
    width: 316px;
    height: 400px;
    padding: 87px 0 0 7px;
    margin: 0 4px;
  }

  div#homeBox1,
  div#homeBox2,
  div#homeBox3 {
    margin-left: 4px;
  }

  /* ---- page headings ---- */
  div#whatIsItTitle,
  div#howWorkTitle,
  div#photomamboFrameTitle,
  div#faqTitle,
  div#aboutUsTitle {
    font-size: clamp(20px, 2.8125vw, 36px);
    padding: 2.3438% 0 0 12.8906%;
  }

  div#pressHeader {
    font-size: clamp(20px, 2.8125vw, 36px);
    padding: 2.3438% 0 0 2.3438%;
  }

  /* ---- band artwork ---- */
  div#whatIsIt1,
  div#whatIsIt2,
  div#whatIsIt3,
  div#whatIsIt3a,
  div#whatIsIt4,
  div#whatIsIt5,
  div#photomamboFrame1,
  div#photomamboFrame2,
  div#photomamboFrame3,
  div#howWorkStep1,
  div#howWorkStep2,
  div#howWorkStep3,
  div#howWorkStep4,
  div#howWorkStep5,
  div#faqContainer,
  div#aboutUsContainer,
  div#aboutUsGetInTouchContainer {
    width: 100%;
    height: auto;
    background-size: 100% auto;
    background-position: top left;
    background-repeat: no-repeat;
    background-color: #fff;
  }
  div#whatIsIt1 { padding-top: 32.8125%; }
  div#whatIsIt1 > div:first-child { margin-top: -32.8125%; }
  div#whatIsIt2 { padding-top: 32.8125%; }
  div#whatIsIt2 > div:first-child { margin-top: -32.8125%; }
  div#whatIsIt3 { padding-top: 32.8125%; }
  div#whatIsIt3 > div:first-child { margin-top: -32.8125%; }
  div#whatIsIt3a { padding-top: 32.8125%; }
  div#whatIsIt3a > div:first-child { margin-top: -32.8125%; }
  div#whatIsIt4 { padding-top: 32.8125%; }
  div#whatIsIt4 > div:first-child { margin-top: -32.8125%; }
  div#whatIsIt5 { padding-top: 32.8125%; }
  div#whatIsIt5 > div:first-child { margin-top: -32.8125%; }
  div#photomamboFrame1 { padding-top: 32.8125%; }
  div#photomamboFrame1 > div:first-child { margin-top: -32.8125%; }
  div#photomamboFrame2 { padding-top: 32.8125%; }
  div#photomamboFrame2 > div:first-child { margin-top: -32.8125%; }
  div#photomamboFrame3 { padding-top: 59.375%; }
  div#photomamboFrame3 > div:first-child { margin-top: -59.375%; }
  div#howWorkStep1 { padding-top: 43.75%; }
  div#howWorkStep1 > div:first-child { margin-top: -43.75%; }
  div#howWorkStep2 { padding-top: 42.0312%; }
  div#howWorkStep2 > div:first-child { margin-top: -42.0312%; }
  div#howWorkStep3 { padding-top: 42.1875%; }
  div#howWorkStep3 > div:first-child { margin-top: -42.1875%; }
  div#howWorkStep4 { padding-top: 42.1875%; }
  div#howWorkStep4 > div:first-child { margin-top: -42.1875%; }
  div#howWorkStep5 { padding-top: 44.2969%; }
  div#howWorkStep5 > div:first-child { margin-top: -44.2969%; }
  div#faqContainer { padding-top: 19.5312%; }
  div#faqContainer > div:first-child { margin-top: -19.5312%; }
  div#aboutUsContainer { padding-top: 40.625%; }
  div#aboutUsContainer > div:first-child { margin-top: -40.625%; }
  div#aboutUsGetInTouchContainer { padding-top: 19.7656%; }
  div#aboutUsGetInTouchContainer > div:first-child { margin-top: -19.7656%; }

  /* ---- band text ---- */
  div#whatIsItContainer1 { width: 35.9375%; padding: 1.7188% 0 0 12.8125%; }
  div#whatIsItContainer2 { width: 29.6875%; padding: 5.3906% 0 0 57.1875%; }
  div#whatIsItContainer3 { width: 35.9375%; padding: 4.7656% 0 0 40.7812%; }
  div#whatIsItContainer3a { width: 35.9375%; padding: 6.6406% 0 0 12.8125%; }
  div#whatIsItContainer4 { width: 30.4688%; padding: 5.1562% 0 0 12.8125%; }
  div#whatIsItContainer5 { width: 33.5938%; padding: 7.8125% 0 0 53.5937%; }

  div#howWorkStepContainer1 { width: 31.25%; padding: 7.1094% 0 0 56.6406%; }
  div#howWorkStepContainer2 { width: 33.5938%; padding: 7.2656% 0 0 12.7344%; }
  div#howWorkStepContainer3 { width: 31.25%; padding: 7.9687% 0 0 18.9844%; }
  div#howWorkStepContainer4 { width: 31.25%; padding: 13.9062% 0 0 56.6406%; }
  div#howWorkStepContainer5 { width: 31.25%; padding: 6.3281% 0 0 56.6406%; }

  div#photomamboFrameContainer1 { width: 35.9375%; padding: 1.7188% 0 0 12.8125%; }
  div#photomamboFrameContainer2 { width: 34.375%; padding: 6.25% 0 0 53.3594%; }
  div#photomamboFrameContainer3 { width: 42.1875%; padding: 4.2188% 0 0 12.7344%; }
  div#photomamboFrameAppreciate { width: 36.7188%; }

  div#howWorkStepTag1 { font-size: clamp(14px, 1.875vw, 24px); margin: 5.4688% 0 0 0; }
  div#howWorkStepTag2 { font-size: clamp(14px, 1.875vw, 24px); }

  div.whatIsItIntro,
  div.howWorkStepIntro,
  div.photomamboFrameIntro,
  div.pressSubHeader {
    font-size: clamp(15px, 2.0312vw, 26px);
    line-height: 1.15;
  }

  div.whatIsItText,
  div.howWorkStepText,
  div.photomamboFrameText,
  div.photomamboFrameAppreciateBody,
  div#photomamboFrameAppreciate,
  div#aboutUsSubText,
  div#termsRightCol,
  div.faqText,
  div#faqText {
    font-size: clamp(13px, 1.1719vw, 15px);
  }

  div.howWorkStepHeading {
    font-size: clamp(14px, 1.5625vw, 20px);
  }

  /* ---- install box (Flash-era artwork; 286px + 50px padding overflows
         narrow columns, so cap it to the column and scale the art) ---- */
  div#howWorkInstall {
    width: 286px;
    max-width: 100%;
    box-sizing: border-box;
    height: auto;
    min-height: 240px;
    background-size: 100% auto;
    background-position: top left;
  }

  div#howWorkInstallFooter {
    width: auto;
    max-width: 100%;
    margin: 0;
  }

  div#howWorkInstall div[style],
  div#homeBoxIcon3 div[style],
  div#swf_area div[style] {
    width: 100% !important;
    max-width: 300px !important;
    height: auto !important;
    min-height: 180px;
    float: none !important;
    margin: 0 auto !important;
    overflow: hidden !important;
  }

  /* ---- faq ---- */
  div#faqLeftColumn {
    width: 46.25%;
    margin: 17.1094% 0 10.8594% 12.8906%;
  }

  div#faqRightColumn {
    width: 23.4375%;
    margin: 17.1094% 0 0 5.8594%;
  }

  div#faqHeader, div.faqQuestion {
    font-size: clamp(16px, 1.7188vw, 22px);
  }

  /* ---- about us ---- */
  div#aboutUsSubTitle {
    font-size: clamp(16px, 2.0312vw, 26px);
    padding: 2.3438% 0 0 12.8906%;
  }

  div.aboutUsText {
    font-size: clamp(15px, 1.5625vw, 20px);
    line-height: 1.15;
    padding: 0.9375% 0 0 12.8906%;
    width: 42.1875%;
  }

  div#aboutUsSubText {
    padding: 2.3438% 0 0 12.8906%;
    width: 43.3594%;
  }

  div#aboutUsWhoAreWe {
    font-size: clamp(18px, 2.1875vw, 28px);
    width: 18.9062%;
    height: auto;
    margin: 5.8594% 0 0 12.8906%;
  }

  div.aboutUsPic { width: 9.7656%; }

  div.aboutUsBioContainer { width: 50.7812%; }

  div.aboutUsBioText {
    width: 43.3594%;
    font-size: clamp(13px, 1.1719vw, 15px);
  }

  span.aboutUsBioPerson { font-size: clamp(14px, 1.4062vw, 18px); }

  div#aboutUsGetInTouch {
    font-size: clamp(18px, 2.1875vw, 28px);
    width: 18.9062%;
    height: auto;
    margin: 5.8594% 0 0 12.8906%;
  }

  div#aboutUsGetInTouchText {
    font-size: clamp(13px, 1.1719vw, 15px);
    padding: 6.7188% 0 0 0;
  }

  /* ---- terms ---- */
  div#termsContainer { padding: 2.3438% 0 7.8125% 12.8906%; }

  div#termsLeftCol {
    width: 15%;
    margin: 5.3125% 0 0 0;
  }

  div#termsRightCol {
    width: 55.8594%;
    margin: 3.8281% 0 5.8594% 3.9062%;
  }

  div.termsSectionHeader { font-size: clamp(14px, 1.3281vw, 17px); }

  /* ---- press ---- */
  div#userLandingContainer {
    width: 100%;
    background-size: 100% auto;
    background-position: top center;
  }

  div#userLandingMambogramContainer {
    width: 100%;
    max-width: 960px;
    box-sizing: border-box;
    padding: 0 1.5625%;
    margin: 20px auto 60px;
  }

  div#userLandingMyFrameContainerHeader {
    float: none;
    width: 100%;
    height: auto;
    min-height: 60px;
    padding: 6px 0;
    box-sizing: border-box;
    background-size: 100% 100%;
  }

  div#userLandingMyFrameContainerBody {
    float: none;
    width: 100%;
    box-sizing: border-box;
    padding: 20px 3.9062% 20px;
  }

  div#pressContainerLeft {
    width: 45%;
    padding-right: 1.1719%;
  }

  div#pressContainerRight {
    width: 15.625%;
  }

  div#pressContainerMiddle {
    width: 100%;
    clear: both;
  }

  div#pressImagesContainer div.pressImage {
    width: 100%;
    max-width: 281px;
    height: auto;
    min-height: 210px;
    box-sizing: border-box;
  }

  div#pressImagesContainer div.pressImageLarge {
    width: 100% !important;
    max-width: 425px;
    height: auto !important;
    min-height: 218px;
  }

  div#pressImagesContainer div.pressImage img {
    max-width: 100%;
    height: auto;
  }

  /* ---- footer ---- */
  div#footerContainer {
    width: 100%;
    padding-top: 40px;
  }

  div#footer {
    width: auto;
    max-width: 75.4688%;
    height: auto;
    overflow: hidden;
    padding: 7px 10px 10px;
    box-sizing: border-box;
  }

  div#socialMediaLinks {
    width: auto;
    max-width: 15.625%;
  }

  div#footerGraphic {
    width: 100%;
    height: 12px;
    background-size: 100% auto;
  }
}


/* ==========================================================================
   PHONE  (<= 699px) — single stacked column
   ========================================================================== */
@media (max-width: 699px) {

  /* ---- header ---- */
  div#header {
    padding: 0 12px;
  }

  div#headerLinksPrimary a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #e3dcef;
  }

  div#headerLinksPrimary a:last-child {
    border-bottom: 0;
  }

  div#headerLinksSecondary {
    margin-top: 0;
  }

  /* ---- hero: artwork on top, headline below it ---- */
  div#homeHero {
    display: block;
    padding-top: 50.7812%;
    background-position: top center;
  }

  div#homeHeroTitle {
    flex: none;
    width: auto;
    padding: 16px 18px 0;
    font-size: 22px;
    line-height: 1.25;
    color: #222222;
  }

  div.homeBox {
    float: none;
    width: 316px;
    max-width: 100%;
    height: auto;
    min-height: 400px;
    margin: 20px auto 0;
    background-size: 100% auto;
  }

  div#homeBox1,
  div#homeBox2,
  div#homeBox3 {
    margin-left: auto;
    margin-right: auto;
  }

  /* ---- band artwork stays, text drops below it ---- */
  div#whatIsIt1, div#whatIsIt2, div#whatIsIt3, div#whatIsIt3a,
  div#whatIsIt4, div#whatIsIt5,
  div#photomamboFrame1, div#photomamboFrame2, div#photomamboFrame3,
  div.howWorkStep,
  div#faqContainer, div#aboutUsContainer, div#aboutUsGetInTouchContainer {
    background-position: top center;
  }

  div#whatIsIt1 > div:first-child, div#whatIsIt2 > div:first-child,
  div#whatIsIt3 > div:first-child, div#whatIsIt3a > div:first-child,
  div#whatIsIt4 > div:first-child, div#whatIsIt5 > div:first-child,
  div#photomamboFrame1 > div:first-child, div#photomamboFrame2 > div:first-child,
  div#photomamboFrame3 > div:first-child,
  div.howWorkStep > div:first-child,
  div#faqContainer > div:first-child,
  div#aboutUsContainer > div:first-child,
  div#aboutUsGetInTouchContainer > div:first-child {
    margin-top: 0;
  }

  div#whatIsItTitle,
  div#howWorkTitle,
  div#photomamboFrameTitle,
  div#faqTitle,
  div#aboutUsTitle,
  div#pressHeader {
    font-size: 26px;
    padding: 18px 18px 0;
  }

  /* ---- band text: full width, readable, no art-relative offsets ---- */
  div#whatIsItContainer1, div#whatIsItContainer2, div#whatIsItContainer3,
  div#whatIsItContainer3a, div#whatIsItContainer4, div#whatIsItContainer5,
  div#howWorkStepContainer1, div#howWorkStepContainer2, div#howWorkStepContainer3,
  div#howWorkStepContainer4, div#howWorkStepContainer5,
  div#photomamboFrameContainer1, div#photomamboFrameContainer2,
  div#photomamboFrameContainer3,
  div#faqLeftColumn, div#faqRightColumn {
    width: auto;
    max-width: 640px;
    float: none;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 16px 18px 24px;
  }

  div.whatIsItIntro,
  div.howWorkStepIntro,
  div.photomamboFrameIntro,
  div.pressSubHeader {
    font-size: 21px;
    line-height: 1.2;
  }

  div.whatIsItText,
  div.howWorkStepText,
  div.photomamboFrameText,
  div.photomamboFrameAppreciateBody,
  div#photomamboFrameAppreciate,
  div#aboutUsSubText,
  div#termsRightCol,
  div.faqText,
  div#faqText,
  div.aboutUsBioText,
  div#aboutUsGetInTouchText {
    font-size: 15px;
    line-height: 1.5;
  }

  div.howWorkStepHeading,
  div.photomamboFrameTextHeading,
  div.photomamboFrameAppreciateHeading {
    font-size: 17px;
  }

  div#faqHeader, div.faqQuestion {
    font-size: 19px;
  }

  div.faqQuestion {
    padding: 14px 0;
  }

  div#howWorkStepTag1,
  div#howWorkStepTag2 {
    font-size: 20px;
    margin: 16px 18px 0;
  }

  /* ---- install box ---- */
  div#howWorkInstall {
    width: 100%;
    max-width: 286px;
    height: auto;
    min-height: 240px;
    box-sizing: border-box;
    margin: 16px auto 30px;
    padding: 40px 0 0;
  }

  div#howWorkInstallFooter {
    width: auto;
    margin: 0;
    text-align: center;
  }

  div#howWorkInstall div[style],
  div#swf_area div[style] {
    max-width: 100% !important;
  }

  /* ---- about us ---- */
  div#aboutUsSubTitle {
    font-size: 21px;
    padding: 14px 18px 0;
  }

  div.aboutUsText {
    font-size: 18px;
    line-height: 1.3;
    width: auto;
    padding: 10px 18px 0;
  }

  div#aboutUsSubText {
    width: auto;
    padding: 16px 18px 24px;
  }

  div#aboutUsWhoAreWe {
    float: none;
    width: auto;
    height: auto;
    font-size: 24px;
    margin: 24px 18px 0;
  }

  div.aboutUsPic {
    float: none;
    width: auto;
    margin: 18px 18px 0;
  }

  div.aboutUsBioContainer {
    float: none;
    width: auto;
    margin: 0 18px 18px;
  }

  div.aboutUsBioText {
    width: auto;
  }

  div#aboutUsGetInTouch {
    float: none;
    width: auto;
    height: auto;
    font-size: 24px;
    margin: 24px 18px 0;
  }

  div#aboutUsGetInTouchText {
    padding: 12px 18px 24px;
  }

  /* ---- terms ---- */
  div#termsContainer {
    padding: 18px 0 50px;
  }

  div#termsTitle {
    font-size: 26px;
    padding: 0 18px;
  }

  div#termsLeftCol {
    float: none;
    width: auto;
    margin: 18px 18px 0;
  }

  div#termsOfUse,
  div#termsPrivacy {
    width: auto;
  }

  div#termsRightCol {
    float: none;
    width: auto;
    margin: 18px 18px 40px;
  }

  span.termsModifyDate {
    display: block;
    padding: 4px 0 0;
  }

  /* ---- press ---- */
  div#userLandingMambogramContainer {
    padding: 0 12px;
    margin: 16px auto 40px;
  }

  div#userLandingMyFrameContainerHeader {
    min-height: 0;
    padding: 4px 0 12px;
  }

  div#userLandingMyFrameContainerBody {
    padding: 16px 12px 20px;
  }

  div#pressContainerLeft,
  div#pressContainerRight,
  div#pressContainerMiddle {
    float: none;
    width: auto;
    clear: both;
    padding: 0;
    margin: 0;
  }

  div#pressImagesContainer div.pressImage,
  div#pressImagesContainer div.pressImageLarge {
    float: none;
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    min-height: 0;
    margin: 0 auto 10px;
  }

  iframe[width] {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
  }

  /* ---- footer ---- */
  div#footer {
    max-width: none;
    padding: 10px 12px 16px;
    text-align: center;
  }

  div#copyright {
    float: none;
    padding: 0;
  }

  div#socialMediaLinks {
    float: none;
    width: auto;
    max-width: none;
    margin: 12px 0 0;
    text-align: center;
  }

  div#socialMediaLinks div {
    float: none;
    display: inline-block;
    margin: 0 4px;
  }

  div#socialMediaLinks span {
    display: block;
    padding: 6px 0 0;
  }

  div#footerLinks {
    float: none;
    width: auto;
    text-align: center;
    padding: 10px 0 0;
  }

  div#footerLinks a {
    display: inline-block;
    padding: 4px 6px;
  }
}
