/* Phone and tablet fix: makes the homepage masthead text smaller and wrap on small screens. Please leave in place. */
@media (max-width: 782px) {
  .home .wp-block-cover.alignfull { min-height: 320px; }
  .home .wp-block-cover.alignfull .wp-block-cover__inner-container { width: 100%; padding: 0 16px; box-sizing: border-box; }
  .home .wp-block-cover.alignfull h1 { font-size: 1.1rem; line-height: 1.3; overflow-wrap: anywhere; }
  .home .wp-block-cover.alignfull p { font-size: 1.5rem !important; line-height: 1.3 !important; overflow-wrap: anywhere; }
  .home .wp-block-cover p { overflow-wrap: anywhere; }
}
@media (max-width: 480px) {
  .home .wp-block-cover.alignfull p { font-size: 1.25rem !important; }
}


/* Footer: makes the footer (including the Maisie tribute) as wide as the wide content. Please leave in place. */
.site-footer.responsive-max-width,
.site-footer .widget-area.responsive-max-width {
  max-width: 1200px !important;
}

@media (max-width: 600px) { .site-footer.responsive-max-width, .site-footer .widget-area.responsive-max-width { max-width: 100% !important; width: 100% !important; } .site-footer, .site-footer * { max-width: 100%; box-sizing: border-box; } .site-footer .wp-block-media-text { grid-template-columns: 100% !important; } .site-footer img { height: auto; } }

/* Homepage cards: puts the Blog, Resources and About Me cards side by side on laptops. Please leave in place. */
@media (min-width: 783px) {
  .home .home-cards { display: flow-root; }
  .home .home-cards .wp-block-media-text { float: left; clear: none !important; display: block !important; width: calc((100% - 48px) / 3) !important; max-width: none !important; margin: 0 24px 24px 0 !important; }
  .home .home-cards .wp-block-media-text:nth-of-type(3n) { margin-right: 0 !important; }
  .home .home-cards .wp-block-media-text__media img { width: 100%; height: 190px; object-fit: cover; }
  .home .home-cards .wp-block-media-text__content { padding: 8px 0 0; }
}


/* =========================================
   BUILDING SPRING ISLAND
   RESOURCES PAGE - PROFESSIONAL DESIGN
   ========================================= */

/* Main page layout */
.page-id-288 .entry-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 25px 60px;
}

/* General typography */
.page-id-288 .entry-content p {
    font-size: 17px;
    line-height: 1.85;
    color: #444b45;
    text-align: justify;
    margin-bottom: 24px;
}

/* Section headings */
.page-id-288 .entry-content h2 {
    color: #315c46;
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.3;
    text-align: left;
    margin-top: 55px;
    margin-bottom: 25px;
    padding-bottom: 13px;
    border-bottom: 2px solid #d7e2d8;
}

/* Links */
.page-id-288 .entry-content a {
    color: #397451;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-id-288 .entry-content a:hover {
    color: #1e382a;
    text-decoration: underline;
}

/* Image gallery alignment */
.page-id-288 .wp-block-gallery {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px !important;
    width: 100%;
    margin: 35px auto 45px !important;
    align-items: stretch;
}

/* Gallery image containers */
.page-id-288 .wp-block-gallery .wp-block-image {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    overflow: hidden;
    border-radius: 9px;
    background: #f1f3ef;
}

/* Consistent image dimensions */
.page-id-288 .wp-block-gallery .wp-block-image img {
    display: block;
    width: 100% !important;
    height: 310px !important;
    object-fit: cover;
    object-position: center;
    border-radius: 9px;
    transition: transform 0.4s ease;

/* About Me page: neat, aligned, justified intro with arched portrait. Please leave in place. */
.page-id-405 .wp-block-media-text.is-style-rounded + .wp-block-spacer { height: 20px !important; }
.page-id-405 .wp-block-gallery .wp-block-image img { border-radius: 10px; }
@media (min-width: 783px) {
  .page-id-405 .wp-block-media-text.is-style-rounded { border-radius: 22px; padding: 28px 0 !important; height: auto !important; min-height: 0 !important; align-items: stretch; }
  .page-id-405 .wp-block-media-text.is-style-rounded .wp-block-media-text__media { margin: 0 0 0 6px !important; align-self: stretch !important; border-radius: 200px 200px 18px 18px; overflow: hidden; box-shadow: 0 10px 28px rgba(35, 50, 82, 0.25); }
  .page-id-405 .wp-block-media-text.is-style-rounded .wp-block-media-text__content { padding: 0 6px 0 36px !important; align-self: center !important; overflow: visible !important; }
  .page-id-405 .wp-block-media-text.is-style-rounded .wp-block-media-text__content > p { float: none !important; clear: none !important; position: static !important; width: auto !important; max-width: none !important; margin: 0 0 12px 0 !important; text-align: justify !important; hyphens: auto; line-height: 1.55; }
  .page-id-405 .wp-block-media-text.is-style-rounded .wp-block-media-text__content > p:first-child { font-size: 1.5rem !important; line-height: 1.2; color: #233252; text-align: left !important; white-space: nowrap; margin-bottom: 14px !important; }
  .page-id-405 .wp-block-media-text.is-style-rounded .wp-block-media-text__content > p:nth-child(2) { font-size: 1.1rem !important; font-style: italic; color: #233252; }
  .page-id-405 .wp-block-media-text.is-style-rounded .wp-block-media-text__content .wp-block-social-links { margin: 6px 0 0 !important; }
}

/* Phones only: stop the footer running off-screen, tidy spacing and cards. */
@media (max-width: 782px) {
  html, body { overflow-x: hidden; }
  .site-footer, .site-footer .widget-area, .site-footer .widget, .site-footer .wp-block-cover { width: 100% !important; max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; box-sizing: border-box; }
  .site-footer img, .site-footer input, .site-footer form { max-width: 100%; }
  .home .entry-content p.has-text-align-justify { text-align: left !important; hyphens: none; }
  .home .wp-block-query { margin-bottom: 24px; }
  .home-cards .wp-block-media-text__content { padding: 0 !important; }
  .home-cards .wp-block-media-text__content p { margin-left: 0 !important; margin-right: 0 !important; }
}