
/*==========================================
Intellectual Property Page
============================*/
.ip-section {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 4rem 1rem;
  box-sizing: border-box;
}
.section {
  max-width: 1200px;
  padding-left: 1rem;
  padding-right: 1rem;
  margin-left: auto;
  margin-right: auto;
}
/* cards ipp-card card-v, card-1, card-2 */
.ip-container {
  max-width: 1200px;
  margin: 0 auto;
  /*margin-left: auto;
  margin-right: auto;*/
  padding: 0 1rem;
  /*padding-left: 1rem;
  padding-right: 1rem;*/
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ip-intro {
  text-align: center;
  padding: 4rem 1rem 2rem;
  color: #444;
}
.ip-intro-container {
  max-width: 900px;
  margin: 0 auto;
}
.ip-intro .section-title {
  margin-bottom: 1rem;
}
.ip-intro-text p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: #444;
  margin: 0;
  padding: 0.125rem 0 0.85rem 0;
  padding-right: 0;
  text-align: left;
  width: 100%;
  max-width: 100%;
  /*text-align: justify; /* This justifies the paragraph */
}
.theme-dark .ip-intro-text p {
  color: #ffffff;
}
.ip-intro-divider {
  width: 120px;
  height: 2px;
  background-color: #53b0d7;
  margin: 0 auto 3rem;
}
.ipp-text h2 {
  margin-top: 0;
  margin-bottom: 2rem;
}
.ipp-excerpt p{
  margin-top: 0;
  margin-bottom: 2rem;
  font-weight: 500;
}
/*=================================================================++++
Intellectual Property Single ip single style
=================================================================++++*/
.ip-single .single-responsive-video-container {
  position: relative;
  width: 100%;
  max-width: 1140px;
  margin: 2rem auto;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}
.ip-single .single-responsive-video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/*-----
Single IP Carousel 
--------*/
.ip-carousel-lockup {
  display: block;
  max-width: 1140px;
  margin: 0 auto;
  padding: 2rem 1rem;
}
.carousel-side,
.carousel-text {
  flex: 0 1 50%;
  padding: 0 1rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* Desktop override for text */
@media (min-width: 769px) {
  .carousel-text {
    flex: 1 1 500px;
  }
}
@media (max-width: 768px) {
  .carousel-side,
  .carousel-text {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 1rem;
    min-width: 0;
    width: 100%;
    padding: 1rem;
  }
}

.single-ip .carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
}
.single-ip .carousel-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
  z-index: 1;
}
/* Make sure the image fills its container properly */
.single-ip .carousel-slide img {
  display: block;
  width: 100%;
  height: auto;
}
.carousel-content-wrapper {
  display: flex;
  /*flex-wrap: nowrap;*/
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  /*align-items: stretch;*/
  align-items: flex-start;
  flex-direction: row;
}
@media (max-width: 768px) {
  .carousel-content-wrapper {
    flex-direction: column;
    flex-wrap: wrap;
  }
}
h2.carousel-subtitle {
  font-size: 1.875rem;
  /*font-weight: 600;*/ 
  line-height: 1.2;
  color: #53b0d7;
  margin-bottom: 1rem;
}
.description-content {
  font-size: 1rem;
 /* color: #333;*/
  line-height: 1.6;
}

/*====================================
Carousel Controls Style START 
=====================================*/

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px; /* Adjust spacing between dots */
  position: absolute;
  margin-top: 1rem;
  /*position: relative;*/
  bottom: 10px; /* Positioning from the bottom of the carousel */
  left: 50%;
  transform: translateX(-50%);
  z-index: 10; /* Ensure it is on top of other content */
}
  
.carousel-dot {
  background: none;
  border: none;
  padding: 0;
  margin: 1px;
  cursor: pointer;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0.5;
  transition: opacity 0.3s;
  background-color: #ccc; 
}
.carousel-dot svg {
  display: block;
  width: 10px;
  height: 10px;
}
.dot-circle {
  fill: transparent;
  stroke: #808080;
  stroke-width: 1;
}
.carousel-dot.active .dot-circle {
  fill: #808080;
  opacity: 1;
}
.carousel-dot.active {
  background-color: #333; /* Color for active dot */
  opacity: 1;
}

/* Single ip post carousel fit images centered within the carousel without obfoscating the chevrons or dots */
.single-ip .carousel-side .bkgrender {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.single-ip .carousel-side .bkgrender img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
}
.single-ip .carousel-side .bkgrender {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}


/* end single ip carousel image control */
/* Absolutely position arrows relative to the image */
.single-ip .carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: none;
  border: none;
  color: #444;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}
