:root {
  --tile-light-text: #ffffff;
  --tile-dark-text: #000000;
  --tile-light-background: rgba(255, 255, 255, 0.8);
  --tile-dark-background: rgba(0, 0, 0, 0.8);
}

.tile-vehicle-slideshow {
  max-width: 100%;
  position: relative;
  margin: auto;
  overflow: hidden;
}

.tile-slideshow-container {
  display: flex;
  transition: transform 0.5s ease;
}


.tile-slide {
  flex: 0 0 calc(33.33% - 20px);
  max-width: calc(33.33% - 20px);
  height: 350px;
  position: relative;
  background-size: cover;
  background-position: center;
  margin: 0 10px;
  background-image: var(--background-url);
  Background-color: #136c9e;
}

.tile-slide-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  padding: 10px;
}

.tile-slide-header {
  flex-shrink: 0;
  margin-bottom: 1px;
}

.tile-slide-title {
  font-size: 16px;
  font-weight: bold;
  line-height: 1.2;
  max-height: 65px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tile-slide-body {
  flex-grow: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2px 0;
  overflow: hidden;
  position: relative;
  top: -20px; 
}

.tile-vehicle-image {
  max-width: 65%;
  max-height: 180px;
  object-fit: contain;
}

.tile-slide-body.tile-high-payment .tile-vehicle-image {
  max-width: 60%;
}

.tile-slide-body.tile-high-payment .tile-offers-container {
  width: 50%;
}

.tile-slide-body.tile-high-payment .tile-lease-info,
.tile-slide-body.tile-high-payment .tile-finance-info {
  font-size: 26px;
  word-break: break-word;
}

.tile-offers-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 45%;
  position: relative;
}

.tile-lease-info-container,
.tile-finance-info-container {
  text-align: center;
  width: 100%;
}

.tile-lease-for {
  font-size: 14px;
}

.tile-finance-for {
  font-size: 14px;
}

.tile-lease-info,
.tile-finance-info {
  font-size: 28px;
  font-weight: bold;
}

.tile-lease-terms {
  font-size: 12px;
}

.tile-finance-terms {
  font-size: 12px;

}

.tile-offers-container.tile-has-both-offers::before {
  content: '';
  display: block;
  width: 80%;
  height: 1px;
  background-color: #fff;
  position: absolute;
  top: 50%;
  left: 10%;
}

.tile-slide-footer {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.tile-logo-disclaimer-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
a {
  text-decoration: none !important;
}

.tile-event-logo {
  max-width: 200px;
  max-height: 50px;
  margin-bottom: 5px;
}

.tile-disclaimer {
  cursor: pointer;
  text-decoration: none;
  font-size: 12px;
}

.tile-slide-actions {
  text-align: right;
}

.tile-shop-now {
  display: inline-block;
  background-color: #0064cd;
  color: white;
  padding: 8px 15px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.tile-shop-now:hover {
  background-color: #004893;
  color: white;
}

.tile-slideshow-dots {
  text-align: center;
  margin-top: 10px;
}

.tile-dot {
  height: 8px;
  width: 8px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  margin: 0 5px;
  cursor: pointer;
}

.tile-dot.active {
  background-color: #717171;
}

/* Modal styles */
.tile-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.tile-modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 600px;
}

.tile-modal-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

@media screen and (max-width: 1200px) {
  .tile-slide {
    flex: 0 0 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }
}

@media screen and (max-width: 600px) {
  .tile-slide {
    flex: 0 0 calc(100% - 20px);
    max-width: calc(100% - 20px);
  }

  .tile-slide-title {
    font-size: calc(16px * 0.9);
  }

  .tile-lease-for,
  .tile-finance-for {
    font-size: calc(14px * 0.9);
  }

  .tile-lease-info,
  .tile-finance-info {
    font-size: calc(28px * 0.9);
  }

  .tile-slide-body.tile-high-payment .tile-lease-info,
  .tile-slide-body.tile-high-payment .tile-finance-info {
    font-size: calc(26px * 0.9);
  }

  .tile-lease-terms,
  .tile-finance-terms {
    font-size: calc(12px * 0.9);
  }

  .tile-event-logo {
    max-width: calc(200px * 0.9);
    max-height: calc(50px * 0.9);
  }

  .tile-shop-now {
    font-size: calc(14px * 0.9);
    padding: 7px 13px;
  }

  .tile-disclaimer {
    font-size: calc(12px * 0.9);
  }
}

.tile-light-mode {
  color: var(--tile-dark-text);
}

.tile-light-mode .tile-slide-content {
  background-color: var(--tile-light-background);
}

.tile-dark-mode {
  color: var(--tile-light-text);
}

.tile-dark-mode .tile-slide-content {
  background-color: var(--tile-dark-background);
}

.tile-dark-mode .tile-shop-now {
  background-color: white;
  color: #000d2f;
}