/* Common Print Styles for Both Orientations */
@media print {
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  @page {
    margin: 0;
  }

  img,
  p,
  svg {
    break-inside: avoid;
    break-before: avoid;
    break-after: avoid;
  }

  .section:last-of-type {
    page-break-after: avoid !important;
    break-after: avoid !important;
  }

  .s4 .property-image {
    width: 70px;
    border-radius: 4px;
    aspect-ratio: 7/6!important;
  }
  .s4 .row {
    page-break-inside: avoid !important;
    padding: 10px 0px;
  }
  .js-s6-chart-btn,
  .js-s7-chart-btn {
    display: none !important;
  }
  .status-color {
    display: inline-block;
  }

  body,
  .section,
  section.s10{
    background-color: #fff !important;
  }

  body {
    padding-bottom: 0 !important;
  }

  .section:not(:first-of-type):not([data-cma-uploaded-page='true']) {
    padding-bottom: 10pt !important;
  }

  .social-print {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .social-print p {
    font-size: 8.5pt !important;
  }

  .section {
    page-break-inside: avoid !important; /* Avoid breaking inside a section */
    page-break-after: always !important; /* Start each section on a new page */
    box-shadow: none;
    margin-bottom: unset;
    margin: 0;
  }
  .section .s-title,
  .data-section > h3,
  .s8-title,
  .s10-title {
    color: unset;
    font-size: 23pt !important;
    margin: 35pt 0 22pt!important;
  }

  .rechat-footer,
  aside,
  nav,
  form,
  iframe,
  .s10-video,
  .header-menu,
  .header .header-agent,
  .s2-more-btn-link,
  .js-s5-chart-btn,
  .js-s6-chart-btn,
  .js-s7-chart-btn,
  .scroll-button,
  .mapboxgl-ctrl,
  .accordion__trigger,
  .galleryModal,
  [data-type="button"],
  .noDisplay [data-type="button"] {
    display: none !important;
  }

  .header {
    /* position: unset !important; */
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    height: unset !important;
  }

  .header .wide-logo {
    max-height: 30px !important;
    margin: 15pt 0 10pt;
    max-width: unset;
  }

  .header .square-logo {
    max-height: 1in !important;
    max-width: 1in !important;
    margin: 20pt 0;
  }

  .content {
    padding: 0 !important;
  }

  .header {
    padding: 0 0.5in !important;
  }

  .js--template-editor-page:not([data-cma-uploaded-page='true']) {
    width: calc(100% - 1in) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .home {
    align-items: end !important;
    flex-direction: column-reverse !important;
    height: 100%;
  }

  .home-column-white {
    display: none !important;
  }
  .home .home-image {
    height: unset;
    width: 99%;
  }

  .home-column-img {
    width: 100% !important;
  }

  .home .home-card {
    width: 100%;
    height: unset;
    position: unset !important;
    background-color: #fff !important;
    box-shadow: unset !important;
    padding: 13pt 0pt 0pt !important;
    margin-left: -1pt;
  }
  .home .card-border {
    width: 70%;
    margin: 23.25pt auto;
    display: block;
    background: transparent !important;
  }

  .home-card > div {
    width: 100%;
  }
  .home .home-cma {
    font-size: 25pt !important;
    text-align: left !important;
  }

  .home .home-address {
    font-size: 16pt !important;
    margin-top: 15pt;
    text-align: left !important;
  }

  .home .home-agent {
    justify-content: LEFT;
    display: inline-flex;
  }
  .home .home-agent-name {
    font-size: 14pt !important;
  }

  .home .home-agent-avatar {
    width: 68pt !important;
    height: 68pt !important;
  }

  .home-agent-phone,
  .home-agent-email,
  .home-prepared {
    font-size: 12pt !important;
    overflow: unset !important;
    text-align: left;
  }

  .home-prepared {
    font-size: 10pt !important;
    overflow: unset !important;
  }

  .chart-btn input[type="checkbox"] {
    margin-right: 3pt !important;
  }

  .chart-btn {
    font-size: unset;
  }

  section.s2 {
    padding:0!important;
  }
  .s2-title {
    /* margin-top: 8pt !important; */
  }
  .s2-address-city {
    font-size: 14pt !important;
  }
  .s2 .s2-address {
    margin: 10px 0 10px;
  }
  .s2-address-street {
    font-size: 21pt !important;
  }
  .s2-right-info-item {
    padding: 12px 0;
  }
  .s2 .s2-left-info,
  .s2-right-info {
    /* margin-top: 15pt; */
  }
  .s2 .s-title {
    padding: 0 !important;
    margin: 0 !important;
  }


  .s2-subject-text,
  .s2-left-info-item1,
  .s2-left-info-item2,
  .s2-title,
  .s2-right-info-item1,
  .s2-right-info-item2,
  .s2-more-btn-link,
  .s2-desc {
    font-size: 10pt !important;
  }

  .s2-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 20;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .s2 .pure-u-xl-15-24 {
    width: 60%;
    margin-right: 15pt;
    padding-top: 35pt!important;
  }
  .s2-right-info {
    padding-top: 35pt !important;
  }
  .s2 .pure-u-xl-6-24 {
    width: 35%;
  }
  .s3 .s-title {
    display: none;
  }
  #map {
    height: 380px;
  }

  #map,
  #map canvas {
    page-break-after: always !important;
  }

  @page section3Page {
    border-top: 22pt solid transparent!important;
    border-bottom: 22pt solid transparent!important;
  }

  section.s3 {
    page: section3Page!important;
    page-break-inside: auto !important; 
    break-inside: auto !important;
    page-break-before: always!important;
    break-before: always!important;
    padding:35pt 0 0;
  }
  .s3-slide-next,
  .s3-slide-prev {
    display: none !important;
  }
  /* Ensure the container spans the full width */

  .s3 .glider-contain,
  .s3 .glider-track {
    page-break-inside: avoid !important;
    width: 100% !important;
    padding: 0;
  }
  #glider_s3 {
    margin: 0pt;
  }
  .glider-slide {
    min-width: unset !important;
    align-content: flex-start !important ;
  }
  /* Ensure the items wrap properly */
  .s3 .glider-track {
    /* flex-wrap: wrap !important; */
    display: block!important;
    width: 100% !important;
  }
  .s3 .slide-item:nth-child(3n+1) {
    clear: both;
  }
  .s3 .slide-item {
    display: inline-block;
    vertical-align: top;
    float: none !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  .slide-item, .list-box-s3 {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  .s3 .list-box--container-adjust {
    width: unset;
  }
  .s3 .no-adjust {
    padding: 5px 4px 10px;
  }
  .s3 .list-box--container-adjust-bottom {
    padding: 12px 4px;
    align-items: flex-start;
  }

  .s3 .long-box .txt-grey,
  .s3 .long-box--top-item {
    margin: 4.5pt 0 0 4pt !important;
    line-height: unset;
    height: unset;
    font-size: 8pt;
  }
  .s3 .long-box .txt-blue {
    font-size: 8pt;
  }
  .s3 .list-box-price-light {
    font-size: 8pt;
  }
  .s3 .long-box .status {
    height: unset;
    padding: 2pt 4pt 3pt;
  }
  .s3 .list-box--container-s3 {
    padding: 3pt 4pt;
    width: unset;
    height: unset;
  }
  .s3 .list-box--container-s3 svg {
    margin-right: 4pt !important;
  }
  .s3 .list-box--container-s3 span {
    margin: 0 !important;
  }
  .s3 .adjust-item {
    height: unset;
    padding: 4px;
  }
  .s3 .list-box-s3 {
    margin: 0pt !important;
    border-radius: 0pt;
    border-bottom: 0pt;
  }
  .s3 .long-box {
    width: unset;
    border-radius: 0pt !important;
  }
  .s3 .list-box-s3 .list-box-image {
    /* height: 90pt; */
    /* width: 100%; */
  }
  /* Apply dynamic width based on the number of items */
  #glider_s3.glider {
    display: flex !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
    height: auto !important;
  }
  #glider_s3 .slide-item {
    display: inline-block !important;
    padding-top: 13pt !important;
    padding-right: 0.2in;
    box-sizing: border-box !important; /* Include padding/border in width */
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid !important;
    width: unset !important;
  }
  #glider_s3 .slide-item:nth-child(3n) {
    padding-right: 0!important;
  }
  .s3 .img-count-badge, .s4 .img-count-badge {
    display: none;
    visibility: hidden;
  }

  @page section4Page {
    border-top: 35pt solid transparent!important;
    border-bottom: 22pt solid transparent!important;
  }

  section.s4 {
    page: section4Page!important;
  }

  section.s4 .s-title {
    margin: 0!important;
  }

  section.s4,
  .s4__table-wrapper-out {
    page-break-inside: auto!important;
    break-inside: auto!important;
  }
  
  .s4 .s4__table-wrapper {
    margin: 12pt 0!important;
  }
  .s4 .row--head > .col {
    font-size: 12pt;
  }
  .col {
    font-size: 10.5pt;
  }
  .s5-big-border-mid {
    display: block !important;
    background-color: #c2a99d !important;
    height: 1pt !important;
    width: 100% !important;
  }
  .s5-border-right-mobile {
    border-right: none !important;
  }
  .pc-tab {
    margin: 0 0 30pt !important;
  }

  .s5 .data-section > h3 {
    margin: 24pt 0 12pt;
  }
  .s5 .chart-buttons-container {
    margin-bottom: 24pt !important;
    display: none !important;
  }
  .s8 {
    padding-top: 30pt;
  }
  .s8 .s8-wrapper-bottom {
    padding: 42pt 0pt 20pt !important;
  }
  .s8 .s8-image {
    height: unset;
    max-height: 600px;
  }
  .s8 .s8-wrapper-card {
    left: 3%;
    right: unset;
    height: unset;
  }
  .s8-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 8; 
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5em; 
    max-height: 272px;
  }
  .s9-buttons-group,
  .s9-slide-prev,
  .s9-slide-next,
  .glider-dots,
  .s9-img {
    display: none !important;
  }
  .s9-content {
    margin: 0pt !important;
  }
  .s9-wrap {
    padding: 0pt;
  }
  .s9-qoute-wrapper {
    display: block;
    width: 100% !important;
    padding: 10pt;
    margin-bottom: 11.25pt;
    background-color: #fafafa;
    border: 1pt solid #eee;
    border-radius: 10pt;
    box-sizing: border-box;
    page-break-inside: avoid;
  }
  .s9-text {
    flex-direction: row;
    position: unset;
    margin-bottom: 18.75pt;
    display: flex;
  }
  .s9-qoute-name {
    font-size: 13.5pt;
    font-weight: bold;
    color: #333 !important;
    margin: 10pt 0pt 10pt 10pt;
    text-align: left;
    width: 30%;
  }

  .s9-qoute-text {
    font-size: 12pt;
    color: #555 !important;
    line-height: 1.5;
    text-align: justify;
    margin: 10pt 20pt;
    padding: 3.75pt 10pt;
    /* border-left: 3.75pt solid #0f3057; */
    background-color: #fff;
    page-break-inside: avoid;
    max-width: unset;
    /* display: inline-flex; */
    width: 54%;
  }
  
  .testimonial-rating {
    width: 16%;
    margin: 15pt 10pt;
  }

  .s9-padding {
    display: none;
  }

  .s9-qoute-wrapper svg {
    margin: 13.5pt 0pt 0pt 20pt;
  }
  .s9-qoute-wrapper svg path {
    fill: #0f3057;
  }
  /* Adjust height to auto-scale to content */
  .s9 .glider-track {
    height: auto !important;
    display: block !important;
    width: unset !important;
  }

  .s9-qoute {
    background-color: #fff !important;
    border: 1pt solid #eee;
    height: unset;
  }

  .s10 * {
    page-break-inside: avoid!important;
    break-inside: avoid!important;
    page-break-before: auto!important;
  }
  .s10 {
    display: block!important;
  }
  .s10 .s10-title {
    display: none;
  }
  .s10-agent-column {
    width: unset;
  }

  .s10-agent-avatar {
    width: 70pt !important;
    height: 70pt !important;
  }

  .s10-agent-name {
    color: #000 !important;
    font-size: 20pt;
  }

  .s10-agent-license,
  .s10-agent-position {
    color: #444 !important;
    text-align: left;
    margin-bottom: 6pt;
    font-size: 10.5pt;
  }
  .s10-agent-column {
    margin-right: 30pt !important;
  }
  .s10-wrapper > div {
    width: unset;
    margin: 0pt;
    margin-right: 3.75pt;
  }
  .s10-wrapper > div:first-child {
    width: 100%;
    margin: 0pt;
    margin-right: 3.75pt;
  }

  .s10-item {
    padding: 5pt !important;
    margin-top: 20pt !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12pt;
  }

  .s10-mobile,
  .s10-number,
  .s10-number a {
    color: #000 !important;
    text-align: left;
    font-size: unset;
    text-decoration: none;
  }

  .s10-contact-col, .s10-email-col {
    border-left: 1px solid #000 !important;
  }

  .s10-wrapper {
    padding: 0 30pt !important;
    margin-top: 20pt;
  }

  .s10-print {
    display: block !important;
    width: 100% !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .s10-video-container {
    display: none !important; /* Hide video for print */
  }

  .block-agent-box {
    background-color: #fff !important;
    padding: 20pt;
    border-radius: 6pt;
    box-shadow: 0 0 10pt rgba(0, 0, 0, 0.1);
  }

  /* Hide non-print elements */
  .no-print {
    display: none !important;
  }

  div:has(.s8-wrapper-disclaimer) {
    display: none;
  }

  .s10 {
    page-break-after: avoid !important;
  }

  .chart-print-tooltip {
    display: block !important;
    opacity: .5 !important;
    font-size: 10px !important;
    padding: 4px 6px !important;
  }
  .s2-more-btn {
    display: none !important;
  }

  .s3 .glider-track {
    display: flex;
    flex-direction: row;
    justify-content: center;
  }
  .s5 .data-section > h3 {
    padding: 0 !important;
  }

  .img-count-badge{
    display: none;
    visibility: hidden;
  }

    /* Prevent extra blank page after the last section */
  .section:last-child {
    page-break-after: avoid !important;
  }
  
  /* CMA section: edge-to-edge images, no margin/padding (landscape & portrait) */
  [data-cma-uploaded-page='true'] {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    break-inside: avoid-page !important;
    page-break-inside: avoid !important;
    page-break-after: auto !important; /* avoid extra blank page after last full-screen CMA image */
  }
  [data-cma-uploaded-page='true'] .cma-content-image {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-sizing: border-box !important;
    object-fit: contain !important;
    object-position: center center !important;
    max-height: 100% !important;
  }

}

