/* TDC product gallery refresh */
.tdc-product-gallery-clean {
  background: #fff !important;
  color: #111827 !important;
  padding: 68px 0 76px !important;
  overflow: hidden !important;
}
.tdc-product-gallery-clean * { box-sizing: border-box; }
.tdc-gallery-inner {
  width: min(1500px, calc(100% - 48px));
  margin: 0 auto;
}
.tdc-gallery-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.tdc-gallery-eyebrow {
  color: #a20f7d;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  margin: 0 0 8px;
  font-size: 14px;
}
.tdc-gallery-title {
  color: #111827;
  font-size: clamp(28px, 4vw, 50px);
  line-height: 1.06;
  max-width: 820px;
  margin: 0;
}
.tdc-gallery-controls {
  display: flex;
  gap: 12px;
  flex: 0 0 auto;
}
.tdc-gallery-arrow {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: #a20f7d;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(162, 15, 125, .22);
  transition: transform .2s ease, background .2s ease;
}
.tdc-gallery-arrow:hover { transform: translateY(-2px); background: #7f0b62; }
.tdc-gallery-viewport {
  width: 100%;
  overflow: hidden;
  padding: 4px 2px 22px;
}
.tdc-gallery-track {
  --gallery-gap: 28px;
  --per-view: 4;
  display: flex;
  gap: var(--gallery-gap);
  will-change: transform;
  transition: transform .72s cubic-bezier(.22, .9, .24, 1);
}
.tdc-gallery-card {
  flex: 0 0 calc((100% - (var(--gallery-gap) * (var(--per-view) - 1))) / var(--per-view));
  min-width: 0;
  aspect-ratio: 1.18 / .92;
  border: 1px solid #ead0e7 !important;
  border-radius: 6px !important;
  background: #fafafa !important;
  box-shadow: 0 15px 42px rgba(15, 23, 42, .08) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transform: none !important;
}
.tdc-gallery-card::before,
.tdc-gallery-card::after { display: none !important; content: none !important; }
.tdc-gallery-card:hover {
  border-color: #a20f7d !important;
  box-shadow: 0 18px 48px rgba(162, 15, 125, .12) !important;
}
.tdc-gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .28s ease;
}
.tdc-gallery-card:hover img { transform: scale(1.035); }
.tdc-gallery-card h3,
.tdc-gallery-card p,
.tdc-gallery-card span,
.tdc-gallery-card a,
.tdc-gallery-card .tdc-zoom-icon,
.tdc-gallery-card .gallery-card-title,
.tdc-gallery-card .product-title,
.tdc-gallery-card .card-title { display: none !important; }
.tdc-gallery-footer { text-align: center; margin-top: 12px; }
.tdc-gallery-view-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 6px;
  background: #a20f7d;
  color: #fff !important;
  padding: 14px 26px;
  font-weight: 900;
  text-decoration: none !important;
  box-shadow: 0 16px 34px rgba(162, 15, 125, .22);
}
.tdc-gallery-view-all:hover { background: #7f0b62; color: #fff !important; }
.tdc-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0,0,0,.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 92px 28px 32px;
}
.tdc-gallery-lightbox.is-open { display: flex; }
.tdc-gallery-modal {
  width: min(980px, 100%);
  max-height: calc(100vh - 126px);
  background: #fff;
  border: 1px solid #a20f7d;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.tdc-gallery-modal-bar {
  min-height: 58px;
  background: #0b0f18;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 16px;
}
.tdc-gallery-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}
.tdc-gallery-modal-body {
  background: #fff;
  padding: 18px;
  display: grid;
  place-items: center;
}
.tdc-gallery-modal-body img {
  max-width: 100%;
  max-height: calc(100vh - 230px);
  object-fit: contain;
  display: block;
}
@media (max-width: 1100px) {
  .tdc-gallery-track { --per-view: 3; }
}
@media (max-width: 760px) {
  .tdc-product-gallery-clean { padding: 48px 0 56px !important; }
  .tdc-gallery-inner { width: min(100% - 28px, 560px); }
  .tdc-gallery-head { align-items: flex-start; flex-direction: column; }
  .tdc-gallery-track { --per-view: 1; --gallery-gap: 18px; }
  .tdc-gallery-controls { align-self: flex-end; }
  .tdc-gallery-card { aspect-ratio: 1.05 / .82; padding: 18px; }
  .tdc-product-gallery-clean .tdc-gallery-title {
    white-space: normal;
    font-size: clamp(26px, 8vw, 38px);
  }
}

