/** Shopify CDN: Minification failed

Line 7:0 Unexpected "<"
Line 432:0 Unexpected "<"

**/
<style>
/* RESPONSIVE IMAGE GRID - CROPPING FIXED VERSION */
/* Core container setup with flexible aspect ratios */
.product-images-gallery {
  background-color: transparent;
  border: none;
  padding: 0;
  margin: 0 auto;
  overflow: visible;
  width: 95%;
  max-width: 1500px;
}

.product-images-gallery .images-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(4, auto);
  gap: 8px;
  padding: 0;
  width: 96%;
  max-width: 100%;
  margin: 0 auto;
  background-color: transparent;
  box-sizing: border-box;
}

/* Image wrapper with dynamic aspect ratios */
.product-images-gallery .product-image-item {
  overflow: hidden;
  background-color: transparent;
  border-radius: 6px;
  border: none;
  position: relative;
  width: 100%;
  /* Remove fixed heights - use aspect-ratio instead */
}

/* CRITICAL FIX: Prevent cropping with better object-fit handling */
.product-images-gallery .product-image-item img {
  width: 100%;
  height: 100%;
  /* Use object-fit: contain for full image visibility or cover with better positioning */
  object-fit: cover;
  object-position: center center; /* Better than default top positioning */
  border-radius: 6px;
  display: block;
  /* Add min-height to prevent squashing */
  min-height: 150px;
}

/* MOBILE LAYOUT - Use aspect-ratio instead of fixed heights */
/* Image 1 - Full width */
.product-images-gallery .product-image-item:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: 1;
  aspect-ratio: 16/9; /* Responsive ratio instead of fixed height */
  min-height: 180px;
}

/* Images 2 & 3 - Side by side */
.product-images-gallery .product-image-item:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
  aspect-ratio: 4/5; /* Portrait-ish ratio */
  min-height: 190px;
}

.product-images-gallery .product-image-item:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
  aspect-ratio: 4/5;
  min-height: 190px;
}

/* Image 4 - Full width */
.product-images-gallery .product-image-item:nth-child(4) {
  grid-column: 1 / 3;
  grid-row: 3;
  aspect-ratio: 16/9;
  min-height: 180px;
}

/* Images 5 & 6 - Side by side */
.product-images-gallery .product-image-item:nth-child(5) {
  grid-column: 1;
  grid-row: 4;
  aspect-ratio: 4/5;
  min-height: 190px;
}

.product-images-gallery .product-image-item:nth-child(6) {
  grid-column: 2;
  grid-row: 4;
  aspect-ratio: 4/5;
  min-height: 190px;
}

/* VERY SMALL SCREENS (≤374px) */
@media screen and (max-width: 374px) {
  .product-images-gallery .images-container {
    gap: 6px;
    width: 98%;
  }
  
  .product-images-gallery .product-image-item {
    border-radius: 4px;
  }
  
  .product-images-gallery .product-image-item img {
    border-radius: 4px;
    min-height: 120px; /* Adjusted for very small screens */
  }
  
  /* Adjust aspect ratios for very small screens */
  .product-images-gallery .product-image-item:nth-child(1),
  .product-images-gallery .product-image-item:nth-child(4) {
    aspect-ratio: 3/2; /* Less wide on tiny screens */
    min-height: 140px;
  }
  
  .product-images-gallery .product-image-item:nth-child(2),
  .product-images-gallery .product-image-item:nth-child(3),
  .product-images-gallery .product-image-item:nth-child(5),
  .product-images-gallery .product-image-item:nth-child(6) {
    aspect-ratio: 1/1; /* Square on tiny screens */
    min-height: 160px;
  }
}

/* SMALL SCREENS (375px - 479px) */
@media screen and (min-width: 375px) and (max-width: 479px) {
  .product-images-gallery .images-container {
    gap: 7px;
    width: 97%;
  }
  
  .product-images-gallery .product-image-item {
    border-radius: 5px;
  }
  
  .product-images-gallery .product-image-item img {
    border-radius: 5px;
    min-height: 140px;
  }
  
  /* Optimized ratios for small phones */
  .product-images-gallery .product-image-item:nth-child(1),
  .product-images-gallery .product-image-item:nth-child(4) {
    aspect-ratio: 5/3;
    min-height: 160px;
  }
}

