|
| 1 | +<style id="hs-inline-style"> |
| 2 | +/* === Home Projects — self-contained styles === */ |
| 3 | +.home-sections{max-width:1200px;margin:28px auto 0;padding:0 16px;} |
| 4 | +.home-sections-title{ |
| 5 | + margin:0 0 14px 2px; font-size:28px; font-weight:700; letter-spacing:.2px; |
| 6 | + font-family: Inter, system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif; color:#f0f0f0; |
| 7 | + text-align:left; |
| 8 | +} |
| 9 | +.hs-row{display:flex;gap:28px;justify-content:flex-start;align-items:stretch;flex-wrap:wrap} |
| 10 | + |
| 11 | +.hs-card{position:relative;display:block;width:min(38vw,520px);height:min(22vw,320px); |
| 12 | + min-width:320px;min-height:240px;background:#111;overflow:hidden;border:none; |
| 13 | + box-shadow:0 6px 24px rgba(0,0,0,.20);isolation:isolate; |
| 14 | + transition:transform .35s cubic-bezier(.5,1,.5,1), box-shadow .35s} |
| 15 | +.hs-card, .hs-card * { text-decoration:none !important; } |
| 16 | +.hs-card:hover{transform:scale(1.02);box-shadow:0 12px 34px rgba(0,0,0,.38)} |
| 17 | + |
| 18 | +.hs-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block; |
| 19 | + filter:brightness(.82) saturate(1.05);transform:scale(1.0); |
| 20 | + transition:transform .6s cubic-bezier(.2,.7,.2,1), filter .35s ease;z-index:1} |
| 21 | +.hs-card:hover .hs-bg{transform:scale(1.05);filter:brightness(1.02) saturate(1.12)} |
| 22 | + |
| 23 | +.hs-overlay{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column; |
| 24 | + justify-content:center;align-items:flex-start;padding:32px;pointer-events:none; |
| 25 | + background:linear-gradient(180deg,rgba(0,0,0,.18) 0%,rgba(0,0,0,.64) 100%)} |
| 26 | + |
| 27 | +.hs-heading{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif; |
| 28 | + font-size:clamp(20px,2.6vw,28px);line-height:1.1;font-weight:700;letter-spacing:.4px; |
| 29 | + margin:0 0 14px 0;transform:translateY(8px);opacity:.96; |
| 30 | + transition:transform .33s cubic-bezier(.46,.16,.36,.82),opacity .33s;color:#fff} |
| 31 | +.hs-btn{display:inline-block;pointer-events:auto;border:1px solid rgba(255,255,255,.86); |
| 32 | + padding:8px 20px;border-radius:4px;background:transparent;color:#fff; |
| 33 | + font:600 12px/1 Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif; |
| 34 | + letter-spacing:1.5px;text-transform:uppercase;transform:translateY(18px);opacity:0; |
| 35 | + transition:transform .35s cubic-bezier(.46,.16,.36,.82),opacity .35s,background .2s,color .2s} |
| 36 | +.hs-card:hover .hs-heading{transform:translateY(0);opacity:1} |
| 37 | +.hs-card:hover .hs-btn{transform:translateY(0);opacity:1} |
| 38 | +.hs-btn:hover{background:#fff;color:#222} |
| 39 | + |
| 40 | +@media (max-width:980px){ .hs-card{ width:min(45vw,520px); height:min(27vw,320px) } } |
| 41 | +@media (max-width:720px){ .hs-row{gap:22px} .hs-card{width:100%;height:260px} .hs-overlay{padding:24px} } |
| 42 | +</style> |
| 43 | + |
| 44 | +<section class="home-sections"> |
| 45 | + <h2 class="home-sections-title">Projects</h2> |
| 46 | + <div class="hs-row"> |
| 47 | + <a class="hs-card" href="{{ '/projects/concept-art/' | url }}"> |
| 48 | + <img class="hs-bg" src="{{ '/img/projects/sections/concept-art.jpg' | url }}" alt="Concept Art"> |
| 49 | + <div class="hs-overlay"> |
| 50 | + <h3 class="hs-heading">Concept Art</h3> |
| 51 | + <span class="hs-btn">View more</span> |
| 52 | + </div> |
| 53 | + </a> |
| 54 | + |
| 55 | + <a class="hs-card" href="{{ '/projects/graphic-design/' | url }}"> |
| 56 | + <img class="hs-bg" src="{{ '/img/projects/sections/graphic-design.jpg' | url }}" alt="Graphic Design"> |
| 57 | + <div class="hs-overlay"> |
| 58 | + <h3 class="hs-heading">Graphic Design</h3> |
| 59 | + <span class="hs-btn">View more</span> |
| 60 | + </div> |
| 61 | + </a> |
| 62 | + |
| 63 | + <a class="hs-card" href="{{ '/projects/short-film-projects/' | url }}"> |
| 64 | + <img class="hs-bg" src="{{ '/img/projects/sections/short-films.jpg' | url }}" alt="Short Film Projects"> |
| 65 | + <div class="hs-overlay"> |
| 66 | + <h3 class="hs-heading">Short Film Projects</h3> |
| 67 | + <span class="hs-btn">View more</span> |
| 68 | + </div> |
| 69 | + </a> |
| 70 | + </div> |
| 71 | +</section> |
| 72 | +<style> |
| 73 | +@media (min-width: 1024px){ |
| 74 | + .hs-row{ |
| 75 | + display: grid !important; |
| 76 | + grid-template-columns: repeat(3, minmax(260px, 1fr)) !important; |
| 77 | + gap: 26px !important; |
| 78 | + align-items: stretch !important; |
| 79 | + } |
| 80 | + .hs-card{ |
| 81 | + width: auto !important; |
| 82 | + min-width: 0 !important; |
| 83 | + height: 240px !important; |
| 84 | + } |
| 85 | +} |
| 86 | +@media (min-width: 1280px){ |
| 87 | + .hs-row{ gap: 28px !important; } |
| 88 | + .hs-card{ height: 260px !important; } |
| 89 | +} |
| 90 | +</style> |
0 commit comments