/*
Theme Name: Bridge Child
Theme URI: http://demo.qodeinteractive.com/bridge/
Description: A child theme of Bridge Theme
Author: Qode Interactive
Author URI: http://www.qodethemes.com/
Version: 1.0.0
Template: bridge
*/
@import url("../bridge/style.css");


/* Two-column mobile tour cards: Qode lists and Our Journeys. */
@media (max-width: 767px) {
  body:is(.page-id-11, .page-id-937) .elementor-element-1359d97,
  body.page-id-334 .elementor-element-fdd7e4b { width: calc(100% - 32px); max-width: none; }
  body:is(.page-id-11, .page-id-937) .elementor-element-c7e8653,
  body.page-id-334 .elementor-element-77b6067 { padding: 0; }
  body .elementor .elementor-element.elementor-widget-qode_tours_list .qode-tours-list-holder.qode-tours-type-standard .qode-tours-list-holder-inner {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 14px;
    height: auto !important;
    width: 100%;
    margin: 0 !important;
  }
  body .elementor .elementor-element.elementor-widget-qode_tours_list .qode-tours-list-holder.qode-tours-type-standard .qode-tours-list-holder-inner::before,
  body .elementor .elementor-element.elementor-widget-qode_tours_list .qode-tours-list-holder.qode-tours-type-standard .qode-tours-list-holder-inner::after,
  body .elementor .elementor-element.elementor-widget-qode_tours_list .qode-tours-list-holder.qode-tours-type-standard .qode-tours-list-grid-sizer { display: none !important; }
  body .elementor .elementor-element.elementor-widget-qode_tours_list .qode-tours-list-holder.qode-tours-type-standard .qode-tours-standard-item {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    width: auto !important;
    min-width: 0;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
  }
  body .elementor .elementor-element.elementor-widget-qode_tours_list .qode-tours-list-holder.qode-tours-type-standard .qode-tour-item-inner { display: flex; flex-direction: column; height: 100%; }
  body .elementor .elementor-element.elementor-widget-qode_tours_list .qode-tours-list-holder.qode-tours-type-standard .qode-tours-standard-item-image-holder img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
  body .elementor .elementor-element.elementor-widget-qode_tours_list .qode-tours-list-holder.qode-tours-type-standard .qode-tours-standard-item-content-holder { display: flex; flex-direction: column; flex: 1; }
  body .elementor .elementor-element.elementor-widget-qode_tours_list .qode-tours-list-holder.qode-tours-type-standard .qode-tours-standard-item-content-inner { flex: 1; padding: 14px 0 8px; }
  body .elementor .elementor-element.elementor-widget-qode_tours_list .qode-tours-list-holder.qode-tours-type-standard .qode-tours-standard-item-title-price-holder { padding-right: 0; margin: 0; }
  body .elementor .elementor-element.elementor-widget-qode_tours_list .qode-tours-list-holder.qode-tours-type-standard .qode-tour-title { font-size: clamp(15px, 4.2vw, 18px); line-height: 1.4; margin: 0 0 6px; }
  body .elementor .elementor-element.elementor-widget-qode_tours_list .qode-tours-list-holder.qode-tours-type-standard .qode-tour-title a { font-size: inherit; line-height: inherit; }
  body .elementor .elementor-element.elementor-widget-qode_tours_list .qode-tours-list-holder.qode-tours-type-standard .qode-tour-item-reviews { margin-top: 0; }
  body .elementor .elementor-element.elementor-widget-qode_tours_list .qode-tours-list-holder.qode-tours-type-standard .qode-single-rating-value::before { font-size: 14px; }
  body .elementor .elementor-element.elementor-widget-qode_tours_list .qode-tours-list-holder.qode-tours-type-standard .qode-tours-standard-item-content-inner > .qode-tours-standard-item-bottom-item { margin-bottom: 6px; }
  body .elementor .elementor-element.elementor-widget-qode_tours_list .qode-tours-list-holder.qode-tours-type-standard .qode-tours-standard-item-excerpt { font-size: 13px; line-height: 1.55; }
  body .elementor .elementor-element.elementor-widget-qode_tours_list .qode-tours-list-holder.qode-tours-type-standard .qode-tours-standard-item-bottom-content { margin-top: auto; padding: 0; }
  body .elementor .elementor-element.elementor-widget-qode_tours_list .qode-tours-list-holder.qode-tours-type-standard .qode-tours-standard-item-bottom-content .qode-tours-standard-item-bottom-item { margin: 0; }
  body .elementor .elementor-element.elementor-widget-qode_tours_list .qode-tours-list-holder.qode-tours-type-standard .qode-tour-duration-holder { font-size: 12px; line-height: 22px; color: #666666; }
  body .elementor .elementor-element.elementor-widget-qode_tours_list .qode-tours-list-holder.qode-tours-type-standard .qode-tour-info-label { color: #666666; }
}

@media (max-width: 767px) {
  body.page-id-814 .elementor.elementor-814 .elementor-element.elementor-element-09a0044 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 14px;
  }
  body.page-id-814 .elementor.elementor-814 .elementor-element.elementor-element-09a0044 > .e-con {
    width: auto !important;
    min-width: 0;
    gap: 14px;
    justify-content: space-between;
  }
  body.page-id-814 .elementor.elementor-814 .elementor-element.elementor-element-09a0044 .elementor-image-box-img { width: 100%; margin: 0 0 12px; }
  body.page-id-814 .elementor.elementor-814 .elementor-element.elementor-element-09a0044 .elementor-image-box-img img {
    width: 100%;
    height: auto !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
  }
  body.page-id-814 .elementor.elementor-814 .elementor-element.elementor-element-09a0044 .elementor-image-box-title { font-size: clamp(15px, 4.2vw, 18px); line-height: 1.4; margin-bottom: 8px; }
  body.page-id-814 .elementor.elementor-814 .elementor-element.elementor-element-09a0044 .elementor-image-box-title a { font-size: inherit; line-height: inherit; }
  body.page-id-814 .elementor.elementor-814 .elementor-element.elementor-element-09a0044 .elementor-image-box-description { font-size: 13px; line-height: 1.55; margin: 0; }
  body.page-id-814 .elementor.elementor-814 .elementor-element.elementor-element-09a0044 .elementor-button {
    max-width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    font-size: 11px;
    line-height: 1.2;
    letter-spacing: 0.4px;
  }
}


/* Destination images in native Qode Tour Plan fields. */
body.single-tour-item .qode-tour-item-plan-part-description { display: flow-root; }
body.single-tour-item .qode-tour-item-plan-part-description figure.alignright {
  float: right; width: 38%; max-width: 320px; margin: 0 0 22px 28px;
}
body.single-tour-item .qode-tour-item-plan-part-description figure.alignright img {
  display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; margin: 0;
}
body.single-tour-item .qode-tour-item-plan-part-description figure.alignright img + img { margin-top: 16px; }
body.single-tour-item .qode-tour-item-plan-part-description .wp-caption-text { margin: 6px 0 0; font-size: 11px; line-height: 1.5; color: #666; }
@media (max-width: 767px) {
  body.single-tour-item .qode-tour-item-plan-part-description { padding: 20px 0 30px !important; }
  body.single-tour-item .qode-tour-item-plan-part .qode-line-between-icons { display: none; }
  body.single-tour-item .qode-tour-item-plan-part-description figure.alignright { float: none; width: 100%; max-width: none; margin: 0 0 22px; }
  body.single-tour-item .qode-tour-item-plan-part-description figure.alignright img { max-height: 340px; }
  body.single-tour-item .qode-tour-item-single-holder .qode-tour-masonry-gallery,
  body.single-tour-item .qode-tour-item-single-holder .qode-tour-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
}

/* Equal-size tour gallery tiles; full-size originals remain in the lightbox. */
body.single-tour-item .qode-tour-masonry-gallery-holder { width: 100%; }
body.single-tour-item .qode-tour-masonry-gallery,
body.single-tour-item .qode-tour-gallery {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
}
body.single-tour-item .qode-tour-masonry-gallery::before,
body.single-tour-item .qode-tour-masonry-gallery::after,
body.single-tour-item .qode-tour-gallery::before,
body.single-tour-item .qode-tour-gallery::after,
body.single-tour-item .qode-tour-grid-sizer,
body.single-tour-item .qode-tour-grid-gutter { display: none !important; }
body.single-tour-item .qode-tour-gallery-item {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  width: 100% !important;
  min-width: 0;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}
body.single-tour-item .qode-tour-gallery-item-inner,
body.single-tour-item .qode-tour-gallery-item-inner > a {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
body.single-tour-item .qode-tour-gallery-item-inner img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
@media (max-width: 767px) {
  body.single-tour-item .qode-tour-masonry-gallery,
  body.single-tour-item .qode-tour-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
}

/* Keep the selected tour-cover subject visible inside Bridge's title area. */
body:is(.postid-13, .postid-811, .postid-812, .postid-813) .title.has_background {
  background-size: cover !important;
  background-position: center center !important;
}

/* More content and less empty space on mobile tour pages. */
@media (max-width: 767px) {
  body.single-tour-item .content > .content_inner > .container > .container_inner { width: calc(100% - 32px) !important; }
  body.single-tour-item .qode-tour-item-single-holder { padding: 32px 0 40px !important; }
  body.single-tour-item .qode-tour-item-section { padding: 22px 0 18px !important; }
  body.single-tour-item .qode-tour-nav-item .ui-tabs-anchor { padding: 10px 18px !important; line-height: 24px; }
  body.single-tour-item .qode-tour-item-content { margin: 16px 0 24px !important; }
  body.single-tour-item .qode-tour-item-main-info { margin: 24px 0 32px !important; }
  body.single-tour-item .qode-tour-item-content > .elementor > .e-con.e-parent { padding-inline: 14px !important; }
  body.single-tour-item .qode-tour-item-plan-part-description { padding: 14px 0 22px !important; }
  body.single-tour-item .qode-tour-item-plan-part-description figure.alignright { margin-bottom: 16px; }
  body.single-tour-item .qode-tour-gallery-item-excerpt { margin-bottom: 20px; }
  body.single-tour-item .qode-tour-item-single-holder .widget { margin-bottom: 24px !important; }
}

/* Match the Information-tab gallery preview to the mobile gallery tiles. */
@media (max-width: 767px) {
  body.single-tour-item .qode-tour-gallery > .qode-tour-gallery-item > a { display: block; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; }
  body.single-tour-item .qode-tour-gallery > .qode-tour-gallery-item > a > img { display: block; width: 100% !important; height: 100% !important; aspect-ratio: 1 / 1; object-fit: cover; }
}
body.single-tour-item .qode-tour-gallery-item { overflow: hidden; }
body.single-tour-item .qode-tour-gallery-item img { transition: transform 280ms ease; transform-origin: center; }
body.single-tour-item .qode-tour-gallery-item a:hover img,
body.single-tour-item .qode-tour-gallery-item a:focus-visible img { transform: scale(1.045); }
@media (prefers-reduced-motion: reduce) {
  body.single-tour-item .qode-tour-gallery-item img { transition: none; }
}

@media (max-width: 767px) {
  body.single-tour-item .qode-tour-gallery-item img[src*="/folk-dance-detail"] { object-position: center top; }
}
