/* Responsive fixes added during the Hostinger hardening pass (kept separate from the theme files) */

/* Bootstrap .row elements placed outside a .container create ~12px sideways scroll.
   overflow-x: clip (unlike hidden) does not break the sticky header. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}
@supports not (overflow-x: clip) {
  body { overflow-x: hidden; }
}

/* long e-mail addresses / phone numbers in the footer & contact page were cut off */
footer a[href^="mailto:"],
footer a[href^="tel:"],
footer address,
.contact-area a[href^="mailto:"],
a[href^="mailto:"] {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* images in rich-text (blog, custom pages, room/hotel descriptions) should never overflow on phones */
.summernote-content img,
.tinymce-content img,
.content img,
.description img {
  max-width: 100%;
  height: auto;
}

/* tables in rich text scroll inside their box on small screens instead of stretching the page */
@media (max-width: 767.98px) {
  .content table,
  .description table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }
}
