@charset "utf-8";
/* Mash Abey — Pastry Artisan portfolio */
:root {
  --ink: #0b0b0b;
  --ink-2: #161616;
  --paper: #ffffff;
  --paper-2: #f6f3ee;
  --muted: #6b6b6b;
  --muted-dark: #a9a9a9;
  --gold: #c9a35c;
  --gold-soft: #e8d6ae;
  --silver: #a6a6a6;
  --bronze: #b58b66;
  --radius: 14px;
  --max: 1180px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --script: "Pinyon Script", "Snell Roundhand", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 8px 0 14px;
}
.section-lede { color: var(--muted); max-width: 620px; }

section { padding: clamp(64px, 9vw, 120px) 0; }
.dark { background: var(--ink); color: #f2f2f2; }
.dark .section-lede { color: var(--muted-dark); }
.warm { background: var(--paper-2); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 40px);
  color: #fff;
  transition: background .25s, box-shadow .25s;
}
.nav.solid { background: rgba(11, 11, 11, .92); backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.nav .brand { font-family: var(--script); font-size: 28px; text-decoration: none; line-height: 1; }
.nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.nav ul a {
  text-decoration: none; font-size: 12px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; opacity: .85;
}
.nav ul a:hover, .nav ul a[aria-current="page"] { opacity: 1; color: var(--gold-soft); }
.nav-toggle { display: none; background: none; border: 0; color: inherit; padding: 6px; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav ul {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(11, 11, 11, .97);
    max-height: 0; overflow: hidden; transition: max-height .3s;
  }
  .nav.open ul { max-height: 480px; }
  .nav ul a { display: block; padding: 14px 24px; border-top: 1px solid rgba(255,255,255,.06); }
  .nav.open { background: rgba(11, 11, 11, .97); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  background: #000;
  color: #fff;
  padding: 0;
  overflow: hidden;
}
.hero-text { padding: 120px clamp(20px, 6vw, 90px) 80px; text-align: center; }
.hero-name {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(52px, 7vw, 104px);
  white-space: nowrap;
  line-height: 1;
  margin: 10px 0 6px;
}
.hero-full { font-size: clamp(16px, 1.8vw, 22px); letter-spacing: .04em; margin-bottom: 34px; }
.hero-role { font-size: clamp(15px, 1.6vw, 20px); font-weight: 700; letter-spacing: .22em; margin-bottom: 6px; }
.hero-now { color: var(--gold-soft); font-size: 14px; letter-spacing: .06em; margin-bottom: 34px; }
.hero-img { align-self: end; height: 100%; max-height: 100svh; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-badges { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-top: 42px; }
.hero-badges div { text-align: center; }
.hero-badges strong { display: block; font-size: 28px; color: var(--gold-soft); font-weight: 600; }
.hero-badges span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-dark); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; border: 1.5px solid currentColor;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-solid { background: #fff; color: #000; border-color: #fff; }
.btn-solid:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.light-btn { background: var(--ink); color: #fff; border-color: var(--ink); }
.light-btn:hover { background: var(--gold); border-color: var(--gold); }
.light-ghost { color: var(--ink); }
.light-ghost:hover { background: rgba(0,0,0,.06); }
.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-text { padding: 110px 20px 40px; }
  .hero-img { height: auto; max-height: 70svh; }
  .hero-badges { gap: 10px; display: grid; grid-template-columns: repeat(3, 1fr); }
  .hero-badges span { font-size: 10px; letter-spacing: .1em; }
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: #000; }
.about-grid figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-copy h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 500; margin: 10px 0 22px; }
.quote {
  margin: 34px 0 0; padding: 0 0 0 20px; border-left: 2px solid var(--gold);
  font-style: italic; font-size: 19px;
}
.quote cite { display: block; font-style: normal; font-size: 13px; color: var(--muted); margin-top: 6px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Achievements ---------- */
.ach-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.ach-head img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; }
@media (max-width: 860px) { .ach-head { grid-template-columns: 1fr; } }

.timeline { display: grid; gap: 22px; }
.award {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 0;
  background: var(--ink-2); border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
}
.award-body { padding: clamp(24px, 4vw, 44px); }
.award-year { font-size: 22px; font-weight: 700; color: var(--gold-soft); line-height: 1; letter-spacing: .04em; }
.award h3 { font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 14px 0 4px; }
.award .where { color: var(--muted-dark); font-size: 14px; margin-bottom: 18px; }
.medals { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.medals li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.medal {
  flex: none; width: 20px; height: 26px; margin-top: -1px;
  -webkit-mask: var(--medal) center / contain no-repeat;
  mask: var(--medal) center / contain no-repeat;
  --medal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 26'%3E%3Cpath d='M3 0h5l3 8H6z' fill-opacity='.55'/%3E%3Cpath d='M17 0h-5L9 8h5z' fill-opacity='.8'/%3E%3Cpath fill-rule='evenodd' d='M10 8a9 9 0 1 1 0 18 9 9 0 0 1 0-18Zm0 2.2a6.8 6.8 0 1 0 0 13.6 6.8 6.8 0 0 0 0-13.6Z'/%3E%3Cpath d='m10 12.3 1.5 3 3.3.5-2.4 2.3.6 3.3-3-1.6-3 1.6.6-3.3-2.4-2.3 3.3-.5z'/%3E%3C/svg%3E");
}
.medal.gold { background: linear-gradient(160deg, #f3d98b, #c9a35c 55%, #9c7a35); }
.medal.silver { background: linear-gradient(160deg, #f1f1f1, #b5b5b5 55%, #7f7f7f); }
.medal.bronze { background: linear-gradient(160deg, #e7b98f, #b58b66 55%, #7d5537); }
.award-photos { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; height: 340px; }
.award-photos button { min-height: 0; min-width: 0; }
.award-photos button { padding: 0; border: 0; background: #000; cursor: zoom-in; overflow: hidden; }
.award-photos img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .5s; }
.award-photos button:hover img { transform: scale(1.04); }
@media (max-width: 860px) {
  .award { grid-template-columns: 1fr; }
  .award-photos { height: auto; grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); grid-auto-columns: auto; }
  .award-photos button { aspect-ratio: 1; }
  .award-photos button:first-child:nth-last-child(odd) { grid-column: span 2; aspect-ratio: 16 / 10; }
}

/* ---------- Experience ---------- */
.jobs { display: grid; gap: 28px; margin-top: 34px; }
.job { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(24px, 4vw, 56px); align-items: start; padding: clamp(20px, 3vw, 32px); background: #fff; border-radius: var(--radius); box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.exp-card .org { font-weight: 600; margin: 4px 0 0; }
.now-badge { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; background: var(--gold); color: #000; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.exp-photos.three { grid-template-columns: repeat(3, 1fr); }
.exp-photos.three button img { aspect-ratio: 3 / 4; }
@media (max-width: 860px) { .job { grid-template-columns: 1fr; } }
.exp { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.exp-card h3 { font-size: 22px; font-weight: 700; }
.exp-card .when { color: var(--gold); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin: 6px 0 18px; }
.exp-card ul { padding-left: 18px; margin: 0; color: #333; }
.exp-card li { margin-bottom: 6px; }
.exp-photos { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; }
.exp-photos button { padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: #ddd; }
.exp-photos img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.exp-photos button:first-child img { aspect-ratio: auto; }
@media (max-width: 860px) { .exp { grid-template-columns: 1fr; } }

/* ---------- Work gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 34px; }
.chip {
  font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  background: transparent; color: #ddd; border: 1px solid rgba(255,255,255,.22);
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: #fff; color: #fff; }
.chip[aria-pressed="true"] { background: #fff; color: #000; border-color: #fff; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.tile {
  position: relative; padding: 0; border: 0; cursor: zoom-in;
  aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: #1b1b1b;
  font: inherit; color: #fff; text-align: left;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s; }
.tile:hover img { transform: scale(1.05); }
.tile span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 14px 12px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  opacity: 0; transition: opacity .3s;
}
.tile:hover span, .tile:focus-visible span { opacity: 1; }
.tile[hidden] { display: none; }
.gallery[hidden], .more-chips[hidden], #delish-more[hidden], #gallery-more[hidden] { display: none; }
.more-chips { display: contents; }
.chip-more { border-style: dashed; }
.gallery.dense { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
.gallery.dense .tile { border-radius: 6px; }
.delish-note { color: var(--muted-dark); font-size: 13px; margin: 14px 0 0; }
.delish-note a { color: var(--gold-soft); }
@media (max-width: 560px) {
  .gallery, .gallery.dense { grid-template-columns: repeat(4, 1fr); gap: 4px; }
  .tile { border-radius: 6px; }
  .tile span { display: none; }
  .tile.is-video::after { width: 26px; height: 26px; margin: -13px 0 0 -13px; background-size: 13px; }
}

/* ---------- Art + process ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 34px; }
.two-col button { padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: #eee; }
.two-col img { width: 100%; height: 340px; object-fit: cover; object-position: center 30%; }
@media (max-width: 560px) { .two-col img { height: 260px; } }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 34px; }
.pcard { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.pcard-mosaic { display: grid; gap: 2px; aspect-ratio: 1; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.pcard-mosaic.n2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.pcard-mosaic button { position: relative; padding: 0; border: 0; background: #ddd; cursor: zoom-in; overflow: hidden; min-height: 0; }
.pcard-mosaic.n3 button.m:first-child { grid-row: span 2; }
.pcard-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pcard-mosaic button:hover img { transform: scale(1.05); }
.pcard-mosaic em { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; font-style: normal; font-size: 20px; font-weight: 600; }
.pcard-mosaic .lb-only { display: none; }
.pcard-body { padding: 12px 14px 14px; }
.pcard-body h3 { font-size: 15px; font-weight: 700; }
.pcard-body p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
@media (max-width: 860px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Qualifications ---------- */
.qual { display: grid; grid-template-columns: .8fr 1.4fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.qual figure { margin: 0; position: sticky; top: 90px; }
.qual figure img { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.qual-list { display: grid; gap: 26px; margin-top: 26px; }
.qual-item { padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.1); }
.qual-item h3 { font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.qual-item .yr { color: var(--gold); }
.qual-item p { color: var(--muted-dark); margin: 6px 0 0; font-size: 15px; }
.subjects { columns: 2; column-gap: 28px; padding-left: 18px; margin: 12px 0 0; color: #ddd; font-size: 14px; }
.subjects li { margin-bottom: 4px; break-inside: avoid; }
@media (max-width: 860px) {
  .qual { grid-template-columns: 1fr; }
  .qual figure { position: static; max-width: 360px; }
}
@media (max-width: 480px) { .subjects { columns: 1; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.contact h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 600; margin: 10px 0 20px; }
.contact-lines { display: grid; gap: 14px; margin: 30px 0; }
.contact-lines a { display: flex; gap: 14px; align-items: center; text-decoration: none; font-size: 17px; }
.contact-lines a:hover { color: var(--gold-soft); }
.li-hint { display: none; align-items: center; gap: 14px; margin-top: 6px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.li-hint b { display: inline-block; color: var(--gold); animation: nudge 1.4s ease-in-out infinite; }
.li-progress { flex: 1; height: 3px; border-radius: 3px; background: #dcd9d3; overflow: hidden; }
.li-progress i { display: block; height: 100%; width: 10%; background: var(--gold); border-radius: 3px; transition: width .15s; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
.li-hint.done span { opacity: .4; }
.exp-card .rights-note { margin-top: 12px; }
.contact-lines small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dark); margin-left: 4px; }
.contact-lines svg { width: 20px; height: 20px; flex: none; color: var(--gold); }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.contact figure { margin: 0; }
.contact figure img { border-radius: var(--radius); width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

body > footer { background: #000; color: var(--muted-dark); text-align: center; padding: 28px 20px; font-size: 13px; }
body > footer a { color: #fff; }

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh; margin: 0;
}
.lightbox::backdrop { background: rgba(0,0,0,.92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 84vh; width: auto; height: auto; border-radius: 6px; }
.lightbox video { max-width: min(92vw, 1100px); max-height: 84vh; border-radius: 6px; background: #000; display: block; }
.lightbox video[hidden] { display: none; }
.tile.is-video::after, .pcard-mosaic .is-video::after { content: ""; position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(0,0,0,.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 26px no-repeat; pointer-events: none; }
.lightbox figcaption { color: #ccc; text-align: center; margin-top: 12px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.lb-btn {
  position: fixed; background: rgba(255,255,255,.1); color: #fff; border: 0;
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 22px; line-height: 1;
  display: grid; place-items: center;
}
.lb-btn:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- Latest (LinkedIn) page ---------- */
.page-head { background: #000; color: #fff; padding: 140px 0 70px; text-align: center; }
.page-head h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 10px 0 14px; }
.page-head p { color: var(--muted-dark); max-width: 620px; margin: 0 auto 28px; }
.posts { columns: 3 340px; column-gap: 22px; }
.post { break-inside: avoid; margin: 0 0 22px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06); }
.post iframe { display: block; width: 100%; border: 0; }
.empty {
  text-align: center; padding: 60px 24px; border: 1.5px dashed #d6cfc2; border-radius: var(--radius);
  background: #fff; max-width: 720px; margin: 0 auto;
}
.empty h2 { font-size: 22px; margin-bottom: 10px; }
.empty p { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Latest work (LinkedIn-style cards, horizontal rail) ---------- */
.li-section { background: #f3f2ef; }
.li-rail { position: relative; margin-top: 30px; }
.li-track {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 2px 18px; scrollbar-width: thin; scroll-padding-left: 2px;
  overscroll-behavior-x: contain;
}
.li-track:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.li-card {
  flex: 0 0 340px; height: 600px; scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: #fff; border-radius: 12px; border: 1px solid #e0dfdc; overflow: hidden;
  color: #1d1d1d; font-size: 15px; line-height: 1.6;
}
.li-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 6px; }
.li-head time { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.li-logo { color: #0a66c2; display: block; }
.li-logo svg { width: 22px; height: 22px; display: block; }
.li-text { margin: 0 16px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; flex: none; }
.li-card.open .li-text { display: block; max-height: 260px; overflow-y: auto; }
.li-tag { color: #0a66c2; font-weight: 500; }
.li-more { font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); background: none; border: 0; padding: 2px 16px 0; cursor: pointer; align-self: flex-start; flex: none; }
.li-more:hover { color: #0a66c2; }
.li-card > .li-media, .li-card > .li-video { flex: 1 1 auto; min-height: 0; margin-top: 12px; }
.li-media { display: grid; gap: 2px; background: #fff; grid-template-columns: 1fr; grid-auto-rows: 1fr; }
.li-media button { padding: 0; border: 0; background: #eee; cursor: zoom-in; overflow: hidden; min-height: 0; }
.li-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.li-media.n2 { grid-template-columns: 1fr 1fr; }
.li-media.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.li-media.n3 button:first-child { grid-row: span 2; }
.li-media.n4 { grid-template-columns: repeat(3, 1fr); grid-template-rows: 2fr 1fr; }
.li-media.n4 button:first-child { grid-column: span 3; }
.li-media.n5 { grid-template-columns: repeat(6, 1fr); grid-template-rows: 3fr 2fr; }
.li-media.n5 button:nth-child(-n+2) { grid-column: span 3; }
.li-media.n5 button:nth-child(n+3) { grid-column: span 2; }
.li-video { background: #000; display: flex; }
.li-video video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.li-foot { flex: none; border-top: 1px solid #ecebe8; padding: 10px 16px 12px; }
.li-foot a { font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.li-foot a:hover { color: #0a66c2; }
.li-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: #111; font-size: 26px; line-height: 1;
  box-shadow: 0 2px 10px rgba(0,0,0,.18); display: grid; place-items: center;
}
.li-arrow:hover { background: var(--ink); color: #fff; }
.li-arrow.prev { left: -18px; }
.li-arrow.next { right: -18px; }
.li-arrow[disabled] { opacity: 0; pointer-events: none; }
.rights-note { font-size: 12px; color: var(--muted); margin: 18px 0 0; max-width: 760px; }
@media (max-width: 860px) {
  .li-arrow { display: none; }
  .li-card { flex-basis: 82vw; height: 560px; }
  .li-hint { display: flex; }
  .li-track { scrollbar-width: none; padding-bottom: 8px; }
  .li-track::-webkit-scrollbar { display: none; }
}
.pcard-mosaic .is-video::after { width: 36px; height: 36px; margin: -18px 0 0 -18px; background-size: 18px; }
.li-section .rights-note { text-align: center; margin-left: auto; margin-right: auto; }