/* Landscape Print Styles */
@media print and (orientation: landscape) {
  @page {
    size: 11in 8.5in landscape; /* Letter size in landscape orientation */
    margin: 0;
  }

  [data-cma-uploaded-page='true'] {
    height: 8.5in !important;
  }

  /* Set fixed dimensions for sections */
  section {
    width: 10in;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
  }

  /* Ensure the home element has a fixed height */
  .home {
    height: 6.5in;
    overflow: hidden; /* Prevent overflow that could distort the layout */
  }
  .home .home-image {
    height: 58%;
  }
  /* Prevent scaling based on screen size */
  body {
    width: 11in;
    height: 8.5in;
    margin: 0;
    padding: 0;
  }

  .s2-title {
    margin-top: 10pt !important;
  }
  .s2-right-info-item {
    padding: 10pt 0;
  }
  .s3 .glider-contain {
    page-break-before: always !important;
  }
  .s3 .long-box .txt-grey,
  .s3 .long-box--top-item {
    margin-top: 3pt !important;
  }
  .list-box--container-adjust {
    height: unset !important;
    min-height: unset !important;
  }

  .s4 .row {
    padding: 5px 0px;
  }
  .s5 .chart-buttons-container {
    display: none !important;
  }
  .s8 .s8-wrapper-bottom {
    padding: 10pt 0pt 20pt !important;
  }

  .s8 .s8-image {
    max-height: 370px;
  }
  .s8 .s8-wrapper-card {
    top: 10%;
  }
  .s9-text {
    flex-direction: row;
    margin-bottom: 6pt;
  }
  .s10 {
    flex-direction: column-reverse;
  }
  .s10 .s10-title {
    margin: 10pt 0 !important;
  }
  #glider_s3 .slide-item {
    min-width: calc(100% / 3) !important;
    max-width: calc(100% / 3) !important;
  }
  .s5-chart-container, .s6-chart-container, .s7-chart-container {
    /* width: 10in !important; */
    max-width: 10in !important;
    margin: auto !important;
    padding: 0 !important;
  }
  .s5-chart-container canvas {
    margin: auto ;
  }
  .pc-tab {
    display: flex;
    flex-direction: column;
  }

}

