:root {
  --gap: 3rem;
}
@media (max-width: 1200px) {
  :root {
    --gap: 2rem;
  }
}
@media (max-width: 900px) {
  :root {
    --gap: 1.5rem;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  font-family: "Work Sans", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #000;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-box-edge: cap alphabetic;
  text-box-trim: trim-start;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-family: "Zalando Sans Expanded", sans-serif;
  line-height: 1.2;
  font-weight: 800;
  text-box-edge: cap alphabetic;
  text-box-trim: trim-start;
}

h2 {
  margin: 0 0 2em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

h3 {
  font-size: 1.1rem;
}

h5 {
  margin-bottom: 0.5em;
  font-size: 0.8rem;
  font-family: "Work Sans", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 800;
  color: #888;
}

h6 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1.6em;
  text-box-edge: cap alphabetic;
  text-box-trim: trim-start;
}

p:last-child {
  margin-bottom: 0;
}

small {
  font-size: 0.875em;
}

strong {
  font-weight: 600;
}

a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: all 0.7s ease;
}
a:hover {
  text-decoration: underline;
  color: #888;
  transition: all 0.2s ease;
}
a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.5em;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

img,
video {
  height: auto;
}

figure {
  margin: 0;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.header_container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 2rem;
  font-family: "Zalando Sans Expanded", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1;
}
@media (max-width: 900px) {
  .header_container {
    padding: 0.5rem;
    font-size: 0.8rem;
  }
}
body[nav_color=dark] .header_container a {
  color: #fff;
}
body[nav_color=dark] .header_container a:hover {
  background: #fff;
  color: #000;
}
.header_container h1 {
  font-size: 1.2rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-box-edge: cap alphabetic;
  text-box-trim: trim-start;
}
@media (max-width: 900px) {
  .header_container h1 {
    font-size: 1rem;
  }
}
.header_container a {
  display: block;
  padding: 0.5em 1.2em;
  text-decoration: none;
  letter-spacing: 0.05em;
  font-weight: 800;
}
.header_container a:hover {
  background: #000;
  color: #fff;
}
@media (max-width: 900px) {
  .header_container a {
    padding: 0.5em 1em;
  }
}
.header_container h1 a {
  padding: 0.5em 0.7em;
}
.header_container ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (max-width: 1200px) {
  .header_container ul {
    gap: 0.5em;
  }
}
@media (max-width: 900px) {
  .header_container ul {
    gap: 0;
  }
}
.header_container li {
  position: relative;
  list-style: none;
  text-align: right;
  line-height: 1.2;
}
.header_container li ul {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  flex-direction: column;
  gap: 0;
  white-space: nowrap;
}
.header_container li:hover ul {
  display: flex;
}
.header_container .menu_toggle {
  display: none;
}
.header_container .menu_toggle[aria-expanded=true] .hamburger_line {
  background: #fff;
}
@media (max-width: 640px) {
  .header_container .menu_toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
    z-index: 102;
    -webkit-tap-highlight-color: transparent;
  }
  body[nav_color=dark] .header_container .menu_toggle {
    color: #fff;
  }
  .header_container .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 1.25rem;
  }
  .header_container .hamburger_line {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: all 0.4s ease;
  }
  .header_container .menu_toggle[aria-expanded=true] .hamburger_line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .header_container .menu_toggle[aria-expanded=true] .hamburger_line:nth-child(2) {
    opacity: 0;
  }
  .header_container .menu_toggle[aria-expanded=true] .hamburger_line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .header_container .main_menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 5rem 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.97);
    list-style: none;
    margin: 0;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }
  body[nav_color=dark] .header_container .main_menu {
    background: rgba(0, 0, 0, 0.98);
  }
  .header_container nav.menu_open .main_menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .header_container .main_menu li {
    text-align: center;
    width: 100%;
    max-width: 280px;
  }
  .header_container .main_menu > li > a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    color: #fff;
    border: none;
  }
  .header_container .main_menu > li > a:hover {
    background: #fff;
    color: #000;
  }
  .header_container .main_menu li ul {
    position: static;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
  }
  .header_container nav.menu_open .main_menu li ul {
    display: flex;
  }
  .header_container .main_menu .has_submenu {
    display: none;
  }
  .header_container .main_menu li ul li a {
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    color: #fff;
  }
  .header_container .main_menu li ul li a:hover {
    background: #fff;
    color: #000;
  }
}

