:root {
  --white: #fff;
  --text: #7b7b7b;
  --text-strong: #666;
  --muted: #a5a5a5;
  --line: #dedede;
  --gap: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  display: block;
  width: 100%;
}

.site-header {
  min-height: 64px;
  padding: 0 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--text-strong);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
}

.main-nav {
  display: flex;
  gap: 24px;
}

.main-nav a {
  text-decoration: none;
}

.main-nav a:hover {
  color: #444;
}

main {
  padding: 0 26px;
}

.intro {
  min-height: 112px;
  padding: 22px 0 34px;
  display: grid;
  grid-template-columns: 7fr 5fr;
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.intro p {
  margin: 0;
}

.intro p:last-child {
  text-align: right;
  color: var(--muted);
}


/* PROJECT GRID */

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 54px var(--gap);
  padding: 24px 0 100px;
}

.project {
  color: inherit;
  text-decoration: none;
}

.span-4 {
  grid-column: span 4;
}

.span-5 {
  grid-column: span 5;
}

.span-6 {
  grid-column: span 6;
}

.span-7 {
  grid-column: span 7;
}

.span-8 {
  grid-column: span 8;
}

.project img {
  width: 100%;
  height: auto;
}

.project.square img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.caption {
  display: grid;
  grid-template-columns: 46px 1.3fr 1fr auto;
  gap: 10px;
  padding-top: 8px;
  font-size: 11px;
  color: var(--muted);
}

.caption span:nth-child(2) {
  color: var(--text-strong);
}


/* TEXT SECTIONS */

.archive,
.exhibitions,
.about {
  display: grid;
  grid-template-columns: 1fr 7fr 4fr;
  gap: var(--gap);
  padding: 30px 0 90px;
  border-top: 1px solid var(--line);
}

.section-code {
  color: var(--muted);
  font-size: 11px;
}

.section-copy {
  max-width: 760px;
}

.section-copy h2 {
  margin: 0 0 26px;
  color: var(--text-strong);
  font-size: clamp(28px, 3vw, 48px);
  line-height: .95;
  font-weight: 400;
  letter-spacing: -.035em;
}

.section-copy p {
  max-width: 650px;
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.archive-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
}


/* INDEX */

.index-section {
  padding-bottom: 110px;
  border-top: 1px solid var(--line);
}