@media print and (orientation: portrait) {
  @page {
    size: 8.5in 11in portrait; /* Letter size in portrait orientation */
    margin: 0;
  }

  [data-cma-uploaded-page='true'] {
    height: 11in !important;
  }


  .home .home-card {
    margin-left: 0 !important;
  }

  section {
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
  }

  .home {
    height: 9.5in;
    overflow: hidden;
  }

  body {
    width: 8.5in;
    margin: 0;
    padding: 0;
  }
  .home .home-agent {
    margin-top: 110pt;
  }
  .s2 {
    page-break-after: avoid !important;
  }

  .s2-desc {
    -webkit-line-clamp: 30;
  }
  .s5 .chart-buttons-container {
    display: none !important;
  }
  .s6-chart-container, .s7-chart-container {
    width: 80vw !important;
    /* height: 3in !important;
    max-height: 3in !important; */
    box-sizing: border-box;
    page-break-inside: avoid !important; 
  }
  /* .s6 canvas,
  .s7 canvas {
    width: 100% !important;
    height: 100% !important;
  } */
  .s6 .chart-buttons-container,
  .s7 .chart-buttons-container {
    margin-bottom: 25px;
    height: 40px;
  }

  .s6 .s-title,
  .s7 .s-title  {
    font-size: 18pt !important;
  }

  .s6, .s7 {
    height: 5.3in !important;
    max-height: 5.3in !important;
  }
  .s6 {
    page-break-after: avoid !important;
  }

  .s9-qoute-name {
    font-size: 12pt;
    line-height: 1.5;
    width: 26%;
  }
  .s9-qoute-text {
    font-size: 10pt;
    line-height: 1.3;
    margin: 10pt;
  }
  .testimonial-rating {
    width: 20%!important;
  }
  
  .s10 {
    height: 400px;
    flex-direction: column-reverse;
  }

  #glider_s3 .slide-item {
    min-width: calc(100% / 3) !important;
    max-width: calc(100% / 3) !important;
  }
  .js--template-editor-page {
    padding-top: 10pt;
  }
  .js--template-editor-page img {
    width: 100%;
  }

}