.site_main {
  width: 90vw;
  max-width: 900px;
  margin: 5rem auto 10rem;
}

.banner_image {
  width: 100%;
  margin: -2rem 0 var(--gap);
}
.banner_image img {
  width: 100%;
  height: auto;
}

.slideshow {
  margin: 0 0 4rem;
}
.slideshow .slides_container {
  background: #fff;
}
.slideshow .video_embed, .slideshow figure:has(iframe) {
  margin: 0;
}
.slideshow .square1_side_controls {
  position: absolute;
  top: 100%;
  left: auto;
  right: 0;
  width: 80px;
}
.slideshow.prev_next_nav-outside .square1_prev_image,
.slideshow.prev_next_nav-outside .square1_next_image {
  background: url(../img/left_arrow.png?v=1) no-repeat center center;
  opacity: 1;
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  width: 40px;
  height: 40px;
  background-size: 50%;
  transform: translate(0, 0);
  transition: transform 0.4s ease;
}
.slideshow.prev_next_nav-outside .square1_prev_image:hover,
.slideshow.prev_next_nav-outside .square1_next_image:hover {
  transform: translate(-3px, 0);
  opacity: 1;
}
.slideshow.prev_next_nav-outside .square1_next_image {
  transform: rotate(180deg);
}
.slideshow.prev_next_nav-outside .square1_next_image:hover {
  transform: rotate(180deg) translate(-3px, 0);
}
.slideshow .square1_bottom_controls {
  position: relative;
  width: calc(100% - 100px);
}
.slideshow.dots_nav-outside .square1_dots {
  position: relative;
  bottom: -12px;
  display: flex;
}
.slideshow.dots_nav-outside .square1_dots button {
  flex: 1;
  border-top: 2px solid #ccc;
}
.slideshow.dots_nav-outside .square1_dots button.current {
  border-top-color: #000;
}
.slideshow.dots_nav-outside .square1_dots button::before {
  content: "";
  display: none;
}
.slideshow .square1_caption {
  position: relative;
  top: auto;
  bottom: auto !important;
  min-height: 1.2em;
  text-align: left;
  font-family: "Work Sans", sans-serif;
  padding: 0.7em 0;
}

h2 + .slideshow {
  margin-top: -2rem;
}

audio {
  width: 100%;
  max-width: 400px;
  margin: 0 0 2rem;
}

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 8rem;
  gap: var(--gap);
}
.pagination a {
  display: block;
  max-width: 300px;
  text-decoration: none;
  font-family: "Zalando Sans Expanded", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.05em;
}
@media (max-width: 640px) {
  .pagination a {
    font-size: 0.8rem;
  }
}
.pagination a:hover {
  text-decoration: underline;
}
.pagination .pagination_next {
  text-align: right;
}

.edit_page_link {
  position: fixed;
  bottom: 2rem;
  left: 2.5rem;
  z-index: 1000;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: "Work Sans", sans-serif;
  text-decoration: none;
  background: #e5e5e5;
  border-radius: 4px;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.edit_page_link:hover {
  opacity: 1;
  color: #fff;
  background: #000;
  text-decoration: none;
}
@media (max-width: 640px) {
  .edit_page_link {
    bottom: 1.25rem;
    left: 1.25rem;
    font-size: 0.8rem;
    padding: 0.35rem 0.6rem;
  }
}

.footer_icon {
  position: fixed;
  bottom: 2rem;
  right: 2.5rem;
  z-index: 1000;
}
.footer_icon img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  object-position: bottom right;
}
@media (max-width: 640px) {
  .footer_icon img {
    width: 50px;
    height: 50px;
  }
}

body.home .header_container h1 {
  display: none;
}
body.home h1 {
  position: absolute;
  top: 2rem;
  left: 2rem;
  width: 7em;
  font-size: 9vw;
  text-transform: uppercase;
  color: #000;
  line-height: 0.9;
  transition: color 0.5s ease;
}
@media (max-width: 1200px) {
  body.home h1 {
    font-size: 7vw;
  }
}
@media (max-width: 900px) {
  body.home h1 {
    top: 1rem;
    left: 1rem;
  }
}
@media (max-width: 640px) {
  body.home h1 {
    font-size: 10vw;
  }
}
body.home[nav_color=dark] h1 {
  color: #fff;
}
body.home .slideshow {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: -1;
  margin: 0;
}