.index-head,
.index-section > a {
  display: grid;
  grid-template-columns: 1fr 7fr 4fr;
  gap: var(--gap);
  min-height: 43px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.index-head {
  color: var(--muted);
  font-size: 11px;
}

.index-head span:nth-child(2) {
  grid-column: 2;
}

.index-section > a {
  text-decoration: none;
}

.index-section > a:hover {
  color: #444;
}

.index-section > a span:first-child {
  color: var(--muted);
  font-size: 11px;
}


/* FOOTER */

footer {
  margin: 0 26px;
  min-height: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

footer div:nth-child(2) {
  text-align: center;
}

footer div:last-child {
  text-align: right;
}

footer a {
  text-decoration: none;
}


/* MOBILE */

@media (max-width: 760px) {

  .site-header {
    min-height: auto;
    padding: 18px;
    display: block;
  }

  .main-nav {
    margin-top: 18px;
    flex-wrap: wrap;
    gap: 8px 18px;
  }

  main {
    padding: 0 18px;
  }

  .intro {
    min-height: 90px;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .intro p:last-child {
    text-align: left;
  }

  .work-grid {
    display: block;
    padding-top: 18px;
  }

  .project {
    display: block;
    margin-bottom: 54px;
  }

  .caption {
    grid-template-columns: 36px 1fr;
  }

  .caption span:nth-child(3),
  .caption span:nth-child(4) {
    display: none;
  }

  .archive,
  .exhibitions,
  .about {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px 0 70px;
  }

  .section-copy h2 {
    font-size: 38px;
  }

  .index-head,
  .index-section > a {
    grid-template-columns: 50px 1fr;
  }

  .index-head span:nth-child(2) {
    grid-column: 2;
  }

  .index-section > a span:last-child {
    display: none;
  }

  footer {
    margin: 0 18px;
    padding: 24px 0;
    display: block;
    line-height: 1.8;
  }

  footer div:nth-child(2),
  footer div:last-child {
    text-align: left;
  }
}

/* Artkontakt — hladna arhitekturna paleta */
:root {
  --white: #ffffff !important;
  --text: #697176 !important;
  --text-strong: #50565a !important;
  --muted: #9aa1a5 !important;
  --line: #dde1e3 !important;
  --accent: #46606f !important;
  --surface: #f4f6f7 !important;
}

body {
  background: var(--white) !important;
  color: var(--text) !important;
}

.brand,
.caption span:nth-child(2),
.section-copy h2 {
  color: var(--text-strong) !important;
}

.main-nav a,
.index-section > a,
footer a {
  color: var(--text) !important;
}

.main-nav a:hover,
.index-section > a:hover,
footer a:hover {
  color: var(--accent) !important;
}

.intro p:last-child,
.caption,
.section-code,
.archive-meta,
.index-head,
.index-section > a span:first-child,
footer {
  color: var(--muted) !important;
}

.site-header,
.intro,
.archive,
.exhibitions,
.about,
.index-section,
.index-head,
.index-section > a,
footer {
  border-color: var(--line) !important;
}

/* =========================================================
   ARTKONTAKT — arhitekturna projektna mreža
   namenoma asimetrična, z aktivnim praznim prostorom
   ========================================================= */

.work-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  column-gap: 16px !important;
  row-gap: 38px !important;
  align-items: start;
}

/* Vsi projekti ostanejo v svojem naravnem ritmu */
.work-grid .project {
  grid-column: auto;
  align-self: start;
}

/* 001 — glavni mestni pogled */
.work-grid .project:nth-child(1) {
  grid-column: 1 / span 7;
}

.work-grid .project:nth-child(1) img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* 002 — manjši vertikalni kontrapunkt */
.work-grid .project:nth-child(2) {
  grid-column: 9 / span 4;
  margin-top: 54px;
}

.work-grid .project:nth-child(2) img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* 003 — kompaktna arhitektura */
.work-grid .project:nth-child(3) {
  grid-column: 1 / span 4;
  margin-top: 18px;
}

.work-grid .project:nth-child(3) img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* 004 — veliki dokument mesta v spremembi */
.work-grid .project:nth-child(4) {
  grid-column: 6 / span 7;
}

.work-grid .project:nth-child(4) img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* 005 */
.work-grid .project:nth-child(5) {
  grid-column: 2 / span 5;
}

.work-grid .project:nth-child(5) img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* 006 */
.work-grid .project:nth-child(6) {
  grid-column: 8 / span 5;
  margin-top: 62px;
}

.work-grid .project:nth-child(6) img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* 007 — bolj vertikalen detajl */
.work-grid .project:nth-child(7) {
  grid-column: 1 / span 4;
  margin-top: 10px;
}

.work-grid .project:nth-child(7) img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* 008 — širši zaključek mreže */
.work-grid .project:nth-child(8) {
  grid-column: 6 / span 7;
}

.work-grid .project:nth-child(8) img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* Captioni naj ostanejo zelo tihi */
.caption {
  padding-top: 7px !important;
  font-size: 10.5px !important;
  line-height: 1.25 !important;
}

/* Na mobilnem telefonu ostane enostaven enostolpčni tok */
@media (max-width: 760px) {
  .work-grid .project {
    margin-top: 0 !important;
    margin-bottom: 44px !important;
  }

  .work-grid .project img {
    aspect-ratio: auto !important;
    height: auto !important;
    object-fit: initial !important;
  }
}

/* =========================================================
   ARTKONTAKT — header + intro
   compact architectural index
   ========================================================= */

.site-header {
  min-height: 52px !important;
  padding: 0 26px !important;

  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  column-gap: 16px !important;

  align-items: center !important;
  border-bottom: 1px solid var(--line) !important;
}

.brand {
  grid-column: 1 / span 4;

  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1 !important;

  letter-spacing: .14em !important;
  color: var(--text-strong) !important;
}

.main-nav {
  grid-column: 7 / 13;

  display: grid !important;
  grid-template-columns: repeat(5, auto) !important;
  justify-content: end !important;
  gap: 0 22px !important;

  font-size: 11px !important;
  line-height: 1 !important;
}

.main-nav a {
  position: relative;
  padding: 20px 0 19px;

  color: var(--text) !important;
  text-decoration: none !important;
}

.main-nav a::after {
  content: "";
  position: absolute;

  left: 0;
  right: 0;
  bottom: 13px;

  height: 1px;
  background: var(--accent);

  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .18s ease;
}

.main-nav a:hover {
  color: var(--accent) !important;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}


/* Intro kot informacijska vrstica, ne hero */

.intro {
  min-height: 74px !important;
  padding: 16px 0 17px !important;

  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  column-gap: 16px !important;

  align-items: end !important;
  border-bottom: 1px solid var(--line) !important;
}

.intro p {
  margin: 0 !important;

  font-size: 11px !important;
  line-height: 1.3 !important;
  letter-spacing: .01em !important;
}

.intro p:first-child {
  grid-column: 1 / span 6;
  color: var(--text-strong) !important;
}

.intro p:last-child {
  grid-column: 9 / 13;

  text-align: right !important;
  color: var(--muted) !important;
}


/* Fotografije naj pridejo hitreje po uvodu */

.work-grid {
  padding-top: 18px !important;
}


/* Mobile */

@media (max-width: 760px) {

  .site-header {
    min-height: auto !important;
    padding: 16px 18px !important;
    grid-template-columns: 1fr !important;
  }

  .brand {
    grid-column: 1 !important;
  }

  .main-nav {
    grid-column: 1 !important;

    margin-top: 14px !important;

    display: flex !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;

    gap: 9px 18px !important;
  }

  .main-nav a {
    padding: 0 !important;
  }

  .main-nav a::after {
    display: none !important;
  }

  .intro {
    min-height: auto !important;
    padding: 14px 0 16px !important;

    grid-template-columns: 1fr !important;
    gap: 5px !important;
  }

  .intro p:first-child,
  .intro p:last-child {
    grid-column: 1 !important;
    text-align: left !important;
  }
}

/* =========================================================
   ARTKONTAKT — lower information system
   compact architectural register
   ========================================================= */

.archive,
.exhibitions,
.about {
  min-height: 150px !important;
  padding: 0 !important;

  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  column-gap: 16px !important;

  border-top: 1px solid var(--line) !important;
  align-items: start !important;
}

.section-code {
  grid-column: 1 / span 2;
  padding-top: 23px;

  font-size: 10px !important;
  letter-spacing: .04em;
  color: var(--muted) !important;
}

.section-copy {
  grid-column: 3 / span 6;
  max-width: none !important;
  padding: 21px 0 48px;
}

.section-copy h2 {
  margin: 0 0 22px !important;

  font-size: 19px !important;
  line-height: 1 !important;
  font-weight: 500 !important;
  letter-spacing: -.02em !important;

  color: var(--text-strong) !important;
}

.section-copy p {
  max-width: 610px !important;
  margin: 0 !important;

  font-size: 13px !important;
  line-height: 1.55 !important;

  color: var(--text) !important;
}

.archive-meta {
  grid-column: 10 / 13;
  padding-top: 23px;

  display: flex !important;
  flex-direction: column;
  gap: 3px !important;

  font-size: 10px !important;
  line-height: 1.35;
  color: var(--muted) !important;
}


/* INDEX — naj postane pomemben del identitete */

.index-section {
  padding: 0 0 72px !important;
  border-top: 1px solid var(--line) !important;
}

.index-head,
.index-section > a {
  min-height: 40px !important;

  display: grid !important;
  grid-template-columns: 1.5fr 6.5fr 4fr !important;
  column-gap: 16px !important;

  align-items: center !important;

  border-bottom: 1px solid var(--line) !important;
}

.index-head {
  font-size: 10px !important;
  color: var(--muted) !important;
}

.index-section > a {
  position: relative;

  font-size: 11.5px !important;
  line-height: 1.2;

  text-decoration: none !important;

  transition:
    background-color .15s ease,
    color .15s ease;
}

.index-section > a span:first-child {
  font-size: 10px !important;
  color: var(--muted) !important;
}

.index-section > a span:nth-child(2) {
  color: var(--text-strong) !important;
}

.index-section > a span:last-child {
  color: var(--muted) !important;
}

.index-section > a:hover {
  background: var(--surface) !important;
  color: var(--accent) !important;
}

.index-section > a:hover span:nth-child(2) {
  color: var(--accent) !important;
}


/* Fotografije: zelo nežen odziv, brez "portfolio effecta" */

.project img {
  transition: opacity .18s ease;
}

.project:hover img {
  opacity: .92;
}

.project:hover .caption span:nth-child(2) {
  color: var(--accent) !important;
}


/* Footer bolj kompakten */

footer {
  min-height: 58px !important;
  font-size: 10px !important;
}


/* MOBILE */

@media (max-width: 760px) {

  .archive,
  .exhibitions,
  .about {
    min-height: auto !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    padding-bottom: 46px !important;
  }

  .section-code,
  .section-copy,
  .archive-meta {
    grid-column: 1 !important;
  }

  .section-code {
    padding-top: 18px;
  }

  .section-copy {
    padding: 18px 0 20px;
  }

  .section-copy h2 {
    font-size: 18px !important;
    margin-bottom: 16px !important;
  }

  .archive-meta {
    padding-top: 0;
  }

  .index-head,
  .index-section > a {
    grid-template-columns: 48px 1fr !important;
  }
}

/* Tipografija — večja, še vedno arhitekturno zadržana */

.brand {
  font-size: 13px !important;
}

.main-nav {
  font-size: 13px !important;
}

.intro p {
  font-size: 13px !important;
}

.caption {
  font-size: 12px !important;
}

.section-code,
.archive-meta,
.index-head,
.index-section > a span:first-child,
footer {
  font-size: 11px !important;
}

.section-copy h2 {
  font-size: 22px !important;
}

.section-copy p {
  font-size: 15px !important;
  line-height: 1.55 !important;
}

.index-section > a {
  font-size: 13px !important;
}

@media (max-width: 760px) {
  .brand {
    font-size: 13px !important;
  }

  .main-nav {
    font-size: 13px !important;
  }

  .intro p {
    font-size: 12px !important;
  }

  .caption {
    font-size: 11.5px !important;
  }

  .section-copy p {
    font-size: 14px !important;
  }
}

/* =========================================================
   ARTKONTAKT — bolj izrazita hierarhija fotografij
   ========================================================= */

/* 01 — glavni vizual */
.work-grid .project:nth-child(1) {
  grid-column: 1 / span 8 !important;
  margin-top: 0 !important;
}

.work-grid .project:nth-child(1) img {
  aspect-ratio: 3 / 2 !important;
  object-fit: cover !important;
}

/* 02 — namenoma precej manjši, pokončni kontrapunkt */
.work-grid .project:nth-child(2) {
  grid-column: 10 / span 3 !important;
  margin-top: 72px !important;
}

.work-grid .project:nth-child(2) img {
  aspect-ratio: 4 / 5 !important;
  object-fit: cover !important;
}

/* 03 — kompakten kvadrat */
.work-grid .project:nth-child(3) {
  grid-column: 1 / span 4 !important;
  margin-top: 24px !important;
}

.work-grid .project:nth-child(3) img {
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
}

/* 04 — velika široka dokumentarna fotografija */
.work-grid .project:nth-child(4) {
  grid-column: 6 / span 7 !important;
  margin-top: 0 !important;
}

.work-grid .project:nth-child(4) img {
  aspect-ratio: 16 / 10 !important;
  object-fit: cover !important;
}

/* 05 — srednje velik kvadrat */
.work-grid .project:nth-child(5) {
  grid-column: 2 / span 5 !important;
  margin-top: 10px !important;
}

.work-grid .project:nth-child(5) img {
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
}

/* 06 — manjši landscape, nekoliko spuščen */
.work-grid .project:nth-child(6) {
  grid-column: 9 / span 4 !important;
  margin-top: 82px !important;
}

.work-grid .project:nth-child(6) img {
  aspect-ratio: 4 / 3 !important;
  object-fit: cover !important;
}

/* 07 — majhen vertikalen arhitekturni detajl */
.work-grid .project:nth-child(7) {
  grid-column: 1 / span 3 !important;
  margin-top: 16px !important;
}

.work-grid .project:nth-child(7) img {
  aspect-ratio: 4 / 5 !important;
  object-fit: cover !important;
}

/* 08 — močan širok zaključek */
.work-grid .project:nth-child(8) {
  grid-column: 6 / span 7 !important;
  margin-top: 0 !important;
}

.work-grid .project:nth-child(8) img {
  aspect-ratio: 3 / 2 !important;
  object-fit: cover !important;
}

/* malo več vertikalnega ritma med skupinami */
.work-grid {
  row-gap: 54px !important;
}

@media (max-width: 760px) {
  .work-grid .project {
    margin-top: 0 !important;
  }

  .work-grid .project img {
    aspect-ratio: auto !important;
    height: auto !important;
  }
}

/* =========================================================
   PROJECTS PAGE
   ========================================================= */

.projects-intro {
  min-height: 118px;
  padding: 18px 0 24px;

  display: grid;
  grid-template-columns: 1fr 1fr;

  border-bottom: 1px solid var(--line);
}

.projects-intro > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.projects-intro > div:last-child {
  text-align: right;
}

.projects-intro span {
  font-size: 13px;
}

.projects-intro span:last-child {
  color: var(--muted);
}


/* posamezni projekti niso kartice */

.projects-list {
  padding: 22px 0 120px;

  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));

  column-gap: 18px;
  row-gap: 62px;

  align-items: start;
}