/* MEDIUM MOBILE SCREENS (480px - 599px) */
@media screen and (min-width: 480px) and (max-width: 599px) {
  .product-images-gallery .images-container {
    gap: 8px;
    width: 96%;
  }
  
  .product-images-gallery .product-image-item img {
    min-height: 160px;
  }
  
  /* Better ratios for medium phones */
  .product-images-gallery .product-image-item:nth-child(1),
  .product-images-gallery .product-image-item:nth-child(4) {
    aspect-ratio: 16/9;
    min-height: 180px;
  }
}

/* TABLET LAYOUT (600px - 749px) - Asymmetric Grid */
@media screen and (min-width: 600px) and (max-width: 749px) {
  .product-images-gallery .images-container {
    gap: 10px;
    width: 85%;
    grid-template-rows: repeat(4, auto);
  }
  
  .product-images-gallery .product-image-item img {
    border-radius: 6px;
    min-height: 160px;
  }
  
  /* Tablet asymmetric layout with aspect ratios */
  .product-images-gallery .product-image-item:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: 4/3;
    min-height: 180px;
  }
  
  .product-images-gallery .product-image-item:nth-child(2) {
    grid-column: 2;
    grid-row: 1 / 3;
    aspect-ratio: 3/4;
    min-height: 380px;
  }
  
  .product-images-gallery .product-image-item:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
    aspect-ratio: 4/3;
    min-height: 180px;
  }
  
  .product-images-gallery .product-image-item:nth-child(4) {
    grid-column: 1;
    grid-row: 3 / 5;
    aspect-ratio: 3/4;
    min-height: 380px;
  }
  
  .product-images-gallery .product-image-item:nth-child(5) {
    grid-column: 2;
    grid-row: 3;
    aspect-ratio: 4/3;
    min-height: 180px;
  }
  
  .product-images-gallery .product-image-item:nth-child(6) {
    grid-column: 2;
    grid-row: 4;
    aspect-ratio: 4/3;
    min-height: 180px;
  }
}

/* IPAD PRO LANDSCAPE (750px - 1024px) */
@media screen and (min-width: 750px) and (max-width: 1024px) and (orientation: landscape) {
  .product-images-gallery .images-container {
    gap: 15px;
    width: 85%;
    max-width: 1000px;
  }
  
  .product-images-gallery .product-image-item {
    border-radius: 10px;
  }
  
  .product-images-gallery .product-image-item img {
    border-radius: 10px;
    min-height: 200px;
  }
  
  /* iPad Pro landscape ratios */
  .product-images-gallery .product-image-item:nth-child(1),
  .product-images-gallery .product-image-item:nth-child(4) {
    aspect-ratio: 2/1;
    min-height: 240px;
  }
  
  .product-images-gallery .product-image-item:nth-child(2),
  .product-images-gallery .product-image-item:nth-child(3),
  .product-images-gallery .product-image-item:nth-child(5),
  .product-images-gallery .product-image-item:nth-child(6) {
    aspect-ratio: 4/5;
    min-height: 280px;
  }
}

/* IPAD PRO PORTRAIT (750px - 834px) */
@media screen and (min-width: 750px) and (max-width: 834px) and (orientation: portrait) {
  .product-images-gallery .images-container {
    gap: 12px;
    width: 90%;
    max-width: 800px;
  }
  
  .product-images-gallery .product-image-item {
    border-radius: 8px;
  }
  
  .product-images-gallery .product-image-item img {
    border-radius: 8px;
    min-height: 240px;
  }
  
  /* iPad Pro portrait ratios */
  .product-images-gallery .product-image-item:nth-child(1),
  .product-images-gallery .product-image-item:nth-child(4) {
    aspect-ratio: 3/2;
    min-height: 280px;
  }
  
  .product-images-gallery .product-image-item:nth-child(2),
  .product-images-gallery .product-image-item:nth-child(3),
  .product-images-gallery .product-image-item:nth-child(5),
  .product-images-gallery .product-image-item:nth-child(6) {
    aspect-ratio: 4/5;
    min-height: 320px;
  }
}