body.news .news_item {
  display: flex;
  gap: var(--gap);
  align-items: start;
  margin: 0 0 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #aaa;
}
@media (max-width: 640px) {
  body.news .news_item {
    flex-direction: column;
    gap: var(--gap);
  }
}
body.news .news_item .news_item_image {
  flex: 1;
}
body.news .news_item .news_item_image img {
  width: 100%;
  border: 1px solid #eee;
}
body.news .news_item .news_item_content {
  flex: 1;
}
body.news .news_item h3 a {
  text-decoration: none;
}
body.news .news_item .news_item_date {
  margin-bottom: 1em;
  font-size: 0.8rem;
  font-weight: 700;
}
body.news .news_item .more_info {
  margin: 3rem 0 0;
}

body.projects .projects_list {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
body.projects .project_group {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(0, 3fr);
  gap: 1.5rem 2rem;
  align-items: start;
}
body.projects .project_category {
  margin: 0;
  color: #888;
  text-align: right;
  font-size: 1rem;
  font-weight: 700;
}
@media (max-width: 900px) {
  body.projects .project_category {
    margin-top: calc(var(--gap) * 2.5);
    text-align: left;
  }
}
body.projects .project_group_items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}
body.projects .project_group_items a {
  text-decoration: none;
}
body.projects .project_card h4 {
  margin-bottom: 0.3em;
  font-size: 1rem;
  font-family: "Work Sans", sans-serif;
  line-height: 1;
  font-weight: 700;
}
body.projects .project_card p {
  font-size: 1rem;
}
body.projects .project_card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: center;
  margin-bottom: 0.8rem;
}
body.projects .project_card .project_location {
  line-height: 1;
  margin-bottom: 0.3em;
}
body.projects .project_card .project_date, body.projects .project_card .project_date p {
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1;
}
@media (max-width: 900px) {
  body.projects .project_group {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  body.projects .project_group_items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  body.projects .project_group_items {
    grid-template-columns: 1fr;
  }
}

body.project .project_content_container {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  gap: var(--gap);
}
@media (max-width: 640px) {
  body.project .project_content_container {
    grid-template-columns: 1fr;
    gap: var(--gap);
  }
}
body.project .slideshow {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
}
body.project .slideshow figure.video-link {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}
body.project .slideshow iframe {
  aspect-ratio: 16/9;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: auto;
  border: none;
}
@media (max-width: 640px) {
  body.project .project_meta {
    display: flex;
    flex-direction: column;
    gap: calc(var(--gap) * 2);
  }
}
body.project .project_meta h3 {
  margin-top: 3rem;
}
body.project .project_meta h5 {
  margin-top: 3rem;
}
@media (max-width: 640px) {
  body.project .project_meta h5 {
    margin-top: 0;
  }
}
body.project .project_meta h5 + h3 {
  margin-top: 0;
}
body.project .project_meta div:first-of-type h5 {
  margin-top: 0;
}
body.project .project_meta_location,
body.project .project_meta_venue,
body.project .project_meta_year {
  font-family: "Zalando Sans Expanded", sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
}
body.project .project_meta_item.text_size_small {
  font-family: "Work Sans", sans-serif;
  font-weight: 400;
}
body.project .project_meta_item.text_size_large {
  font-family: "Zalando Sans Expanded", sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
}

.video_embed,
main figure:has(iframe) {
  width: 100%;
  max-width: 100%;
  margin: 1rem 0;
  aspect-ratio: 16/9;
}
.video_embed iframe,
main figure:has(iframe) iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

body.bio .bio_grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 1fr);
  grid-template: "video video" "content content"/minmax(240px, 1fr) minmax(0, 1fr);
  gap: var(--gap);
}
body.bio .bio_grid .bio_video {
  grid-area: video;
  margin-bottom: var(--gap);
}
body.bio .bio_grid .bio_content {
  grid-area: content;
  max-width: 700px;
}
body.bio .bio_layout_vertical {
  grid-template: "content video"/minmax(0, 1fr) minmax(240px, 1fr);
}
@media (max-width: 640px) {
  body.bio .bio_layout_vertical {
    grid-template: "video" "content"/minmax(0, 1fr);
  }
}
body.bio .bio_video iframe {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}
@media (max-width: 900px) {
  body.bio .bio_grid {
    grid-template-columns: 1fr;
  }
}

