.eg-catalog {
  --eg-ink: #f4ede3;
  --eg-muted: #c5b8a7;
  --eg-accent: #d8b780;
  --eg-edge: clamp(18px, 4vw, 84px);
  color: var(--eg-ink);
  background: var(--paper-grain) repeat, #241e1a;
  padding: clamp(34px, 5.4vw, 90px) var(--eg-edge) clamp(56px, 8vw, 140px);
}
.eg-catalog *, .eg-catalog *::before, .eg-catalog *::after { box-sizing: border-box; }
.eg-catalog a { color: inherit; text-decoration: none; }
.eg-catalog a:focus-visible, .eg-catalog button:focus-visible { outline: 2px solid var(--eg-accent); outline-offset: 4px; }
.eg-intro { text-align: center; margin: 0 auto clamp(36px, 5vw, 80px); }
.eg-intro h1 { font-family: var(--eg-heading, inherit); font-size: clamp(2.65rem, 6.6vw, 7rem); font-weight: 350; line-height: 1.03; letter-spacing: -.045em; margin: 0; }
.eg-intro p { max-width: 52ch; margin: clamp(18px, 3vw, 44px) auto 0; font-size: clamp(16px, 1.5vw, 23px); line-height: 1.45; text-wrap: pretty; }
.eg-intro span { display: block; margin-top: 8px; color: var(--eg-accent); }
.eg-back { display: inline-flex; min-height: 44px; align-items: center; gap: 7px; color: var(--eg-accent) !important; }
.eg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(25px, 4vw, 70px) clamp(15px, 2.6vw, 48px); }
.eg-work, .eg-category { display: block; min-width: 0; scroll-margin-top: 110px; }
.eg-grid > :nth-child(6n + 1), .eg-grid > :nth-child(6n) { grid-column: span 2; }
@media (min-width: 951px) {
  .eg-categories > :last-child:nth-child(8) { grid-column: span 2; }
}
.eg-frame { display: block; position: relative; background: #3d332b; border-radius: 9px; overflow: hidden; height: clamp(240px, 30vw, 550px); isolation: isolate; }
.eg-frame img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.15,.6,.07,1); }
.eg-zoom .control-icon { rotate:-45deg; }
.eg-zoom { position: absolute; right: 12px; bottom: 12px; display: grid; width: 44px; height: 44px; place-items: center; border-radius: 100%; background: #241e1adb; color: var(--eg-ink); font: 23px/1 system-ui; opacity: 0; transform: translateY(8px); transition: .45s cubic-bezier(.15,.6,.07,1); }
.eg-caption { display: flex; margin-top: 15px; align-items: baseline; justify-content: space-between; gap: 10px; }
.eg-caption h2 { margin: 0; font-size: clamp(18px, 1.65vw, 28px); font-weight: 450; line-height: 1.2; letter-spacing: -.025em; text-wrap: pretty; }
.eg-caption span, .eg-meta { font-size: 13px; line-height: 1.5; color: var(--eg-muted); }
.eg-caption span { flex-shrink: 0; }
.eg-caption h2 a { display: inline-block; padding-block: 4px; }
.eg-meta { margin: 5px 0 0; }
.eg-alt-photo { display: inline-flex; padding: 10px 5px; }
.eg-gallery-ready .eg-alt-photo { display: none; }
.eg-other { margin: clamp(52px, 9vw, 144px) auto 0; max-width: 960px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 40px; }
.eg-other a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 50px; border-top: 1px solid #887966; color: var(--eg-muted); transition: color .35s; }
.eg-other a span { display: inline-flex; align-items: center; font-size: 16px; color: var(--eg-accent); transition: transform .4s; }
.eg-other a:hover, .eg-other a:focus-visible { color: var(--eg-ink); }
.eg-other a:hover span { transform: translate(3px,-3px); }
.eg-viewer { position: fixed; z-index: 100; inset: 0; margin: 0; width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none; padding: max(8px,env(safe-area-inset-top)) max(15px,3vw) max(8px,env(safe-area-inset-bottom)); border: 0; background: #15120ff5; color: #fff6ec; overflow: hidden; }
.eg-viewer[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.eg-viewer::backdrop { background: #15120f; }
.eg-viewer-bar { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 58px; font-size: 14px; }
.eg-viewer h2 { margin: 0; font-size: clamp(16px, 1.4vw, 22px); font-weight: 450; }
.eg-viewer button { display: grid; place-items: center; flex:none; width: 48px; height: 48px; padding:0; line-height:0; border: 1px solid #e6d4c28c; border-radius: 50%; color: #fff; background: #191510d9; cursor: pointer; }
.eg-viewer button[hidden] { display: none; }
.viewer-channels { display:flex; flex-wrap:wrap; justify-content:flex-end; align-items:center; gap:0 clamp(12px,2vw,30px); }
.viewer-channels a:first-child { color:#e6cba4; font-weight:600; }
.viewer-channels a:not(:first-child) { color:#cec1b2; }
.eg-stage { display: grid; grid-template:minmax(0,1fr)/minmax(0,1fr); place-items: center; position: relative; min-height: 0; touch-action: pan-y; }
.eg-stage img { width: auto; height: auto; max-width: 100%; max-height: 100%; min-height: 0; display: block; object-fit: contain; }
.eg-stage button { position: absolute; top: 50%; transform: translateY(-50%); }
.eg-prev { left: 4px; }
.eg-next { right: 4px; }
html:has(.eg-viewer[open]) { overflow: hidden; }
@media (hover:hover) {
  .eg-category:hover img, .eg-frame:hover img, .eg-category:focus-visible img, .eg-frame:focus-visible img { transform: scale(1.08); }
  .eg-category:hover .eg-zoom, .eg-frame:hover .eg-zoom, .eg-category:focus-visible .eg-zoom, .eg-frame:focus-visible .eg-zoom { opacity: 1; transform: none; }
}
@media (max-width:950px) {
  .eg-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .eg-grid > :nth-child(n) { grid-column: auto; }
  .eg-frame { height: auto; aspect-ratio: 4/4.5; }
}
@media (max-width:640px) {
  .eg-grid, .eg-other { grid-template-columns: minmax(0,1fr); }
  .eg-frame { aspect-ratio: 5/3.8; }
  .eg-grid > :nth-child(3n + 2) .eg-frame { aspect-ratio: 1.13; }
  .eg-caption { margin-top: 10px; }
  .eg-zoom { opacity: 1; transform: none; width: 35px; height: 35px; font-size: 18px; }
  .eg-caption h2 a { min-height: 44px; }
  .eg-other { gap: 0; }
  .eg-viewer-bar { min-height: 60px; }
}
@media (prefers-reduced-motion:reduce) {
  .eg-catalog *, .eg-catalog *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
.eg-case {
  color: var(--ink);
  --case-gap: clamp(30px, 6vw, 130px);
}
.case-opening {
  display: grid;
  grid-template-columns: minmax(0, 61fr) minmax(0, 39fr);
  align-items: start;
  padding-block: clamp(34px, 4vw, 86px) clamp(60px, 8vw, 150px);
  max-width: 2200px;
  margin-inline: auto;
}
.case-opening.case-portrait {
  grid-template-columns: minmax(0, 52fr) minmax(0, 48fr);
  padding-inline-start: var(--edge);
}
.case-intro {
  min-width: 0;
  padding-inline: var(--case-gap) var(--edge);
  align-self: start;
}
.case-intro h1 {
  max-width: 15ch;
  font: 350 clamp(2.45rem, 4.1vw, 5.8rem)/1.03 Manrope, Arial, sans-serif;
  letter-spacing: -.062em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.case-trail, .case-related-text > span {
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.case-trail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 12px;
  color: #70573a;
  margin-bottom: clamp(18px, 2vw, 40px);
}
.case-trail a { display: inline-flex; align-items: center; min-height: 44px; }
.case-trail a:hover, .case-all:hover { text-decoration: underline; text-underline-offset: .25em; }
.case-description {
  max-width: 42ch;
  margin-top: clamp(22px, 2.2vw, 48px);
  font-size: clamp(16px, 1.23vw, 22px);
  line-height: 1.55;
  text-wrap: pretty;
}
.case-facts {
  border-top: 1px solid #c6b8a4;
  margin: 24px 0 0;
  padding-top: 12px;
  max-width: 38ch;
}
.case-facts > div { display: flex; gap: 16px; align-items: baseline; justify-content: space-between; font-size: 13px; }
.case-facts dt { color: #6b5948; }
.case-facts dd { text-align: right; }
.case-channels { display:flex; flex-wrap:wrap; align-items:center; gap:8px 24px; margin-top:clamp(18px, 2.8vw, 50px); }
.case-whatsapp { color:#695c4e; font-size:14px; }
.case-enquiry {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  border-bottom: 1px solid #947752;
  font-weight: 600;
  font-size: 14px;
}
.case-enquiry span, .case-all span { display: inline-flex; align-items: center; font-size: 1.2em; transition: transform .3s var(--ease); }
.case-enquiry:hover span, .case-all:hover span { transform: translate(2px, -2px); }
.case-enlarge {
  position: relative;
  display: block;
  overflow: hidden;
  cursor: zoom-in;
}
.case-enlarge img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 90svh;
  object-fit: contain;
}
.case-opening .case-photo { align-self: center; }
.case-portrait .case-enlarge { width: fit-content; margin-inline-start: auto; }
.case-portrait .case-enlarge img { width: auto; max-width: 100%; max-height: min(48vw, 83svh); }
.case-lens {
  position: absolute;
  right: 15px;
  bottom: 15px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #29221dbf;
  color: white;
  font: 25px/1 Arial,sans-serif;
  transition: background .25s;
}
.case-enlarge:is(:focus-visible,:hover) .case-lens { background: #29221d; }
.case-gallery {
  display: grid;
  grid-template-columns: repeat(2,minmax(0, 1fr));
  align-items: center;
  gap: clamp(42px, 6vw, 110px) clamp(22px, 4vw, 80px);
  max-width: 1880px;
  margin-inline: auto;
  padding: 0 var(--edge) clamp(62px, 8vw, 150px);
}
.case-gallery > :only-child,
.case-gallery:has(> :nth-child(3)) > :first-child,
.case-gallery > :last-child:nth-child(even):nth-child(n+4) { grid-column: 1/-1; }
.case-gallery .case-photo { min-width: 0; }
.case-gallery .case-photo > a { width: fit-content; max-width: 100%; margin: auto; }
.case-gallery .case-photo img { width: auto; max-width: 100%; }
.case-gallery .portrait img { max-height: min(85svh, 950px); }
.case-gallery .landscape img { max-height: min(85svh, 1100px); }
.case-gallery figcaption { padding-top: 12px; text-align: center; margin: auto; max-width: 54ch; color: #635344; font-size: 13px; }
.case-related {
  padding: clamp(52px, 6vw, 116px) var(--edge);
  display: grid;
  grid-template-columns: repeat(2,minmax(0, 1fr));
  gap: clamp(22px, 4vw, 60px);
}
.case-related-item { display: block; min-width: 0; }
.case-related-photo { aspect-ratio: 1.85; overflow: hidden; }
.case-related-photo img { height: 100%; transition: transform .7s var(--ease); }
.case-related-item:hover img { transform: scale(1.035); }
.case-related-text { margin-top: 17px; }
.case-related-text > span { display: inline-flex; gap: 10px; align-items: center; color: var(--gold); }
.case-related-item[rel="prev"] svg { rotate: 180deg; }
.case-related-item[rel="next"] .case-related-text > span { flex-direction: row-reverse; }
@media (prefers-reduced-motion: no-preference) {
  .case-related-item svg { transition: translate .3s var(--ease); }
  .case-related-item[rel="prev"]:is(:hover,:focus-visible) svg { translate: -3px 0; }
  .case-related-item[rel="next"]:is(:hover,:focus-visible) svg { translate: 3px 0; }
}
.case-related-text h2 {
  margin-top: 8px;
  max-width: 26ch;
  font-size: clamp(24px, 2.7vw, 55px);
  line-height: 1.12;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.case-all { grid-column: 1/-1; display: inline-flex; justify-self: center; align-items: center; gap: 12px; min-height: 44px; }
@media (max-width: 1000px) {
  .case-intro { padding-inline: clamp(20px, 3.5vw, 50px); }
  .case-opening { grid-template-columns: minmax(0,55fr) minmax(0,45fr); }
  .case-intro h1 { font-size: clamp(2.3rem, 4.2vw, 3.9rem); }
}
@media (max-width: 760px) {
  .case-opening, .case-opening.case-portrait { display: flex; flex-direction: column; padding: 12px 0 48px; gap: 20px; }
  .case-opening .case-photo { width: 100%; }
  .case-portrait .case-enlarge { margin: auto; }
  .case-portrait .case-enlarge img { max-height: 55svh; }
  .case-intro { align-self: stretch; padding: 0 var(--edge); }
  .case-intro h1 { max-width: 19ch; font-size: clamp(2.55rem, 8vw, 4rem); }
  .case-trail { margin-bottom: 8px; }
  .case-description { margin-top: 20px; }
  .case-gallery, .case-related { grid-template-columns: minmax(0, 1fr); }
  .case-gallery { gap: 35px; }
  .case-related { gap: 35px; }
  .case-related-text h2 { font-size: clamp(25px, 5.5vw, 38px); }
}