/* Hide tooltips on screen */
.chart-print-tooltip {
  display: none;
}


/* Slider print styles */

@media print {
  [data-type="carousel"].splide {
    display: flow-root !important;
    position: relative !important;
    clear: both !important;

    width: 100% !important;
    max-width: 100% !important;

    height: auto !important;
    min-height: auto !important;

    overflow: visible !important;
    box-sizing: border-box !important;

    margin: 30px 0 50px !important;
    padding: 0 !important;

    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  [data-type="carousel"].splide .splide__arrows,
  [data-type="carousel"].splide .splide__pagination,
  [data-type="carousel"].splide .splide__lightbox {
    display: none !important;
  }

  [data-type="carousel"].splide .splide__track {
    display: block !important;
    position: relative !important;

    width: 100% !important;
    max-width: 100% !important;

    height: auto !important;
    min-height: auto !important;

    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;

    box-sizing: border-box !important;

    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  [data-type="carousel"].splide .splide__list {
    display: grid !important;
    position: relative !important;

    width: 100% !important;
    max-width: 100% !important;

    height: auto !important;
    min-height: auto !important;

    transform: none !important;
    translate: none !important;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
    box-sizing: border-box !important;

    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  [data-type="carousel"].splide .splide__slide--clone {
    display: none !important;
  }

  [data-type="carousel"].splide .splide__slide:not(.splide__slide--clone) {
    display: block !important;
    position: relative !important;

    visibility: visible !important;
    opacity: 1 !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;

    height: auto !important;
    min-height: 0 !important;

    transform: none !important;

    padding: 6px !important;
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 14px !important;
    box-shadow: none !important;

    overflow: hidden !important;
    box-sizing: border-box !important;

    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  [data-type="carousel"].splide .splide__image {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;
    border-radius: 10px !important;

    box-sizing: border-box !important;
  }

  [data-type="carousel"].splide + * {
    clear: both !important;
    margin-top: 50px !important;
  }
}

@media print and (orientation: portrait) {
  [data-type="carousel"].splide .splide__list {
    grid-template-columns: repeat(3, 1fr) !important;
    grid-auto-rows: 150px !important;
    gap: 12px !important;
  }
}

@media print and (orientation: landscape) {
  [data-type="carousel"].splide .splide__list {
    grid-template-columns: repeat(3, 1fr) !important;
    grid-auto-rows: 145px !important;
    gap: 12px !important;
  }
}

@media print {
  [data-type="carousel"].splide ~ * {
    position: relative !important;
    transform: none !important;
  }
}

@media print {
  #section-9,
  #section-9.s9,
  #section-9.section,
  #section-9.js-section,
  #section-9.js--template-editor-page {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 24px 22px !important;
    margin: 0 !important;
    overflow: visible !important;
    transform: none !important;
    background: transparent !important;
    break-before: page !important;
    break-after: page !important;
    break-inside: auto !important;
    page-break-before: always !important;
    page-break-after: always !important;
    page-break-inside: auto !important;
  }

  #section-9.s9 * {
    box-sizing: border-box !important;
  }

  #section-9.s9 .s9-wrapper,
  #section-9.s9 .s9-header-block,
  #section-9.s9 .s9-wrap,
  #section-9.s9 .s9-right-col,
  #section-9.s9 .s9-glider-card-box,
  #section-9.s9 .glider-contain,
  #section-9.s9 .glider,
  #section-9.s9 .glider-track {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: visible !important;
    transform: none !important;
    transition: none !important;
    background: transparent !important;
    break-before: auto !important;
    break-after: auto !important;
    break-inside: auto !important;
    page-break-before: auto !important;
    page-break-after: auto !important;
    page-break-inside: auto !important;
  }

  #section-9.s9 .s9-header-block {
    margin: 0 0 18px !important;
    padding: 0 !important;
  }

  #section-9.s9 .s9-title {
    display: block !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
    font-size: 14px !important;
    line-height: 1.15 !important;
    font-weight: 400 !important;
    text-align: left !important;
  }

  #section-9.s9 .s9-subtitle {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 24px !important;
    line-height: 1.08 !important;
    font-weight: 700 !important;
    text-align: left !important;
  }

  #section-9.s9 .s9-left-col,
  #section-9.s9 .s9-buttons-group,
  #section-9.s9 .glider-prev,
  #section-9.s9 .glider-next,
  #section-9.s9 .glider-dots,
  #section-9.s9 .dots {
    display: none !important;
  }

  #section-9.s9 .s9-quote-wrapper,
  #section-9.s9 .glider-slide {
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    float: none !important;
    transform: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    background: rgba(0, 0, 0, 0.035) !important;
    break-before: auto !important;
    break-after: auto !important;
    break-inside: avoid !important;
    page-break-before: auto !important;
    page-break-after: auto !important;
    page-break-inside: avoid !important;
  }

  #section-9.s9 .s9-quote-wrapper::before,
  #section-9.s9 .glider-slide::before {
    content: "" !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: block !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background-image: url("data:image/svg+xml,%3Csvg width='124' height='100' viewBox='0 0 124 100' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%2311111f' d='M124 100H70.2023V51.9394L93.3619 0H114.591L95.7743 48.0561H124V100ZM54.0389 100H0V51.9394L23.4008 0H44.6304L25.8132 48.0561H54.0389V100Z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center top !important;
    background-size: contain !important;
  }

  #section-9.s9 .s9-quote {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    transform: none !important;
  }

  #section-9.s9 .s9-text-container {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #section-9.s9 .testimonial-rating {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
  }

  #section-9.s9 .testimonial-star,
  #section-9.s9 .testimonial-rating img,
  #section-9.s9 .testimonial-rating svg {
    display: block !important;
    object-fit: contain !important;
  }

  #section-9.s9 .s9-quote-name,
  #section-9.s9 .s9-quote-role {
    display: block !important;
    padding: 0 !important;
    text-align: left !important;
  }
}

