/* v1.3.6 — editorial brand card gallery */
.ptfh-home .ptfh-intro-gallery{margin-top:40px;--ptfh-intro-gap:20px;--ptfh-intro-cols:3;position:relative}
.ptfh-home .ptfh-intro-gallery-viewport{overflow:hidden;border-radius:20px}
.ptfh-home .ptfh-intro-gallery-track{display:flex;gap:var(--ptfh-intro-gap);transform:translate3d(0,0,0);transition:transform .72s cubic-bezier(.22,1,.36,1);will-change:transform;touch-action:pan-y}
.ptfh-home .ptfh-intro-gallery-item{position:relative;flex:0 0 calc((100% - (var(--ptfh-intro-cols) - 1)*var(--ptfh-intro-gap))/var(--ptfh-intro-cols));min-width:0;aspect-ratio:501/651;overflow:hidden;border-radius:20px;background:#242424;isolation:isolate}
.ptfh-home .ptfh-intro-gallery-image{position:absolute;inset:0}
.ptfh-home .ptfh-intro-gallery-image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .6s cubic-bezier(.22,1,.36,1)}
.ptfh-home .ptfh-intro-gallery-item:hover img{transform:scale(1.045)}
.ptfh-home .ptfh-intro-gallery-overlay{position:absolute;inset:0;z-index:2;padding:clamp(18px,2.5vw,40px);display:flex;flex-direction:column;align-items:flex-start;pointer-events:none;background:linear-gradient(180deg,rgba(0,0,0,.26) 0%,transparent 32%,transparent 60%,rgba(0,0,0,.18) 100%)}
.ptfh-home .ptfh-intro-gallery-overlay h3{color:#fff;font-weight:750;font-size:clamp(22px,1.85vw,31px);margin:4px 0 9px;line-height:1.2;text-shadow:0 1px 4px rgba(0,0,0,.2)}
.ptfh-home .ptfh-intro-gallery-overlay p{font-size:clamp(12px,1vw,15px);color:#fff;line-height:1.45;max-width:95%;margin:0;text-shadow:0 1px 4px #0008}
.ptfh-home .ptfh-intro-gallery-link{margin-top:auto;display:inline-flex;align-items:center;gap:12px;background:#fff!important;color:#111!important;border-radius:11px;min-height:44px;padding:11px 16px;font-size:14px;font-weight:750;pointer-events:auto;box-shadow:0 2px 12px #0002;transition:background .2s,transform .2s}
.ptfh-home .ptfh-intro-gallery-link:hover{background:#f0f0f0!important;transform:translateY(-2px)}
.ptfh-home .ptfh-intro-gallery-link span{font-size:21px;font-weight:400;line-height:14px}
/* Navigation floats just outside the cards, vertically centered, as in the reference. */
.ptfh-home .ptfh-intro-gallery-nav{position:absolute;z-index:10;top:calc(50% - 12px);left:-43px;right:-43px;display:flex;align-items:center;justify-content:space-between;transform:translateY(-50%);pointer-events:none;margin:0}
/* Navigation matches the dark translucent controls used by the main hero slider. */
.ptfh-home .ptfh-intro-gallery-nav button{
  pointer-events:auto;display:grid;place-items:center;
  width:40px;height:40px;min-width:40px;min-height:40px;
  padding:0;margin:0;border:1px solid rgba(255,255,255,.26);
  border-radius:50%;background:rgba(18,25,31,.36);color:#fff;
  box-shadow:0 2px 12px rgba(0,0,0,.12);
  backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);
  opacity:.82;cursor:pointer;
  transition:background .22s ease,opacity .22s ease,transform .22s ease,border-color .22s ease;
  -webkit-tap-highlight-color:transparent;
}
.ptfh-home .ptfh-intro-gallery-nav button svg{
  display:block;width:18px;height:18px;fill:none;stroke:currentColor;
  stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
}
.ptfh-home .ptfh-intro-gallery-nav button:hover:not(:disabled){
  opacity:1;background:rgba(18,25,31,.65);border-color:rgba(255,255,255,.62);
  transform:scale(1.055);
}
.ptfh-home .ptfh-intro-gallery-nav button:disabled{opacity:.3;cursor:default;}
.ptfh-home .ptfh-intro-gallery-nav button:focus-visible{outline:2px solid #fff;outline-offset:3px;}
@media(max-width:980px){.ptfh-home .ptfh-intro-gallery-nav{left:-20px;right:-20px}.ptfh-home .ptfh-intro-gallery{--ptfh-intro-cols:2;--ptfh-intro-gap:15px}.ptfh-home .ptfh-intro-gallery-item{aspect-ratio:501/651}}
@media(max-width:600px){.ptfh-home .ptfh-intro-gallery-nav{left:7px;right:7px}.ptfh-home .ptfh-intro-gallery-nav button{width:34px;height:34px;min-width:34px;min-height:34px;background:rgba(18,25,31,.36)}.ptfh-home .ptfh-intro-gallery{--ptfh-intro-cols:1;--ptfh-intro-gap:12px;margin-top:27px}.ptfh-home .ptfh-intro-gallery-item{aspect-ratio:501/651}.ptfh-home .ptfh-intro-gallery-viewport{border-radius:16px}.ptfh-home .ptfh-intro-gallery-overlay{padding:25px}.ptfh-home .ptfh-intro-gallery-overlay h3{font-size:26px}}
@media(prefers-reduced-motion:reduce){.ptfh-home .ptfh-intro-gallery-track,.ptfh-home .ptfh-intro-gallery-image img{transition:none!important}}

/* v1.3.7: slide navigation dots, hero-inspired, below image cards */
.ptfh-home .ptfh-intro-gallery-dots{display:flex;justify-content:center;align-items:center;gap:8px;margin:16px auto 0;min-height:18px}
.ptfh-home .ptfh-intro-gallery-dots[hidden]{display:none!important}
.ptfh-home .ptfh-intro-gallery-dots button{display:block;flex:0 0 auto;width:7px;height:7px;min-width:7px;min-height:7px;margin:0;padding:0;border:0;border-radius:999px;background:#a5a8ad;opacity:.8;box-shadow:none;cursor:pointer;transition:width .35s ease,background .35s ease,opacity .35s ease}
.ptfh-home .ptfh-intro-gallery-dots button.is-active{width:22px;min-width:22px;background:#262d34;opacity:1}
.ptfh-home .ptfh-intro-gallery-dots button:focus-visible{outline:2px solid #262d34;outline-offset:4px}
@media(max-width:600px){.ptfh-home .ptfh-intro-gallery-dots{gap:7px;margin-top:14px}.ptfh-home .ptfh-intro-gallery-dots button{width:6px;height:6px;min-width:6px;min-height:6px}.ptfh-home .ptfh-intro-gallery-dots button.is-active{width:19px;min-width:19px}}
@media(prefers-reduced-motion:reduce){.ptfh-home .ptfh-intro-gallery-dots button{transition:none!important}}


/* v1.4.9 — Huy Hung Sport brand tiles, matching the reference (square-ish cards,
   orange/blue clipped header ribbons and white pill CTA). */
.ptfh-home .ptfh-intro-gallery{
  --ptfh-intro-gap:clamp(12px,1.35vw,20px);
  margin-top:clamp(30px,3vw,45px);
}
.ptfh-home .ptfh-intro-gallery-item{
  aspect-ratio: 1 / 1.03;
  border-radius:17px;
  background:#edf3f8;
  border:2px solid rgba(13,53,105,.13);
  box-shadow:0 7px 20px rgba(17,39,71,.16);
}
.ptfh-home .ptfh-intro-gallery-item:nth-child(3n){border-color:rgba(255,112,0,.65)}
.ptfh-home .ptfh-intro-gallery-viewport{border-radius:17px}
.ptfh-home .ptfh-intro-gallery-image img{object-position:center center}
.ptfh-home .ptfh-intro-gallery-overlay{
  padding:0;
  background:linear-gradient(180deg,rgba(0,0,0,.12) 0%,transparent 23%,transparent 67%,rgba(0,0,0,.21) 100%);
}
.ptfh-home .ptfh-intro-gallery-overlay h3{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  max-width:90%;
  margin:0;
  padding:10px 34px 10px 18px;
  background:linear-gradient(125deg,#ff7900,#ff9f21);
  color:#fff;
  font-weight:800;
  font-size:clamp(15px,1.2vw,21px);
  letter-spacing:-.01em;
  line-height:1.15;
  text-shadow:none;
  /* Soft curved ribbon like the reference: no polygon-cut angular corner. */
  border-radius:15px 5px 30px 2px;
  clip-path:none;
  box-shadow:inset 0 2px 2px rgba(255,255,255,.28), 2px 3px 7px rgba(0,0,0,.17);
}
.ptfh-home .ptfh-intro-gallery-item:nth-child(3n + 2) .ptfh-intro-gallery-overlay h3{
  background:linear-gradient(125deg,#0862c7,#1795ff);
}
.ptfh-home .ptfh-intro-gallery-overlay p{
  margin:7px 12px 0 14px;
  padding:4px 8px;
  background:rgba(2,18,38,.48);
  border-radius:5px;
  font-size:12px;
  max-width:80%;
}
.ptfh-home .ptfh-intro-gallery-link{
  display:inline-flex;
  align-items:center;
  margin:auto 0 14px 14px;
  min-height:37px;
  padding:7px 9px 7px 14px;
  gap:9px;
  border-radius:30px;
  background:#fff!important;
  color:#082b5f!important;
  box-shadow:0 4px 10px rgba(8,24,47,.22);
  font-size:clamp(10px,.8vw,13px);
  line-height:1;
  font-weight:900;
  text-transform:uppercase;
  white-space:nowrap;
}
.ptfh-home .ptfh-intro-gallery-link span{
  width:20px;height:20px;
  display:inline-flex;align-items:center;justify-content:center;
  flex:0 0 20px;
  font-size:13px;font-weight:900;line-height:1;
  color:#fff;background:#ff7700;border-radius:50%;
}
.ptfh-home .ptfh-intro-gallery-link:hover{background:#fff6ed!important;transform:translateY(-2px)}
@media(max-width:980px){
  .ptfh-home .ptfh-intro-gallery-item{aspect-ratio:1/1.03}
}
@media(max-width:600px){
  .ptfh-home .ptfh-intro-gallery-item{aspect-ratio:1/1.04}
  .ptfh-home .ptfh-intro-gallery-overlay h3{font-size:17px;min-height:40px}
  .ptfh-home .ptfh-intro-gallery-link{font-size:12px}
}

/* v1.5.0 — content-width brand ribbons and transparent gallery surface. */
.ptfh-home .ptfh-section-intro .ptfh-intro-gallery,
.ptfh-home .ptfh-section-intro .ptfh-intro-gallery-viewport,
.ptfh-home .ptfh-section-intro .ptfh-intro-gallery-track {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none;
}
.ptfh-home .ptfh-section-intro .ptfh-intro-gallery-overlay h3 {
  display: inline-flex !important;
  width: fit-content !important;
  max-width: calc(100% - 20px) !important;
  min-width: 0;
  flex: 0 0 auto !important;
  align-self: flex-start !important;
  padding: 10px 32px 10px 17px !important;
  margin: 0 !important;
  white-space: normal;
  border-radius: 14px 5px 28px 2px;
}
@media (max-width: 767px) {
  .ptfh-home .ptfh-section-intro .ptfh-intro-gallery-overlay h3 {
    padding: 9px 26px 9px 15px !important;
  }
}

/* v1.5.2 — same section background between cards and one consistent border.
   Keep gallery wrappers transparent so any admin-selected section background is visible. */
.ptfh-home .ptfh-section-intro{
  --ptfh-intro-section-bg:#fffaf5;
}
.ptfh-home .ptfh-section-intro .ptfh-intro-gallery,
.ptfh-home .ptfh-section-intro .ptfh-intro-gallery-viewport,
.ptfh-home .ptfh-section-intro .ptfh-intro-gallery-track,
.ptfh-home .ptfh-section-intro .ptfh-intro-gallery-nav,
.ptfh-home .ptfh-section-intro .ptfh-intro-gallery-dots {
  background: var(--ptfh-intro-section-bg) !important;
  background-color: var(--ptfh-intro-section-bg) !important;
}
.ptfh-home .ptfh-section-intro .ptfh-intro-gallery-item,
.ptfh-home .ptfh-section-intro .ptfh-intro-gallery-item:nth-child(3n),
.ptfh-home .ptfh-section-intro .ptfh-intro-gallery-item:nth-child(3n + 2) {
  border: 1.5px solid #d2dbe6 !important;
  border-radius: 17px;
  box-shadow: 0 5px 15px rgba(14,42,74,.11);
}

/* v1.5.4: remove the real cause of tinted seams: blue-gray card shadows and
   the fixed background set on nested gallery wrappers. Let the section's
   computed background (including a custom admin color or image) show through. */
.ptfh-home .ptfh-section-intro .ptfh-intro-gallery,
.ptfh-home .ptfh-section-intro .ptfh-intro-gallery-viewport,
.ptfh-home .ptfh-section-intro .ptfh-intro-gallery-track,
.ptfh-home .ptfh-section-intro .ptfh-intro-gallery-nav,
.ptfh-home .ptfh-section-intro .ptfh-intro-gallery-dots {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}
.ptfh-home .ptfh-section-intro .ptfh-intro-gallery-item,
.ptfh-home .ptfh-section-intro .ptfh-intro-gallery-item:nth-child(3n),
.ptfh-home .ptfh-section-intro .ptfh-intro-gallery-item:nth-child(3n + 2) {
  border: 1px solid #d2dbe6 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}


/* v1.8.3: Tablet / mobile Introduction gallery controls. Three-card galleries
   now have usable navigation at narrow breakpoints; no orphan controls on desktop. */
.ptfh-home .ptfh-section-intro .ptfh-intro-gallery:not(.has-scroll) .ptfh-intro-gallery-nav{display:none!important;}
.ptfh-home .ptfh-section-intro .ptfh-intro-gallery:not(.has-scroll) .ptfh-intro-gallery-dots{display:none!important;}
@media(max-width:980px){
  .ptfh-home .ptfh-section-intro .ptfh-intro-gallery.has-scroll .ptfh-intro-gallery-nav{
    display:flex;top:50%;left:8px;right:8px;z-index:12;
  }
  .ptfh-home .ptfh-section-intro .ptfh-intro-gallery-nav button{
    display:grid;place-items:center;
    width:40px;height:40px;min-width:40px;min-height:40px;
    background:linear-gradient(135deg,#ffad28,#ff6900);
    color:#fff;border:1px solid #ff9919;border-radius:50%;
    box-shadow:0 3px 10px rgba(86,41,0,.2);
    backdrop-filter:none;-webkit-backdrop-filter:none;
    opacity:1;
  }
  .ptfh-home .ptfh-section-intro .ptfh-intro-gallery-nav button:hover:not(:disabled){
    background:linear-gradient(135deg,#ffbb43,#ff7900);border-color:#ffab28;
  }
  .ptfh-home .ptfh-section-intro .ptfh-intro-gallery-nav button:disabled{opacity:.28;}
  .ptfh-home .ptfh-section-intro .ptfh-intro-gallery-dots{
    gap:8px;margin:15px auto 0;min-height:20px;
  }
  .ptfh-home .ptfh-section-intro .ptfh-intro-gallery-dots button{
    background:#b6bcc5;width:8px;min-width:8px;height:8px;min-height:8px;opacity:1;
  }
  .ptfh-home .ptfh-section-intro .ptfh-intro-gallery-dots button.is-active{
    width:24px;min-width:24px;background:linear-gradient(90deg,#ffad28,#ff6900);
  }
}
@media(max-width:600px){
  .ptfh-home .ptfh-section-intro .ptfh-intro-gallery.has-scroll .ptfh-intro-gallery-nav{left:8px;right:8px;}
  .ptfh-home .ptfh-section-intro .ptfh-intro-gallery-nav button{
    width:36px;height:36px;min-width:36px;min-height:36px;
  }
}
