:root{
  --tma-gallery-navy:#001b44;
  --tma-gallery-navy-deep:#00132f;
  --tma-gallery-gold:#c9aa78;
  --tma-gallery-ivory:#f7f5f0;
  --tma-gallery-blue-grey:#e4e8f6;
  --tma-gallery-ink:#102c45;
  --tma-gallery-muted:#65717a;
  --tma-gallery-line:rgba(0,27,68,.16);
}

.tma-project-gallery-page{overflow:clip;background:var(--tma-gallery-ivory);color:var(--tma-gallery-ink)}
.tma-project-gallery-shell{width:min(1180px,88vw);margin:0 auto}
.tma-project-gallery-kicker{display:flex;align-items:center;gap:12px;margin:0 0 23px;color:var(--tma-gallery-gold);font:700 9px/1.2 Arial,Helvetica,sans-serif;letter-spacing:2px;text-transform:uppercase}
.tma-project-gallery-kicker::before{content:"";width:30px;height:1px;background:currentColor}

.tma-project-gallery-hero{position:relative;min-height:590px;display:flex;align-items:flex-end;isolation:isolate;overflow:hidden;background:var(--tma-gallery-navy-deep);color:#fff}
.tma-project-gallery-hero-image{position:absolute;z-index:-3;inset:0;width:100%;height:100%;object-fit:cover;filter:saturate(.65) contrast(1.04);transform:scale(1.015);animation:tma-gallery-hero-in 1.1s cubic-bezier(.2,.75,.2,1) both}
.tma-project-gallery-hero-overlay{position:absolute;z-index:-2;inset:0;background:linear-gradient(90deg,rgba(0,19,47,.97) 0%,rgba(0,27,68,.86) 42%,rgba(0,27,68,.32) 72%,rgba(0,27,68,.12) 100%)}
.tma-project-gallery-hero::after{content:"ARCHIVE";position:absolute;z-index:-1;right:-.03em;bottom:-.22em;color:rgba(255,255,255,.055);font:700 clamp(120px,20vw,340px)/.8 Georgia,"Times New Roman",serif;letter-spacing:-.08em;pointer-events:none}
.tma-project-gallery-hero-content{padding:135px 0 94px}
.tma-project-gallery-hero-content h1{max-width:800px;margin:0;color:#fff;font:400 clamp(58px,7.7vw,108px)/.91 Georgia,"Times New Roman",serif;letter-spacing:-4px;text-transform:none}
.tma-project-gallery-hero-intro{max-width:570px;margin:32px 0 0;color:rgba(255,255,255,.82);font:400 15px/1.75 Arial,Helvetica,sans-serif}

.tma-project-gallery-browser{padding:120px 0 145px;background:var(--tma-gallery-ivory)}
.tma-project-gallery-browser-heading{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.55fr);gap:90px;align-items:end;margin-bottom:58px}
.tma-project-gallery-browser-heading h2,.tma-project-gallery-panel>header h2{margin:0;color:var(--tma-gallery-navy);font:400 clamp(47px,5.6vw,76px)/.98 Georgia,"Times New Roman",serif;letter-spacing:-2.7px}
.tma-project-gallery-browser-heading>p,.tma-project-gallery-panel>header>p:not(.tma-project-gallery-kicker){margin:0 0 4px;color:var(--tma-gallery-muted);font:400 14px/1.8 Arial,Helvetica,sans-serif}

.tma-project-gallery-tabs{display:flex;gap:36px;margin:0 0 44px;border-bottom:1px solid var(--tma-gallery-line)}
.tma-project-gallery-tabs button{position:relative;min-width:112px;margin:0;padding:0 0 17px;border:0;background:transparent;color:#77828b;font:700 11px/1.2 Arial,Helvetica,sans-serif;letter-spacing:1.45px;text-align:left;text-transform:uppercase;cursor:pointer}
.tma-project-gallery-tabs button::after{content:"";position:absolute;right:0;bottom:-1px;left:0;height:3px;background:var(--tma-gallery-gold);transform:scaleX(0);transform-origin:left;transition:transform .28s ease}
.tma-project-gallery-tabs button[aria-selected="true"]{color:var(--tma-gallery-navy)}
.tma-project-gallery-tabs button[aria-selected="true"]::after{transform:scaleX(1)}

.tma-project-gallery-collections{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:25px}
.tma-project-gallery-card{min-width:0;opacity:0;transform:translateY(24px);transition:opacity .55s ease,transform .55s cubic-bezier(.2,.75,.2,1)}
.tma-project-gallery-card.is-visible{opacity:1;transform:translateY(0)}
.tma-project-gallery-card[hidden]{display:none!important}
.tma-project-gallery-card>button{width:100%;height:100%;margin:0;padding:0;border:1px solid var(--tma-gallery-line);display:flex;flex-direction:column;background:#fff;color:var(--tma-gallery-ink);text-align:left;cursor:pointer;transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease}
.tma-project-gallery-card>button:hover,.tma-project-gallery-card>button:focus-visible{border-color:rgba(0,27,68,.34);transform:translateY(-5px);box-shadow:0 20px 45px rgba(0,27,68,.13)}
.tma-project-gallery-card-media{position:relative;display:block;aspect-ratio:4/3;overflow:hidden;background:var(--tma-gallery-blue-grey)}
.tma-project-gallery-card-media img{width:100%;height:100%;object-fit:cover;transition:transform .65s cubic-bezier(.2,.75,.2,1),filter .35s ease}
.tma-project-gallery-card>button:hover img,.tma-project-gallery-card>button:focus-visible img{transform:scale(1.045);filter:saturate(1.06)}
.tma-project-gallery-card-count{position:absolute;right:13px;bottom:13px;padding:8px 10px;background:rgba(0,27,68,.88);color:#fff;font:700 8px/1 Arial,Helvetica,sans-serif;letter-spacing:.9px;text-transform:uppercase;backdrop-filter:blur(6px)}
.tma-project-gallery-card-copy{flex:1;min-height:236px;padding:28px 27px 25px;display:flex;flex-direction:column;align-items:flex-start}
.tma-project-gallery-card-type{margin:0 0 13px;color:var(--tma-gallery-gold);font:700 8px/1.3 Arial,Helvetica,sans-serif;letter-spacing:1.4px;text-transform:uppercase}
.tma-project-gallery-card-copy strong{display:block;margin:0 0 14px;color:var(--tma-gallery-navy);font:400 28px/1.05 Georgia,"Times New Roman",serif}
.tma-project-gallery-card-copy>span:not(.tma-project-gallery-card-type){display:block;color:var(--tma-gallery-muted);font:400 12px/1.65 Arial,Helvetica,sans-serif}
.tma-project-gallery-card-copy em{width:100%;margin-top:auto;padding-top:25px;display:flex;align-items:center;justify-content:space-between;color:var(--tma-gallery-navy);font:700 9px/1.2 Arial,Helvetica,sans-serif;font-style:normal;letter-spacing:1.05px;text-transform:uppercase}
.tma-project-gallery-card-copy em i{position:relative;width:18px;height:18px;display:block;color:var(--tma-gallery-gold);font-size:0;font-style:normal;transition:transform .25s ease}
.tma-project-gallery-card-copy em i::before{content:"";position:absolute;top:3px;right:2px;width:8px;height:8px;border-top:1px solid currentColor;border-right:1px solid currentColor}
.tma-project-gallery-card-copy em i::after{content:"";position:absolute;top:9px;right:2px;width:14px;height:1px;background:currentColor;transform:rotate(-45deg);transform-origin:right center}
.tma-project-gallery-card>button:hover em i{transform:translate(3px,-3px)}

.tma-project-gallery-panel[hidden]{display:none!important}
.tma-project-gallery-panel{animation:tma-gallery-panel-in .55s cubic-bezier(.2,.75,.2,1) both}
.tma-project-gallery-back{margin:0 0 50px;padding:0;border:0;display:inline-flex;align-items:center;gap:13px;background:transparent;color:var(--tma-gallery-navy);font:700 9px/1.2 Arial,Helvetica,sans-serif;letter-spacing:1.2px;text-transform:uppercase;cursor:pointer}
.tma-project-gallery-back span{width:37px;height:37px;border:1px solid var(--tma-gallery-line);border-radius:50%;display:grid;place-items:center;color:var(--tma-gallery-gold);font-size:15px;transition:background-color .2s,color .2s,transform .2s}
.tma-project-gallery-back:hover span{background:var(--tma-gallery-navy);color:#fff;transform:translateX(-3px)}
.tma-project-gallery-panel>header{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.55fr);gap:90px;align-items:end;margin:0 0 55px;padding:0 0 45px;border-bottom:1px solid var(--tma-gallery-line)}
.tma-project-gallery-panel>header .tma-project-gallery-kicker{grid-column:1/-1;margin-bottom:-55px}

.tma-project-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:245px;gap:15px}
.tma-project-gallery-image{position:relative;min-width:0;margin:0;padding:0;border:0;overflow:hidden;background:var(--tma-gallery-blue-grey);cursor:zoom-in;opacity:0;transform:translateY(18px);animation:tma-gallery-image-in .55s cubic-bezier(.2,.75,.2,1) forwards}
.tma-project-gallery-image:nth-child(1){grid-column:span 2;grid-row:span 2;animation-delay:.04s}
.tma-project-gallery-image:nth-child(2){animation-delay:.10s}
.tma-project-gallery-image:nth-child(3){animation-delay:.16s}
.tma-project-gallery-image:nth-child(4){animation-delay:.22s}
.tma-project-gallery-image:nth-child(5){animation-delay:.28s}
.tma-project-gallery-image:nth-child(6){animation-delay:.34s}
.tma-project-gallery-image img{width:100%;height:100%;object-fit:cover;transition:transform .55s cubic-bezier(.2,.75,.2,1),filter .35s ease}
.tma-project-gallery-image>span{position:absolute;right:14px;bottom:14px;padding:8px 10px;background:rgba(0,27,68,.88);color:#fff;font:700 8px/1 Arial,Helvetica,sans-serif;letter-spacing:1px;text-transform:uppercase;opacity:0;transform:translateY(6px);transition:opacity .25s,transform .25s}
.tma-project-gallery-image:hover img,.tma-project-gallery-image:focus-visible img{transform:scale(1.035);filter:saturate(1.06)}
.tma-project-gallery-image:hover>span,.tma-project-gallery-image:focus-visible>span{opacity:1;transform:translateY(0)}

.tma-project-gallery-lightbox{position:fixed;z-index:100000;inset:0;padding:35px 84px;display:grid;grid-template-columns:58px minmax(0,1fr) 58px;align-items:center;gap:28px;background:rgba(0,20,50,.88);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);opacity:0;visibility:hidden;transition:opacity .28s ease,visibility .28s ease}
.tma-project-gallery-lightbox[hidden]{display:none!important}
.tma-project-gallery-lightbox.is-open{opacity:1;visibility:visible}
.tma-project-gallery-lightbox figure{width:100%;height:min(78vh,850px);margin:0;display:grid;grid-template-rows:minmax(0,1fr) auto;justify-items:center;gap:17px;transform:scale(.96);transition:transform .35s cubic-bezier(.2,.75,.2,1)}
.tma-project-gallery-lightbox.is-open figure{transform:scale(1)}
.tma-project-gallery-lightbox figure img{width:100%;height:100%;object-fit:contain;opacity:1!important;filter:none!important}
.tma-project-gallery-lightbox figcaption{width:min(900px,100%);display:flex;justify-content:space-between;gap:25px;color:rgba(255,255,255,.86);font:400 12px/1.5 Arial,Helvetica,sans-serif}
.tma-project-gallery-lightbox figcaption span:last-child{flex:0 0 auto;color:var(--tma-gallery-gold);font-weight:700;letter-spacing:1px}
.tma-project-gallery-lightbox-close,.tma-project-gallery-lightbox-arrow{margin:0;padding:0;border:1px solid rgba(255,255,255,.5);border-radius:50%;display:grid;place-items:center;background:rgba(0,27,68,.32);color:#fff;cursor:pointer;transition:background-color .2s,border-color .2s,transform .2s}
.tma-project-gallery-lightbox-close:hover,.tma-project-gallery-lightbox-arrow:hover{border-color:var(--tma-gallery-gold);background:var(--tma-gallery-gold);color:var(--tma-gallery-navy)}
.tma-project-gallery-lightbox-close{position:absolute;top:25px;right:25px;width:48px;height:48px;font:300 30px/1 Arial,Helvetica,sans-serif}
.tma-project-gallery-lightbox-arrow{width:58px;height:58px;font:400 22px/1 Arial,Helvetica,sans-serif}
.tma-project-gallery-lightbox-arrow.is-previous:hover{transform:translateX(-3px)}
.tma-project-gallery-lightbox-arrow.is-next:hover{transform:translateX(3px)}
body.tma-gallery-lightbox-open{overflow:hidden}

body:is(.tma-view-light,.tma-view-dark) .tma-project-gallery-hero-image,
body:is(.tma-view-light,.tma-view-dark) .tma-project-gallery-card img,
body:is(.tma-view-light,.tma-view-dark) .tma-project-gallery-image img,
body:is(.tma-view-light,.tma-view-dark) .tma-project-gallery-lightbox img{opacity:1!important}
body:is(.tma-view-light,.tma-view-dark) .tma-project-gallery-lightbox{background:rgba(0,20,50,.9)!important;color:#fff!important}
body:is(.tma-view-light,.tma-view-dark) .tma-project-gallery-lightbox figcaption{color:#fff!important}

@keyframes tma-gallery-hero-in{from{opacity:.25;transform:scale(1.07)}to{opacity:1;transform:scale(1.015)}}
@keyframes tma-gallery-panel-in{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:translateY(0)}}
@keyframes tma-gallery-image-in{to{opacity:1;transform:translateY(0)}}

@media(max-width:980px){
  .tma-project-gallery-hero{min-height:530px}
  .tma-project-gallery-hero-content{padding:120px 0 80px}
  .tma-project-gallery-browser{padding:95px 0 115px}
  .tma-project-gallery-browser-heading,.tma-project-gallery-panel>header{grid-template-columns:1fr;gap:23px}
  .tma-project-gallery-panel>header .tma-project-gallery-kicker{grid-column:auto;margin-bottom:0}
  .tma-project-gallery-collections{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tma-project-gallery-grid{grid-auto-rows:205px}
  .tma-project-gallery-lightbox{padding:42px 25px;grid-template-columns:50px minmax(0,1fr) 50px;gap:15px}
  .tma-project-gallery-lightbox-arrow{width:50px;height:50px}
}

@media(max-width:650px){
  .tma-project-gallery-shell{width:min(100% - 36px,1180px)}
  .tma-project-gallery-hero{min-height:520px;align-items:flex-end}
  .tma-project-gallery-hero-overlay{background:linear-gradient(0deg,rgba(0,19,47,.98) 0%,rgba(0,27,68,.77) 62%,rgba(0,27,68,.35) 100%)}
  .tma-project-gallery-hero-content{padding:125px 0 64px}
  .tma-project-gallery-hero-content h1{font-size:clamp(49px,15vw,66px);letter-spacing:-2.5px}
  .tma-project-gallery-hero-intro{font-size:13px;line-height:1.7}
  .tma-project-gallery-browser{padding:72px 0 88px}
  .tma-project-gallery-browser-heading{margin-bottom:42px}
  .tma-project-gallery-browser-heading h2,.tma-project-gallery-panel>header h2{font-size:44px;letter-spacing:-1.7px}
  .tma-project-gallery-tabs{gap:20px;margin-bottom:30px}
  .tma-project-gallery-tabs button{flex:1;min-width:0;text-align:center}
  .tma-project-gallery-collections{grid-template-columns:1fr;gap:18px}
  .tma-project-gallery-card-copy{min-height:205px}
  .tma-project-gallery-panel>header{margin-bottom:30px;padding-bottom:31px}
  .tma-project-gallery-back{margin-bottom:37px}
  .tma-project-gallery-grid{grid-template-columns:1fr;grid-auto-rows:auto;gap:12px}
  .tma-project-gallery-image,.tma-project-gallery-image:nth-child(1){grid-column:auto;grid-row:auto;aspect-ratio:4/3}
  .tma-project-gallery-lightbox{padding:70px 14px 28px;display:block}
  .tma-project-gallery-lightbox figure{height:calc(100vh - 120px);gap:13px}
  .tma-project-gallery-lightbox figcaption{padding:0 4px;font-size:10px}
  .tma-project-gallery-lightbox-arrow{position:absolute;z-index:2;top:50%;width:44px;height:44px;background:rgba(0,27,68,.72);transform:translateY(-50%)}
  .tma-project-gallery-lightbox-arrow.is-previous{left:10px}
  .tma-project-gallery-lightbox-arrow.is-next{right:10px}
  .tma-project-gallery-lightbox-arrow.is-previous:hover,.tma-project-gallery-lightbox-arrow.is-next:hover{transform:translateY(-50%)}
  .tma-project-gallery-lightbox-close{top:13px;right:13px;width:43px;height:43px}
}

@media(prefers-reduced-motion:reduce){
  .tma-project-gallery-hero-image,.tma-project-gallery-card,.tma-project-gallery-panel,.tma-project-gallery-image{animation:none!important;opacity:1;transform:none!important}
  .tma-project-gallery-lightbox,.tma-project-gallery-lightbox figure{transition:none!important}
}
