/* Portfolio theme.
   Sizes, colours and breakpoints follow the original Adobe Portfolio site
   (desktop, tablet up to 932px, phone up to 540px). */

/* ---------- Fonts: Open Sans, hosted with the site (SIL Open Font Licence) ---------- */
@font-face{font-family:"Open Sans";font-style:normal;font-weight:300;font-display:swap;src:url(fonts/open-sans-latin-ext-300-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Open Sans";font-style:normal;font-weight:300;font-display:swap;src:url(fonts/open-sans-latin-300-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/open-sans-latin-ext-400-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/open-sans-latin-400-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-display:swap;src:url(fonts/open-sans-latin-ext-600-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-display:swap;src:url(fonts/open-sans-latin-600-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Open Sans";font-style:normal;font-weight:700;font-display:swap;src:url(fonts/open-sans-latin-ext-700-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Open Sans";font-style:normal;font-weight:700;font-display:swap;src:url(fonts/open-sans-latin-700-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ---------- Base ---------- */
*,*::before,*::after{box-sizing:border-box}
html{background:#222;-webkit-text-size-adjust:100%;text-size-adjust:100%;text-rendering:optimizeLegibility}
body{margin:0;min-height:100vh;font-family:"Open Sans",Arial,Helvetica,sans-serif;font-size:16px;color:#eee;animation:page-in .25s ease-in}
@keyframes page-in{from{opacity:0}to{opacity:1}}
h1,h2,p,figure{margin:0}
a{color:inherit;text-decoration:none;transition:background .2s ease,color .2s ease}
img{border:0;vertical-align:top;max-width:100%;height:auto}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
svg{fill:currentColor}
:focus-visible{outline:2px solid #fff;outline-offset:2px}
[hidden]{display:none !important}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- Header and menu ---------- */
.site-header{position:relative;z-index:3;display:flex;align-items:center;height:70px;padding:50px 20% 0;background:#222}
.site-nav{flex:0 0 99%;display:flex;flex-wrap:wrap;gap:0 54.45px}
.site-nav a{font-size:16px;line-height:24px;font-weight:400;text-transform:uppercase;color:#fff}
.site-nav a.is-active{font-weight:700}
.site-social{flex:0 0 0}
.social-link{display:block;width:40px;height:40px;background:rgba(0,0,0,.1);color:#fff}
.social-link:hover{background:rgba(0,0,0,.15)}
.social-link svg{display:block;width:44px;height:44px}
.menu-button{display:none;position:absolute;right:0;top:50%;transform:translateY(-50%);padding:30px 5%}
.menu-button span{display:block;width:24px;height:2px;margin-bottom:4px;background:#fff}
.menu-button span:last-child{margin-bottom:0}

.menu{position:fixed;inset:0;z-index:99999;display:flex;overflow:auto;padding:50px 5% 0;background:#222;text-align:center}
.menu nav{width:100%;margin:auto;padding-bottom:80px}
.menu nav a{display:block;width:max-content;max-width:100%;margin:0 auto 30px;font-size:22px;line-height:32px;font-weight:400;text-transform:uppercase;color:#fff}
.menu nav a.is-active{font-weight:700}
.menu-social{position:fixed;left:0;bottom:0;width:100%;min-height:80px;padding:5%;background:#222;border-top:1px solid rgba(0,0,0,.08)}
.menu-social a{display:flex;align-items:center;justify-content:center;width:55px;height:55px;margin:0 auto;background:rgba(0,0,0,.1);color:#fff}
.menu-social svg{width:35px;height:35px}
.menu-close{position:fixed;top:0;right:0;padding:50px 6%}
.menu-close i{position:fixed;top:40px;right:5%;width:20px;height:20px}
.menu-close i::before,.menu-close i::after{content:"";position:absolute;left:50%;width:2px;height:20px;background:#fff}
.menu-close i::before{transform:rotate(45deg)}
.menu-close i::after{transform:rotate(-45deg)}
.menu-open{overflow:hidden}

/* ---------- Section pages: heading and grid of covers ---------- */
.masthead{padding:70px 5% 50px;text-align:center;overflow-wrap:break-word}
.masthead h1{font-size:35px;line-height:35px;font-weight:300;color:#fff;margin-bottom:20px}
.masthead p{font-size:20px;line-height:30px;font-weight:300;color:#ccc;margin-top:30px}

.covers{display:flex;flex-wrap:wrap;max-width:1000px;margin:0 auto}
.cover{position:relative;display:block;width:50%;aspect-ratio:1/1;overflow:hidden;background:rgba(0,0,0,.03)}
.cover img{position:absolute;top:-1px;left:-1px;width:calc(100% + 2px);height:calc(100% + 2px);max-width:none;object-fit:cover}
.cover::after{content:"";position:absolute;inset:0;background:#fff;opacity:0;transition:opacity .2s ease}
.cover-details{position:absolute;inset:0;z-index:1;display:flex;flex-direction:column;justify-content:center;padding:0 8%;text-align:center;opacity:0;transition:opacity .15s ease}
.cover:hover::after,.cover:focus-visible::after{opacity:.9}
.cover:hover .cover-details,.cover:focus-visible .cover-details{opacity:1}
.cover-title{font-size:20px;line-height:22px;font-weight:400;text-transform:uppercase;color:#222;white-space:pre-wrap}
.cover-desc{padding-top:12px;font-size:16px;line-height:30px;font-weight:300;color:#222;white-space:pre-line;overflow-wrap:break-word}
/* "Hover: grey" in section.txt */
.covers--grey .cover::after{display:none}
.covers--grey .cover-details{background:rgba(222,222,222,.95)}
.covers--grey .cover-title{color:#555}
.covers--grey .cover-desc{color:#757575}

/* ---------- Project and text pages ---------- */
.project{max-width:1000px;margin:0 auto}
.project-header{max-width:750px;margin:0 auto;padding:40px 0 70px;text-align:center}
.project-header h1{padding-bottom:25px;font-size:24px;line-height:30px;font-weight:700;text-transform:uppercase;color:#eee;white-space:pre-wrap}
.project-desc{padding-bottom:20px;font-size:18px;line-height:28px;font-weight:300;color:#888;overflow-wrap:break-word}
.project--page .project-header{max-width:none;padding:70px 0}

.block{margin:0 auto;overflow-wrap:break-word}
.block-image img{display:block;margin:0 auto}
.zoom{display:block;cursor:zoom-in}
.block figcaption,.block-caption{padding:25px 0 50px;font-size:16px;line-height:22px;font-weight:300;color:#f4f4f4;text-align:center}
.block-text{padding-bottom:20px}
.block-text p{padding-bottom:20px;font-size:16px;line-height:24px;font-weight:300;color:#dedede;text-align:center}
.block a:not(.zoom){text-decoration:underline}
.block-space{height:44px}
.block-video{max-width:800px}
.video-frame{position:relative;height:0;padding-bottom:56.25%}
.video-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
/* several images side by side:  a.jpg + b.jpg + c.jpg */
.block-row{padding:2px 0}
.block-row .row{display:flex;margin:0 -1px}
.block-row .zoom{position:relative;flex:var(--ar) 1 0;min-width:0;box-sizing:content-box;border:solid transparent;border-width:0 1px 2px}
.block-row .zoom::before{content:"";display:block;padding-bottom:calc(100% / var(--ar))}
.block-row img{position:absolute;top:0;left:0;width:100%;height:100%;max-width:none;object-fit:cover}

.more{padding:40px 0}
.more h2{margin-bottom:30px;font-size:20px;line-height:26px;font-weight:700;text-transform:uppercase;color:#eee}
.more-grid{display:flex;flex-wrap:wrap;gap:0 5px}
.more .cover{width:calc(25% - 3.75px);margin-top:1px}
.more .cover:nth-child(n+5){display:none}
.more .cover:hover::after,.more .cover:focus-visible::after{opacity:.97}
.more .cover-title{padding-bottom:3px;font-size:14px;line-height:18px;font-weight:600}
.more .cover-date{padding-top:3px;font-size:13px;line-height:20px;font-weight:600;color:#222}

/* ---------- Footer and back to top ---------- */
.site-footer{max-width:1000px;margin:0 auto;padding:50px 0 100px;font-size:16px;line-height:20px;color:#555;text-align:center}
.to-top{position:fixed;right:40px;bottom:40px;z-index:3;width:60px;height:60px;border-radius:60px;background:rgba(255,255,255,.1);color:#fff}
.to-top:hover{background:rgba(255,255,255,.2)}
.to-top svg{position:absolute;top:50%;left:50%;width:24px;height:24px;transform:translate(-50%,-50%);opacity:.3}
.to-top:hover svg{opacity:.5}

/* ---------- Full-screen image viewer ---------- */
.lightbox{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;user-select:none}
.lightbox-bg{position:absolute;inset:0;background:#fff;opacity:.94}
.lightbox-stage{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:100%;overflow:hidden}
.lightbox-stage img{position:relative;max-width:100vw;max-height:100vh;width:auto;height:auto;cursor:zoom-in;transition:opacity .2s ease}
.lightbox-stage img.is-loading{opacity:0}
.lightbox.is-zoomed .lightbox-stage{display:block;overflow:auto}
.lightbox.is-zoomed .lightbox-stage img{max-width:none;max-height:none;cursor:zoom-out}
.lightbox-btn{position:absolute;z-index:2;color:#fff}
.lightbox-btn svg{display:block}
.lightbox-btn circle{fill:#696969;opacity:.2}
.lightbox-btn:hover circle{opacity:.4}
.lightbox-prev,.lightbox-next{top:0;width:30vw;height:100%;opacity:0;transition:opacity .2s ease}
.lightbox-prev:hover,.lightbox-next:hover,.lightbox-prev:focus-visible,.lightbox-next:focus-visible{opacity:1}
.lightbox-prev{left:0}
.lightbox-next{right:0}
.lightbox-prev svg,.lightbox-next svg{position:absolute;top:calc(50% - 30px);width:60px;height:60px}
.lightbox-prev svg{left:20px}
.lightbox-next svg{right:20px}
.lightbox-close{top:20px;right:20px;width:40px;height:40px;color:#000}
.lightbox-close circle{fill:#fff;opacity:.2}
.lightbox.is-zoomed .lightbox-prev,.lightbox.is-zoomed .lightbox-next{display:none}
.lightbox-open{overflow:hidden}

/* ---------- Tablet (up to 932px) ---------- */
@media (max-width:932px){
  .site-header{padding:38px 5% 0}
  .site-nav,.site-social{display:none}
  .menu-button{display:block}
  .masthead{padding:30px 5% 24px}
  .masthead h1{font-size:19px;line-height:19px;margin-bottom:14px}
  .masthead p{font-size:14px;line-height:21px;margin-top:18px}
  .cover-title{font-size:17px;line-height:19px}
  .cover-desc{display:none}
  .project-header{padding:20px 5% 30px}
  .project-header h1{padding-bottom:15px;font-size:18px;line-height:23px}
  .project-desc{padding-bottom:14px;font-size:14px;line-height:22px}
  .project--page .project-header{padding:30px 5%}
  .block figcaption,.block-caption{padding:15px 5% 24px;font-size:14px;line-height:20px}
  .block-text{padding:0 5% 14px}
  .block-text p{padding-bottom:14px;font-size:14px;line-height:20px}
  .block-space{height:34px}
  .more{padding:20px 0}
  .more h2{margin-bottom:18px;padding:0 5%;font-size:17px;line-height:22px}
  .more .cover{width:calc(50% - 2.5px)}
  .more .cover:nth-child(n+3){display:none}
  .more .cover-title{padding-bottom:5px;line-height:20px}
  .more .cover-date{padding-top:5px}
  .site-footer{padding:24px 5% 40px;font-size:14px}
  .to-top{display:none}
}
@media (max-width:1024px){
  .lightbox-prev,.lightbox-next{opacity:0 !important}
  .lightbox-close{top:0;right:0}
  .lightbox-close circle{display:none}
}

/* ---------- Phone (up to 540px) ---------- */
@media (max-width:540px){
  .site-header{padding-top:30px}
  .menu-close{padding:40px 10%}
  .menu-close i{top:30px}
  .masthead{padding:26px 5% 21px}
  .masthead h1{font-size:17px;line-height:17px;margin-bottom:13px}
  .masthead p{line-height:20px;margin-top:16px}
  .cover{width:100%}
  .cover-title{font-size:14px;line-height:15px}
  .project-header{padding:18px 5% 26px}
  .project-header h1{padding-bottom:14px;font-size:15px;line-height:19px}
  .project-desc{padding-bottom:13px;line-height:20px}
  .project--page .project-header{padding:26px 5%}
  .block figcaption,.block-caption{padding:14px 5% 21px}
  .block-text{padding-bottom:13px}
  .block-text p{padding-bottom:13px}
  .block-space{height:33px}
  .more{padding:18px 0}
  .more h2{margin-bottom:16px;font-size:14px;line-height:18px}
  .more .cover{width:100%}
  .more .cover:nth-child(n+2){display:none}
  .more .cover-title{padding-bottom:4px}
  .more .cover-date{padding-top:4px}
  .site-footer{padding:21px 5% 34px}
}

@media (prefers-reduced-motion:reduce){
  body{animation:none}
  *,*::before,*::after{transition:none !important}
}
@media print{
  .site-header,.to-top,.more,.menu,.lightbox{display:none !important}
  html{background:#fff}
}