body.texts {
  line-height: 1.4;
}
body.texts h2 {
  font-size: 1.2rem;
}
body.texts .texts_grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 3fr);
  gap: var(--gap);
  align-items: start;
}
body.texts .texts_sidebar h2 {
  margin-top: 0;
}
body.texts .texts_sidebar {
  position: fixed;
  align-self: start;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  width: 196px;
}
@media (max-width: 640px) {
  body.texts .texts_sidebar {
    width: auto;
  }
}
body.texts .texts_sidebar ul {
  margin: 0.5rem 0;
  padding: 0;
}
body.texts .texts_sidebar li {
  list-style: none;
  margin: 0 0 0.8rem;
  line-height: 1.2;
}
body.texts .texts_sidebar a {
  font-weight: 600;
}
@media (max-width: 640px) {
  body.texts .texts_content h2 {
    margin: 0;
  }
}
body.texts .texts_content h4 {
  margin: 0 0 1rem;
}
body.texts .texts_list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0;
}
body.texts .texts_section {
  margin: 3rem 0 0;
}
body.texts .texts_section:first-of-type {
  margin-top: -3rem;
}
body.texts .texts_section:first-of-type .texts_group_separator {
  padding: 1rem 0 3rem;
}
body.texts .texts_group_separator {
  padding: 3rem 0;
  text-align: center;
}
body.texts .texts_group_separator img {
  display: block;
  margin: 0 auto;
  width: 90px;
  height: 90px;
}
body.texts .texts_section_blocks > *:first-child {
  margin-top: 0;
}
@media (max-width: 900px) {
  body.texts .texts_grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  body.texts .texts_sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }
}
body.texts .texts_back_to_top {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  padding: 0.5rem 1rem;
  opacity: 0;
  background: #000;
  color: #fff;
  font-weight: 800;
  pointer-events: none;
  transition: opacity 0.2s ease;
  text-decoration: none;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
}
body.texts .texts_back_to_top:hover {
  background: #fff;
  color: #000;
}
body.texts .texts_back_to_top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

body.text .text_page .text_content {
  width: 75%;
}

body.cv {
  line-height: 1.4;
}
body.cv h2 {
  font-size: 1.2rem;
}
body.cv h4:not(:first-of-type) {
  margin-top: 4rem;
}
body.cv .cv_grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 3fr);
  gap: var(--gap);
  align-items: start;
}
body.cv .cv_sidebar h2 {
  margin-top: 0;
}
body.cv .cv_sidebar {
  position: fixed;
  align-self: start;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  width: 196px;
}
@media (max-width: 640px) {
  body.cv .cv_sidebar {
    width: auto;
  }
}
body.cv .cv_sidebar ul {
  margin: 0.5rem 0;
  padding: 0;
}
body.cv .cv_sidebar li {
  list-style: none;
  margin: 0 0 0.8rem;
  line-height: 1.2;
}
body.cv .cv_sidebar a {
  font-weight: 600;
}
@media (max-width: 640px) {
  body.cv .cv_content h2 {
    margin: 0;
  }
}
@media (max-width: 900px) {
  body.cv .cv_grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  body.cv .cv_sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }
}
body.cv .cv_back_to_top {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  padding: 0.5rem 1rem;
  opacity: 0;
  background: #000;
  color: #fff;
  font-weight: 800;
  pointer-events: none;
  transition: opacity 0.2s ease;
  text-decoration: none;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
}
body.cv .cv_back_to_top:hover {
  background: #fff;
  color: #000;
}
body.cv .cv_back_to_top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

body.contact h5 {
  display: inline-flex;
  align-items: center;
  margin: 5rem 0 3rem;
  padding: 0.1em 0.5em;
  color: #fff;
  background: #000;
}
body.contact .contact_galleries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5rem var(--gap);
}
@media (max-width: 640px) {
  body.contact .contact_galleries {
    grid-template-columns: 1fr;
    gap: calc(var(--gap) * 2);
  }
}
body.contact .contact_gallery_item img {
  display: block;
  height: 30px;
  margin: 0 0 2.5rem;
}

::selection {
  background-color: #000;
  color: #fff;
}

.screen_reader_text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip_link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.skip_link:not(:focus):not(:focus-visible) {
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip_link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
