.hero-photo {
  background-image: url("hero-stadhuis-0036.webp");
}

.nav-toggle {
  display: none;
}

.footer-email {
  color: #d7ae5c;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: lowercase;
  transition: color .2s ease;
}

.footer-email:hover,
.footer-email:focus-visible {
  color: #fff;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

footer {
  grid-template-columns: 1fr auto 1fr;
}

footer > .share-control {
  justify-self: center;
}

.footer-meta {
  justify-self: end;
}

.share-control {
  position: relative;
}

.footer-privacy {
  padding: 0;
  border: 0;
  background: transparent;
  color: #595955;
  font-size: 8px;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: .75;
}

.footer-share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 10px;
  border: 1px solid #b9965a;
  background: rgba(215, 174, 92, .08);
  color: #d7ae5c;
  font-size: 9px;
  letter-spacing: .17em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.footer-share:hover,
.footer-share:focus-visible,
.footer-share[aria-expanded="true"] {
  border-color: #d7ae5c;
  background: #d7ae5c;
  color: #071b30;
}

.share-icon {
  position: relative;
  display: inline-block;
  width: 17px;
  height: 15px;
  flex: 0 0 17px;
}

.share-icon::before,
.share-icon::after {
  content: "";
  position: absolute;
  left: 4px;
  width: 9px;
  height: 1px;
  background: currentColor;
  transform-origin: left center;
}

.share-icon::before {
  top: 6px;
  transform: rotate(-25deg);
}

.share-icon::after {
  top: 8px;
  transform: rotate(25deg);
}

.share-icon i {
  position: absolute;
  z-index: 1;
  display: block;
  width: 5px;
  height: 5px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: #071b30;
}

.footer-share:hover .share-icon i,
.footer-share:focus-visible .share-icon i,
.footer-share[aria-expanded="true"] .share-icon i {
  background: #d7ae5c;
}

.share-icon i:nth-child(1) { top: 5px; left: 0; }
.share-icon i:nth-child(2) { top: 0; right: 0; }
.share-icon i:nth-child(3) { right: 0; bottom: 0; }

.footer-privacy:hover,
.footer-privacy:focus-visible {
  color: #b9965a;
  opacity: 1;
}

.share-menu {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: calc(100% + 13px);
  display: grid;
  width: 190px;
  padding: 9px;
  border-top: 2px solid #bf8b32;
  background: #f2efe8;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .28);
  color: #171715;
  transform: translateX(-50%);
}

.share-menu a,
.share-menu button {
  display: block;
  width: 100%;
  padding: 10px 11px;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  letter-spacing: .14em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.share-menu a:hover,
.share-menu a:focus-visible,
.share-menu button:hover,
.share-menu button:focus-visible {
  background: #e6dfd1;
  color: #8f682a;
}

.share-status {
  min-height: 14px;
  padding: 4px 11px 2px;
  color: #8f682a;
  font-size: 9px;
}

.portfolio-contact {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 42px 6vw 46px;
  border-top: 1px solid rgba(191, 139, 50, .65);
  border-bottom: 1px solid rgba(191, 139, 50, .28);
  background:
    radial-gradient(circle at 72% 45%, rgba(39, 79, 113, .38), transparent 43%),
    #071b30;
}

.portfolio-contact > span {
  grid-column: 1 / -1;
  color: #d7ae5c;
  font-size: 9px;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.portfolio-contact p {
  grid-column: 1;
  margin: 0;
  color: #f2efe8;
  font-family: 'Italiana', serif;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.15;
  text-align: center;
}

.portfolio-contact button {
  grid-row: 3;
  grid-column: 1;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid #d7ae5c;
  background: transparent;
  color: #f2efe8;
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.portfolio-contact button:hover,
.portfolio-contact button:focus-visible {
  color: #d7ae5c;
}

.contact-privacy button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.privacy-panel {
  width: min(760px, 100%);
}

.privacy-copy {
  color: #39372f;
  font-size: 14px;
  line-height: 1.7;
}

.privacy-copy h3 {
  margin: 24px 0 4px;
  color: #9a712d;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.privacy-copy p {
  margin: 0 0 10px;
}

.privacy-copy a {
  color: #9a712d;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-date {
  margin-top: 28px !important;
  color: #777168;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #d7ae5c;
  outline-offset: 3px;
}

.admin-backup {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid rgba(17, 17, 15, .18);
}

.admin-backup > p:not(.message) {
  margin: 12px 0 18px;
  color: #746e63;
  font-size: 11px;
  line-height: 1.55;
}

.primary.secondary {
  background: #3a352d;
}

.lightbox {
  overflow: auto;
  overscroll-behavior: contain;
}

.lightbox figure {
  max-height: calc(100dvh - 64px);
  justify-content: center;
}

.lightbox figure img {
  max-height: calc(100dvh - 150px);
}

.lightbox-meta {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.lightbox-meta figcaption {
  width: auto;
  margin: 0;
}

.lightbox-share {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(215, 174, 92, .7);
  background: rgba(215, 174, 92, .06);
  color: #d7ae5c;
  font-size: 8px;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.lightbox-share .share-icon {
  width: 15px;
  height: 13px;
  flex-basis: 15px;
}

.lightbox-share .share-icon i {
  width: 4px;
  height: 4px;
  background: #11110f;
}

.lightbox-share:hover,
.lightbox-share:focus-visible {
  background: #d7ae5c;
  color: #11110f;
}

.lightbox-share:hover .share-icon i,
.lightbox-share:focus-visible .share-icon i {
  background: #d7ae5c;
}

.lightbox-nav {
  position: fixed;
  z-index: 2;
  top: 50%;
  width: 48px;
  height: 64px;
  border: 0;
  background: rgba(0, 0, 0, .32);
  color: #fff;
  font-family: "Italiana", serif;
  font-size: 42px;
  line-height: 1;
  transform: translateY(-50%);
}

.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-nav:disabled { display: none; }
.modal-open { overflow: hidden; }

@media (max-width: 760px) {
  footer {
    grid-template-columns: 1fr auto;
  }

  footer > .share-control {
    grid-row: 2;
    grid-column: 1 / -1;
  }

  .portfolio-contact {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 30px 20px 34px;
  }

  .portfolio-contact button {
    grid-row: 3;
    grid-column: 1;
    justify-self: end;
  }

  .hero-photo {
    background-image: url("hero-stadhuis-0036-mobile.webp");
    background-position: center;
  }

  .nav-toggle {
    position: relative;
    z-index: 3;
    display: grid;
    width: 42px;
    height: 42px;
    padding: 12px 8px;
    border: 0;
    background: transparent;
    color: #fff;
    place-content: center;
    gap: 7px;
  }

  .nav-toggle span {
    display: block;
    width: 24px;
    height: 1px;
    background: currentColor;
    transition: transform .2s ease;
  }

  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .nav nav {
    position: absolute;
    z-index: 2;
    top: 78px;
    right: 0;
    left: 0;
    display: none;
    padding: 24px 20px 28px;
    border-top: 1px solid rgba(255, 255, 255, .18);
    background: rgba(5, 23, 42, .96);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
  }

  .nav.is-open nav { display: flex; }
  .nav nav a { display: block; }
  .nav nav .nav-contact { font-size: 11px; }

  .lightbox {
    align-items: center;
    padding: 54px 8px 18px;
  }

  .lightbox figure {
    width: 100%;
    max-width: 100%;
    max-height: calc(100dvh - 72px);
  }

  .lightbox figure img {
    max-width: 100%;
    max-height: calc(100dvh - 205px);
  }

  .lightbox-meta {
    gap: 9px 13px;
    flex-wrap: wrap;
  }

  .lightbox figcaption {
    max-height: 90px;
    overflow: auto;
    font-size: 18px;
    line-height: 1.25;
  }

  .lightbox-nav {
    top: auto;
    bottom: 12px;
    width: 42px;
    height: 46px;
    transform: none;
  }

  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }

  .privacy-panel {
    padding-top: 48px;
  }

  .privacy-panel h2 {
    font-size: 39px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav-toggle span { transition: none; }
}
