/* Mobile carousel square images */
@media (max-width: 640px) {
  .mobile-square-image {
    width: 100%;
  }
  
  .square-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 1:1 aspect ratio (square) */
    overflow: hidden;
    background: #f5f5f5;
  }
  
  .square-container picture,
  .square-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  
  .mobile-carousel-image {
    object-fit: contain;
    object-position: center;
    width: 100%;
    height: 100%;
  }
  
  /* Ensure carousel container has max height to keep dots visible */
  #mobile-gallery {
    max-height: calc(100vh - 200px); /* Leave space for header, dots, and info */
  }
  
  #mobile-gallery .owl-stage-outer {
    max-height: calc(100vw - 24px); /* Square based on viewport width minus padding */
  }
  
  /* Ensure dots are always visible */
  #mobile-gallery .owl-dots {
    position: relative;
    margin-top: 10px;
    padding-bottom: 10px;
  }
  
  /* Video container in carousel should also be square */
  #mobile-gallery .video-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* Square aspect ratio */
    overflow: hidden;
  }
  
  #mobile-gallery .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  
  /* Shopify image cards should also be square */
  .shopify-image-card {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* Square aspect ratio */
    overflow: hidden;
    background: #f5f5f5;
  }
  
  .shopify-image-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }
  
  /* Ensure the overlay stays at bottom */
  .shopify-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px;
    font-size: 14px;
    text-align: center;
    z-index: 1;
  }
}