/* Left and right spacing */
.single-ip .carousel-nav.left {
  left: 0.25rem;
}
.single-ip .carousel-nav.right {
  right: 0.25rem;
}
/* Carousel Controls Style END */
.ip-carousel-description {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--text-color); /* ensure this matches your theme */
}
/*===========================================
Callout Box 1 & svg 1 Style START
===========================================*/
/* Box & svg 1 */
.callout-box-1 {
  display: flex;
  align-items: center;
  background-color: #eeeeee;
  border: 1px solid #666666;
  padding: 0.5rem;
  /*margin-top: 1rem;*/
}
.theme-dark .callout-box-1 {
  background-color: #1c1c1c;
  border-color: #444;
}
.callout-icon-1,
.callout-icon-2 {
  flex: 0 0 80px;
  max-width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.callout-icon-1 svg,
.callout-icon-2 svg {
  max-height: 34px;
  width: auto;
}
.callout-icon-1 svg path {
  fill: #666666;
}
.callout-text-1 {
  flex: 1;
  padding-left: 1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}
.theme-dark .callout-text-1 {
  color: #ddd;
}
/* Box & svg 2 */
.callout-box-2 {
  display: flex;
  align-items: center;
  background-color: #ACD9EC;
  border: 1px solid #0c2632;
  padding: 0.5rem;
  /*margin-top: 1rem;*/
}
.theme-dark .callout-box-2 {
  background-color: #0c2632;
  border-color: #ACD9EC;
}
.callout-icon-2 svg path {
  fill: #0c2632;
}
.theme-dark .callout-icon-2 svg path {
  fill: #ACD9EC;
}
.callout-text-2 {
  flex: 1;
  padding-left: 1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}
.theme-dark .callout-text-2 {
  color: #ddd;
}
/* Places callout boxes side by side */
.callout-box {
  flex: 1 1 300px; /* Grow to fill available space, but no smaller than 300px */
  margin: 0;
}
/* Responsive two-column layout for callout pairs */
.callout-pair-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  /*margin-top: 2rem;*/
  align-items: flex-start; /* allow each callout to size independently */
}
.callout-box p {
  font-size: 1rem;
  text-align: left ; /* This justifies the paragraph */
}
/* Callout Box & SVG Styling END */