.project-entry {
  color: inherit;
  text-decoration: none;
}

.project-entry img {
  width: 100%;
  height: auto;
  display: block;
}

.project-data {
  margin-top: 8px;

  display: grid;
  grid-template-columns: 44px 1.4fr 1fr auto;
  gap: 10px;

  font-size: 12px;
  line-height: 1.25;
}

.project-data span {
  color: var(--muted);
}

.project-data strong {
  color: var(--text-strong);
  font-weight: 500;
}


/* sizes */

.size-xl {
  grid-column: 1 / span 9;
}

.size-l {
  grid-column: span 7;
}

.size-m {
  grid-column: span 5;
}

.size-s {
  grid-column: span 3;
}


/* offsets */

.offset-right {
  grid-column-start: 9;
}

.offset-right-small {
  grid-column-start: 8;
}

.offset-left {
  grid-column-start: 2;
}

.offset-left-small {
  grid-column-start: 3;
}


/* različna razmerja */

.projects-list .project-entry:nth-child(1) img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.projects-list .project-entry:nth-child(2) img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.projects-list .project-entry:nth-child(3) img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.projects-list .project-entry:nth-child(4) img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.projects-list .project-entry:nth-child(5) img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.projects-list .project-entry:nth-child(6) img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.projects-list .project-entry:nth-child(7) img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.projects-list .project-entry:nth-child(8) img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.project-entry:hover img {
  opacity: .92;
}

