/* ==========================================================================
   TRADEPLACE 25TH ANNIVERSARY: HISTORICAL TRANSFORMATIONS SLICK SLIDER
   Strictly adheres to Tradeplace Brandbook v2.0 (2026):
   - Powered by Slick Slider
   - Zero border-radius (border-radius: 0 !important)
   - Standard 39px height buttons with Brand Yellow (#FDC300) hover
   - Square pixel indicator dots
   - Corporate Navy (#002442) & Cyan (#009FE3) palette
   - 12% drop shadow solution tiles
   ========================================================================== */

.tp-gallery-module.tp-transformations-carousel-module {
  background: #ffffff;
  padding: 60px 0;
  font-family: 'Open Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #002442;
  position: relative;
  box-sizing: border-box;
}

.tp-gallery-module .tp-gallery-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------------- */
.tp-gallery-module .tp-gallery-header {
  text-align: left;
  max-width: 900px;
  margin: 0 0 32px;
}

.tp-gallery-module .tp-gallery-badge {
  display: inline-block;
  background: #009FE3;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 5px 12px;
  margin-bottom: 14px;
  border-radius: 0 !important;
}

.tp-gallery-module .tp-gallery-title {
  font-size: 32px;
  font-weight: 800;
  color: #000000;
  line-height: 1.25;
  margin: 0 0 10px;
}

.tp-gallery-module .tp-gallery-subtitle {
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
  margin: 0;
}

/* --------------------------------------------------------------------------
   SLICK SLIDER STRUCTURE
   -------------------------------------------------------------------------- */
.tp-gallery-slider-wrap {
  position: relative;
  width: 100%;
}

.tp-gallery-slider {
  margin: 0 -10px;
}

/* Initial fallback before Slick initializes */
.tp-gallery-slider:not(.slick-initialized) {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding-bottom: 10px;
}
/* 

.tp-gallery-slider:not(.slick-initialized) .tp-gallery-slide {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}

@media (max-width: 860px) {
  .tp-gallery-slider:not(.slick-initialized) .tp-gallery-slide {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Slick Track & Slides */
 .tp-gallery-slider.slick-initialized .slick-track {
  display: flex;
  margin-left: 0;
  margin-right: 0;
  padding: 30px 0;
  gap: 10px
}

/* .tp-gallery-slider.slick-initialized .tp-gallery-slide {
  gap: 0 10px;
  box-sizing: border-box;
  outline: none;
  height: auto;
  display: flex !important;
} */
/*



.tp-gallery-slider.slick-initialized .tp-gallery-slide > div {
  width: 100%;
  height: 100%;
} */ 

/* --------------------------------------------------------------------------
   TRANSFORMATION CARD (Brand Solution Tile)
   -------------------------------------------------------------------------- */
.tp-gallery-module .tp-gif-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* Brandbook 12% drop shadow */
  overflow: hidden;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

/* .tp-gallery-module .tp-gif-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.14);
  border-color: #009FE3;
} */

.tp-gallery-module .tp-gif-media-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #00172c;
  overflow: hidden;
}

.tp-gallery-module .tp-gif-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

/* .tp-gallery-module .tp-gif-card:hover .tp-gif-img {
  transform: scale(1.02);
} */

.tp-gallery-module .tp-gif-live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #009FE3;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  letter-spacing: 0.5px;
  border-radius: 0 !important;
  z-index: 3;
}

.tp-gallery-module .tp-gif-era-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 36, 66, 0.9);
  color: #FDC300;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border: 1px solid rgba(253, 195, 0, 0.4);
  border-radius: 0 !important;
  z-index: 3;
}

.tp-gallery-module .tp-gif-zoom-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 36, 66, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 !important;
  opacity: 0.85;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 3;
}

/* .tp-gallery-module .tp-gif-zoom-btn:hover {
  background: #FDC300;
  color: #000000;
  border-color: #FDC300;
  opacity: 1;
} */

.tp-gallery-module .tp-gif-card-body {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tp-gallery-module .tp-gif-pillar-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
  color: #009FE3;
}

.tp-gallery-module .tp-gif-card-title {
  font-size: 17px;
  font-weight: 800;
  color: #002442;
  margin: 0 0 8px;
  line-height: 1.35;
}