/*=============================================
BLUE h2 block in ip locking block 
===========================================*/
.size-container {
  margin: 4rem auto 2rem;
  text-align: center;
  max-width: 700px;
}
/* AND Horizontal lines + title */
.size-title {
  display: flex;
  align-items: center;
  justify-content: center;
  /*gap: 1rem;
  margin-bottom: 0.25rem;*/
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.size-title .line {
  /*flex-grow: 1;
  height: 3px;
  max-width: 200px;*/
  flex: 1 1 40px;
  max-width: 100px;
  height: 4px; /* thicker line */
  background-color: #53b0d7;
}
/* Title text */
.size-title .blue-text {
  color: #53b0d7;
  /*font-size: 1.5rem;*/
  font-size: 1.25rem;
  font-weight: 700;
  white-space: nowrap;
}
/* Subtitle text */
.size-subtitle {
  color: #53b0d7;
  font-style: italic;
  font-weight: 300;
  font-size: 1rem;
  max-width: 300px;
  margin: 0.5rem auto 0.5rem;
  /*margin-bottom: .5rem;*/
  display: flex;
  align-items: center;
  justify-content: center;
}
/* List block — centered */
.size-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: inline-block; /* centers the whole block */
  text-align: left;
  max-width: 300px;
}
/* List items: aligned inside */
.size-list li {
  display: flex;
  align-items: center;
  /*gap: 0.75rem;*/
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  /*font-size: 1.25rem;*/
  font-size: 1.125rem;
  color: #53b0d7;
  font-weight: 500;
}
/* Icon */
.size-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: invert(64%) sepia(16%) saturate(1277%) hue-rotate(156deg) brightness(94%) contrast(85%); /* Perfect Blue */
}
/*=====================================================
Accordian Features 
======================================================*/
.accordion-wrapper {
  position: relative;
  margin: 2rem 0;
  padding-left: 2rem;
}
/* Full vertical line in the background */
.accordion-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0.75rem;
  width: 3px;
  height: 100%;
  background-color: #ccc;
  z-index: 0;
}
  .accordion-item {
  position: relative;
  margin-bottom: 1rem;
}
.accordion-toggle {
  background: none;
  border: none;
  padding: 0.75rem 1rem;
  font-size: 1.5rem;
  font-weight: 500;
  text-align: left;
  position: relative;
  z-index: 1;
  /*color: #333;*/
  cursor: pointer;
  width: 100%;
}
.theme-dark .accordion-toggle {
  color: #ffffff;
}
.accordion-toggle:hover{
  font-weight: 600;
}
/* Blue highlight bar aligned with toggle */
.accordion-toggle.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: -1.25rem;
  width: 6px;
  height: 200%;
  background-color: #53b0d7;
  z-index: 2;
}
.accordion-toggle.active {
  font-weight: bold;
  color: #53b0d7;
}
.accordion-body {
  display: none;
  padding: 0.5rem 1rem 0 2.5rem; /* Top, Right, Bottom, Left */
  font-size: 1rem;
  line-height: 1.6;
  max-width: 800px;
}
.accordion-body p {
  margin: 0;
}
.accordion-item.open .accordion-body {
  display: block;
}
/* Carousel Description : BLue text lines for Rapid Injection Molding */
.thickness-container {
  margin: 4rem auto 2rem;
  text-align: center;
  max-width: 700px;
}
.thickness-subtitle {
  font-style: italic;
  color: #53b0d7;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.thickness-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.thickness-line {
  flex-grow: 1;
  height: 3px;
  background-color: #53b0d7;
  max-width: 200px;
}
.thickness-heading {
  color: #53b0d7;
  font-weight: 700;
  font-size: 1.5rem;
  white-space: nowrap;
}
.thickness-list {
  list-style: none;
  padding: 0;
  margin: 1rem auto 0;
  display: inline-block;
  text-align: left;
}
.thickness-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  color: #53b0d7;
  font-weight: 500;
}
.thickness-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: invert(64%) sepia(16%) saturate(1277%) hue-rotate(156deg) brightness(94%) contrast(85%); /* Perfect BLue */
  /*filter: brightness(0) saturate(100%) invert(48%) sepia(52%) saturate(307%) hue-rotate(155deg) brightness(94%) contrast(91%);*/
}
.theme-dark .psp-excerpt-wrapper p {
  color: #ffffff;
}
/*====================== 
Global ipp Cards v, 1, & 2 style Start
===========================================*/
.theme-dark .ipp-card-1,
.theme-dark .ipp-card-2,
.theme-dark .ipp-card-v {
  background-color: #121212;
}
/* Centered card layout */
.centered-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.carousel-wrapper {
  position: relative;
}
.ipp-carousel {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  background-size: cover;
  background-position: center;
  position: relative;
  height: 100%;
  min-height: 300px;
  /*max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;*/
  /*aspect-ratio: 16 / 9; -- Aspect ratio will make the image container smaller than the card */ 
  overflow: hidden;
}
/* ipp cards v 1 & 2 */


/* Navigation arrows */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #444;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 10;
}
.carousel-nav.left {
  left: 1rem;
  outline: none;
}
.carousel-nav.right {
  right: 1rem;
  outline: none;
}
/* --------
ipp-card-v shared with other card 1 & 2 --
---------*/






/* ------------------------------------------
 ipp-card-v specific carousel overrides
------------------------------------------- */
/* card-v & card-1 Structure: Text left, Carousel right */
.ipp-card-v .ipp-text,
.ipp-card-1 .ipp-text { order: 1; }
.ipp-card-v .ipp-carousel,
.ipp-card-1 .ipp-carousel { order: 2; }
/* Card Structure: Carousel left, text right */
.ipp-card-2 .ipp-text { order: 2; }
.ipp-card-2 .ipp-carousel { order: 1; }
.ipp-card-v .ipp-text,
.ipp-card-1 .ipp-text,
.ipp-card-2 .ipp-text {
  /*padding-right: 1rem;*/
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 1042px) {
  .ipp-card,
  .ipp-card-v,
  .ipp-card-1,
  .ipp-card-2 {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
  }
  .ipp-card .ipp-text,
  .ipp-card .ipp-carousel,
  .ipp-card-v .ipp-text,
  .ipp-card-v .ipp-carousel,
  .ipp-card-1 .ipp-text,
  .ipp-card-1 .ipp-carousel,
  .ipp-card-2 .ipp-text,
  .ipp-card-2 .ipp-carousel {
    order: unset;
    padding: 0;  /* remove side padding on mobile */
    width: 100%;
    max-width: 100%;
    flex: 1 1 100%;
    box-sizing: border-box;
  }
}
/* Desktop (side by side) */
@media (min-width: 1043px) {
 /* .ipp-card-v {
    flex-direction: row;
  }*/
  .ipp-text {
    flex: 1 1 50%;
    max-width: 45%;
    padding: 0.5rem;
  }

}