.project-entry:hover strong {
  color: var(--accent);
}


/* aktivna navigacija */

.main-nav .active {
  color: var(--accent) !important;
}


/* mobile */

@media (max-width: 760px) {

  .projects-intro {
    min-height: 90px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .projects-intro > div:last-child {
    text-align: left;
  }

  .projects-list {
    display: block;
    padding-top: 18px;
  }

  .project-entry {
    display: block;
    margin-bottom: 52px;
  }

  .project-entry img {
    aspect-ratio: auto !important;
    object-fit: initial !important;
  }

  .project-data {
    grid-template-columns: 38px 1fr;
  }

  .project-data span:nth-child(3),
  .project-data span:nth-child(4) {
    display: none;
  }
}


/* === PROJECTS PAGE START === */

.projects-intro {
  min-height: 94px;
  padding: 18px 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.projects-intro > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.projects-intro > div:last-child {
  text-align: right;
}

.projects-intro span {
  font-size: 13px;
}

.projects-intro span:last-child {
  color: var(--muted);
}


/* namenoma neenakomerna projektna mreža */

.projects-grid {
  padding: 20px 0 120px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 18px;
  row-gap: 58px;
  align-items: start;
}

.projects-grid .p {
  color: inherit;
  text-decoration: none;
}

.projects-grid img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.p1 {
  grid-column: 1 / span 8;
}

.p1 img {
  aspect-ratio: 3 / 2;
}

.p2 {
  grid-column: 10 / span 3;
  margin-top: 76px;
}

.p2 img {
  aspect-ratio: 4 / 5;
}

.p3 {
  grid-column: 1 / span 4;
}

.p3 img {
  aspect-ratio: 1 / 1;
}

.p4 {
  grid-column: 6 / span 7;
  margin-top: 16px;
}

.p4 img {
  aspect-ratio: 16 / 10;
}

.p5 {
  grid-column: 2 / span 5;
}

.p5 img {
  aspect-ratio: 1 / 1;
}

.p6 {
  grid-column: 9 / span 4;
  margin-top: 86px;
}

.p6 img {
  aspect-ratio: 4 / 3;
}

.p7 {
  grid-column: 1 / span 3;
}

.p7 img {
  aspect-ratio: 4 / 5;
}

.p8 {
  grid-column: 6 / span 7;
}

.p8 img {
  aspect-ratio: 3 / 2;
}


.project-meta {
  padding-top: 8px;
  display: grid;
  grid-template-columns: 42px minmax(120px,1.4fr) 1fr auto;
  gap: 10px;
  font-size: 12px;
  line-height: 1.25;
}

.project-meta span {
  color: var(--muted);
}

.project-meta strong {
  color: var(--text-strong);
  font-weight: 500;
}

.projects-grid .p:hover img {
  opacity: .92;
}

.projects-grid .p:hover strong {
  color: var(--accent);
}


/* tekstovni indeks */

.projects-index {
  padding-bottom: 90px;
  border-top: 1px solid var(--line);
}

.projects-index-head,
.projects-index > a {
  min-height: 43px;
  display: grid;
  grid-template-columns: 1.5fr 7fr 3.5fr;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.projects-index-head {
  color: var(--muted);
  font-size: 11px;
}

.projects-index > a {
  color: inherit;
  text-decoration: none;
  font-size: 13px;
}

.projects-index > a span:first-child,
.projects-index > a span:last-child {
  color: var(--muted);
}

.projects-index > a span:nth-child(2) {
  color: var(--text-strong);
}

.projects-index > a:hover span:nth-child(2) {
  color: var(--accent);
}

.main-nav .active {
  color: var(--accent) !important;
}


/* mobile */

@media (max-width: 760px) {

  .projects-intro {
    min-height: 80px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .projects-intro > div:last-child {
    text-align: left;
  }

  .projects-grid {
    display: block;
    padding-top: 18px;
  }

  .projects-grid .p {
    display: block;
    margin: 0 0 50px !important;
  }

  .projects-grid img {
    aspect-ratio: auto !important;
    height: auto !important;
  }

  .project-meta {
    grid-template-columns: 38px 1fr;
  }

  .project-meta span:nth-child(3),
  .project-meta span:nth-child(4) {
    display: none;
  }

  .projects-index-head,
  .projects-index > a {
    grid-template-columns: 48px 1fr;
  }

  .projects-index-head span:last-child,
  .projects-index > a span:last-child {
    display: none;
  }
}

/* === PROJECTS PAGE END === */

/* Projects 09–10 */

.projects-grid .p9 {
  grid-column: 2 / span 4;
  margin-top: 26px;
}

.projects-grid .p9 img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.projects-grid .p10 {
  grid-column: 7 / span 6;
  margin-top: 0;
}

.projects-grid .p10 img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

@media (max-width: 760px) {
  .projects-grid .p9,
  .projects-grid .p10 {
    margin-top: 0 !important;
  }
}

/* Projects: night Triple Bridge */
.projects-grid .p9 img {
  aspect-ratio: 4 / 3 !important;
  object-fit: cover !important;
}

/* =========================================================
   ARTKONTAKT — SECONDARY PAGES
   ========================================================= */

.page-intro {
  min-height: 94px;
  padding: 18px 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.page-intro > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-intro > div:last-child {
  text-align: right;
}

.page-intro span {
  font-size: 13px;
}

.page-intro span:last-child {
  color: var(--muted);
}


/* ARCHIVE */

.archive-lead {
  min-height: 260px;
  padding: 26px 0 70px;
  display: grid;
  grid-template-columns: repeat(12,minmax(0,1fr));
  gap: 18px;
}

.archive-lead .section-code {
  grid-column: 1 / span 2;
}

.archive-statement {
  grid-column: 3 / span 7;
  max-width: 760px;
}

.archive-statement p {
  margin: 0 0 22px;
  font-size: 20px;
  line-height: 1.4;
  color: var(--text-strong);
}

.archive-images {
  padding-bottom: 100px;
  display: grid;
  grid-template-columns: repeat(12,minmax(0,1fr));
  column-gap: 18px;
  align-items: start;
}

.archive-image-large {
  grid-column: 1 / span 7;
}

.archive-image-small {
  grid-column: 9 / span 4;
  margin-top: 90px;
}

.archive-image img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.archive-image-large img {
  aspect-ratio: 3 / 2;
}

.archive-image-small img {
  aspect-ratio: 4 / 5;
}

.archive-image figcaption {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 11px;
  color: var(--muted);
}

.archive-register,
.exhibition-services {
  border-top: 1px solid var(--line);
}

.archive-register > div,
.exhibition-services > div {
  min-height: 45px;
  display: grid;
  grid-template-columns: 70px 4fr 7fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.archive-register span,
.exhibition-services span {
  color: var(--muted);
}

.archive-register strong,
.exhibition-services strong {
  color: var(--text-strong);
  font-weight: 500;
}


/* EXHIBITIONS */

.exhibition-intro {
  padding: 26px 0 80px;
  display: grid;
  grid-template-columns: 2fr 7fr 3fr;
  gap: 18px;
}

.exhibition-intro p {
  grid-column: 2;
  max-width: 650px;
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.exhibition-grid {
  padding-bottom: 100px;
  display: grid;
  grid-template-columns: repeat(12,minmax(0,1fr));
  gap: 58px 18px;
}

.exhibition-grid figure:nth-child(1) {
  grid-column: 1 / span 7;
}

.exhibition-grid figure:nth-child(2) {
  grid-column: 9 / span 4;
  margin-top: 80px;
}

.exhibition-grid figure:nth-child(3) {
  grid-column: 3 / span 6;
}

.exhibition-grid img {
  width: 100%;
  display: block;
}

.exhibition-grid figcaption {
  padding-top: 8px;
  display: grid;
  grid-template-columns: 45px 1fr;
  font-size: 11px;
  color: var(--muted);
}


/* ABOUT */

.about-page {
  padding: 30px 0 120px;
  display: grid;
  grid-template-columns: repeat(12,minmax(0,1fr));
  gap: 18px;
}

.about-label {
  grid-column: 1 / span 2;
  color: var(--muted);
  font-size: 11px;
}

.about-primary {
  grid-column: 3 / span 6;
}

.about-primary p {
  margin: 0;
  font-size: clamp(26px,3vw,44px);
  line-height: 1.12;
  letter-spacing: -.035em;
  color: var(--text-strong);
}

.about-secondary {
  grid-column: 9 / span 4;
  padding-top: 5px;
}

.about-secondary p {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.55;
}

.contact-register {
  border-top: 1px solid var(--line);
}

.contact-register > div {
  min-height: 47px;
  display: grid;
  grid-template-columns: 2fr 10fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.contact-register span {
  color: var(--muted);
}

.contact-register strong {
  font-weight: 400;
  color: var(--text-strong);
}


/* FULL INDEX */

.full-index {
  padding-bottom: 100px;
}

.full-index-head,
.full-index > a {
  min-height: 43px;
  display: grid;
  grid-template-columns: 1.5fr 7fr 3.5fr;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.full-index-head {
  color: var(--muted);
  font-size: 11px;
}

.full-index > a {
  color: inherit;
  text-decoration: none;
  font-size: 13px;
}

.full-index > a span:first-child,
.full-index > a span:last-child {
  color: var(--muted);
}

.full-index > a span:nth-child(2) {
  color: var(--text-strong);
}

.full-index > a:hover span:nth-child(2) {
  color: var(--accent);
}


/* MOBILE */

@media (max-width:760px) {

  .page-intro {
    min-height: 80px;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .page-intro > div:last-child {
    text-align: left;
  }

  .archive-lead,
  .about-page,
  .exhibition-intro {
    display: block;
  }

  .archive-statement {
    margin-top: 25px;
  }

  .archive-statement p {
    font-size: 18px;
  }

  .archive-images,
  .exhibition-grid {
    display: block;
  }

  .archive-image,
  .exhibition-grid figure {
    margin: 0 0 50px !important;
  }

  .archive-image img {
    aspect-ratio: auto !important;
  }

  .archive-register > div,
  .exhibition-services > div {
    grid-template-columns: 45px 1fr;
  }

  .archive-register > div span:last-child {
    display: none;
  }

  .about-secondary {
    margin-top: 45px;
  }

  .full-index-head,
  .full-index > a {
    grid-template-columns: 48px 1fr;
  }

  .full-index-head span:last-child,
  .full-index > a span:last-child {
    display: none;
  }
}

/* =========================================================
   PROJECT DETAIL
   ========================================================= */

.detail-head {
  min-height: 150px;
  padding: 22px 0 30px;

  display: grid;
  grid-template-columns: 1.5fr 7fr 3.5fr;
  gap: 18px;

  align-items: start;

  border-bottom: 1px solid var(--line);
}

.detail-number {
  color: var(--muted);
  font-size: 11px;
}

.detail-title h1 {
  max-width: 850px;
  margin: 0;

  color: var(--text-strong);

  font-size: clamp(30px,4vw,60px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.045em;
}

.detail-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;

  font-size: 12px;
  color: var(--muted);
}

.detail-image {
  padding: 22px 0 70px;
}

.detail-image img {
  display: block;

  width: auto;
  max-width: 100%;
  max-height: 82vh;

  margin: 0 auto;

  object-fit: contain;
}

.detail-info {
  padding: 24px 0 85px;

  display: grid;
  grid-template-columns: 1.5fr 3fr 7.5fr;
  gap: 18px;

  border-top: 1px solid var(--line);
}

.detail-info > div:first-child {
  color: var(--muted);
  font-size: 11px;
}

.detail-info strong {
  color: var(--text-strong);
  font-weight: 500;
}

.detail-description {
  max-width: 650px;
}

.detail-description p {
  margin: 0;

  font-size: 15px;
  line-height: 1.55;
}

.detail-next {
  min-height: 54px;

  display: grid;
  grid-template-columns: 1fr 1fr 1fr;

  align-items: center;

  border-top: 1px solid var(--line);
}

.detail-next a {
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
}

.detail-next a:nth-child(2) {
  text-align: center;
}

.detail-next a:last-child {
  text-align: right;
}

.detail-next a:hover {
  color: var(--accent);
}

@media (max-width:760px) {

  .detail-head {
    grid-template-columns: 45px 1fr;
  }

  .detail-meta {
    grid-column: 2;
    align-items: flex-start;
    margin-top: 18px;
  }

  .detail-title h1 {
    font-size: 34px;
  }

  .detail-image {
    padding-bottom: 50px;
  }

  .detail-image img {
    width: 100%;
    max-height: none;
  }

  .detail-info {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
