/* Primary navigation is shared by the gallery and the photography portfolios. */
.header-container { position: relative; z-index: 3; }
.header-inner, .footer-inner { box-sizing: border-box; }
.header-right { gap: clamp(12px, 1.45vw, 26px); }
.header-right a { margin-left: 0; }
.nav-group { position: relative; }
.nav-group summary {
  display: flex;
  align-items: center;
  gap: .45em;
  cursor: pointer;
  list-style: none;
  color: #181818;
}
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::after {
  content: '';
  width: .37em;
  height: .37em;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: translateY(-.12em) rotate(45deg);
}
.nav-group[open] > summary::after { transform: translateY(.12em) rotate(225deg); }
.nav-links {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 11rem;
  background: white;
  border: 1px solid #dedede;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .1);
}
.nav-group:not([open]) > .nav-links { display: none; }
.header-right .nav-links a { display: block; padding: .6rem 1rem; white-space: nowrap; }
.nav-links a:hover, .nav-links a:focus-visible { background: #f4f4f4; }
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: .2em; }
.header-inner :is(a, summary, button):focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.portfolio-link { color: #252525; text-decoration: underline; text-underline-offset: .2em; }
.portfolio-link:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

@media (max-width: 1000px) {
  .header-inner { flex-wrap: wrap; width: 100%; gap: 0 .5rem; }
  .header-left { flex: 1 1 0; min-width: 0; }
  .header-container .menu-toggle {
    display: block;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    color: #181818;
  }
  .header-container:not(.nav-ready) .menu-toggle { display: none; }
  .header-right {
    display: none;
    flex: 0 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
  }
  .header-inner .header-right.open, .header-container:not(.nav-ready) .header-right {
    display: flex;
    gap: 0;
    padding: .5rem 0;
  }
  .header-right > a, .nav-group summary {
    display: flex;
    align-items: center;
    min-height: 44px;
    font-size: 1.1rem;
    box-sizing: border-box;
  }
  .nav-links {
    position: static;
    min-width: 0;
    border: 0;
    border-left: 1px solid #ccc;
    box-shadow: none;
    margin-left: .45em;
  }
  .header-right .nav-links a { padding: .55rem 1rem; }
}

.available-artworks:not(.photo-collection) .artwork-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  box-sizing: border-box;
}

@media (min-width: 769px) {
  :root {
    --portfolio-max: 1320px;
    --portfolio-span: 94%;
    --cover-image-max: 520px;
    --artist-header-max: 1560px;
    --artist-bio-max: 1060px;
    --artwork-size: 600px;
  }

  .container { max-width: 1920px; }
  main.container { width: 100%; box-sizing: border-box; }
  .slideshow-container { height: 90vh; }
  .slideshow-container .slide { width: 100%; height: 100%; object-fit: contain; }

  .collection-inner, .photo-grid { width: min(100%, 94vw); max-width: var(--portfolio-max); }
  .photo-series .artwork-row { max-width: 1160px; }
  .photo-series .row-industrial, .photo-series .row-architecture { max-width: var(--portfolio-max); }
  .photo-series .row-willow { max-width: 980px; }
  .photo-series .row-beauty { max-width: 440px; }
  .photo-series .artwork-item img { max-height: 640px; }
  .photo-series :is(.row-willow, .row-beauty, .row-architecture) img { max-height: none; }

  .artist-header img[alt$="artwork"] { max-width: 700px; max-height: 800px; }
  .available-artworks:not(.photo-collection) .artwork-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(32px, 5vw, 88px);
    width: min(100%, var(--portfolio-max));
    margin-inline: auto;
  }
  .available-artworks:not(.photo-collection) .artwork-item { min-width: 0; }
  .form-subscribe { max-width: 720px; }
  .form-contact.wider { max-width: 820px; }
  .form-subscribe .input-field { width: min(100%, 20rem); }
  .featured-video > .container { width: 100%; box-sizing: border-box; }
  .featured-video-player { max-width: 1260px; }
  .exhibit-carousel { max-width: 1480px; }
  .exhibit-carousel__slide img { height: min(83vh, 800px); }
  .lo-video { max-width: 1140px; }
  .lo-grid { width: 100%; max-width: 1560px; }
  .lo-thumb { width: min(340px, 100%); }
  section.chart-section > div, section.chart-section h1 { max-width: 700px; }
}

@media (max-width: 768px) {
  .container, .form-wrapper { box-sizing: border-box; }
}

.footer-inner {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(8px, 2vw, 24px);
  text-align: left;
}
.footer-right { display: flex; align-items: center; gap: 10px; }
.footer-right a { display: inline-flex; align-items: center; min-height: 32px; margin: 0; }