.ipp-card-v .carousel-slide.active,
.ipp-card-1 .carousel-slide.active,
.ipp-card-2 .carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
  visibility: visible;
  position: relative;
}
/* Improve spacing and layout in card-v */
.ipp-card-v, 
 .ipp-card-1,
 .ipp-card-2 {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 2rem;
  background: #ffffff;
  overflow: hidden;
  /*box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);*/
  margin-bottom: 4rem;
  max-width: 1200px;
}
.ipp-card .image-slide img {
  max-width: 100%; /* Make sure the image fills the width of the container */
  max-height: 100%;
  width: auto;
  height: auto; 
  object-fit: contain; 
  display: block; /* Remove extra space below the image */
  margin: 0 auto;
  object-position: center;
}
.media-carousel img {
  object-fit: contain;  /* This will make sure images are fully visible */
  width: 100%;           /* Make the images take up full width */
  height: auto;          /* Adjust the height to maintain aspect ratio */
  max-height: 100%;      /* Ensure the image doesn't overflow */
}
.ipp-card-1 .carousel-track,
.ipp-card-2 .carousel-track {
  display: flex;
  width: 100%;
  height: 100% !important;
  overflow: hidden;
  /*position: relative;*/
}
.ipp-card-1 .carousel-slide,
.ipp-card-2 .carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
}
/*
.ipp-card-v .carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
}
/* Make every slide enforce aspect ratio $$
.ipp-card-v .carousel-slide {
  /*aspect-ratio: 16 / 9;$$
  /*max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;$$
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
}*/

/* Active slide overlay correctly 
.ipp-card-v .carousel-slide.active {
  opacity: 1;
  visibility: visible;
  /*position: relative;$$
  /*height: 100%;$$
  z-index: 1;
}*/
/*
.ipp-card-v .carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
*/

/*================================================
Card-v 
====================================================*/

.media-carousel-wrapper,
.media-carousel {
  width: 100%;
  height: 100%;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.media-carousel {
  flex: 1 1 auto;
  display: flex;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
/* ipp-card-v fade stacking */
/*.ipp-card-v .carousel-slide iframe,
.ipp-carousel .carousel-slide img,*/
.ipp-card-1 .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Ensure the image is fully visible without cropping */
  display: block; /* Remove extra space below the image */
  max-width: 100%;
  max-height: 100%;
}
/*new video and preview image*/
/*.ipp-card-v .carousel-slide.video-slide .lazy-vimeo-wrapper {
  position: relative;
  width: 100%;
  /*aspect-ratio: 16 / 9; $$
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}*/
/*
.ipp-card-v .carousel-slide .lazy-vimeo-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}*/


/* Play button styling on top of thumbnail */
.ipp-card-v .lazy-vimeo-play-button {
  position: absolute;
  font-size: 48px;
  color: white;
  cursor: pointer;
  z-index: 5;
  opacity: 0.7;
}
/* Show play button on hover */
.ipp-card-v .lazy-vimeo-wrapper:hover .lazy-vimeo-play-button {
  opacity: 1;
}
.ipp-card-v .lazy-vimeo-wrapper:hover .lazy-vimeo-play-button {
  display: block;
}
/* Size and placement of the preview image*/
.ipp-card-v .lazy-vimeo-wrapper {
  background-size: cover;
  background-position: center;
}


/*------
ipp card 2
------*/

.ipp2-media-carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px; /* or whatever fits your design */
  height: auto;
  aspect-ratio: 16 / 9;
  min-width: 500px;
  min-height: 300px;
}
.ipp-card-v-carousel-slide,
.ipp-card-2-carousel-slide,
.ipp-card-1-carousel-slide {
    width: 100%; /* Take full width of the parent container */
    /*aspect-ratio: 16/9;*/
    display: flex;
    justify-content: center;
    align-items: center;
}
.ipp-card-v-carousel-slide img,
.ipp-card-2-carousel-slide img,
.ipp-card-1-carousel-slide img {
  /*width: 100%;
  height: 100%;
  object-fit: contain; /* Ensures the image covers the area without distortion $$
  visibility: visible !important;
  display: block !important;*/
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: auto;
}

