/* Phone and tablet layout. Replaces the old separate mobile site (/m/).
   Loaded on every page after the other stylesheets (partials/head.php). */

/* Photo pop-up: hidden from the start (its own rule is in partials/testmodal.php, which loads
   at the bottom of the page, so the "Close" button used to flash at the top while loading). */
#modal { visibility: hidden; }

/* Home page photo collage: gallery.css had "margin-right: -4" (no unit, so ignored), which made
   two half-width tiles too wide for one row. */
.g1, .g2, .g3, .g4, .g5, .g6, .g7, .g8, .g9, .g10, .g11, .g12, .g13, .g14, .g15 {
    vertical-align: top;
    margin-right: -4px;
}

/* Leftover test button on the home page (it does nothing). */
#scroll-btn { display: none; }

/* ------------------------------------------------------------------ Phones and small tablets */
@media (max-width: 767.98px) {
    /* Floor plans, City/Sky level panel: the info column and the clickable floor diagram were
       side by side (5/12 + 7/12); the old mobile site stacked them at full width. */
    section[data-view="floorplans"] > div.keyplan,
    section[data-view="floorplans"] .keyplan .info {
        position: static;
        max-width: none;
    }
    section[data-view="floorplans"] .keyplan .info,
    section[data-view="floorplans"] .keyplan .row,
    section[data-view="floorplans"] .m-imagemap {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100%;
    }
    section[data-view="floorplans"] #alignc { width: 100%; text-align: center; }
}

/* ------------------------------------------------------------------ Phones */
@media (max-width: 575.98px) {
    /* Headings: the desktop sizes (40-63px) don't fit; long words ran off the screen. */
    h1 { font-size: 1.75rem; }
    #pagetitle { font-size: 2.25rem !important; padding-top: 110px; }
    #homesections h2 { font-size: 1.9rem !important; }
    .masthead .intro-body .brand-heading { font-size: 50px; }
    h1, h2, h3 { overflow-wrap: break-word; }

    /* Photo slider captions (Amenities): 5em is 80px; the old mobile site used 36px. */
    .caption2 { font-size: 36px; }
    .scrollheader { font-size: 24px; }

    /* Move-In-Now pages: the photo column is a background image, so on a phone it collapsed
       to nothing and its address banner slid up under the menu. */
    #landpic { min-height: 340px; }

    /* Thank-you page: its email-style table had fixed 350-380px widths. */
    table.devicewidth { width: 100% !important; max-width: 100%; }

    /* Footer: the "Legal Disclaimers" title was pulled 35px to the left. */
    #footer a[style*="margin-left:-35px"] { margin-left: 0 !important; }
}
