﻿/* marcinkasperek.com: rebuilt from the Squarespace site (Dec 2026).
   Fonts: Montserrat (instead of Proxima Nova) and Barlow Condensed (instead of
   DIN Condensed), both SIL Open Font License. Icons: Font Awesome Free (CC BY 4.0). */

@font-face { font-family: "Montserrat"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/montserrat-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 400; font-style: italic; font-display: swap; src: url(/fonts/montserrat-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/montserrat-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/montserrat-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/barlow-condensed-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/barlow-condensed-latin-500-normal.woff2) format("woff2"); }

:root {
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --text: rgba(82, 82, 82, .6);
  --ink: #1d1d1d;
  --side: 9.825%;            /* 140px of 1425px, as on the old site */
  --block-pad: 17px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #fff; color: var(--text);
  font: 400 14px/2.2 var(--sans); letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
iframe { border: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* ---------- header ---------- */
.site-header { position: relative; z-index: 20; background: #fff; padding: 20px 125px 22px; text-align: center; }
.header-top { position: relative; display: flex; align-items: center; justify-content: center; min-height: 73px; }
.logo { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); }
.logo img { width: 73px; height: 73px; }
.site-title {
  font: 400 50px/1.4 var(--display); letter-spacing: .17em; text-transform: uppercase;
  color: rgba(33, 33, 33, .86); text-decoration: none; padding: 0 90px; font-weight: 500;
}
.main-nav { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.nav-item, .nav-folder > .nav-item {
  display: inline-block; margin: 0 10.8px; padding: 7px 0;
  font: 600 12px/12px var(--sans); letter-spacing: .5em; text-transform: uppercase;
  color: rgba(82, 82, 82, .7); text-decoration: none; transition: color .15s;
}
.nav-item:hover, .nav-item.active { color: #000; }
.nav-folder { position: relative; display: inline-block; }
.nav-dropdown {
  position: absolute; left: 50%; top: 100%; transform: translateX(-50%); min-width: 150px;
  background: #fff; padding: 10px 0; text-align: center; opacity: 0; visibility: hidden;
  transition: opacity .15s, visibility .15s; box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.nav-dropdown a {
  display: block; padding: 4px 18px; white-space: nowrap; text-decoration: none;
  font: 600 12px/1.7 var(--sans); letter-spacing: .5em; text-transform: uppercase; color: rgba(82, 82, 82, .7);
}
.nav-dropdown a:hover { color: #000; }
.nav-folder:hover .nav-dropdown, .nav-folder:focus-within .nav-dropdown { opacity: 1; visibility: visible; }
.menu-toggle { display: none; }
.mobile-nav { display: none; }

/* ---------- generic content ---------- */
main { display: block; }
.main-content { padding: 15px var(--side); }
.main-content > *, .ipage-content > *, .intro-content > * { margin-left: calc(-1 * var(--block-pad)); margin-right: calc(-1 * var(--block-pad)); }
.row { display: flex; }
.col { flex: var(--span) 1 0; min-width: 0; }

.b-text, .b-spacer, .b-hr, .b-btn, .b-video, .b-quote, .b-gallery, .b-image, .b-social, .b-collink { padding: var(--block-pad); }
.b-spacer { height: calc(34px + 2 * var(--block-pad)); }
.b-hr { border: 0; margin: 0 var(--block-pad); padding: 0; height: 1px; background: #ddd; margin-top: calc(var(--block-pad) + 7px); margin-bottom: calc(var(--block-pad) + 7px); }
.main-content > .b-hr, .ipage-content > .b-hr { margin-left: 0; margin-right: 0; }

.b-text > :first-child { margin-top: 0; }
.b-text > :last-child { margin-bottom: 0; }
.b-text p { margin: 0 0 1em; }
.b-text h1 { font: 500 60px/1.2 var(--display); letter-spacing: .135em; text-transform: uppercase; color: #000; margin: 0 0 40px; }
.b-text h2 { font: 500 60px/1.3 var(--display); letter-spacing: .045em; text-transform: uppercase; color: #000; margin: 15px 0 0; }
.b-text h3 { font: 600 14px/1.93 var(--sans); letter-spacing: .17em; text-transform: uppercase; color: var(--ink); margin: 15px 0 0; }
.b-text h4 { font: 600 13px/1.8 var(--sans); letter-spacing: .15em; text-transform: uppercase; color: var(--ink); margin: 15px 0 0; }
.b-text a { color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(29,29,29,.3); }
.b-text a:hover { border-bottom-color: var(--ink); }
.ta-center { text-align: center; }
.ta-right { text-align: right; }
.ta-justify { text-align: justify; }

/* buttons */
.b-btn { text-align: center; }
.b-btn.align-left { text-align: left; }
.b-btn.align-right { text-align: right; }
.btn {
  display: inline-block; border: 2px solid var(--ink); border-radius: 3px; color: var(--ink);
  font: 600 10px/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  padding: 21px 34px; transition: opacity .2s;
}
.btn-small { padding: 15px 24px; }
.btn-large { padding: 26px 44px; font-size: 12px; }
.btn:hover { opacity: .7; }

/* quote */
.b-quote { margin: 0; text-align: center; }
.b-quote blockquote { margin: 0; font: 500 38px/1.2 var(--display); letter-spacing: .05em; text-transform: uppercase; color: var(--text); }
.b-quote figcaption { margin-top: 10px; font: 600 10px/1.8 var(--sans); letter-spacing: .2em; text-transform: uppercase; }

/* video */
.ratio { position: relative; height: 0; padding-bottom: var(--ratio, 56.25%); overflow: hidden; background: #000; }
.ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* social icons */
.social { display: flex; gap: 10px; flex-wrap: wrap; }
.social a { display: inline-flex; width: 20px; height: 20px; color: #000; opacity: .85; transition: opacity .15s; }
.social a:hover { opacity: .5; }
.social svg { width: 100%; height: 100%; fill: currentColor; }
.b-social.align-center .social { justify-content: center; }
.b-social.align-right .social { justify-content: flex-end; }
.b-social.size-large .social a { width: 30px; height: 30px; }
.b-social.size-large .social { gap: 18px; }

/* ---------- images ---------- */
.b-image { margin: 0; }
.b-image a { text-decoration: none; color: inherit; display: block; }
.img-box { position: relative; overflow: hidden; }
.img-box[style*="--ar"] { height: 0; padding-bottom: var(--ar); }
.img-box[style*="--ar"] img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.b-image .cap { font-size: 12px; line-height: 1.68; margin-top: 12px; }
.b-image .cap p { margin: 0; }

/* "overlap": image left, title card overlapping it on the right */
.b-image.design-overlap > a, .b-image.design-overlap > .img-box { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.b-image.design-overlap .img-text { padding: 0 2.5%; position: relative; z-index: 1; }
.b-image.design-overlap h4 {
  margin: 0 0 0 -20%; display: inline; font: 400 clamp(26px, 3vw, 43px)/1.15 Arial, Helvetica, sans-serif; color: #000;
  letter-spacing: 0; border-bottom: 1px solid rgba(82, 82, 82, .18);
}
.b-image.design-overlap .sub { margin-top: 20px; font: 400 14.4px/1.2 Arial, Helvetica, sans-serif; color: #000; letter-spacing: 0; }
.b-image.design-overlap .sub p { margin: 0; }

/* "poster": text centred over a darkened image */
.b-image.design-poster > a, .b-image.design-poster { position: relative; }
.b-image.design-poster .img-box::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .1); }
.b-image.design-poster .img-text { position: absolute; inset: var(--block-pad); display: flex; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.b-image.design-poster h4 { margin: 0; font: 400 clamp(20px, 2.8vw, 40px)/1.1 Arial, Helvetica, sans-serif; color: #fff; letter-spacing: 0; }

/* scroll-in animations */
.anim-fade-in, .anim-slide-up, .fx { opacity: 0; transition: opacity .8s ease, transform .8s ease; }
.anim-slide-up { transform: translateY(40px); }
.in { opacity: 1 !important; transform: none !important; }

/* collection links (old photo-galleries page) */
.b-collink a { text-decoration: none; display: block; }
.b-collink .thumb { aspect-ratio: 3 / 2; overflow: hidden; }
.b-collink .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.b-collink a:hover img { transform: scale(1.03); }
.b-collink .title { margin-top: 10px; font: 600 12px/1.6 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); text-align: center; }

/* ---------- galleries ---------- */
.g-grid { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: var(--gap); }
.g-grid .item { display: block; position: relative; color: inherit; text-decoration: none; }
.g-grid .thumb { position: relative; height: 0; padding-bottom: var(--ar); overflow: hidden; background: #f3f3f3; }
.g-grid .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.g-grid a.item:hover .thumb img { opacity: .85; }
.g-grid .meta { display: none; }
.g-grid .is-video .thumb::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: translate(-35%, -50%);
  border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent rgba(255,255,255,.9);
  filter: drop-shadow(0 0 6px rgba(0,0,0,.3));
}

/* slideshow block (colour grading page) */
.g-slideshow .stage { position: relative; height: 0; padding-bottom: var(--ar); background: #1d1d1d; overflow: hidden; }
.g-slideshow .slide, .g-stack .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.g-slideshow .slide.active, .g-stack .slide.active { opacity: 1; z-index: 1; }
.g-slideshow .slide img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 0; margin-top: 15px; height: 90px; overflow-x: auto; scrollbar-width: none; }
.thumbs button { flex: 0 0 auto; height: 100%; opacity: .45; transition: opacity .2s; }
.thumbs button.active, .thumbs button:hover { opacity: 1; }
.thumbs img { height: 100%; width: auto; }
.arrow { position: absolute; top: 50%; z-index: 2; width: 40px; height: 40px; margin-top: -20px; opacity: .8; }
.arrow:hover { opacity: 1; }
.arrow::before { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; border: solid #fff; border-width: 0 0 1.5px 1.5px; }
.arrow.prev { left: 23px; } .arrow.prev::before { transform: translate(-25%, -50%) rotate(45deg); }
.arrow.next { right: 23px; } .arrow.next::before { transform: translate(-75%, -50%) rotate(-135deg); }

/* gallery pages: one image at a time */
.g-stack .stage { position: relative; height: min(763px, 72vh); }
.g-stack .slide img { width: 100%; height: 100%; object-fit: contain; }
.g-stack .slide .ratio { position: absolute; inset: 0; padding: 0; height: auto; }
.g-stack .arrow { width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; background: rgba(0,0,0,.35); opacity: 1; transition: background .2s; }
.g-stack .arrow:hover { background: rgba(0,0,0,.6); }
.g-stack .arrow::before { width: 12px; height: 12px; border-width: 0 0 2px 2px; }
.g-stack .arrow.prev::before { transform: translate(-30%, -50%) rotate(45deg); }
.g-stack .arrow.next::before { transform: translate(-70%, -50%) rotate(-135deg); }
.g-stack .counter { position: absolute; right: 12px; bottom: 12px; z-index: 2; padding: 2px 10px; border-radius: 12px; background: rgba(0,0,0,.45); color: #fff; font: 600 11px/1.8 var(--sans); letter-spacing: .1em; }
.g-stack .thumbs { gap: 6px; }
.g-stack .thumbs button { position: relative; }
.g-stack .meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px; text-align: center; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.45)); }

/* mosaic (galleries page) */
.igallery { padding: 0 25px; }
.igallery:first-child { padding-top: 25px; }
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; }
.mosaic .item { aspect-ratio: 1; overflow: hidden; display: block; }
.mosaic .item:nth-child(6n+1) { grid-column: 1 / span 2; grid-row: span 2; }
.mosaic .item:nth-child(6n+4) { grid-column: 2 / span 2; grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.mosaic .item:hover img { opacity: .9; }

/* ---------- full-width sections with background images (home page) ---------- */
.ipage { position: relative; overflow: hidden; }
.ipage-content { position: relative; z-index: 1; padding: 30px var(--side); }
.ipage.has-image .ipage-content { padding: 175px var(--side); color: #fff; }
.ipage.has-image .b-text h1, .ipage.has-image .b-text h2 { color: #fff; }
.ipage.has-image .b-text h3 { color: rgba(207, 207, 207, .9); }
.ipage.has-image .btn, .intro .btn { color: rgba(250, 250, 250, .78); border-color: rgba(250, 250, 250, .78); }
.bg { position: absolute; inset: 0; overflow: hidden; background: #111; }
.bg img { position: absolute; left: 0; width: 100%; object-fit: cover; height: 100%; top: 0; }
.parallax img { will-change: transform; }
.js .parallax img { height: 140%; top: -20%; }
.bg-video iframe {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: max(100%, calc(var(--sec-h, 809px) * var(--va, 1.7778))); height: max(100%, calc(var(--sec-w, 100vw) / var(--va, 1.7778))); pointer-events: none;
  opacity: 0; transition: opacity 1s;
}
.bg-video.playing iframe { opacity: 1; }

/* page banner (top image on inner pages) */
.intro { position: relative; overflow: hidden; min-height: 96px; background: #111; color: #fff; }
.intro > img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.js .intro.parallax > img { height: 140%; top: -20%; }
.intro-content { position: relative; z-index: 1; padding: 48px var(--side); }

/* ---------- footer ---------- */
.site-footer { padding: 75px var(--side); text-align: center; }
.site-footer .b-text { padding: 0 0 20px; }
.site-footer h3 { color: #222; margin: 0; }
.site-footer .social { justify-content: center; gap: 10px; }
.site-footer .social a { width: 16px; height: 16px; }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(255, 255, 255, .97); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .25s; }
.lb.open { opacity: 1; }
.lb-stage { width: 90vw; height: 84vh; display: flex; align-items: center; justify-content: center; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-stage .ratio { width: min(90vw, 84vh * 16 / 9); }
.lb-title { position: absolute; bottom: 2.5vh; left: 0; right: 0; text-align: center; color: var(--ink); font: 600 12px/1.5 var(--sans); letter-spacing: .15em; text-transform: uppercase; padding: 0 60px; }
.lb .arrow::before, .lb-close::before, .lb-close::after { border-color: #555; }
.lb .arrow.prev { left: 2vw; } .lb .arrow.next { right: 2vw; }
.lb-close { position: absolute; top: 18px; right: 22px; width: 36px; height: 36px; }
.lb-close::before, .lb-close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 26px; height: 1.5px; background: #555; }
.lb-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.lb-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
body.lb-on { overflow: hidden; }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .site-header { padding: 20px 40px 22px; }
  .site-title { font-size: 38px; padding: 0 80px; }
  .nav-item, .nav-folder > .nav-item { letter-spacing: .3em; margin: 0 8px; }
}
@media (max-width: 840px) {
  :root { --side: 6vw; }
  .site-header { padding: 14px 6vw; }
  .header-top { justify-content: center; min-height: 52px; }
  .logo { left: 0; }
  .logo img { width: 44px; height: 44px; }
  .site-title { font-size: 22px; letter-spacing: .14em; padding: 0 56px; line-height: 1.3; }
  .main-nav { display: none; }
  .menu-toggle {
    display: block; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 44px; height: 44px;
    font-size: 0; color: transparent;
  }
  .menu-toggle::before, .menu-toggle::after { content: ""; position: absolute; left: 10px; right: 10px; height: 2px; background: #333; transition: transform .2s; }
  .menu-toggle::before { top: 16px; box-shadow: 0 6px 0 #333; }
  .menu-toggle::after { top: 28px; }
  .menu-toggle[aria-expanded="true"]::before { top: 21px; transform: rotate(45deg); box-shadow: none; }
  .menu-toggle[aria-expanded="true"]::after { top: 21px; transform: rotate(-45deg); }
  .mobile-nav:not([hidden]) {
    display: block; position: fixed; inset: 0; z-index: 15; background: #fff; overflow-y: auto;
    padding: 110px 6vw 40px; text-align: center;
  }
  .mobile-nav a, .mobile-nav summary {
    display: block; padding: 12px 0; font: 600 14px/1.4 var(--sans); letter-spacing: .3em; text-transform: uppercase;
    color: #222; text-decoration: none; cursor: pointer; list-style: none;
  }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav details a { font-size: 12px; color: rgba(82, 82, 82, .8); padding: 8px 0; }
  .site-header { position: sticky; top: 0; }
  .ipage.has-image .ipage-content { padding: 90px var(--side); }
  .b-text h1 { font-size: 40px; letter-spacing: .12em; margin-bottom: 24px; }
  .b-text h2 { font-size: 40px; }
  .b-quote blockquote { font-size: 28px; }
  .g-grid { grid-template-columns: repeat(min(var(--cols), 3), 1fr); }
  .site-footer { padding: 50px var(--side); }
}
@media (max-width: 640px) {
  .row { display: block; }
  .g-grid { grid-template-columns: repeat(2, 1fr); gap: min(var(--gap), 10px); }
  .b-image.design-overlap > a, .b-image.design-overlap > .img-box { grid-template-columns: 1fr; }
  .b-image.design-overlap .img-text { padding: 16px 0 0; }
  .b-image.design-overlap h4 { margin: 0; }
  .g-stack .stage { height: 62vh; }
  .igallery { padding: 0; }
  .mosaic { grid-template-columns: 1fr 1fr; }
  .mosaic .item:nth-child(n) { grid-column: auto; grid-row: auto; }
  .mosaic .item:nth-child(3n+1) { grid-column: 1 / span 2; }
  .b-text h1 { font-size: 34px; }
  .b-text h2 { font-size: 32px; }
  .b-text h3 { font-size: 13px; letter-spacing: .15em; }
  .thumbs { height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .anim-fade-in, .anim-slide-up, .fx { opacity: 1; transform: none; transition: none; }
  .js .parallax img, .js .intro.parallax > img { height: 100%; top: 0; transform: none !important; }
}