/* DESKTOP LAYOUT (1025px+) */
@media screen and (min-width: 1025px) {
  .product-images-gallery .images-container {
    gap: 20px;
    width: 80%;
    max-width: 1100px;
  }
  
  .product-images-gallery .product-image-item {
    border-radius: 12px;
  }
  
  .product-images-gallery .product-image-item img {
    border-radius: 12px;
    min-height: 280px;
  }
  
  /* Desktop ratios for consistent layout */
  .product-images-gallery .product-image-item:nth-child(1),
  .product-images-gallery .product-image-item:nth-child(4) {
    aspect-ratio: 5/3;
    min-height: 320px;
  }
  
  .product-images-gallery .product-image-item:nth-child(2),
  .product-images-gallery .product-image-item:nth-child(3),
  .product-images-gallery .product-image-item:nth-child(5),
  .product-images-gallery .product-image-item:nth-child(6) {
    aspect-ratio: 4/5;
    min-height: 380px;
  }
}

/* LARGE DESKTOP (1200px+) */
@media screen and (min-width: 1200px) {
  .product-images-gallery .images-container {
    gap: 25px;
    width: 75%;
    max-width: 1200px;
  }
  
  .product-images-gallery .product-image-item img {
    min-height: 320px;
  }
  
  /* Large desktop ratios */
  .product-images-gallery .product-image-item:nth-child(1),
  .product-images-gallery .product-image-item:nth-child(4) {
    aspect-ratio: 16/9;
    min-height: 380px;
  }
  
  .product-images-gallery .product-image-item:nth-child(2),
  .product-images-gallery .product-image-item:nth-child(3),
  .product-images-gallery .product-image-item:nth-child(5),
  .product-images-gallery .product-image-item:nth-child(6) {
    aspect-ratio: 3/4;
    min-height: 440px;
  }
}

/* ALTERNATIVE: Use object-fit: contain for NO cropping at all */
.product-images-gallery .product-image-item.no-crop img {
  object-fit: contain;
  background-color: #f8f8f8; /* Light background for letterboxing */
}

/* TEXT HEADER STYLING */
.custom-text-header {
  width: 100%;
  max-width: 1200px;
  text-align: center;
  background-color: transparent;
}

.custom-text-header h1 {
  color: #00584b;
  font-size: clamp(2rem, 5vw, 4.5rem); /* Responsive font sizing */
  font-weight: 600;
}

/* MOBILE TEXT STYLING */
@media screen and (max-width: 749px) {
  .custom-text-header h1 {
    font-size: clamp(3rem, 8vw, 7.5rem);
  }
}

/* PERFORMANCE & ACCESSIBILITY IMPROVEMENTS */
.product-images-gallery img {
  transition: transform 0.3s ease;
  loading: lazy; /* Native lazy loading */
}

.product-images-gallery img:hover {
  transform: scale(1.02);
}

.product-images-gallery .product-image-item:focus-within {
  outline: 2px solid #00584b;
  outline-offset: 2px;
}

/* FALLBACK FOR OLDER BROWSERS */
@supports not (aspect-ratio: 1) {
  .product-images-gallery .product-image-item:nth-child(1),
  .product-images-gallery .product-image-item:nth-child(4) {
    height: 180px;
  }
  
  .product-images-gallery .product-image-item:nth-child(2),
  .product-images-gallery .product-image-item:nth-child(3),
  .product-images-gallery .product-image-item:nth-child(5),
  .product-images-gallery .product-image-item:nth-child(6) {
    height: 190px;
  }
}

/* PRINT STYLES */
@media print {
  .product-images-gallery .images-container {
    display: block;
  }
  
  .product-images-gallery .product-image-item {
    page-break-inside: avoid;
    margin: 0 0 20px 0;
    height: auto;
  }
}
</style>