@media only screen and (max-width: 768px) {
  /* Make all images fully responsive */
  img,
  .images-fluid,
  figure img,
  .tm-gallery-item img,
  .portfolio-item img,
  .column img,
  .photo img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto 20px auto !important;
  }

  /* Ensure containers allow full-width images */
  .tm-container-gallery,
  .container,
  .row,
  .tm-gallery,
  .tm-gallery-container,
  .grid,
  .tm-section,
  .tm-content {
    padding: 0 !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Stack columns */
  .column,
  .tm-gallery-item,
  .portfolio-item {
    margin-bottom: 20px !important;
    display: block !important;
    padding: 0 !important;
    float: none !important;
    width: 100% !important;
  }

  /* Remove figure padding/margin */
  figure {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  /* Text containers */
  .tm-intro-text-container,
  .tm-section-text-container,
  .tm-section-wrap {
    padding: 0 15px !important;
    margin: 0 auto !important;
  }

  /* General cleanup */
  body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  /* Footer styling */
  .tm-footer {
    padding: 15px;
    text-align: center;
  }

  /* Dropdown links in navigation */
  .dropdown-content a {
    display: block;
    padding: 10px 15px;
    background-color: #ffffff;
    color: #000000;
    border-top: 1px solid #ddd;
    text-decoration: none;
  }
}