/* Projects only: image-led cards, editable detail sections, no product/global overrides. */
.hl-v255{--project-border:#e4e5e7;--project-muted:#586168;max-width:1180px;margin-inline:auto}
.hl-v255.hl-section{padding-block:clamp(28px,4vw,56px)}
.hl-v255-intro{max-width:760px;margin-bottom:48px}
.hl-v255-intro p{font-size:1.125rem;line-height:1.7;color:var(--project-muted)}
.hl-v255-business{margin-top:48px}
.hl-v255-business>h2{padding-bottom:18px;border-bottom:1px solid var(--project-border);margin:0 0 24px;font-size:clamp(1.5rem,2.4vw,2rem)}
.hl-v255 .hl-v255-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;list-style:none;margin:0;padding:0}
.hl-v255 .hl-v255-grid>li{min-width:0;margin:0}
.hl-v255 .hl-v255-card{display:flex;flex-direction:column;height:100%;gap:0;padding:0;overflow:hidden;border:1px solid var(--project-border);border-radius:8px;background:#fff;box-shadow:none}
.hl-v255 .hl-v255-card>*{margin:0}
.hl-v255 .hl-v255-card-image{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:16/10;background:#f3f4f4;margin:0;border-radius:0}
.hl-v255 .hl-v255-card-image>a{display:flex;align-items:center;justify-content:center;width:100%;height:100%}
.hl-v255 .hl-v255-card-image img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;aspect-ratio:auto}
.hl-v255 .hl-v255-card-title{padding:24px 24px 0;font-size:1.35rem;line-height:1.35;overflow-wrap:anywhere}
.hl-v255 .hl-v255-card-title a{color:#24282b;text-decoration:none}
.hl-v255 .hl-v255-card-business{padding:12px 24px 0;color:#a51824;font-size:.95rem;font-weight:600;line-height:1.45}
.hl-v255 .wp-block-post-excerpt{padding:12px 24px 20px;color:var(--project-muted);font-size:1rem;line-height:1.65;flex:1}
.hl-v255 .wp-block-post-excerpt p{margin:0}
.hl-v255 a.hl-v255-card-link{display:inline-flex;align-items:center;align-self:flex-start;min-height:44px;margin:0 24px 20px;padding:4px 0;border:0;border-radius:0;background:transparent;color:#a51824;font-size:1rem;font-weight:600;line-height:1.4;text-decoration:underline;text-underline-offset:5px;width:auto;box-sizing:border-box}
.hl-v255 a.hl-v255-card-link:hover{background:transparent;color:#74111a}
.hl-v255 a:focus-visible{outline:3px solid #a51824;outline-offset:4px}
.hl-v255-detail{padding-block:16px 48px}
.hl-v255-project-hero{margin:0 0 44px;border-radius:8px;overflow:hidden;background:#f3f4f4}
.hl-v255-project-hero figure{margin:0;display:flex;justify-content:center}
.hl-v255-project-hero img{display:block;width:auto;height:auto;max-width:100%;max-height:680px;object-fit:contain}
.hl-v255-section{padding-block:32px;border-top:1px solid var(--project-border)}
.hl-v255-section>h2{font-size:clamp(1.5rem,2.3vw,2rem);margin:0 0 20px;line-height:1.25}
.hl-v255-section>p{max-width:780px;font-size:1.075rem;line-height:1.8;margin:0 0 16px;color:#465057}
.hl-v255-section>p:last-child{margin-bottom:0}
.hl-v255-gallery{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px!important;margin:0!important}
.hl-v255-gallery figure{margin:0!important;width:100%!important;display:flex;align-items:center;justify-content:center;background:#f3f4f4;border-radius:6px;overflow:hidden}
.hl-v255-gallery img{width:auto!important;height:auto!important;max-width:100%;max-height:480px;object-fit:contain!important}
.hl-v255-contact{margin-top:36px;padding:32px;background:#f5f5f4;border-left:4px solid #a51824;border-radius:4px}
.hl-v255-contact h2{margin:0 0 12px;font-size:clamp(1.5rem,2.3vw,2rem)}
.hl-v255-contact p{max-width:700px;line-height:1.75;margin:0 0 20px}
.hl-v255-contact .wp-block-button__link{min-height:44px;padding:12px 24px;font-size:1rem;box-sizing:border-box}
@media(max-width:639px){.hl-v255 .hl-v255-grid,.hl-v255-gallery{grid-template-columns:minmax(0,1fr)}.hl-v255 .hl-v255-grid{gap:24px}.hl-v255-intro{margin-bottom:28px}.hl-v255-business{margin-top:32px}.hl-v255 .hl-v255-card-title{padding:20px 20px 0;font-size:1.25rem}.hl-v255 .hl-v255-card-business{padding-inline:20px}.hl-v255 .wp-block-post-excerpt{padding-inline:20px}.hl-v255 a.hl-v255-card-link{margin-inline:20px}.hl-v255-project-hero{margin-bottom:24px}.hl-v255-section{padding-block:24px}.hl-v255-contact{padding:24px}}

/* V2-56: listing cards only. Detail galleries retain their existing image treatment. */
.hl-v255-list .hl-v255-grid{align-items:stretch}
.hl-v255-list .hl-v255-grid>li{display:flex;min-width:0}
.hl-v255-list .hl-v255-card{width:100%;min-height:100%}
.hl-v255-list .hl-v255-card-image{position:relative;display:block;flex:none;width:100%;aspect-ratio:16/10;overflow:hidden;background:#e9eceb}
.hl-v255-list .hl-v255-card-image>a{position:relative;z-index:1;display:block;width:100%;height:100%}
.hl-v255-list .hl-v255-card-image img{display:block;width:100%;height:100%;max-width:none;max-height:none;aspect-ratio:auto;object-fit:cover;object-position:center}
.hl-v255-list .hl-v255-card-title{box-sizing:content-box;min-height:calc(2 * 1.35em);padding-top:20px}
.hl-v255-list .hl-v255-card-business{padding-top:8px}
.hl-v255-list .wp-block-post-excerpt{padding-top:10px;padding-bottom:12px;flex:1 1 auto}
.hl-v255-list a.hl-v255-card-link{flex:none;margin-top:auto}
/* The Benin and Thailand tank photographs are unusually wide. Preserve both full structures
   over a softly blurred copy of the same project image instead of showing empty gray bars. */
.hl-v255-list .post-77 .hl-v255-card-image::before,
.hl-v255-list .post-78 .hl-v255-card-image::before{content:"";position:absolute;inset:-12px;z-index:0;background-position:center;background-size:cover;filter:blur(12px) brightness(.78)}
.hl-v255-list .post-77 .hl-v255-card-image::before{background-image:url('/wp-admin/admin-ajax.php?action=hl_v255_image&project=77&image=0')}
.hl-v255-list .post-78 .hl-v255-card-image::before{background-image:url('/wp-admin/admin-ajax.php?action=hl_v255_image&project=78&image=0')}
.hl-v255-list .post-77 .hl-v255-card-image img,
.hl-v255-list .post-78 .hl-v255-card-image img{object-fit:contain}
.hl-v255-list .post-76 .hl-v255-card-image img{object-position:center 58%}
.hl-v255-list .post-72 .hl-v255-card-image img,
.hl-v255-list .post-73 .hl-v255-card-image img{object-position:center 44%}
@media (min-width:640px) and (max-width:1023px){
  .hl-v255-list .hl-v255-grid{gap:20px}
  .hl-v255-list .hl-v255-card-title{min-height:calc(3 * 1.35em);padding-inline:18px;font-size:1.2rem}
  .hl-v255-list .hl-v255-card-business{padding-inline:18px}
  .hl-v255-list .wp-block-post-excerpt{padding-inline:18px}
  .hl-v255-list a.hl-v255-card-link{margin-inline:18px}
}
@media (max-width:639px){
  .hl-v255-list .hl-v255-grid>li{width:100%}
  .hl-v255-list .hl-v255-card-title{min-height:0;padding-top:18px}
}

/* V3: page 68 only. Gutenberg Group + Query Loop stay editable. */
body.page-id-68 .hl-v255.hl-v255-list{max-width:1200px;padding-block:36px 64px;color:#222b30}
body.page-id-68 .hl-v255-list .hl-v255-intro{max-width:780px;margin-bottom:42px}
body.page-id-68 .hl-v255-list .hl-v255-intro h1{margin-bottom:10px;font-size:clamp(2.2rem,4vw,3.25rem);line-height:1.12;letter-spacing:-.025em;color:#1d292f}
body.page-id-68 .hl-v255-list .hl-v255-intro p{margin:0;color:#58636a;line-height:1.65}
body.page-id-68 .hl-v255-list .hl-v255-business{margin-top:44px}
body.page-id-68 .hl-v255-list .hl-v255-business>h2{display:flex;align-items:center;gap:14px;padding:0 0 15px;margin:0 0 22px;border-bottom:1px solid #d9dee0;color:#253137;font-size:clamp(1.45rem,2.3vw,1.9rem);line-height:1.25}
body.page-id-68 .hl-v255-list .hl-v255-business>h2::before{content:"";width:5px;height:1.05em;flex:none;background:#a51824;border-radius:2px}
body.page-id-68 .hl-v255-list .hl-v255-grid{gap:22px}
body.page-id-68 .hl-v255-list .hl-v255-grid>li{min-width:0}
body.page-id-68 .hl-v255-list .hl-v255-card{border:1px solid #e1e5e6;border-radius:9px;box-shadow:0 6px 22px rgb(19 36 42 / 5%)}
body.page-id-68 .hl-v255-list .hl-v255-card-image{background:#e9eeee}
body.page-id-68 .hl-v255-list .hl-v255-card-title{min-height:calc(2 * 1.34em);padding:19px 22px 0;font-size:1.3rem;line-height:1.34;letter-spacing:-.01em}
body.page-id-68 .hl-v255-list .hl-v255-card-title a{color:#242e33}
body.page-id-68 .hl-v255-list .hl-v255-card-business{padding:7px 22px 0;font-size:.88rem;letter-spacing:.015em;color:#a51824}
body.page-id-68 .hl-v255-list .wp-block-post-excerpt{padding:10px 22px 13px;color:#5a646a;font-size:.97rem;line-height:1.6}
body.page-id-68 .hl-v255-list a.hl-v255-card-link{margin:0 22px 20px;min-height:38px;font-size:.95rem;text-decoration:none;border-bottom:1px solid #a51824}
body.page-id-68 .hl-v255-list a.hl-v255-card-link:hover{border-color:#74111a}

/* Tank: two regular cards, then one full-width feature. */
body.page-id-68 .hl-v3-tank .post-78{grid-column:1/-1}
body.page-id-68 .hl-v3-tank .post-77 .hl-v255-card-image img{object-fit:cover;object-position:center}
/* The existing ultra-wide 78 photo stays complete, with its existing same-photo soft background. */

/* Supply: the sole current case fills the row; future cases remain normal Query Loop cards. */
body.page-id-68 .hl-v3-supply{padding:26px 28px 30px;background:#f3f5f5;border-radius:10px}
body.page-id-68 .hl-v3-supply .post-79{grid-column:1/-1}

/* Existing native post children: image, title, business, excerpt and View Project. */
body.page-id-68 .hl-v3-tank .post-78 .hl-v255-card,
body.page-id-68 .hl-v3-supply .post-79 .hl-v255-card{
  display:grid;
  grid-template-rows:auto auto 1fr auto;
  grid-template-areas:"photo title" "photo business" "photo summary" "photo link";
  min-height:320px;
}
body.page-id-68 .hl-v3-tank .post-78 .hl-v255-card{grid-template-columns:minmax(0,1.35fr) minmax(320px,.9fr)}
body.page-id-68 .hl-v3-supply .post-79 .hl-v255-card{grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr)}
body.page-id-68 .hl-v3-tank .post-78 .hl-v255-card-image,
body.page-id-68 .hl-v3-supply .post-79 .hl-v255-card-image{grid-area:photo;width:100%;height:320px;min-height:0;aspect-ratio:auto}
body.page-id-68 .hl-v3-tank .post-78 .hl-v255-card-image>a,
body.page-id-68 .hl-v3-supply .post-79 .hl-v255-card-image>a{height:100%}
body.page-id-68 .hl-v3-tank .post-78 .hl-v255-card-image img,
body.page-id-68 .hl-v3-supply .post-79 .hl-v255-card-image img{width:100%;height:100%;object-fit:contain;object-position:center}
body.page-id-68 .hl-v3-tank .post-78 .hl-v255-card-title,
body.page-id-68 .hl-v3-supply .post-79 .hl-v255-card-title{grid-area:title;min-height:0;padding:27px 28px 0;font-size:clamp(1.4rem,2vw,1.72rem);line-height:1.28}
body.page-id-68 .hl-v3-tank .post-78 .hl-v255-card-business,
body.page-id-68 .hl-v3-supply .post-79 .hl-v255-card-business{grid-area:business;padding:12px 28px 0}
body.page-id-68 .hl-v3-tank .post-78 .wp-block-post-excerpt,
body.page-id-68 .hl-v3-supply .post-79 .wp-block-post-excerpt{grid-area:summary;padding:15px 28px 12px;align-self:start;font-size:1rem}
body.page-id-68 .hl-v3-tank .post-78 a.hl-v255-card-link,
body.page-id-68 .hl-v3-supply .post-79 a.hl-v255-card-link{grid-area:link;margin:0 28px 24px;align-self:end}

/* Kitchen: unchanged two-by-two Query Loop, with aligned card content. */
body.page-id-68 .hl-v3-kitchen .hl-v255-grid{align-items:stretch}
body.page-id-68 .hl-v3-kitchen .hl-v255-card-image{aspect-ratio:16/10}
body.page-id-68 .hl-v3-kitchen .hl-v255-card-image img{object-fit:cover}
body.page-id-68 .hl-v255-list .hl-v255-contact{margin-top:48px;padding:28px 32px;background:#f3f5f5;border-left:4px solid #a51824}

@media(max-width:980px){
  body.page-id-68 .hl-v3-tank .post-78 .hl-v255-card,
  body.page-id-68 .hl-v3-supply .post-79 .hl-v255-card{display:flex;flex-direction:column;min-height:0}
  body.page-id-68 .hl-v3-tank .post-78 .hl-v255-card-image,
  body.page-id-68 .hl-v3-supply .post-79 .hl-v255-card-image{height:auto;min-height:0;aspect-ratio:2.1/1}
  body.page-id-68 .hl-v3-tank .post-78 .hl-v255-card-title,
  body.page-id-68 .hl-v3-supply .post-79 .hl-v255-card-title{padding:21px 22px 0;font-size:1.3rem}
  body.page-id-68 .hl-v3-tank .post-78 .hl-v255-card-business,
  body.page-id-68 .hl-v3-supply .post-79 .hl-v255-card-business{padding:8px 22px 0}
  body.page-id-68 .hl-v3-tank .post-78 .wp-block-post-excerpt,
  body.page-id-68 .hl-v3-supply .post-79 .wp-block-post-excerpt{padding:10px 22px 12px}
  body.page-id-68 .hl-v3-tank .post-78 a.hl-v255-card-link,
  body.page-id-68 .hl-v3-supply .post-79 a.hl-v255-card-link{margin:0 22px 19px}
}
@media(max-width:680px){
  body.page-id-68 .hl-v255.hl-v255-list{padding:28px 16px 44px}
  body.page-id-68 .hl-v255-list .hl-v255-intro{margin-bottom:32px}
  body.page-id-68 .hl-v255-list .hl-v255-business{margin-top:36px}
  body.page-id-68 .hl-v255-list .hl-v255-business>h2{margin-bottom:16px}
  body.page-id-68 .hl-v255-list .hl-v255-grid{grid-template-columns:minmax(0,1fr);gap:20px}
  body.page-id-68 .hl-v3-tank .post-78,
  body.page-id-68 .hl-v3-supply .post-79{grid-column:1}
  body.page-id-68 .hl-v3-supply{padding:20px 16px}
  body.page-id-68 .hl-v255-list .hl-v255-card-title{min-height:0;padding:17px 19px 0;font-size:1.2rem}
  body.page-id-68 .hl-v255-list .hl-v255-card-business{padding:7px 19px 0}
  body.page-id-68 .hl-v255-list .wp-block-post-excerpt{padding:9px 19px 10px}
  body.page-id-68 .hl-v255-list a.hl-v255-card-link{margin:0 19px 17px}
  body.page-id-68 .hl-v3-tank .post-78 .hl-v255-card-title,
  body.page-id-68 .hl-v3-supply .post-79 .hl-v255-card-title{padding:18px 19px 0;font-size:1.25rem}
  body.page-id-68 .hl-v3-tank .post-78 .hl-v255-card-business,
  body.page-id-68 .hl-v3-supply .post-79 .hl-v255-card-business{padding:7px 19px 0}
  body.page-id-68 .hl-v3-tank .post-78 .wp-block-post-excerpt,
  body.page-id-68 .hl-v3-supply .post-79 .wp-block-post-excerpt{padding:9px 19px 10px}
  body.page-id-68 .hl-v3-tank .post-78 a.hl-v255-card-link,
  body.page-id-68 .hl-v3-supply .post-79 a.hl-v255-card-link{margin:0 19px 18px}
  body.page-id-68 .hl-v255-list .hl-v255-contact{margin-top:36px;padding:22px}
}
