* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 36px 16px;
  background: #dda229 url("../images/achtergrond.png") repeat;
  color: #757575;
  font: 17px/1.42 Arial, Helvetica, sans-serif;
}

a { color: #007fae; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid #24738b;
  outline-offset: 3px;
}

.site {
  max-width: 1008px;
  margin: 0 auto;
  overflow: hidden;
  background: #fdfdfd;
}

.site-header {
  position: relative;
  padding-top: 22px;
}

.brand {
  display: block;
  width: min(411px, calc(100% - 40px));
  margin: 0 auto;
}

.brand img, .photo-stack img, .photo-pair img, .collection-preview img {
  display: block;
  max-width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 clamp(18px, 5vw, 55px);
  margin-top: 19px;
  padding-inline: 45px;
  border-block: 1px solid #e9ddd1;
  font-size: 17px;
}

.site-nav a {
  padding: 12px 0 9px;
  border-bottom: 2px solid transparent;
  color: #292723;
}

.site-nav a[aria-current="page"] {
  border-bottom-color: #a84613;
  color: #a84613;
  font-weight: bold;
}

.header-tools {
  position: absolute;
  top: 22px;
  right: 27px;
}

.header-contact {
  color: #a84613;
  font-size: 16px;
  font-weight: bold;
}

.content { padding: 32px 84px 96px 73px; }
.content h1, .content h2 { margin: 0 0 10px; color: #171717; font-size: 17px; }
.content p { margin: 0 0 10px; }
.description { font-style: italic; }
.contact-options { padding-left: 20px; line-height: 1.2; }
.phone { color: inherit; }
.contact-page { text-align: center; }
.contact-page h1, .workshops-page h1 { color: inherit; }
.contact-page h1 { font-weight: normal; }

.agenda-page { padding: 36px 45px 60px; }

.agenda-page h1 {
  margin-bottom: 24px;
  color: #292723;
  font-size: clamp(36px, 6vw, 52px);
  line-height: 1.15;
}

.agenda-layout {
  display: grid;
  grid-template-columns: minmax(0, 425fr) minmax(0, 438fr);
  gap: 54px;
  align-items: start;
}

.agenda-event {
  display: grid;
  grid-template-columns: minmax(82px, 26%) minmax(0, 1fr);
  gap: 12px;
  padding: 15px 0;
  border-top: 1px solid #e9ddd1;
}

.agenda-event .agenda-date {
  margin: 0;
  color: #a84613;
  font-size: 17px;
}

.agenda-details p {
  margin: 0 0 4px;
  color: #645e54;
  font-size: 15px;
}

.agenda-details p:first-child {
  color: #292723;
  font-size: 17px;
  font-weight: bold;
}

.collection-preview h2 {
  margin-bottom: 12px;
  color: #292723;
  font-size: 24px;
}

.collection-preview a {
  display: inline-block;
  color: #a84613;
  font-weight: bold;
}

.collection-preview img { margin-bottom: 12px; }

.collection-preview .agenda-note {
  margin: clamp(28px, 7vw, 76px) 0 0;
  color: #a84613;
  font-size: clamp(22px, 3vw, 27px);
  text-align: center;
  font-weight: bold;
}

.section-photos { margin-top: 44px; }
.photo-stack { display: grid; justify-items: center; gap: 10px; }
.photo-pair { display: flex; justify-content: center; gap: 4px; width: 100%; }
.photo-pair img { flex: 0 1 auto; min-width: 0; max-width: calc((100% - 4px) / 2); object-fit: contain; }
.fotos-page { padding: 36px 45px 60px; }

.fotos-page h1 {
  margin-bottom: 24px;
  color: #292723;
  font-size: clamp(36px, 6vw, 52px);
  line-height: 1.15;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.photo-link {
  display: block;
  border: 1px solid #e9ddd1;
  color: #292723;
}

.photo-link:hover {
  border-color: #a84613;
  color: #a84613;
  text-decoration: none;
}

.photo-link img {
  display: block;
  width: 100%;
  height: auto;
}

.gallery-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  font-weight: bold;
}

.gallery-caption span { color: #a84613; }

.photo-dialog {
  width: min(92vw, 870px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #fdfdfd;
  color: #292723;
}

.photo-dialog::backdrop { background: rgb(0 0 0 / 75%); }
.photo-dialog-content { padding: 12px; }
.photo-dialog form { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.photo-dialog figure { margin: 0; text-align: center; }

.photo-dialog img {
  display: block;
  width: 100%;
  max-height: 66vh;
  object-fit: contain;
}

.photo-dialog figcaption { margin-top: 8px; }

.photo-dialog-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.photo-dialog button {
  min-width: 42px;
  min-height: 42px;
  border: 1px solid #e9ddd1;
  background: #fdfdfd;
  color: #a84613;
  cursor: pointer;
  font: inherit;
}

.photo-dialog button:hover { background: #fff3e4; }

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

.site-footer {
  padding: 78px 48px 20px;
  border-top: 1px solid #ebebeb;
  background: #f7f7f7;
  color: #757575;
  text-align: right;
}
.site-footer span { color: #686868; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

@media (max-width: 700px) {
  body { padding: 20px 12px; }
  .site-header { padding-top: 44px; }
  .header-tools { top: 10px; right: 16px; }
  .site-nav { padding-inline: 16px; margin-top: 16px; }
  .agenda-layout { grid-template-columns: 1fr; gap: 30px; }
  .content, .agenda-page, .fotos-page { padding: 28px 20px 54px; }
  .site-footer { padding: 34px 20px 20px; text-align: center; font-size: 14px; }
}


.glasfusen-page {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr);
  gap: clamp(24px, 5vw, 54px);
  align-items: start;
  padding: 36px 45px 60px;
  color: #645e54;
}

.glas-intro h1 {
  margin-bottom: 20px;
  color: #292723;
  font-size: clamp(36px, 6vw, 52px);
  line-height: 1.15;
}

.glas-intro .glas-lead {
  margin-bottom: 18px;
  color: #a84613;
  font-size: clamp(21px, 3vw, 27px);
  font-weight: bold;
  line-height: 1.25;
}

.glas-technique {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e9ddd1;
}

.glas-technique h2 { font-size: 20px; }

.glas-workshops {
  display: inline-block;
  margin-top: 16px;
  color: #a84613;
  font-weight: bold;
}

.glas-slide { margin: 0 0 18px; }

.glas-slide img {
  display: block;
  width: 100%;
  height: auto;
}

.glas-slideshow.is-active .glas-slide img {
  aspect-ratio: 1;
  object-fit: contain;
}

.glas-slide figcaption { margin-top: 9px; }

.glas-controls:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.glas-position {
  min-width: 48px;
  text-align: center;
}

.glas-controls button {
  min-width: 42px;
  min-height: 42px;
  padding: 6px 12px;
  border: 1px solid #e9ddd1;
  background: #fdfdfd;
  color: #a84613;
  cursor: pointer;
  font: inherit;
}

.glas-controls button:hover { background: #fff3e4; }

@media (max-width: 700px) {
  .glasfusen-page {
    grid-template-columns: 1fr;
    padding: 28px 20px 54px;
  }
}

.contact-dialog {
  width: min(calc(100% - 32px), 420px);
  max-height: calc(100% - 32px);
  padding: 0;
  border: 1px solid #e9ddd1;
  border-radius: 6px;
  background: #fdfdfd;
  color: #292723;
}

.contact-dialog::backdrop { background: rgb(0 0 0 / 55%); }

.contact-dialog-content {
  position: relative;
  padding: 28px 46px;
  text-align: center;
  overflow-wrap: anywhere;
}

.contact-dialog h2 {
  margin: 0 0 14px;
  font-size: 27px;
}

.contact-dialog address {
  font-style: normal;
  line-height: 1.6;
}

.contact-dialog button {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #a84613;
  font-size: 25px;
  cursor: pointer;
}

.contact-dialog button:hover { background: #fff3e4; }
