/* Southern Grace: mobile / tablet photography correction, 2026-10-16.
   Add after existing styles.css. This override is scoped to known Southern Grace classes.
   Full photography appears in a natural-width hero. Desktop style remains unchanged. */
@media (max-width: 800px) {
  html, body { max-width: 100%; overflow-x: clip; }
  .home-page .site-header {
    position: relative;
    background: #142821;
  }
  .home-page .hero-photo-led {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    overflow: visible;
    background: #142821;
  }
  .home-page .hero-photo-led > img {
    position: relative;
    inset: auto;
    z-index: 0;
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
    background: #142821;
  }
  .home-page .hero-photo-led::before { display: none; }
  .home-page .hero-photo-led .hero-content {
    order: 2;
    margin: 0 auto;
    width: var(--wide);
    padding: 20px 0 52px;
  }
  .home-page .hero-photo-led h1 {
    font-size: clamp(40px, 11vw, 68px);
    line-height: 1.06;
    margin: 14px 0 15px;
  }
  .home-page .hero-photo-led .intro {
    font-size: 15px;
    line-height: 1.7;
    max-width: 650px;
  }
  .home-page .hero-photo-selector {
    order: 1;
    position: relative;
    inset: auto;
    align-self: center;
    margin: 12px auto 0;
    max-width: calc(100% - 32px);
    flex-wrap: wrap;
    justify-content: center;
  }
  .home-page .hero-caption { display: none; }
  .home-page .hero-image-status {
    top: 95px;
    right: 12px;
    max-width: calc(100% - 24px);
  }
  /* Outside of the lightbox, show the full photo instead of forcing a crop. */
  .intro-image, .photo-story .large-photo, .story-side .story-card { min-height: 0; height: auto; }
  .intro-image > img, .photo-story .large-photo img,
  .story-side .story-card img, .experience > img,
  .local-banner > img, .image-break > img,
  .video-card img {
    display: block;
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    object-fit: contain;
    object-position: center;
  }
  .image-break { height: auto; min-height: 0; }
  .image-break-content {
    position: relative;
    inset: auto;
    transform: none;
    padding: 30px 20px 42px;
    max-width: none;
    background: #10211b;
  }
  .image-break::after { display: none; }
  .story-side .story-card .overlay { pointer-events: none; }
  .gallery-grid, .gallery-section .gallery-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
    grid-auto-flow: row;
  }
  .gallery-item, .gallery-item.featured, .gallery-item.tall,
  .gallery-section .gallery-item, .gallery-section .gallery-item.featured,
  .gallery-section .gallery-item.tall {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .gallery-item img, .gallery-section .gallery-item img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #eee8dc;
  }
  .lightbox img {
    width: auto;
    height: auto;
    max-height: calc(100dvh - 175px);
    max-width: 100%;
    object-fit: contain;
  }
}
@media (max-width: 420px) {
  .hero-actions .btn { width: 100%; white-space: normal; }
  .home-page .hero-photo-led .hero-content { padding-bottom: 44px; }
  .gallery-grid, .gallery-section .gallery-grid { gap: 8px; }
}

/* Prevent the long desktop navigation from clipping its booking button on tablets. */
@media (min-width:761px) and (max-width:1120px) {
  .site-header .header-inner { min-height: 76px; }
  .site-header .nav-links {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 76px;
    background: #142821;
    padding: 12px 24px 25px;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    box-shadow: 0 20px 25px #0005;
  }
  .site-header .nav-links.open { display: flex; }
  .site-header .nav-links a { padding: 15px !important; border-top: 1px solid #ffffff27; }
  .site-header .menu-toggle { display: block; }
  .site-header .header-book { margin-top: 11px; text-align: center; }
}


/* October 16: additional dual-platform reservation links (responsive). */
.booking-platform-options{display:flex;flex-wrap:wrap;gap:12px;margin:14px 0 0;align-items:center}
.btn-vrbo{background:transparent;border:1px solid currentColor;color:inherit}
.btn-vrbo:hover{background:rgba(255,255,255,.12)}
.footer-book-options{display:flex;flex-wrap:wrap;gap:9px 20px;align-items:center;margin-top:14px}
.footer-book-options .text-link{font-size:11px;line-height:1.6}
.footer-book-options .text-link:first-child{margin-right:4px}
.sticky-mobile-bar{display:none}
@media(max-width:760px){
  .sticky-mobile-cta{display:none!important}
  .sticky-mobile-bar{display:grid;grid-template-columns:1fr 1fr;position:fixed;bottom:0;left:0;right:0;z-index:70;background:#11271f;box-shadow:0 -3px 18px #0005;padding:9px max(9px,env(safe-area-inset-left)) calc(9px + env(safe-area-inset-bottom)) max(9px,env(safe-area-inset-right));gap:8px}
  .sticky-mobile-bar a{display:flex;align-items:center;justify-content:center;min-height:46px;padding:9px 12px;background:#c49c77;color:#102820;font-size:11px;font-weight:800;letter-spacing:.075em;text-transform:uppercase;text-align:center;line-height:1.2}
  .sticky-mobile-bar a:last-child{background:#f1e7d7}
  .site-footer{padding-bottom:calc(98px + env(safe-area-inset-bottom))}
  .booking-platform-options .btn{flex:1 1 140px;white-space:normal;min-width:0}
}
@media(max-width:420px){.final-cta .hero-actions .btn{width:100%}}

/* Image visibility correction: a negative image z-index hid the photograph behind
   the hero's solid background in some browsers (including headless Chromium). */
.home-page .hero-photo-led > img { z-index: 0; }
.home-page .hero-photo-led::before { z-index: 1; pointer-events: none; }
.home-page .hero-photo-led .hero-content { position: relative; z-index: 2; }
.home-page .hero-photo-led .hero-photo-selector,
.home-page .hero-photo-led .hero-caption,
.home-page .hero-photo-led .hero-image-status { z-index: 3; }