@media print and (orientation: portrait) {
  #section-9.s9 {
    padding: 24px 26px !important;
  }

  #section-9.s9 .s9-header-block {
    margin-bottom: 20px !important;
  }

  #section-9.s9 .s9-title {
    font-size: 16px !important;
    margin-bottom: 7px !important;
  }

  #section-9.s9 .s9-subtitle {
    font-size: 28px !important;
    line-height: 1.1 !important;
  }

  #section-9.s9 .glider-track,
  #section-9.s9 .glider {
    display: block !important;
  }

  /* Clone the page-1 header space on continuation fragments only. */
  #section-9.s9 .glider-track {
    padding-top: 100px !important;
    margin-top: -100px !important;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }

  #section-9.s9 .s9-quote-wrapper,
  #section-9.s9 .glider-slide {
    display: grid !important;
    grid-template-columns: 82px minmax(0, 1fr) !important;
    gap: 18px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 14px 18px !important;
    margin: 0 0 12px !important;
  }

  #section-9.s9 .s9-quote-wrapper:last-child,
  #section-9.s9 .glider-slide:last-child {
    margin-bottom: 0 !important;
  }

  #section-9.s9 .s9-quote-wrapper::before,
  #section-9.s9 .glider-slide::before {
    width: 58px !important;
    height: 46px !important;
  }

  #section-9.s9 .s9-quote {
    grid-column: 2 !important;
  }

  #section-9.s9 .s9-quote-text {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    font-size: 14.5px !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;
    text-align: left !important;
    max-height: none !important;
    overflow: visible !important;
  }

  #section-9.s9 .testimonial-rating {
    gap: 2px !important;
    margin: 0 0 5px !important;
  }

  #section-9.s9 .testimonial-star,
  #section-9.s9 .testimonial-rating img,
  #section-9.s9 .testimonial-rating svg {
    width: 12px !important;
    height: 12px !important;
  }

  #section-9.s9 .s9-quote-name {
    margin: 0 0 2px !important;
    font-size: 12.5px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
  }

  #section-9.s9 .s9-quote-role {
    margin: 0 !important;
    font-size: 10.5px !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;
    opacity: 0.65 !important;
  }
}

