/* Fix My Tours - mobile / tablet alignment fixes (loaded last on every page) */
*,*::before,*::after{box-sizing:border-box}
html,body{max-width:100%;overflow-x:hidden}
#page-container,#et-boc,#et-main-area,#main-content{max-width:100%;overflow-x:hidden}
img,video,iframe,embed,object,svg{max-width:100%}
img{height:auto}
p,h1,h2,h3,h4,h5,h6,li,a,span,div{overflow-wrap:break-word;word-wrap:break-word}

/* ---------- tablet ---------- */
@media (max-width:980px){
  .et_pb_row{width:92%!important;max-width:100%!important}
  .et_pb_section{padding-left:0!important;padding-right:0!important}
  .et_pb_column{width:100%!important;margin-right:0!important;float:none!important}
  .et_pb_row .et_pb_column:not(:last-child){margin-bottom:24px}
  .et_pb_menu .et_pb_menu__logo img{max-height:56px;width:auto}
}

/* ---------- phone ---------- */
@media (max-width:767px){
  /* header: top bar + logo/menu stack and centre */
  .et-l--header .et_pb_row{display:flex!important;flex-wrap:wrap;align-items:center;justify-content:center;text-align:center;padding:6px 0!important}
  .et-l--header .et_pb_column{width:100%!important;margin:0 0 6px!important}
  .et-l--header .dnxte-feature-list-wrap{justify-content:center}
  .et-l--header .dnxte-feature-list-content{width:auto;margin-left:8px}
  .et-l--header .et_pb_menu__logo img{max-height:48px;width:auto}

  /* every column full width, nothing side by side */
  .et_pb_row{width:92%!important;padding:0!important}
  .et_pb_column{width:100%!important;margin-right:0!important;margin-bottom:22px!important}
  .et_pb_column:last-child{margin-bottom:0!important}
  .et_pb_section{padding-top:32px!important;padding-bottom:32px!important}
  .et_pb_module{max-width:100%}

  /* text sizes */
  h1{font-size:30px!important;line-height:1.25!important}
  h2{font-size:26px!important;line-height:1.3!important}
  h3{font-size:22px!important;line-height:1.3!important}
  h4{font-size:19px!important}
  .et_pb_text_inner,.et_pb_text_inner p{font-size:15px;line-height:1.7}

  /* images / cards */
  .et_pb_image img,.et_pb_module img{max-width:100%;height:auto}
  [class*="dnxte_feature_list"] .et_pb_module_inner{grid-template-columns:1fr!important}

  /* buttons */
  .et_pb_button,.dnxt-blurb-btn,.dnxt-button-wrapper a{display:inline-block;max-width:100%;white-space:normal;text-align:center}

  /* forms */
  .sform_wrapper .gfield,.sform_fields .gfield{width:100%!important;max-width:100%!important;grid-column:1/-1!important;margin-bottom:14px!important}
  form input:not([type=checkbox]):not([type=radio]):not([type=hidden]),form select,form textarea{width:100%!important;max-width:100%!important;font-size:16px!important}
  .ginput_recaptcha{transform:scale(.88);transform-origin:0 0;max-width:100%}
  .sform_footer button{width:100%}

  /* tables and embeds never overflow */
  table{display:block;overflow-x:auto;max-width:100%}
  iframe{width:100%!important}

  /* WhatsApp floating button */
  a.float{width:52px;height:52px;bottom:14px;left:12px;font-size:26px}
  .my-float{margin-top:13px}
}
