@media (max-width: 767px) {
  .elementor .e-con,
  .elementor-widget,
  .entry-content,
  .entry-content > * {
    min-width: 0;
  }
  .entry-content p,
  .entry-content li,
  .elementor-heading-title {
    overflow-wrap: anywhere;
  }
  .entry-content img,
  .entry-content video {
    max-width: 100%;
  }
  .wp-block-embed.is-type-video {
    margin-inline: 0;
    max-width: 100%;
  }
  .wp-block-embed.is-type-video .wp-block-embed__wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
  }
  .wp-block-embed.is-type-video .wp-block-embed__wrapper::before {
    display: none;
  }
  .wp-block-embed.is-type-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }
  .local-youtube-preview > span:first-child,
  .elementor-custom-embed-image-overlay > span:first-child {
    font-size: 14px !important;
    line-height: 1.35 !important;
    padding: 10px 12px 20px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .local-banner-window {
    touch-action: pan-y pinch-zoom;
  }
  .local-banner-dots {
    gap: 0 !important;
    padding: 0 !important;
  }
  .local-banner-dots button {
    box-sizing: border-box;
    width: 32px !important;
    height: 32px !important;
    border: 13px solid transparent !important;
    background-clip: content-box !important;
  }
  .ct-toggle-dropdown-mobile,
  .ct-header-trigger,
  .ct-panel-actions button {
    min-width: 44px;
    min-height: 44px;
  }
  .mobile-menu .ct-menu-link {
    min-height: 44px;
  }
  #offcanvas .ct-panel-inner {
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .entry-content input,
  .entry-content select,
  .entry-content textarea {
    font-size: 16px;
    max-width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .local-banner-track {
    transition-duration: 1ms !important;
  }
}

@media (max-width: 767px) {
  body.archive #main > .ct-container {
    width: calc(100% - 32px);
    padding-block: 24px 32px;
  }
  body.archive .hero-section {
    margin-bottom: 24px;
  }
  body.archive .hero-section .page-title {
    font-size: 28px;
    line-height: 1.2;
  }
  body.archive .entries[data-layout="grid"] {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  body.archive .entry-card {
    min-width: 0;
    padding: 20px;
    --card-inner-spacing: 20px;
  }
  body.archive .entry-card .ct-media-container {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    margin-top: 0;
  }
  body.archive .entry-card .ct-media-container img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
  }
  body.archive .entry-title {
    font-size: 21px;
    line-height: 1.4;
    overflow-wrap: break-word;
  }
  body.archive .entry-excerpt {
    font-size: 16px;
    line-height: 1.7;
    overflow-wrap: break-word;
  }
  body.archive .entry-button {
    min-height: 44px;
    align-self: flex-start;
  }
  body.archive .ct-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
  }
  body.archive .ct-pagination a,
  body.archive .ct-pagination .page-numbers {
    min-width: 44px;
    min-height: 44px;
  }
}

/* Shared phone sizing also covers aliases and article/category templates. */
@media (max-width: 767px) {
  #main .elementor-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    max-width: 100%;
    white-space: normal;
  }
  #main .elementor-button-content-wrapper {
    min-width: 0;
    overflow-wrap: break-word;
  }
  .elementor-page-2102 #main .elementor-widget-text-editor,
  .elementor-page-2102 #main .elementor-widget-text-editor p {
    font-size: 16px;
    line-height: 1.65;
    overflow-wrap: break-word;
  }
  #main .wp-block-table {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  #main .wp-block-table table {
    min-width: 100%;
  }
  #main .entry-content pre {
    max-width: 100%;
    overflow-x: auto;
  }
  body.archive .page-title {
    overflow-wrap: break-word;
  }
}

@media (min-width: 768px) and (max-width: 999.98px) {
  body.archive .entries[data-layout="grid"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  body.archive .entry-card {
    min-width: 0;
  }
  body.archive .entry-title {
    overflow-wrap: break-word;
  }
}

@media (max-width: 767px) {
  .home-mobile .elementor-image-carousel-wrapper,
  .home-mobile .e-n-carousel {
    max-width: 100%;
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
  }
  .home-mobile .swiper-slide,
  .home-mobile .e-n-carousel .swiper-slide {
    min-width: 0;
  }
  .home-mobile .elementor-widget-text-editor,
  .agent-mobile .elementor-widget-text-editor,
  .contact-mobile .elementor-widget-text-editor {
    font-size: 16px;
    line-height: 1.65;
    overflow-wrap: break-word;
  }
  .home-mobile .e-n-carousel .elementor-heading-title {
    overflow-wrap: break-word;
  }
  .promotion-mobile .elementor-posts-container.elementor-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .promotion-mobile .elementor-post {
    min-width: 0;
  }
  .promotion-mobile .elementor-post__thumbnail__link {
    width: 100%;
    margin-bottom: 16px;
  }
  .promotion-mobile .elementor-post__title {
    font-size: 21px;
    line-height: 1.4;
    overflow-wrap: break-word;
  }
  .promotion-mobile .elementor-post__excerpt p {
    font-size: 16px;
    line-height: 1.65;
  }
  .promotion-mobile .elementor-post__read-more {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .promotion-mobile .elementor-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  .promotion-mobile .elementor-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
  }
  .leaderboard-mobile .wp-block-table {
    max-width: 100%;
    margin-inline: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .leaderboard-mobile .wp-block-table table {
    width: 100%;
    font-size: 14px;
    line-height: 1.5;
  }
  .leaderboard-mobile .wp-block-table td {
    padding: 10px 8px;
    overflow-wrap: normal;
  }
  .leaderboard-mobile .wp-block-table td:last-child {
    white-space: nowrap;
  }
  .contact-mobile .ekit-accordion--toggler {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 14px 16px !important;
  }
  .contact-mobile .ekit-accordion-title {
    font-size: 16px;
    line-height: 1.5;
    overflow-wrap: break-word;
  }
  .contact-mobile .ekit_accordion_icon_group {
    flex-shrink: 0;
  }
  .contact-mobile .elementskit-card-body {
    padding: 16px !important;
    font-size: 16px;
    line-height: 1.65;
    overflow-wrap: anywhere;
  }
  .agent-mobile .elementor-widget-image img,
  .contact-mobile .elementor-widget-image img {
    max-width: 100%;
    height: auto;
  }
  .agent-mobile .elementor-heading-title,
  .contact-mobile .elementor-heading-title {
    overflow-wrap: break-word;
  }
}
