:root {
  --header-height: 65px;
  --border-color: #dedede;
  --text-color: #333;
  --muted-color: #a8a8a8;
  --page-background: #fff;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page-background);
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--page-background);
  color: var(--text-color);
  font: 400 13px/1.8 "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

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

[hidden] {
  display: none !important;
}

.copyright-notice {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  color: #999;
  font: 13px/1.4 Arial, sans-serif;
}

/* Bottom navigation */
.site-header {
  position: fixed;
  z-index: 100;
  right: 0;
  bottom: 0;
  left: 0;
  height: var(--header-height);
  border-top: 1px solid var(--border-color);
  background: #fff;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding-right: 72px;
}

.site-logo {
  flex: 0 0 auto;
  width: 300px;
  margin-left: 35px;
  color: #333;
  font-family: "aviano-flare", "Copperplate", "Copperplate Gothic Light", serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 5px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.desktop-navigation {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  margin-left: 33px;
  color: var(--muted-color);
  font-family: "aviano-flare", "Copperplate", "Copperplate Gothic Light", serif;
  font-size: 15px;
  letter-spacing: 2.2px;
  line-height: 1;
}

.wf-active .site-logo {
  font-size: 17px;
  letter-spacing: 2px;
}

.wf-active .desktop-navigation {
  font-size: 13px;
  letter-spacing: 0;
}

.desktop-navigation > a,
.gallery-menu > button {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.desktop-navigation > a:hover,
.desktop-navigation > a:focus-visible,
.gallery-menu > button:hover,
.gallery-menu > button:focus-visible {
  border-bottom-color: #000;
  color: #000;
  outline: 0;
}

.desktop-navigation .is-active,
.gallery-menu.is-active > button {
  color: #333;
}

.gallery-menu {
  position: relative;
  height: 100%;
}

.gallery-submenu {
  position: absolute;
  bottom: calc(100% - 1px);
  left: -16px;
  display: grid;
  min-width: 154px;
  padding: 10px 0;
  border: 1px solid var(--border-color);
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.gallery-menu:hover .gallery-submenu,
.gallery-menu:focus-within .gallery-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.gallery-submenu a {
  padding: 8px 16px;
  color: var(--muted-color);
  white-space: nowrap;
}

.gallery-submenu a:hover,
.gallery-submenu a:focus-visible,
.gallery-submenu a.is-active {
  color: #000;
  outline: 0;
}

.instagram-link {
  position: absolute;
  top: 50%;
  right: 96px;
  width: 20px;
  height: 20px;
  color: var(--muted-color);
  transform: translateY(-50%);
  transition: color 180ms ease;
}

.content-page .instagram-link {
  right: 25px;
}

.instagram-link:hover,
.instagram-link:focus-visible {
  color: #000;
  outline: 0;
}

.instagram-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.gallery-index-toggle {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  width: 72px;
  height: 100%;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--border-color);
  background: #fff;
  color: var(--muted-color);
  cursor: pointer;
  place-items: center;
}

.gallery-index-toggle:hover,
.gallery-index-toggle:focus-visible {
  color: #000;
  outline: 0;
}

.grid-icon {
  display: grid;
  grid-template-columns: repeat(2, 7px);
  gap: 4px;
}

.grid-icon i {
  width: 7px;
  height: 7px;
  border: 2px solid currentColor;
}

.close-icon {
  position: relative;
  display: none;
  width: 25px;
  height: 25px;
}

.close-icon::before,
.close-icon::after {
  position: absolute;
  top: 12px;
  left: 1px;
  width: 23px;
  height: 1px;
  background: currentColor;
  content: "";
}

.close-icon::before {
  transform: rotate(45deg);
}

.close-icon::after {
  transform: rotate(-45deg);
}

.gallery-index-open .grid-icon {
  display: none;
}

.gallery-index-open .close-icon {
  display: block;
}

.mobile-menu-toggle,
.mobile-navigation {
  display: none;
}

/* Fullscreen slideshow */
.gallery-page {
  height: 100%;
  overflow: hidden;
}

.gallery-shell,
.gallery-stage,
.gallery-index {
  position: fixed;
  inset: 0 0 var(--header-height);
}

.gallery-stage {
  overflow: hidden;
  background: #fff;
}

.gallery-slide {
  position: absolute;
  inset: 50px;
  display: flex;
  margin: 0;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms cubic-bezier(.55, .085, .68, .53);
}

.gallery-slide.is-active {
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
}

.gallery-slide img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
}

.gallery-arrow {
  position: fixed;
  z-index: 10;
  top: calc((100vh - var(--header-height)) / 2 - 20px);
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #333;
  cursor: pointer;
  opacity: 0;
  transition: opacity 180ms ease, color 180ms ease;
}

.gallery-shell:hover .gallery-arrow,
.gallery-arrow:focus-visible {
  opacity: 1;
}

.gallery-arrow:hover {
  color: #000;
}

.gallery-arrow-previous {
  left: 25px;
}

.gallery-arrow-next {
  right: 20px;
}

.gallery-arrow span {
  position: absolute;
  top: 10px;
  width: 20px;
  height: 20px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
}

.gallery-arrow-previous span {
  left: 13px;
  transform: rotate(-135deg);
}

.gallery-arrow-next span {
  right: 13px;
  transform: rotate(45deg);
}

.gallery-index {
  z-index: 20;
  overflow-y: auto;
  padding: 35px 35px 100px;
  background: #fff;
}

.gallery-index h2 {
  margin: 0 0 18px;
  font-family: "english-small-caps", "Copperplate", serif;
  font-size: 22px;
  font-weight: 400;
}

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.gallery-thumbnail {
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #f2f2f2;
  cursor: pointer;
  transition: opacity 200ms ease;
}

.gallery-thumbnail:hover,
.gallery-thumbnail:focus-visible {
  opacity: .3;
  outline: 0;
}

.gallery-thumbnail.is-active {
  box-shadow: inset 0 0 0 2px #333;
}

.gallery-thumbnail img {
  position: relative;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* About and contact pages */
.content-page {
  padding-bottom: var(--header-height);
}

.page-frame {
  width: 1000px;
  max-width: 100%;
  min-height: calc(100vh - var(--header-height));
  margin: 0 auto;
  padding: 100px 52px 52px;
  background: #fff;
}

.page-title,
.about-copy h2 {
  color: #333;
  font-family: "english-small-caps", "Copperplate", "Copperplate Gothic Light", serif;
  font-size: 34px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
}

.page-title {
  margin: 0 0 64px;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
}

.about-photo {
  margin: 0;
}

.about-photo img {
  width: 100%;
  height: auto;
}

.about-copy h2 {
  margin: 0 0 30px;
}

.about-copy p {
  margin: 0 0 12px;
  color: #999;
}

.about-copy a:hover,
.about-copy a:focus-visible {
  color: #333;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 55px;
}

.instagram-grid a {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.instagram-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instagram-grid a:hover img {
  opacity: .85;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 25px solid rgba(255, 255, 255, .9);
  transform: translate(-40%, -50%);
}

.page-copy {
  color: #999;
}

@media (max-width: 1024px) {
  .thumbnail-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 736px) {
  :root {
    --header-height: 45px;
  }

  .copyright-notice {
    font-size: 13px;
  }

  .header-inner {
    justify-content: center;
    padding: 0 54px;
  }

  .site-logo {
    width: auto;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    font-size: 20px;
    text-align: center;
    text-overflow: ellipsis;
  }

  .wf-active .site-logo {
    font-size: 16px;
  }

  .desktop-navigation,
  .instagram-link {
    display: none;
  }

  .mobile-menu-toggle {
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    width: 54px;
    height: 44px;
    padding: 12px 16px;
    border: 0;
    background: transparent;
    cursor: pointer;
    place-content: center;
    gap: 5px;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--muted-color);
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .mobile-menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .gallery-index-toggle {
    width: 54px;
    border-left: 0;
  }

  .mobile-navigation {
    position: fixed;
    z-index: -1;
    inset: auto 0 var(--header-height);
    display: grid;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    border-top: 1px solid var(--border-color);
    background: #fff;
  }

  .mobile-navigation a,
  .mobile-navigation > span {
    min-height: 44px;
    padding: 9px 17px;
    border-bottom: 1px solid var(--border-color);
    color: var(--muted-color);
    font-size: 18px;
    line-height: 25px;
  }

  .mobile-navigation a.nested {
    padding-left: 35px;
  }

  .mobile-navigation a:hover,
  .mobile-navigation a:focus-visible,
  .mobile-navigation a.is-active {
    color: #333;
    outline: 0;
  }

  .mobile-menu-open {
    overflow: hidden;
  }

  .gallery-slide {
    inset: 0;
  }

  .gallery-arrow {
    top: calc((100vh - var(--header-height)) / 2 - 20px);
    opacity: 1;
  }

  .gallery-arrow-previous {
    left: 5px;
  }

  .gallery-arrow-next {
    right: 0;
  }

  .gallery-index {
    padding: 15px 15px 70px;
  }

  .gallery-index h2 {
    margin-bottom: 15px;
    font-size: 24px;
  }

  .thumbnail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
  }

  .page-frame {
    min-height: calc(100vh - var(--header-height));
    padding: 16px;
  }

  .page-title {
    margin-bottom: 35px;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-copy h2 {
    font-size: 28px;
  }

  .instagram-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 35px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