@media print and (orientation: landscape) {
  #section-9.s9 {
    padding: 18px 28px !important;
    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  #section-9.s9 .s9-header-block {
    margin-bottom: 24px !important;
  }

  #section-9.s9 .s9-title {
    font-size: 16px !important;
    margin-bottom: 6px !important;
    line-height: 1.1 !important;
  }

  #section-9.s9 .s9-subtitle {
    font-size: 24px !important;
    line-height: 1.08 !important;
  }

  #section-9.s9 .glider {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    transform: none !important;
    transition: none !important;
  }

  #section-9.s9 .glider-track {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 14px 18px !important;

    padding-top: 92px !important;
    margin-top: -92px !important;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;

    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    overflow: visible !important;
    transform: none !important;
    transition: none !important;

    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  #section-9.s9 .s9-quote-wrapper,
  #section-9.s9 .glider-slide {
    display: grid !important;
    grid-template-columns: 54px minmax(0, 1fr) !important;
    gap: 14px !important;
    align-items: start !important;

    width: calc(50% - 9px) !important;
    max-width: calc(50% - 9px) !important;
    min-width: 0 !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    padding: 16px 18px !important;
    margin: 0 !important;

    opacity: 1 !important;
    visibility: visible !important;

    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    float: none !important;
    transform: none !important;

    flex: 0 0 calc(50% - 9px) !important;

    background: rgba(0, 0, 0, 0.035) !important;

    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  #section-9.s9 .s9-quote-wrapper:last-child:nth-child(odd),
  #section-9.s9 .glider-slide:last-child:nth-child(odd) {
    width: calc(50% - 9px) !important;
    max-width: calc(50% - 9px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #section-9.s9 .s9-quote-wrapper::before,
  #section-9.s9 .glider-slide::before {
    content: "" !important;
    grid-column: 1 !important;
    grid-row: 1 !important;

    display: block !important;
    width: 42px !important;
    height: 34px !important;

    margin: 0 auto !important;
    padding: 0 !important;

    background-image: url("data:image/svg+xml,%3Csvg width='124' height='100' viewBox='0 0 124 100' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%2311111f' d='M124 100H70.2023V51.9394L93.3619 0H114.591L95.7743 48.0561H124V100ZM54.0389 100H0V51.9394L23.4008 0H44.6304L25.8132 48.0561H54.0389V100Z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center top !important;
    background-size: contain !important;
  }

  #section-9.s9 .s9-quote {
    grid-column: 2 !important;

    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    transform: none !important;
  }

  #section-9.s9 .s9-text-container {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;
  }

  #section-9.s9 .s9-quote-text {
    display: block !important;
    width: 100% !important;
    max-width: none !important;

    margin: 0 0 7px !important;
    padding: 0 !important;

    font-size: 11.2px !important;
    line-height: 1.18 !important;
    font-weight: 400 !important;
    text-align: left !important;

    max-height: none !important;
    overflow: visible !important;
  }

  #section-9.s9 .testimonial-rating {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 1px !important;

    width: auto !important;
    max-width: none !important;

    margin: 0 0 4px !important;
    padding: 0 !important;
  }

  #section-9.s9 .testimonial-star,
  #section-9.s9 .testimonial-rating img,
  #section-9.s9 .testimonial-rating svg {
    width: 9px !important;
    height: 9px !important;
    display: block !important;
    object-fit: contain !important;
  }

  #section-9.s9 .s9-quote-name {
    display: block !important;
    margin: 0 0 1px !important;
    padding: 0 !important;

    font-size: 9.2px !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
    text-align: left !important;

    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  #section-9.s9 .s9-quote-role {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;

    font-size: 8px !important;
    line-height: 1.1 !important;
    font-weight: 400 !important;
    opacity: 0.65 !important;
    text-align: left !important;

    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}
