/* =============================================================================
   MOBILE / iPAD FIXES for theversaillesfoundation.com
   Added 1 Dec 2026 at Anthony Rhodes's request. Every rule sits inside a media
   query for phones or iPads, so the desktop look (1200px and wider) is untouched.
   To undo: delete the wp_enqueue_style('vf-mobile-fixes') line in functions.php
   (or delete this file). Nothing else was changed.
   ============================================================================= */

/* ---------------------------- PHONES (up to 767px) ---------------------------- */
@media (max-width: 767px) {

  /* 1a. Other Projects: the theme hides every <br> on phones, which glued
         "TODAY" to "Other World Projects". Bring back the one break after the title. */
  .elementor-282 .elementor-heading-title .pbmit-title + br { display: block; }
  .elementor-282 .elementor-heading-title .pbmit-title { line-height: 1.15 !important; }

  /* 1b. Other Projects: the clock photo has a 114px margin on every side, which
         pushed it 94px past the right edge of the screen. Keep the vertical gap, drop the side margin. */
  .elementor-282 .elementor-element img.e-4a5c847-fb927fd { margin: 20px 0; }

  /* 2.  Reims: the round carousel arrows sat on top of the paragraph. Park them at the top
         of the slide, beside the picture. */
  .blog_section .blog_content .owl-nav .owl-prev,
  .blog_section .blog_content .owl-nav .owl-next { top: 12px; }

  /* 2b. The photo-slider arrows (Slick) stuck 62px out past the right edge, which made the whole page scroll
         sideways. Clip the slider to its own box and pull the arrows inside it. */
  .slick-slider { overflow: hidden; }
  .slick-slider .slick-prev { left: 4px !important; z-index: 3; }
  .slick-slider .slick-next { right: 4px; z-index: 3; }

  /* 3a. Contact: the theme hides <br> on phones so the address ran together. Restore the line breaks,
         slightly smaller type and wider side padding so each line fits. */
  .center-container .pbmit-service-content .overlay-text { font-size: 18px; line-height: 30px; padding: 10px 20px; }
  .center-container .pbmit-service-content .overlay-text br { display: block; }

  /* 3b. Back-to-top button: smaller, tucked into the corner and see-through so it no longer covers text or form fields. */
  body .scroll-to-top { width: 34px; height: 34px; line-height: 34px; font-size: 14px; right: 8px; bottom: 8px; opacity: .6; }

  /* 4.  Versailles statues: the empty spacer column left a blank cell in the grid on phones. */
  .france.col-md-1 { display: none; }
  img[src=""] { display: none; }
}

/* -------------------------- PHONES AND iPADs (up to 1199px) -------------------------- */
@media (max-width: 1199px) {
  /* 6.  Ticket pages: hide the visible "the-royal-seat" style box. It is only hidden with CSS; the field stays
         in the form and is still sent with the submission (hidden inputs are submitted). */
  .wpcf7-form-control-wrap.shortcodefield-258 { display: none; }
  .wpcf7-form .col-lg-6:has(.wpcf7-form-control-wrap.shortcodefield-258) { display: none; }
}

/* ------------------------------- iPAD (768px to 1199px) ------------------------------- */
@media (min-width: 768px) and (max-width: 1199px) {
  /* 7.  Trim the 7px of sideways scroll from the carousel arrows. */
  .blog_section .blog_content .owl-nav .owl-next { right: -20px; }
  .slick-slider { overflow: hidden; }
  .slick-slider .slick-prev { left: 6px !important; z-index: 3; }
  .slick-slider .slick-next { right: 6px; z-index: 3; }
}

/* --------------------- iPAD LANDSCAPE only: Home page "ENTER" --------------------- */
@media (min-width: 768px) and (max-width: 1199px) and (orientation: landscape) and (max-height: 900px) {
  /* 5.  Scale the painting so ENTER shows without scrolling (page must fit in the 820px screen height). */
  .about-us-section a[href$="/menu/"] > img[alt="Snow"] { width: auto !important; max-width: 100%; max-height: calc(100vh - 150px); display: block; margin: 0 auto; }
}

/* -----------------------------------------------------------------------------
   Versailles-France more_gallery: pair consecutive col-md-6 photos (the urns
   and "placing it down") in one .box.urn-pair so they sit side by side on
   desktop. Below 768px they stack, same as every other gallery item.
   ----------------------------------------------------------------------------- */
.box.urn-pair {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: 100%;
  align-items: stretch;
  justify-content: flex-start;
  box-sizing: border-box;
}
.box.urn-pair > .col-md-6 {
  flex: 1 1 50%;
  max-width: 50%;
  width: 50%;
  box-sizing: border-box;
  padding-left: 5px;
  padding-right: 5px;
}
.box.urn-pair .pbminfotech-box-content-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.box.urn-pair img.img-responsive {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 2 / 3;
}
@media (max-width: 767px) {
  .box.urn-pair {
    display: block !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
  }
  .box.urn-pair > .col-md-6 {
    display: block !important;
    float: none !important;
    flex: 0 0 auto !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}