/* Home product-gallery banner */
.product-gallery-banner { background: #ffffff; }
.product-gallery-banner-frame { overflow: hidden; border: 1px solid rgba(142, 23, 119, 0.22); border-radius: 8px; box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12); }
.product-gallery-banner-frame img { display: block; width: 100%; height: auto; }
@media (max-width: 767.98px) { .product-gallery-banner-frame { border-radius: 6px; } }
/* Clean home gallery card treatment */
.tdc-product-gallery-clean {
  background: #ffffff !important;
  box-shadow: none !important;
  border: 0 !important;
  margin: 0 !important;
}
.tdc-gallery-head { margin-bottom: 16px; }
.tdc-product-gallery-clean .tdc-gallery-head {
  display: block;
  text-align: center;
  margin-bottom: 24px;
}
.tdc-product-gallery-clean .tdc-gallery-eyebrow {
  margin-bottom: 10px;
  font-size: 14px;
}
.tdc-product-gallery-clean .tdc-gallery-title {
  max-width: none;
  margin: 0 auto;
  font-size: clamp(24px, 2.8vw, 42px);
  line-height: 1.15;
  white-space: nowrap;
}
.tdc-gallery-controls {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 58%;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.tdc-gallery-arrow {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .16);
}
.tdc-gallery-viewport { padding: 4px 52px 0; }
.tdc-gallery-card {
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0 !important;
  border-radius: 6px !important;
  background: #f8f6f2 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .10) !important;
}
.tdc-gallery-card:hover {
  border-color: transparent !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .14) !important;
}
.tdc-gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}
.tdc-gallery-footer { margin-top: 28px; }
@media (max-width: 760px) {
  .tdc-gallery-controls { left: 8px; right: 8px; top: 58%; }
  .tdc-gallery-arrow { width: 38px; height: 38px; font-size: 20px; }
  .tdc-gallery-viewport { padding-left: 44px; padding-right: 44px; }
  .tdc-gallery-card { padding: 0; aspect-ratio: 4 / 3; }
}
.tdc-gallery-inner { position: relative; }

/* Legacy section image */
.legacy-feature-image {
  overflow: hidden;
  border-radius: 8px;
  background: #0a0a0a;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .16);
}
.legacy-feature-image img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
/* Product Gallery heading */
.tdc-product-gallery-clean .tdc-gallery-eyebrow {
  display: block;
  color: #a20f7d;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 900;
  line-height: 1.1;
  margin: 0;
}
/* Keep the Legacy artwork aligned with the content section */
.legacy-feature-image {
  height: clamp(440px, 35vw, 560px);
  display: grid;
  place-items: center;
}
.legacy-feature-image img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}
@media (max-width: 991.98px) {
  .legacy-feature-image { height: auto; }
  .legacy-feature-image img { height: auto; }
}
/* Full-width Legacy content with a subtle brand watermark */
.legacy-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.legacy-section::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: url("../img/toheed-die-logo.png") no-repeat right 8% center / min(540px, 42vw);
  opacity: 0.055;
  pointer-events: none;
}
.legacy-section .lead,
.legacy-section p {
  max-width: 1050px;
}
@media (max-width: 767.98px) {
  .legacy-section::before {
    background-position: center bottom 10%;
    background-size: min(390px, 82vw);
    opacity: 0.045;
  }
}.legacy-section::before { z-index: 0; }
.legacy-section > .container { z-index: 1; }
/* Centered, visible Legacy watermark */
.legacy-section::before {
  background-position: center center;
  background-size: min(620px, 50vw);
  opacity: 0.14;
}
@media (max-width: 767.98px) {
  .legacy-section::before {
    background-position: center center;
    background-size: min(430px, 86vw);
    opacity: 0.10;
  }
}
/* Solid professional gallery controls */
.tdc-gallery-arrow,
.tdc-gallery-view-all,
.gallery-arrow,
.product-gallery-actions .btn,
.product-gallery-actions a {
  color: #ffffff !important;
  border-color: #951276 !important;
  background-color: #951276 !important;
  background-image: none !important;
  box-shadow: none !important;
}
.tdc-gallery-arrow:hover,
.tdc-gallery-view-all:hover,
.gallery-arrow:hover,
.product-gallery-actions .btn:hover,
.product-gallery-actions a:hover {
  color: #ffffff !important;
  border-color: #74105d !important;
  background-color: #74105d !important;
  background-image: none !important;
  box-shadow: none !important;
}