.case-page { --case-pad: 10.5vw; background: #fff; }
.typography-page { background: #000; color: #fff; --ink: #fff; --line: rgba(255, 255, 255, .25); }
.typography-page .site-header, .typography-page .case-cover, .typography-page .case-gallery figure, .typography-page .site-footer { background: #000; }
.typography-page .site-header { border-color: var(--line); }
.case-page .site-header, .case-page .contact { background: #fff; }
.case-hero { padding: 60px var(--case-pad) 0; }
.case-heading { display: grid; grid-template-columns: 1fr 1.4fr; align-items: end; gap: 35px; padding-bottom: 44px; }
.case-page .project-next { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; }
.case-page .project-next span { font-size: 17px; transition: transform .2s; }
.case-page .project-next:hover span { transform: translate(2px, -2px); }
.back-link { grid-column: 1 / -1; font-size: 11px; width: fit-content; border-bottom: 1px solid var(--ink); padding-bottom: 7px; }
.case-heading h1 { font: 700 clamp(48px, 7vw, 92px)/.98 var(--futura); letter-spacing: -.04em; margin: 0; }
.case-heading p { max-width: 540px; font-size: 16px; line-height: 1.55; margin: 0 0 10px; }
.case-cover { margin: 0; width: 100%; min-height: 0; background: #fff; display: flex; align-items: center; justify-content: center; }
.case-cover img { display: block; width: 100%; height: auto; max-height: 72vh; object-fit: contain; }
.case-video-frame { position: relative; width: 100%; line-height: 0; }
.case-cover video { display: block; width: 100%; height: auto; max-height: 72vh; object-fit: contain; }
.case-video-play { position: absolute; top: 50%; left: 50%; width: 76px; height: 76px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; background: rgba(28,28,28,.62); color: #fff; cursor: pointer; transform: translate(-50%, -50%); transition: background .2s, scale .2s; }
.case-video-play:hover { background: rgba(28,28,28,.86); scale: 1.06; }
.case-video-play svg { display: block; width: 30px; height: 30px; fill: currentColor; margin-left: 4px; }
.case-video-play[hidden] { display: none; }
.case-gallery img { width: 100%; height: auto; display: block; object-fit: contain; }
.case-gallery { padding: 22px var(--case-pad) 110px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.case-gallery figure { grid-column: 1; width: 100%; margin: 0; height: auto; background: #fff; overflow: hidden; }
/* Match the original project galleries' row proportions. Images keep their
   intrinsic height so the complete artwork remains visible. */
.qcd-gallery { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; }
.qcd-gallery figure:first-child { grid-column: 1 / -1; height: auto; }
.qcd-gallery figure:nth-child(2), .qcd-gallery figure:nth-child(3) { grid-column: span 3; height: clamp(440px, 48vw, 840px); }
.qcd-gallery figure:nth-child(n+4) { grid-column: span 2; }
.qcd-gallery figure { height: clamp(220px, 24vw, 420px); padding: 10px; display: flex; align-items: center; justify-content: center; }
.qcd-gallery img { width: 100%; height: 100%; object-fit: cover; }
.qcd-gallery figure:first-child img { height: auto; object-fit: contain; }
.petrackr-gallery { grid-template-columns: 1fr; gap: 10px; }
.petrackr-gallery figure { grid-column: 1; aspect-ratio: auto; display: block; }
.petrackr-gallery img { width: 100%; height: auto; object-fit: contain; }
.petrackr-page .case-cover img { max-height: none; }
.clayplus-page .case-cover { padding: 20px; }
.clayplus-page .case-gallery figure { padding: 20px; }
.clayplus-page .case-gallery figure.gallery-edge-to-edge { padding: 0; }
.case-copy { padding: 0 var(--case-pad) 120px; }
.case-copy-heading { display: grid; grid-template-columns: .7fr 1.3fr; gap: 7vw; align-items: end; border-bottom: 1px solid var(--line); padding: 0 0 28px; }
.case-copy-heading > span { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.case-copy-heading h2 { max-width: 720px; font: 700 clamp(32px, 4vw, 54px)/1.04 var(--futura); letter-spacing: -.035em; margin: 0; }
.case-copy article { display: grid; grid-template-columns: .7fr 1.3fr; gap: 7vw; border-bottom: 1px solid var(--line); padding: 30px 0 36px; }
.case-copy-label { display: flex; align-items: baseline; gap: 16px; }
.case-copy-label > span { font-size: 10px; color: #777; letter-spacing: .1em; }
.case-copy-label h3 { font: 700 clamp(22px, 2.5vw, 32px)/1.12 var(--futura); letter-spacing: -.025em; margin: 0; }
.case-copy article > div:not(.case-copy-label) { max-width: 670px; }
.case-copy p { max-width: 670px; font-size: 15px; line-height: 1.8; margin: 0 0 14px; }
.case-copy p:last-child { margin-bottom: 0; }
.case-copy strong { font-weight: 700; }
.case-page .site-footer { margin-top: 0; }

/* Sandhurst Timber brand story */
.sandhurst-page { --case-pad: 9vw; --timber: #173331; --ochre: #c59a6c; --sand: #e6d1b7; --mist: #f0efec; background: var(--timber); color: #f8f5ef; }
.sandhurst-page .site-header { background: var(--timber); color: #f8f5ef; border-color: rgba(248,245,239,.18); }
.sandhurst-page .site-header .wordmark img { filter: brightness(0) invert(1); }
.sandhurst-page .main-nav > a:not(.nav-contact):hover { color: var(--ochre); }
.sandhurst-page .nav-contact { border-color: rgba(248,245,239,.6); }
.sandhurst-page .sandhurst-hero { min-height: min(790px, calc(100svh - 82px)); position: relative; isolation: isolate; display: flex; align-items: center; overflow: hidden; padding: 80px 9vw; background: var(--timber); }
.sandhurst-hero-image, .sandhurst-hero-shade { position: absolute; z-index: -1; inset: 0; }
.sandhurst-hero-image { background: url("../sandhurst-timber/images/timber-hero.png") center / contain no-repeat; }
.sandhurst-hero-shade { background: linear-gradient(90deg, rgba(9,25,24,.8), rgba(9,25,24,.42) 48%, rgba(9,25,24,.02) 100%); }
.sandhurst-hero-content { max-width: 680px; }
.sandhurst-back, .sandhurst-kicker { font: 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.sandhurst-back { display: inline-block; color: #f8f5ef; border-bottom: 1px solid rgba(248,245,239,.5); padding-bottom: 8px; margin-bottom: 64px; }
.sandhurst-kicker { color: var(--ochre); margin: 0 0 22px; }
.sandhurst-hero h1, .sandhurst-outro h2 { color: #f8f5ef; font: 700 clamp(68px, 10.5vw, 150px)/.83 var(--futura); letter-spacing: -.07em; margin: 0; }
.sandhurst-hero h1 em, .sandhurst-outro h2 em, .sandhurst-intro h2 em, .sandhurst-section-head h2 em, .sandhurst-detail-copy h2 em, .sandhurst-guidelines h2 em { font-family: Georgia, serif; font-weight: 400; }
.sandhurst-hero h1 em, .sandhurst-outro h2 em { color: var(--ochre); }
.sandhurst-lede { max-width: 450px; margin: 28px 0 0; color: #f8f5ef; font-size: 17px; line-height: 1.65; }
.sandhurst-button { display: inline-flex; align-items: center; gap: 34px; padding: 14px 17px; margin-top: 27px; border: 1px solid var(--ochre); border-radius: 30px; color: #f8f5ef; font-size: 11px; font-weight: 600; transition: background .2s, color .2s; }
.sandhurst-button:hover { background: var(--ochre); color: var(--timber); }
.sandhurst-button span { font-size: 16px; }
.sandhurst-hero-note { position: absolute; right: 5vw; bottom: 35px; color: #f8f5ef; font: 9px var(--mono); letter-spacing: .1em; text-transform: uppercase; writing-mode: vertical-rl; }
.sandhurst-intro { display: grid; grid-template-columns: .7fr 1.3fr; gap: 7vw; padding: 120px var(--case-pad); background: var(--mist); color: var(--timber); }
.sandhurst-intro-label, .sandhurst-section-head > div > span, .sandhurst-detail-copy > span, .sandhurst-guidelines > div > span { color: #89745e; font: 10px var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.sandhurst-intro-label span { margin-right: 16px; color: var(--ochre); }
.sandhurst-intro h2, .sandhurst-section-head h2, .sandhurst-detail-copy h2, .sandhurst-guidelines h2 { margin: 0 0 25px; color: var(--timber); font: 700 clamp(43px, 6vw, 82px)/.96 var(--futura); letter-spacing: -.05em; }
.sandhurst-intro h2 em, .sandhurst-section-head h2 em, .sandhurst-detail-copy h2 em, .sandhurst-guidelines h2 em { color: #a9825e; }
.sandhurst-intro-copy { max-width: 760px; }
.sandhurst-intro-copy p, .sandhurst-section-head > p, .sandhurst-detail-copy p, .sandhurst-guidelines p { font-size: 14px; line-height: 1.8; max-width: 660px; color: #364b48; }
.sandhurst-intro-copy p { margin: 0 0 15px; }
.sandhurst-statement { min-height: 350px; padding: 70px 10vw; display: flex; flex-direction: column; justify-content: center; background: var(--ochre); color: var(--timber); }
.sandhurst-statement p { margin: 0; font: 700 clamp(42px, 7.5vw, 100px)/.92 var(--futura); letter-spacing: -.05em; }
.sandhurst-statement p em { font-family: Georgia, serif; font-weight: 400; }
.sandhurst-statement span { margin-top: 28px; font: 9px var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.sandhurst-identity, .sandhurst-website, .sandhurst-applications { padding: 110px var(--case-pad); background: var(--mist); color: var(--timber); }
.sandhurst-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 6vw; margin-bottom: 45px; }
.sandhurst-section-head h2 { margin-top: 25px; margin-bottom: 0; }
.sandhurst-section-head > p { max-width: 390px; margin: 0 0 3px; }
.sandhurst-image { margin: 0; width: 100%; overflow: hidden; background: #e4e2de; }
.sandhurst-image img { display: block; width: 100%; height: auto; }
.sandhurst-palette { display: flex; align-items: center; gap: 12px; margin-top: 20px; color: #6e716d; font: 9px var(--mono); letter-spacing: .06em; }
.sandhurst-palette i { width: 36px; height: 18px; display: block; background: #173331; }
.sandhurst-palette i:nth-of-type(2) { background: #89684e; }.sandhurst-palette i:nth-of-type(3) { background: #c59a6c; }.sandhurst-palette i:nth-of-type(4) { background: #e6d1b7; }
.sandhurst-website { background: #e8e6e1; }
.sandhurst-website .sandhurst-image { background: white; }
.sandhurst-website-notes { display: flex; justify-content: space-between; gap: 20px; padding-top: 17px; color: #655d53; font: 9px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.sandhurst-applications { background: var(--timber); color: #f8f5ef; }
.sandhurst-applications .sandhurst-section-head h2 { color: #f8f5ef; }
.sandhurst-applications .sandhurst-section-head h2 em { color: var(--ochre); }
.sandhurst-applications .sandhurst-section-head > div > span { color: var(--ochre); }
.sandhurst-applications .sandhurst-section-head > p { color: #d3d9d5; }
.sandhurst-application-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; align-items: start; }
.sandhurst-application-grid figure { margin: 0; overflow: hidden; background: var(--timber); }
.sandhurst-application-grid img { display: block; width: 100%; height: auto; }
.sandhurst-details { display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 7vw; padding: 110px var(--case-pad); background: var(--mist); color: var(--timber); }
.sandhurst-detail-figure { margin: 0; }.sandhurst-detail-figure img { display: block; width: 100%; height: auto; }.sandhurst-detail-figure figcaption { margin-top: 11px; color: #817665; font: 9px var(--mono); }
.sandhurst-detail-copy h2 { margin-top: 25px; }
.sandhurst-detail-copy ul { list-style: none; margin: 25px 0 0; padding: 0; border-top: 1px solid rgba(23,51,49,.22); }
.sandhurst-detail-copy li { border-bottom: 1px solid rgba(23,51,49,.22); padding: 12px 0; font-size: 12px; }
.sandhurst-detail-copy li::before { content: "↗"; margin-right: 14px; color: #aa815c; }
.sandhurst-guidelines { display: grid; grid-template-columns: 1.35fr .65fr; align-items: center; gap: 5vw; padding: 95px var(--case-pad); background: #fff; color: var(--timber); }
.sandhurst-guidelines figure { margin: 0; }.sandhurst-guidelines img { display: block; width: 100%; height: auto; }
.sandhurst-guidelines h2 { margin-top: 25px; }.sandhurst-guidelines p { color: #42514d; }
.sandhurst-outro { min-height: 540px; padding: 95px var(--case-pad); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; background: var(--timber); }
.sandhurst-outro .sandhurst-kicker { margin-bottom: 25px; }.sandhurst-outro h2 { font-size: clamp(65px, 10vw, 138px); }.sandhurst-button-light { border-color: var(--ochre); color: var(--timber); background: var(--ochre); }.sandhurst-button-light:hover { background: transparent; color: #f8f5ef; }
.sandhurst-page .site-footer { background: #102523; color: #f8f5ef; }

/* Petrackr brand story */
.petrackr-page { --case-pad: 9vw; --pet-blue: #20216b; --pet-orange: #f58220; --pet-paper: #f4f3f1; background: var(--pet-paper); color: #20216b; }
.petrackr-page .site-header { background: var(--pet-blue); color: #fff; border-color: rgba(255,255,255,.18); }
.petrackr-page .site-header .wordmark img { filter: brightness(0) invert(1); }
.petrackr-page .main-nav > a:not(.nav-contact):hover { color: var(--pet-orange); }
.petrackr-page .nav-contact { border-color: rgba(255,255,255,.65); }
.pet-hero { min-height: 690px; padding: 65px var(--case-pad) 55px; position: relative; display: grid; grid-template-columns: .78fr 1.22fr; align-items: center; gap: 4vw; overflow: hidden; background: var(--pet-blue); color: #fff; }
.pet-hero-copy { position: relative; z-index: 1; }
.pet-back, .pet-kicker, .pet-hero-note { font: 9px var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.pet-back { display: inline-block; color: #fff; border-bottom: 1px solid rgba(255,255,255,.5); padding-bottom: 8px; margin-bottom: 65px; }
.pet-kicker { color: var(--pet-orange); margin: 0 0 21px; }
.pet-hero h1 { margin: 0; color: #fff; font: 700 clamp(60px, 8vw, 112px)/.86 var(--futura); letter-spacing: -.065em; }
.pet-hero h1 em, .pet-intro h2 em, .pet-section-heading h2 em, .pet-statement em { font-family: Georgia, serif; font-weight: 400; }
.pet-hero h1 em, .pet-statement em { color: var(--pet-orange); }
.pet-lede { max-width: 420px; margin: 25px 0 0; color: #e6e7f4; font-size: 15px; line-height: 1.7; }
.pet-button { display: inline-flex; align-items: center; gap: 30px; margin-top: 25px; padding: 13px 16px; border: 1px solid var(--pet-orange); border-radius: 30px; color: #fff; font-size: 11px; font-weight: 600; transition: background .2s, color .2s; }
.pet-button:hover { background: var(--pet-orange); color: var(--pet-blue); }.pet-button span { font-size: 16px; }
.pet-hero-image { margin: 0; width: 100%; background: #fff; }.pet-hero-image img { display: block; width: 100%; height: auto; }
.pet-hero-note { position: absolute; right: 3.5vw; bottom: 28px; color: #fff; writing-mode: vertical-rl; }
.pet-intro { display: grid; grid-template-columns: 1fr 1.15fr; gap: 5vw; align-items: center; padding: 115px var(--case-pad); background: #fff; color: var(--pet-blue); }
.pet-intro-gif { margin: 0; width: 100%; }
.pet-intro-gif img { display: block; width: 100%; height: auto; }
.pet-intro-copy { max-width: 720px; }
.pet-intro-label, .pet-section-heading > div > span { color: #77788c; font: 9px var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.pet-intro-label span { margin-right: 15px; color: var(--pet-orange); }
.pet-intro h2, .pet-section-heading h2 { margin: 0 0 24px; color: var(--pet-blue); font: 700 clamp(43px, 5.8vw, 78px)/.96 var(--futura); letter-spacing: -.05em; }
.pet-intro h2 em, .pet-section-heading h2 em { color: #696bb0; }
.pet-intro p, .pet-section-heading > p { max-width: 650px; color: #4c4d66; font-size: 14px; line-height: 1.8; margin: 0 0 14px; }
.pet-statement { min-height: 340px; padding: 68px 10vw; display: flex; flex-direction: column; justify-content: center; background: var(--pet-orange); color: var(--pet-blue); }
.pet-statement p { margin: 0; font: 700 clamp(42px, 7.3vw, 96px)/.92 var(--futura); letter-spacing: -.05em; }.pet-statement em { color: #fff; }
.pet-statement span { margin-top: 27px; font: 9px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.pet-guidelines, .pet-products, .pet-people { padding: 105px var(--case-pad); background: var(--pet-paper); color: var(--pet-blue); }
.pet-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 6vw; margin-bottom: 42px; }
.pet-section-heading h2 { margin: 23px 0 0; }
.pet-section-heading > p { max-width: 400px; margin: 0 0 2px; }
.pet-image { margin: 0; width: 100%; overflow: hidden; background: #fff; }
.pet-image img { display: block; width: 100%; height: auto; }
.pet-products { background: #e8e7ed; }
.pet-product-range { margin-top: 28px; }
.pet-people { background: var(--pet-blue); color: #fff; }
.pet-people .pet-section-heading > div > span { color: var(--pet-orange); }
.pet-people .pet-section-heading h2 { color: #fff; }.pet-people .pet-section-heading h2 em { color: var(--pet-orange); }
.pet-people .pet-section-heading > p { color: #e3e4f0; }
.pet-story { padding-top: 105px; padding-bottom: 110px; background: var(--pet-paper); color: var(--pet-blue); }
.pet-story .case-copy-heading { border-color: rgba(32,33,107,.2); }
.pet-story .case-copy-heading > span, .pet-story .case-copy-label > span { color: #77788c; }
.pet-story .case-copy article { border-color: rgba(32,33,107,.2); }
.pet-story .case-copy-label h3, .pet-story .case-copy-heading h2 { color: var(--pet-blue); }
.pet-story .case-copy p { color: #4c4d66; }
.petrackr-page .site-footer { background: #171850; color: #fff; }
@media (max-width: 800px) {
  .pet-hero { min-height: auto; grid-template-columns: 1fr; gap: 35px; padding-top: 50px; padding-bottom: 65px; }
  .pet-back { margin-bottom: 50px; }
  .pet-hero-image { max-width: 850px; }
  .pet-intro { grid-template-columns: 1fr; gap: 27px; }
  .pet-section-heading { display: block; }
  .pet-section-heading > p { margin-top: 24px; }
}
@media (max-width: 540px) {
  .petrackr-page .site-header .menu-toggle span { background: #fff; }
  .petrackr-page .main-nav { background: var(--pet-blue); border-color: rgba(255,255,255,.18); }
  .petrackr-page .main-nav > a { border-color: rgba(255,255,255,.18); }
  .pet-hero { padding: 38px 7vw 60px; gap: 30px; }
  .pet-hero h1 { font-size: clamp(61px, 15vw, 88px); }
  .pet-lede { font-size: 14px; }
  .pet-hero-note { right: 12px; bottom: 16px; font-size: 7px; }
  .pet-intro { padding: 75px 7vw; }
  .pet-intro h2, .pet-section-heading h2 { font-size: clamp(42px, 11.5vw, 64px); }
  .pet-statement { min-height: 260px; padding: 50px 7vw; }
  .pet-statement p { font-size: clamp(42px, 12vw, 66px); }
  .pet-guidelines, .pet-products, .pet-people { padding: 70px 7vw; }
  .pet-product-range { margin-top: 18px; }
  .pet-story { padding: 75px 7vw 80px; }
}
@media (max-width: 800px) {
  .sandhurst-page .sandhurst-hero { min-height: 700px; padding: 55px 7vw; }
  .sandhurst-hero-image { background-position: 57% center; }
  .sandhurst-hero-shade { background: linear-gradient(90deg, rgba(9,25,24,.8), rgba(9,25,24,.32)); }
  .sandhurst-back { margin-bottom: 54px; }
  .sandhurst-intro, .sandhurst-details, .sandhurst-guidelines { grid-template-columns: 1fr; gap: 30px; }
  .sandhurst-guidelines { grid-template-columns: 1.2fr .8fr; gap: 5vw; }
  .sandhurst-section-head { display: block; }
  .sandhurst-section-head > p { margin-top: 25px; }
  .sandhurst-identity, .sandhurst-website, .sandhurst-applications, .sandhurst-details, .sandhurst-guidelines { padding-top: 80px; padding-bottom: 80px; }
}
@media (max-width: 540px) {
  .sandhurst-page .site-header .menu-toggle span { background: #f8f5ef; }
  .sandhurst-page .main-nav { background: var(--timber); border-color: rgba(248,245,239,.18); }
  .sandhurst-page .main-nav > a { border-color: rgba(248,245,239,.18); }
  .sandhurst-page .sandhurst-hero { min-height: 690px; padding: 42px 7vw; align-items: flex-end; }
  .sandhurst-hero-image { background-position: 58% center; }
  .sandhurst-hero-shade { background: linear-gradient(0deg, rgba(9,25,24,.9), rgba(9,25,24,.42) 68%, rgba(9,25,24,.08)); }
  .sandhurst-back { margin-bottom: 60px; }
  .sandhurst-hero h1 { font-size: clamp(62px, 16vw, 92px); }
  .sandhurst-lede { font-size: 15px; }
  .sandhurst-hero-note { right: 15px; bottom: 18px; font-size: 7px; }
  .sandhurst-intro { padding-top: 72px; padding-bottom: 75px; }
  .sandhurst-statement { min-height: 280px; padding: 55px 7vw; }
  .sandhurst-statement p { font-size: clamp(43px, 12vw, 67px); }
  .sandhurst-identity, .sandhurst-website, .sandhurst-applications, .sandhurst-details, .sandhurst-guidelines { padding: 70px 7vw; }
  .sandhurst-guidelines { grid-template-columns: 1fr; gap: 30px; }
  .sandhurst-section-head h2, .sandhurst-intro h2, .sandhurst-detail-copy h2, .sandhurst-guidelines h2 { font-size: clamp(43px, 12vw, 66px); }
  .sandhurst-website-notes { flex-direction: column; gap: 9px; }
  .sandhurst-application-grid { grid-template-columns: 1fr; }
  .sandhurst-palette { flex-wrap: wrap; }
  .sandhurst-outro { min-height: 420px; padding: 70px 7vw; }
  .sandhurst-outro h2 { font-size: clamp(62px, 15vw, 95px); }
}
@media (max-width: 800px) {
  .case-page { --case-pad: 7vw; }
  .case-hero { padding-top: 40px; }
  .case-heading { grid-template-columns: 1fr; gap: 18px; padding-bottom: 28px; }
  .back-link { grid-column: auto; }
  .case-heading h1 { font-size: clamp(44px, 11vw, 76px); }
  .case-heading p { font-size: 14px; max-width: 560px; }
  .case-cover img { max-height: 65vh; }
  .case-gallery { padding-bottom: 75px; }
  .case-copy { padding-bottom: 80px; }
  .case-copy-heading { grid-template-columns: 1fr; gap: 14px; padding-bottom: 22px; }
  .case-copy article { grid-template-columns: 1fr; gap: 16px; padding: 24px 0 30px; }
}
@media (max-width: 540px) {
  .case-gallery { grid-template-columns: 1fr; }
  .case-gallery .gallery-wide { grid-column: auto; }
  .qcd-gallery figure:nth-child(n), .petrackr-gallery figure { grid-column: 1; }
  .qcd-gallery figure { height: auto; }
  .qcd-gallery img { height: auto; }
}