.ipp-text {
  flex: 1 1 100%;
  max-width: 100%;
  min-width: 0;
  width: 100%;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
@media (min-width: 769px) {
  .ipp-text {
    flex: 1 1 50%;
    max-width: 45%;
    padding: 0.5rem;
  }
}


/* 1. The outer slide (already handled elsewhere, likely) 
.ipp-card-v .carousel-slide.image-slide {
  aspect-ratio: 16 / 9;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}*/
/* 2. Lazy Vimeo wrapper itself: enforces aspect ratio 
.lazy-vimeo-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}*/
/* 3. The iframe: fills the wrapper completely */
/*.lazy-vimeo-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}*/
/*
.lazy-vimeo-wrapper iframe {
  max-width: 80%;
  max-height: 80%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}*/
.lazy-vimeo-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.lazy-vimeo-wrapper iframe {
  height: 80%;
  width: auto;
  max-height: 80%;
  max-width: 100%;
  object-fit: contain;
}



.ipp-card-v .ipp-carousel {
  width: 100%;
  height: auto;         /* allow JS height */
  /*aspect-ratio: auto;*/
  overflow: hidden;
  position: relative;
}

/* ipp cards v, 1, & 2 carousel fit images centered within the carousel without obfoscating the chevrons or dots */
.ipp-card-1 .carousel-slide,
.ipp-card-2 .carousel-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.ipp-card-1 .carousel-slide img,
.ipp-card-2 .carousel-slide img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  display: block;
}
/*.ipp-card-v .carousel-slide.image-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.ipp-card-v .carousel-slide.image-slide img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  display: block;
}*/

/*
.ipp-card-v .carousel-slide.image-slide {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.ipp-card-v .carousel-slide.image-slide img {
  max-width: 85%;
  max-height: 85%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}*/

.ipp-card-v .carousel-slide {
  height: 100% !important; /* Fill carousel's height */
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
}

.ipp-card-v .carousel-slide.active {
  opacity: 1;
  visibility: visible;
  /*position: relative;*/
  z-index: 1;
}
/* keep images and video ~80% size as to not obfuscate the nav chevrons and dots*/
/*.ipp-card-v .carousel-slide iframe,
.ipp-card-v .carousel-slide img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  display: block;
}

.ipp-card-v .carousel-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}*/

/*
.ipp-card-v .carousel-slide img,
.ipp-card-v .carousel-slide iframe {
  height: 85%;
  width: auto;
  max-height: 85%;
  max-width: 100%;
  object-fit: contain;
}*/
.ipp-card-v .carousel-slide img {
  max-width: 85%;
  max-height: 85%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  /*margin: auto;*/
}
/* size of video */
.ipp-card-v .carousel-slide iframe/*,
.ipp-card-v .carousel-slide .lazy-vimeo-wrapper*/ {
  max-width: 100%;
  max-height: 100%;
  width: 95%;
  /*width: auto;
  height: auto;*/
  object-fit: contain;
  display: block;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}


/*
@media (max-width: 768px) {
  .ipp-card-v .carousel-slide iframe,
  .ipp-card-v .carousel-slide img {
    max-width: 90%;
    max-height: 90%;
  }
}

*/


/* this  has duplicate above */
.ipp-card-v .carousel-track {
  /*display: flex;*/
  width: 100%;
  height: 100%;
  overflow: hidden;
  justify-content: center;
  align-items: center;
  position: relative;
}

.ipp-card-v .lazy-vimeo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  /*width: 100%;
  height: 100%;*/
  overflow: hidden;
}
@media (max-width: 768px) {
  .ipp-card-v .carousel-slide img,
  .ipp-card-v .carousel-slide iframe,
  .ipp-card-v .carousel-slide .lazy-vimeo-wrapper {
    max-width: 90%;
    max-height: 90%;
  }
}

/* Mobile tweak - allow it to fill more screen on small devices */
@media (max-width: 480px) {
  .ipp-card-v .carousel-slide img,
  .ipp-card-v .carousel-slide iframe,
  .ipp-card-v .carousel-slide .lazy-vimeo-wrapper {
    max-width: 95%;
    max-height: 95%;
  }
}



/* 100% width for preview image / vimeo preview 
.ipp-card-v .carousel-slide .lazy-vimeo-wrapper,
/*.ipp-card-v .carousel-slide iframe, $$
.ipp-card-v .carousel-slide img {
  display: block;
  margin: 0 auto;
  object-fit: contain;
  width: 100%;
  max-width: 100%;
  max-height: 100%;
}*/
.ipp-card-v .carousel-slide .lazy-vimeo-wrapper img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Mobile scaling rules */
@media (max-width: 768px) {
  .ipp-card-v .carousel-slide iframe,
  .ipp-card-v .carousel-slide img,
  .ipp-card-v .carousel-slide .lazy-vimeo-wrapper {
    max-width: 90%;
    max-height: 90%;
  }
}

@media (max-width: 480px) {
  .ipp-card-v .carousel-slide iframe,
  .ipp-card-v .carousel-slide img,
  .ipp-card-v .carousel-slide .lazy-vimeo-wrapper {
    max-width: 95%;
    max-height: 95%;
  }
}