.tp-gallery-module .tp-gif-card-desc {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

/* --------------------------------------------------------------------------
   SLICK NAVIGATION CONTROLS (Prev Arrow + Square Pixel Dots + Next Arrow)
   Enforces absolute positioning override so buttons cannot float into cards
   -------------------------------------------------------------------------- */
.tp-gallery-module .tp-carousel-nav-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
  margin-top: 28px !important;
  padding-top: 18px !important;
  border-top: 1px solid #e2e8f0 !important;
  position: relative !important;
  clear: both !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Hard override: never allow position absolute from slick-theme.css */
.tp-gallery-module .tp-carousel-nav-bar button.tp-caro-btn,
.tp-gallery-module .tp-carousel-nav-bar button.slick-arrow,
.tp-gallery-module .tp-carousel-nav-bar button.slick-prev,
.tp-gallery-module .tp-carousel-nav-bar button.slick-next,
.tp-gallery-module button.tp-caro-prev,
.tp-gallery-module button.tp-caro-next {
  position: static !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 39px !important;
  height: 39px !important;
  min-width: 39px !important;
  min-height: 39px !important;
  max-width: 39px !important;
  max-height: 39px !important;
  background: #009FE3 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 0 !important; /* Brandbook zero border-radius */
  cursor: pointer !important;
  line-height: 39px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  text-indent: 0 !important;
  opacity: 1 !important;
  z-index: 10 !important;
  padding: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  transition: all 0.2s ease !important;
  float: none !important;
}

/* Hide any pseudo-element icons from slick-theme.css */
.tp-gallery-module .tp-carousel-nav-bar button.tp-caro-btn::before,
.tp-gallery-module .tp-carousel-nav-bar button.slick-arrow::before,
.tp-gallery-module .tp-carousel-nav-bar button.slick-prev::before,
.tp-gallery-module .tp-carousel-nav-bar button.slick-next::before,
.tp-gallery-module button.tp-caro-prev::before,
.tp-gallery-module button.tp-caro-next::before {
  display: none !important;
  content: none !important;
}

/* .tp-gallery-module .tp-carousel-nav-bar button.tp-caro-btn:hover,
.tp-gallery-module .tp-carousel-nav-bar button.slick-arrow:hover,
.tp-gallery-module .tp-carousel-nav-bar button.slick-prev:hover,
.tp-gallery-module .tp-carousel-nav-bar button.slick-next:hover,
.tp-gallery-module button.tp-caro-prev:hover,
.tp-gallery-module button.tp-caro-next:hover {
  background: #FDC300 !important; /* Brandbook Yellow */
  color: #000000 !important;
} */

.tp-gallery-module .tp-carousel-nav-bar button.tp-caro-btn.slick-disabled,
.tp-gallery-module .tp-carousel-nav-bar button.slick-arrow.slick-disabled {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

/* Slick Dots Container */
.tp-gallery-module .tp-slick-dots-container {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.tp-gallery-module .tp-slick-dots-container .slick-dots {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  width: auto !important;
}

.tp-gallery-module .tp-slick-dots-container .slick-dots li {
  margin: 0 !important;
  padding: 0 !important;
  width: 14px !important;
  height: 14px !important;
  display: inline-block !important;
}

/* Square Pixel Dot Indicator (Brandbook Page 16) */
.tp-gallery-module .tp-slick-dots-container .slick-dots li button {
  width: 14px !important;
  height: 14px !important;
  background: #cbd5e1 !important;
  border: none !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  display: block !important;
  outline: none !important;
  box-shadow: none !important;
}

.tp-gallery-module .tp-slick-dots-container .slick-dots li button::before {
  display: none !important;
  content: none !important;
}

/* .tp-gallery-module .tp-slick-dots-container .slick-dots li button:hover {
  background: #FDC300 !important;
} */

.tp-gallery-module .tp-slick-dots-container .slick-dots li.slick-active button {
  background: #009FE3 !important;
  transform: scale(1.15) !important;
  box-shadow: 0 2px 5px rgba(0, 159, 227, 0.4) !important;
}

/* --------------------------------------------------------------------------
   LIGHTBOX MODAL FOR GIF ZOOM
   -------------------------------------------------------------------------- */
.tp-gallery-module .tp-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.tp-gallery-module .tp-gallery-lightbox.is-open {
  display: flex;
}

.tp-gallery-module .tp-lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 24, 44, 0.88);
  backdrop-filter: blur(4px);
}

.tp-gallery-module .tp-lightbox-dialog {
  position: relative;
  max-width: 900px;
  width: 92%;
  background: #ffffff;
  border-radius: 0 !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  z-index: 2;
  overflow: hidden;
}

.tp-gallery-module .tp-lightbox-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: #002442;
  color: #ffffff;
  border: none;
  border-radius: 0 !important;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

/* .tp-gallery-module .tp-lightbox-close-btn:hover {
  background: #FDC300;
  color: #000000;
} */

.tp-gallery-module .tp-lightbox-body {
  display: flex;
  flex-direction: column;
}

.tp-gallery-module .tp-lightbox-img-wrap {
  width: 100%;
  max-height: 520px;
  background: #00172c;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tp-gallery-module .tp-lightbox-display-img {
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
  display: block;
}

.tp-gallery-module .tp-lightbox-meta-bar {
  padding: 18px 24px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.tp-gallery-module .tp-lightbox-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #009FE3;
  margin-right: 8px;
}

.tp-gallery-module .tp-lightbox-loc {
  font-size: 12px;
  color: #64748b;
}

.tp-gallery-module .tp-lightbox-heading {
  font-size: 18px;
  font-weight: 800;
  color: #002442;
  margin: 4px 0 0;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .tp-gallery-module.tp-transformations-carousel-module {
    padding: 40px 0;
  }
  .tp-gallery-module .tp-gallery-title {
    font-size: 24px;
  }
}
