/* Renate Gerritse — renategerritse.eu */
:root {
  --bg-deep: #0a1628;
  --panel: #ffffff;
  --ink: #1a1a1a;
  --muted: #666666;
  --nav: #f2f2f2;
  --nav-active: #d4a017;
  --accent: #c9a227;
  --max: 980px;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--bg-deep);
  background-image:
    linear-gradient(180deg, rgba(8, 16, 32, 0.55), rgba(6, 12, 24, 0.82)),
    url("../img/shared/background.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: #000;
  color: #fff;
}

.skip-link:focus {
  left: 0;
}

.page {
  width: min(100% - 1.5rem, var(--max));
  margin: 1.75rem auto 3rem;
}

.panel {
  background: var(--panel);
  min-height: 420px;
  padding: 1.5rem 1.5rem 2rem;
}

.panel__layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.brand {
  padding-top: 0.25rem;
}

.brand__name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.brand__role {
  margin: 0.35rem 0 1.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.42em;
  font-weight: 400;
  color: var(--ink);
}

.brand__page {
  margin: 2rem 0 0;
  font-size: 1.05rem;
  font-weight: 500;
}

.panel__main {
  min-width: 0;
}

/* Home slideshow */
.slideshow {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #111;
  overflow: hidden;
}

.slideshow__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.slideshow__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

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

.slideshow__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  color: #fff;
}

.slideshow__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
}

.slideshow__caption {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  opacity: 0.9;
}

.slideshow__controls {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 0.65rem;
}

.slideshow__btn {
  border: 1px solid #ccc;
  background: #f7f7f7;
  color: #333;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.slideshow__btn:hover {
  background: #eee;
}

/* Gallery category tabs */
.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.gallery-tabs a {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  background: #111;
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.gallery-tabs a.is-active {
  background: var(--accent);
  color: #111;
}

.gallery-tabs a:hover {
  opacity: 0.9;
}

/* Matrix gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #eee;
  cursor: zoom-in;
  border: 0;
  padding: 0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.04);
}

.gallery-item__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.45rem 0.5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
  font-size: 0.68rem;
  text-align: left;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-item:hover .gallery-item__label,
.gallery-item:focus-visible .gallery-item__label {
  opacity: 1;
}

/* Info page */
.info-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.info-portrait {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.info-copy p {
  margin: 0 0 0.9rem;
  font-size: 0.92rem;
  line-height: 1.55;
}

.info-copy h3 {
  margin: 1.4rem 0 0.6rem;
  font-size: 1rem;
  font-weight: 600;
}

.info-copy ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

.info-copy li {
  margin-bottom: 0.35rem;
}

/* Contact */
.contact-form {
  display: grid;
  gap: 0.65rem;
  max-width: 420px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #ddd;
  background: #f3f3f3;
  padding: 0.7rem 0.75rem;
  font: inherit;
  font-size: 0.92rem;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button {
  justify-self: end;
  border: 0;
  background: #888;
  color: #fff;
  padding: 0.45rem 1.1rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.contact-form button:hover {
  background: #666;
}

.contact-box {
  margin-top: 1.5rem;
  display: inline-block;
  background: #111;
  color: #fff;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
}

.agenda-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Site nav under panel */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.35rem;
  padding: 0.85rem 0.15rem 0.4rem;
  list-style: none;
  margin: 0;
}

.site-nav a {
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--nav-active);
}

.site-nav a.is-active {
  color: var(--nav-active);
}

.contact-note {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
}

.contact-note--ok {
  color: #1a6b1a;
}

.contact-note--err {
  color: #8a1f1f;
}

.site-footer {
  display: flex;
  justify-content: flex-end;
  padding: 0.5rem 0.15rem 0;
}

.site-footer p {
  margin: 0;
  max-width: 36rem;
  text-align: right;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.65rem;
  line-height: 1.4;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__inner {
  max-width: min(92vw, 980px);
  max-height: 90vh;
  text-align: center;
}

.lightbox__inner img {
  max-height: 78vh;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
}

.lightbox__caption {
  margin: 0.75rem 0 0;
  color: #fff;
  font-size: 0.95rem;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.5rem;
}

.lightbox__close {
  top: 0.75rem;
  right: 1rem;
}

.lightbox__prev {
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 800px) {
  .panel__layout {
    grid-template-columns: 1fr;
  }

  .brand__page {
    margin-top: 0.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .info-portrait {
    max-width: 260px;
  }

  .page {
    margin-top: 1rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
  }

  .site-nav {
    gap: 0.55rem 1rem;
  }
}
