@font-face { font-family: 'Urbanist'; src: url('../fonts/Urbanist-800.ttf') format('truetype'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Aspekta Variable'; src: url('../fonts/AspektaVariable.woff2') format('woff2-variations'); font-weight: 50 1000; font-display: swap; }
.jn-gallery, .jn-gallery *, .jn-gallery-dialog, .jn-gallery-dialog * { box-sizing: border-box; }
.jn-gallery { color: #fff; background: #0f0f0f; padding: 96px clamp(16px, 5vw, 80px); font-family: 'Aspekta Variable', Arial, sans-serif; }
.jn-gallery__inner { width: 100%; max-width: 1290px; margin: 0 auto; }
.jn-gallery .jn-gallery__heading { margin: 0 0 48px; font-family: 'Urbanist', Arial, sans-serif; font-size: clamp(42px, 5.2vw, 76px); font-weight: 800; line-height: .98; overflow-wrap: anywhere; }
.jn-gallery__grid { --gallery-row: clamp(170px, 20vw, 300px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: var(--gallery-row); gap: 16px; }
.jn-gallery__item { position: relative; display: block; grid-column: span var(--c); grid-row: span var(--r); min-width: 0; padding: 0; overflow: hidden; border: 0; border-radius: 28px; background: #1a1a1a; cursor: zoom-in; }
.jn-gallery .jn-gallery__item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(.16,1,.3,1); }
.jn-gallery__item::before { position: absolute; inset: 0; z-index: 1; background: transparent; content: ''; transition: background-color 400ms ease; }
.jn-gallery__item::after { position: absolute; right: 18px; bottom: 18px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #090909; font: 30px/1 Arial,sans-serif; content: '+'; opacity: 0; transform: scale(.7); transition: opacity 300ms ease, transform 400ms cubic-bezier(.16,1,.3,1); }
@media (hover: hover) { .jn-gallery__item:hover img { transform: scale(1.05); } .jn-gallery__item:hover::before { background: #00000038; } .jn-gallery__item:hover::after { opacity: 1; transform: scale(1); } }
.jn-gallery__item:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.jn-gallery__item:focus-visible::after { opacity: 1; transform: scale(1); }
.jn-gallery-dialog { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 72px; border: 0; background: transparent; color: #fff; overflow: hidden; }
.jn-gallery-dialog[open] { display: grid; place-items: center; }
.jn-gallery-dialog::backdrop { background: #0a0a0ae0; backdrop-filter: blur(14px); }
.jn-gallery-dialog__image { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 144px); object-fit: contain; border-radius: 20px; }
.jn-gallery-dialog__button { position: absolute; z-index: 1; display: grid; place-items: center; width: 54px; height: 54px; padding: 0; border: 0; border-radius: 50%; color: #090909; background: #fff; cursor: pointer; }
.jn-gallery-dialog__button:hover, .jn-gallery-dialog__button:focus-visible { color: #fff; background: #5f2df5; }
.jn-gallery-dialog__button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.jn-gallery-dialog__button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.6; }
.jn-gallery-dialog__close { top: 24px; right: 24px; }
.jn-gallery-dialog__prev { top: calc(50% - 27px); left: 16px; }
.jn-gallery-dialog__next { top: calc(50% - 27px); right: 16px; }
.jn-gallery-dialog[data-single] .jn-gallery-dialog__prev, .jn-gallery-dialog[data-single] .jn-gallery-dialog__next { display: none; }
.jn-gallery-dialog__status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 900px) { .jn-gallery { padding-top: 72px; padding-bottom: 72px; } .jn-gallery__grid { --gallery-row: clamp(150px, 34vw, 240px); } }
@media (max-width: 600px) {
  .jn-gallery { padding-left: 16px; padding-right: 16px; }
  .jn-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .jn-gallery__item { grid-column: span 1; grid-row: span 1; border-radius: 20px; }
  .jn-gallery__grid--1 .jn-gallery__item, .jn-gallery__grid--3 .jn-gallery__item:first-child, .jn-gallery__grid--5 .jn-gallery__item:first-child, .jn-gallery__grid--7 .jn-gallery__item:first-child, .jn-gallery__grid--9 .jn-gallery__item:first-child { grid-column: span 2; }
  .jn-gallery-dialog { padding: 76px 16px; }
  .jn-gallery-dialog__button { width: 46px; height: 46px; }
  .jn-gallery-dialog__prev, .jn-gallery-dialog__next { top: auto; bottom: 16px; }
  .jn-gallery-dialog__close { top: 16px; right: 16px; }
  .jn-gallery-dialog__image { max-height: calc(100dvh - 152px); }
}
@media (prefers-reduced-motion: reduce) { .jn-gallery__item img, .jn-gallery__item::before, .jn-gallery__item::after { transition: none; } }
.jn-gallery-dialog:not([open]) { display: none; }
