/* WordPress additions on top of site.css (v5, unchanged): card links, "All projects", archive, project page, lightbox, blog. */

/* Cards and real pairs link to the project page: the caption link stretches over the whole card. */
.work figure, .pair { position: relative; }
.stretch { display: flex; justify-content: space-between; gap: 1rem; width: 100%; text-decoration: none; color: inherit; }
.stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.stretch:focus-visible { outline: none; }
.work figure:focus-within, .pair:focus-within { outline: 2px solid var(--char); outline-offset: 3px; }
.work figure img, .pair img { transition: opacity .2s; }
.work figure:hover img, .pair:hover img { opacity: .88; }
.work figure:hover .stretch, .pair:hover .stretch { text-decoration: underline; text-underline-offset: .25em; }
.more { margin: 2rem 0 0; }
.btn-dark { background: var(--char); color: #fff; border-color: var(--char); }
.btn-dark:hover { background: transparent; color: var(--char); }

/* Page heads (archive, project, blog) */
.page-head { padding-top: clamp(2.2rem, 5vw, 3.6rem); }
.page-head h1, .proj-hero h1 { max-width: 22ch; }
.crumbs { font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); margin: 0 0 1.6rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs i { font-style: normal; opacity: .5; margin: 0 .35em; }
.work-all { margin-top: 2.2rem; }

/* Project page */
.proj-hero { padding-top: clamp(2.2rem, 5vw, 3.6rem); }
.proj-hero .eyebrow { margin-bottom: .8rem; }
.proj-cover { margin-top: 1.2rem; }
.proj-cover img { width: 100%; max-height: 78svh; object-fit: cover; background: var(--sand); }
.lb-link { display: block; cursor: zoom-in; }
.proj-body { padding: clamp(2.6rem, 6vw, 4rem) 0 clamp(1rem, 3vw, 2rem); }
.proj-grid { display: grid; gap: 2rem 4rem; grid-template-columns: 1.6fr 1fr; align-items: start; }
.entry { font-size: 1.02rem; max-width: 64ch; }
.entry > :last-child { margin-bottom: 0; }
.entry h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 1.4em; }
.entry ul, .entry ol { padding-left: 1.2em; margin: 0 0 1em; }
.entry img { margin: 1.4rem 0; }
.facts { margin: 0; border-top: 5px solid var(--char); }
.facts > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.facts dt { text-transform: uppercase; letter-spacing: .16em; font-size: .7rem; color: var(--muted); padding-top: .2em; }
.facts dd { margin: 0; font-weight: 600; }
.gal { display: grid; gap: 1.1rem; grid-template-columns: repeat(2, 1fr); margin-top: 2rem; }
.gal img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cta-p { max-width: 44ch; opacity: .9; }
.cta-btns { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.proj-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; padding: 2.4rem 0 3rem; }
.proj-nav a { text-decoration: none; }
.proj-nav small { display: block; text-transform: uppercase; letter-spacing: .16em; font-size: .68rem; color: var(--muted); margin-bottom: .3rem; }
.proj-nav b { display: block; font-family: var(--display); text-transform: uppercase; font-size: 1.5rem; line-height: 1.05; }
.proj-nav span { font-size: .85rem; color: var(--muted); }
.proj-nav a:hover b { text-decoration: underline; }
.pn-next { text-align: right; }
.pn-all { border: 1px solid var(--char); padding: .6rem 1rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; }
.pn-all:hover { background: var(--char); color: #fff; }

/* Lightbox (assets/lightbox.js) */
.lb { width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 12, 12, .96); color: #fff; }
.lb::backdrop { background: rgba(12, 12, 12, .96); }
.lb-fig { position: absolute; inset: 3.4rem 4.2rem 3.2rem; margin: 0; display: flex; align-items: center; justify-content: center; }
.lb-fig img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lb button { position: absolute; z-index: 2; background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.35); width: 48px; height: 48px; border-radius: 50%; font-size: 1.3rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb button:hover, .lb button:focus-visible { background: #fff; color: var(--char); outline: none; }
.lb-x { top: .8rem; right: .8rem; }
.lb-prev { left: .8rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .8rem; top: 50%; transform: translateY(-50%); }
.lb-cap { position: absolute; left: 1rem; right: 1rem; bottom: .9rem; margin: 0; display: flex; justify-content: space-between; gap: 1rem; font-size: .74rem; letter-spacing: .08em; opacity: .85; }
.lb[data-single] .lb-prev, .lb[data-single] .lb-next { display: none; }
html.lb-open { overflow: hidden; }

/* Instagram link (footer + contact block) */
.foot-ig, .ig-link { display: inline-flex; align-items: center; gap: .45rem; color: inherit; text-decoration: none; }
.foot-ig:hover span, .ig-link:hover span, .foot-ig:focus-visible span, .ig-link:focus-visible span { text-decoration: underline; }
.ig-ico { flex: none; }

/* Blog */
.narrow { width: min(760px, 100% - 2.5rem); }
.post-list { list-style: none; padding: 0; margin: 2rem 0; border-top: 1px solid var(--char); }
.post-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.post-list time { color: var(--muted); font-size: .85rem; }

@media (max-width: 860px) {
  .proj-grid { grid-template-columns: 1fr; }
  .gal { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .proj-nav { grid-template-columns: 1fr 1fr; }
  .pn-all { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .proj-nav b { font-size: 1.2rem; }
  .facts > div { grid-template-columns: 7rem 1fr; }
  .lb-fig { inset: 3.6rem .5rem 3rem; }
  .lb-prev, .lb-next { top: auto; bottom: .5rem; transform: none; width: 42px; height: 42px; }
  .lb-prev { left: .5rem; } .lb-next { right: .5rem; }
  .lb-cap { left: 3.6rem; right: 3.6rem; bottom: 1.1rem; font-size: .68rem; flex-direction: column; gap: .2rem; text-align: center; }
}

/* Blog: article page, article cards (home, project pages, "More articles"). */
.post .crumbs { margin-bottom: 1.2rem; }
.post-meta { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; margin: -.4rem 0 1.4rem; }
.post-cover img { width: 100%; height: auto; max-height: 70svh; object-fit: cover; background: var(--sand); margin: 0 0 2rem; }
.post .entry { max-width: 70ch; }
.entry h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); margin-top: 1.3em; }
.entry a { text-underline-offset: .2em; }
.entry table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .95rem; }
.entry th, .entry td { text-align: left; vertical-align: top; padding: .55rem .6rem; border-bottom: 1px solid var(--line); }
.entry th { font-weight: 600; border-bottom: 2px solid var(--char); }
.entry .table-wrap { overflow-x: auto; }
.entry figure { margin: 1.6rem 0; }
.entry figure img { width: 100%; height: auto; }
.entry figcaption { font-size: .82rem; color: var(--muted); margin-top: .4rem; }
.entry .note-box { border-left: 4px solid var(--char); background: var(--sand); padding: 1rem 1.2rem; margin: 1.4rem 0; }
.entry .cta-line { font-weight: 600; }
.post-cards { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 2rem; }
.post-card { position: relative; background: #fff; display: flex; flex-direction: column; }
.post-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.post-card h3 { font-size: 1.05rem; margin: 1rem 1.1rem .5rem; line-height: 1.3; }
.post-card h3 a { text-decoration: none; }
.post-card p { margin: 0 1.1rem 1.2rem; font-size: .9rem; color: var(--muted); }
.post-card:hover h3 a { text-decoration: underline; text-underline-offset: .2em; }
.post-card:focus-within { outline: 2px solid var(--char); outline-offset: 3px; }
.sec:not(.sec-sand) .post-card { background: var(--sand); }
.more-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn-line { background: transparent; color: var(--char); border-color: var(--char); }
.btn-line:hover { background: var(--char); color: #fff; }
/* Header: one line per link; the extra (Primary menu) links give way below 1240px — they are also linked from the home page. */
.nav a { white-space: nowrap; }
@media (max-width: 1240px) { .nav { gap: 1.2rem; } .nav .nav-extra { display: none; } }
/* Footer «Luxx Group» line: own row under the footer items, same muted colour; links underline on hover. */
.foot-group { flex-basis: 100%; margin: 0; padding-top: .9rem; border-top: 1px solid rgba(255,255,255,.12); line-height: 1.7; }
.foot-group a { color: inherit; text-decoration: none; }
.foot-group a:hover, .foot-group a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
/* Cookie banner (inc/analytics.php, assets/consent.js) */
.fs-consent { position: fixed; z-index: 200; left: 1rem; right: 1rem; bottom: 1rem; max-width: 34rem; margin-left: auto; padding: 1rem 1.1rem; background: var(--char); color: #fff; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 8px 30px rgba(0,0,0,.35); font-size: .85rem; line-height: 1.5; }
.fs-consent[hidden] { display: none; }
.fs-consent p { margin: 0 0 .8rem; }
.fs-consent-b { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; }
.fs-consent-b .btn { cursor: pointer; font-family: inherit; }
.fs-consent-b [data-consent="denied"] { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.fs-consent-b [data-consent="denied"]:hover { background: #fff; color: var(--char); }
.foot-cookie { padding: 0; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.foot-cookie:hover, .foot-cookie:focus-visible { color: #fff; }
@media (max-width: 600px) { .fs-consent { left: .5rem; right: .5rem; bottom: .5rem; } .fs-consent-b .btn { flex: 1; } }
