html, body {
  margin: 0;
  padding: 0;
  color: #001a36;
  font-family: Cairo, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.67;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-rendering: geometricPrecision;
}

body::after {
  content: "";
  display: table;
  height: 0px;
}

h1, p {
  margin: 0 0 1em
}

@media (max-width: 572px) {
  p, .tooltip {
    font-size: 16px;
  }
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-container {
  height: 84px;
  position: relative;
  margin: 0 auto 0 auto;
  padding-left: 40px;
  padding-right: 40px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

@media (min-width: 960px) {
  .header .header-container {
    justify-content: space-between;
  }
}

.logo-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  height: 44px;
  width: auto;
  display: block; /* remove baseline gap and center vertically */
}

.navbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

/* Always hide off-canvas close button by default (desktop view) */
.nav-close {
  display: none;
}

/* Hamburger base (hidden by default on large screens) */
.hamburger {
  display: none;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.hamburger .hamburger-bar {
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.2s ease, bottom 0.2s ease;
}
.hamburger.is-open .hamburger-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.is-open .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.hamburger.is-open .hamburger-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
.hamburger:focus {
  outline: 2px solid #2668ad;
  outline-offset: 2px;
}
.hamburger-bar {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background-color: #2668ad; /* site blue */
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Mobile / narrow layout */
@media (max-width: 900px) {
  .header .header-container {
    justify-content: space-between;
  }
  .hamburger {
    display: inline-block;
  }
  /* Off-canvas panel */
  .navbar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 80vw;
    max-width: 360px;
    background: #fff;
    box-shadow: -2px 0 12px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1200;
    display: block;
    padding-top: 84px; /* below fixed header */
  }
  .navbar.open {
    transform: translateX(0);
  }
  .navbar .nav-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #2668ad;
    cursor: pointer;
    display: none; /* hidden when panel is closed */
  }
  .navbar.open .nav-close { display: block; }
  .navbar ul {
    padding: 12px 0;
    margin: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
  }
  .navbar li {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
  }
  
  .navbar li.active > a {
    font-weight: 700; /* bold current page */
    color: #2668ad; /* keep default color */
  }
  .navbar li:last-child {
    border-bottom: none;
  }
  .contact-button {
    display: none; /* use plain contact link inside menu */
  }
  /* Backdrop for off-canvas */
  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1100;
    display: none;
  }
  .nav-backdrop.open {
    display: block;
  }
}

.navbar ul {
  margin: 1em 0 .5em;
  text-align: center;
  padding: 0px;
}

ul.navbar-list {
  margin: 0px;
}

.navbar li {
  display: inline;
  border-bottom-style: solid;
  border-bottom-color: #2668ad;
  border-width: 0px;
  text-align: -webkit-match-parent;
  padding-bottom: 24px;
}

.tablink:hover {
  color: #2668ad;
  border-bottom-width: 2px;
}

.navbar li.active {
  color: #001a36;
}

@media (max-width: 638px) {
  .navbar li.active {
    color: #2668ad;
    border-bottom-width: 0px;
  }
  .tablink:hover {
    color: #2668ad;
    border-bottom-width: 0px;
  }
  .navbar {
    flex: 0 0 50.1%;
  }
  .header .header-container {
    padding-bottom: 8px;
  }
}

.navbar a {
  display: inline-block;
  padding: 0em 1.5em;
}

/* Desktop-only styling for "Direct contact" as blue button */
@media (min-width: 901px) {
  .navbar li.contact-link {
    padding-bottom: 0;
    border-bottom-width: 0;
  }
  .navbar li.contact-link a {
    background: #2668ad;
    color: #fff;
    border-radius: 10px;
    line-height: 44px;
    padding: 0 20px;
    font-weight: 600;
  }
  .navbar li.contact-link a:hover,
  .navbar li.contact-link a:focus {
    background: #3d74af;
    color: #fff;
  }
}

.contact-button {
  display: inline-flex;
  background-color: #2668ad;
  color: #fff;
  justify-content: center;
  text-align: center;
  line-height: 48px;
  font-size: 18px;
  font-weight: 600;
}

.contact-button a {
  padding-bottom: 0px;
}

.contact-button:hover {
  background-color: #3d74af;
}

@media (max-width: 812px) {
  .contact-button {
    display: none !important;
  }
}

.body-wrap {
  z-index: 0;
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
  margin-top: 84px;
  padding-top: 0;
}

body.has-breadcrumbs .body-wrap {
  margin-top: 120px;
}

.sectie_begin {
  max-width: 780px;
  margin: 50px auto 50px auto;
  padding: 15px;
  /* background: rgba(255, 255, 255, 0.8); */
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

.sectie {
  display: block;
  max-width: 780px;
  margin: 50px auto 50px auto;
  padding: 15px;
  /* background: rgba(255, 255, 255, 0.8); */
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

.sectie_alt {
  display: block;
  max-width: 780px;
  margin: 50px auto 50px auto;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background-color: #f2f6fa;
  backdrop-filter: blur(10px);
}

.sectie_eind {
  max-width: 780px;
  margin: 50px auto 0px auto;
  padding: 15px;
  /* background: rgba(255, 255, 255, 0.8); */
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

.sectie_container {
  background-color: #f2f6fa;
  padding-top: 50px;
  padding-bottom: 50px;
}

.sectie_contact {
  max-width: 780px;
  margin: 0px auto 0px auto;
  padding: 15px;

}

@media (max-width: 960px) {
  .sectie {
    width: 70%;
    margin: 25px auto 25px auto;
  }
}

@media (max-width: 572px) {
  .sectie {
    width: 80%;
    margin: 25px auto 25px auto;
  }
}

@media (max-width: 960px) {
  .sectie_begin {
    width: 70%;
    margin: 25px auto 25px auto;
  }
}

@media (max-width: 572px) {
  .sectie_begin {
    width: 80%;
    margin: 0px auto 25px auto;
  }
}

@media (max-width: 960px) {
  .sectie_eind {
    width: 70%;
    margin: 25px auto 0px auto;
  }
}

@media (max-width: 572px) {
  .sectie_eind {
    width: 80%;
    margin: 25px auto 0px auto;
  }
}

@media (max-width: 960px) {
  .sectie_contact {
    width: 70%;
  }
}

@media (max-width: 572px) {
  .sectie_contact {
    width: 80%;
  }
}

.tekst {
  padding-left: 20px;
  padding-right: 20px;
}

.tekst h1, .tekst p {
  display: inline;
}

.tekst h1 {
  margin-right: 25px;
  line-height: 1.2;
}

@media (max-width: 572px) {
  #tab-start h2 {
    font-size: 24px;
  }
}

#hero {
  /* height: 50vh; */
  background-image: linear-gradient(270deg, hsla(0, 0%, 100%, 0), hsla(0, 0%, 100%, .15) 49%, hsla(0, 0%, 100%, .77) 78%, hsla(0, 0%, 100%, .9)), url('../img/hero.webp');
  background-repeat: no-repeat;
  background-size: cover;
}

#hero h1 {
  font-size: 48px;
  line-height: 1.12;
}

@media (max-width: 572px) {
  #hero h1 {
    font-size: 36px;
    line-height: 1.12;
  }
}

.overlay {
  height: 50vh;
  max-width: 780px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  align-items: center;
  text-align: center;
}

.overlay h1{
  margin-top: 20px;
}

@media (max-width: 960px) {
  .overlay {
    width: 70%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 572px) {
  .overlay {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
  }
}

#tab-nagalmtijd {
  min-height: 100vh;
  box-sizing: border-box;
  background: url(../img/HGH_atrium.jpg) no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  transition: background 0.5s ease-out;
  padding-bottom: 50px;
}

#tab-geluidsisolatie {
  min-height: 100vh;
  box-sizing: border-box;
  background: url(../img/background_isolatie.jpg) no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  padding-bottom: 50px;
}

.flex-container-start {
  display: flex;
  flex-wrap: wrap;
  align-content: space-between;
  align-items: top;
  justify-content: center;
  margin-top: -95px;
  flex: 0 0 25.1%;
}

@media (max-width: 572px) {
  .flex-container-start {
    margin-top: -70px;
  }
}

.flex-container-start p {
  text-align: center;
}

.flex-container {
  display: flex;
  flex-wrap: wrap;
  align-content: space-between;
  align-items: top;
  justify-content: center;
}

.flex-container2 {
  display: flex;
  flex-wrap: wrap;
  align-content: space-between;
  align-items: top;
  justify-content: center;
}

.flex-wrap1 {
  background-color: rgb(255, 255, 255);
  border-color: rgb(238, 238, 238);
  border-style: solid;
  border-radius: 8px;
  border-width: 2px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
  margin-top: 5px;
  margin-bottom: 5px;
  margin-left: 10px;
  margin-right: 10px;
  z-index: 0;
  transition: all .2s ease-in-out;
  text-align: center;
}

.flex-wrap2 {
  background-color: rgb(255, 255, 255);
  border-color: rgb(238, 238, 238);
  border-style: solid;
  border-radius: 8px;
  border-width: 2px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
  margin-top: 10px;
  margin-bottom: 30px;
  margin-left: 5px;
  margin-right: 5px;
  z-index: 0;
  transition: all .2s ease-in-out;
  text-align: center;
  flex: 0 0 25.1%;
}

.flex-wrap3 {
  background-color: rgb(255, 255, 255);
  border-color: rgb(238, 238, 238);
  border-style: solid;
  border-radius: 8px;
  border-width: 2px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
  margin-top: 5px;
  margin-bottom: 5px;
  margin-left: 5px;
  margin-right: 5px;
  z-index: 0;
  transition: all .2s ease-in-out;
  text-align: center;
  flex: 0 0 25.1%;
}

.flex-wrap4 {
  background-color: rgb(255, 255, 255);
  border-color: rgb(238, 238, 238);
  border-style: solid;
  border-radius: 8px;
  border-width: 2px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
  margin-top: 10px;
  margin-bottom: 30px;
  margin-left: 5px;
  margin-right: 5px;
  z-index: 0;
  transition: all .2s ease-in-out;
  text-align: center;
  flex: 0 0 25.1%;
}

.flex-wrap5 {
  background-color: rgb(255, 255, 255);
  border-color: rgb(238, 238, 238);
  border-style: solid;
  border-radius: 8px;
  border-width: 2px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
  margin-top: 5px;
  margin-bottom: 5px;
  margin-left: 5px;
  margin-right: 5px;
  z-index: 0;
  transition: all .2s ease-in-out;
  text-align: center;
  flex: 0 0 25.1%;
}

.flex-wrap1:hover, .flex-wrap2:hover, .flex-wrap3:hover, .flex-wrap4:hover, .flex-wrap5:hover {
  transform: scale(1.05);
  z-index: 15;
}

.flex-wrap-contact {
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  flex-wrap: wrap;
  flex-direction: column;
  background-color: #fff;
  border: 2px solid #eee;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
  margin: 64px 10px 10px 10px;
  z-index: 0;
}

.contact-card-head, .contact-card-body, .contact-card-foot {
  display: flex;
  position: relative;
  padding: 16px;
}

.contact-card-body {
  flex-direction: column;
}

.contact-card-body p {
  color: #b2b2b2;
}

.contact-card-body h3 a:hover {
  color: #2668ad;
}

.contact-card-foot {
  line-height: 1.67;
  border-top: 2px solid #eee;
}

.contact-card-foot>* {
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
}

.contact-card-foot a:hover {
  color: #2668ad;
}

.contact-card-foot>:first-child {
  text-align: left;
  margin-right: 20px;
}

.contact-card-foot>:last-child {
  text-align: right;
}

@media (max-width: 572px) {
  .contact-card-head, .contact-card-body, .contact-card-foot {
    font-size: 14px;
    padding: 12px;
  }
}


.avatar {
  border: 2px solid #eee;
  border-radius: 50%;
  height: 128px;
  margin: -64px auto auto;
  width: 128px;
}

.avatar img {
  border-radius: inherit;
  font-family: object-fit\: cover;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  width: 100%;
}

.audio_container {
  display: flex;
  flex-wrap: wrap;
  align-content: space-between;
  align-items: top;
  justify-content: center;
  margin-top: 20px;
}

@media (max-width: 572px) {
  audio {
    width: 240px;
    height: 40px;
  }
}

@media (max-width: 572px) {
  .flex-wrap1 p, .flex-wrap2 p, .flex-wrap3 p, .flex-wrap4 p, .flex-wrap5 p{
    font-size: 14px;
  }
}

.label {
  margin: 0px;
}

.onderschrift {
  font-size: 12px;
  font-weight: 400;
}

.unselected {
  border-color: rgb(238, 238, 238);
  z-index: 0;
}

.selected {
  border-color: rgb(30, 144, 255);
  z-index: 10;
}

.hidden {
  display: none;
}

.visible {
  display: visible;
}

.foot1, .foot2 {
  position: fixed;
  display: inline;
  background: rgba(72, 72, 72, 0.8);
  bottom: 0px;
  height: 22px;
  padding-left: 10px;
  padding-right: 10px;
  color: white;
  font-weight: 200;
  font-size: 14px;
}

@media (max-width: 572px) {
  .foot1, .foot2 {
    font-size: 12px;
  }
}

.foot1 a:hover, .foot2 a:hover {
  font-weight: 400;
}

.footer {
  margin: 30px 0;
}

.footer-container {
  padding-left: 40px;
  padding-right: 40px;
  display: flex;
  justify-content: center;
}

.footer-left, .footer-right {
  align-items: center;
  padding-left: 10px;
  padding-right: 10px;
}

.footer-left p {
  line-height: 44px;
}

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

p {
  margin: 0 0 10px;
}

h1, h2 {
  color: inherit;
  font-family: Cairo, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif;
  font-weight: 700;
  margin: 0 0 20px;
  text-transform: none;
}

h2 {
  font-size: 36px;
  line-height: 1.3;
}

h2:after {
  background-color: #146cc9;
  content: "";
  display: block;
  height: 2px;
  margin-top: 16px;
  width: 53px;
}

h3 {
  color: inherit;
  font-family: Cairo, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif;
  font-weight: 600;
  margin: 0 0 0px;
  text-transform: none;
}

.material-icons {
  font-size: 20px !important;
  vertical-align: middle !important;
  margin-right: 5px !important;
}

audio::-webkit-media-controls-mute-button {
  display: none !important;
}

audio::-webkit-media-controls-volume-slider {
  display: none !important;
}

/* TOOLTIPS */
.tooltip {
  position: relative;
  display: inline-block;
  line-height: 1.4;
  border-bottom: 1px dotted black;
}

.tooltip .tooltiptekst {
  visibility: hidden;
  width: 360px;
  background-color: #fff;
  font-size: 12px;
  color: #001a36;
  text-align: left;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  padding: 5px 0;
  position: absolute;
  z-index: 50;
  top: 125%; /* UP/DOWN */
  left: 50%;
  margin-left: -180px;
  opacity: 0;
  transition: opacity 0.3s;
  padding: 10px;
}

#isolatie .tekst .tooltip .tooltiptekst {
  width: 420px;
}

@media (max-width: 572px) {
  .tooltip .tooltiptekst {
    width: 250px;
    margin-left: -90px;
  }
}

@media (max-width: 572px) {
  #isolatie .tekst .tooltip .tooltiptekst {
    width: 320px;
    margin-left: -110px;
  }
}

.tooltip .tooltiptekst a {
  color: #146cc9;
}

.tooltip .tooltiptekst a:hover {
  text-decoration: underline;
}

.tooltip .tooltiptekst::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: rotate(180deg);
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #f2f6fa transparent transparent transparent;
}

.tooltip:hover .tooltiptekst {
  visibility: visible;
  opacity: 1;
}

/* --- BREADCRUMBS --- */
.breadcrumb-nav {
  position: fixed;
  top: 84px; /* Height of the header */
  left: 0;
  right: 0;
  z-index: 999;
  background-color: #f2f6fa;
  border-bottom: 1px solid #eee;
  width: 100%;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  padding: 12px 40px;
  margin: 0;
  list-style: none;
  font-size: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item a {
  color: #146cc9;
  text-decoration: none;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  padding: 0 10px;
  color: #6c757d;
}

.breadcrumb-item.active {
  color: #001a36;
  font-weight: 600;
}

#inleiding img, #effect_atrium img, #invloed_daglicht img, #daglichtfactor img {
  display: block;
  width: 100%;
  height: 360px;
  border-radius: 10px;
  margin-bottom: 50px;
}
@media (max-width: 960px) {
  #inleiding img, #effect_atrium img, #invloed_daglicht img, #daglichtfactor img {
    margin-bottom: 25px;
  }
}
@media (max-width: 572px) {
  #inleiding img, #effect_atrium img, #invloed_daglicht img, #daglichtfactor img {
    margin-bottom: 25px;
  }
}

#invloed_daglicht ul {
  padding-left: 0px;
}
@media (max-width: 960px) {
  #invloed_daglicht ul {
    font-size: 16px;
  }
}
@media (max-width: 700px) {
  #invloed_daglicht ul {
    font-size: 15px;
  }
}
@media (max-width: 480px) {
  #invloed_daglicht ul {
    font-size: 14px;
  }
}

.gif-flex {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 90px;
  flex-wrap: wrap;
}

.gif-flex2 {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.gif-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
}

.gif-flex img {
  max-width: 240px;
  width: 100%;
  min-width: 0;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  background: #fff;
}

@media (max-width: 700px) {
  .gif-flex {
    gap: 12px;
  }
  .gif-flex img {
    max-width: 160px;
    width: 100%;
  }
}

#gifjes.sectie_container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 50px;
  margin-bottom: 50px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background-color: #fff;
}

/* Reduce large section margins on small screens */
@media (max-width: 960px) {
  #gifjes.sectie_container {
    margin-top: 25px;
    margin-bottom: 25px;
  }
}
@media (max-width: 572px) {
  #gifjes.sectie_container {
    margin-top: 25px;
    margin-bottom: 25px;
  }
}

.gif-caption {
  margin-top: 25px;
  font-weight: bold;
  font-size: 1.1em;
  text-align: center;
}

.gif-subcaption {
  margin-top: 2px;
  font-size: 0.75em;
  font-weight: normal;
  color: #222;
  text-align: center;
}

#atrium_ja-nee h1, #animatie h1, #atrium_nee h1 {
  text-align: center;
}

.atrium-flex {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: nowrap; /* keep two items side-by-side */
  margin-top: 30px;
}
.atrium-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 50%; /* each takes half width */
}
.atrium-item img {
  max-width: 100%;
  width: 100%; /* scale to column */
  min-width: 0;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  background: #fff;
  transition: transform 0.2s;
  cursor: pointer;
}
.atrium-item img:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
@media (max-width: 700px) {
  .atrium-flex {
    gap: 16px; /* reduce spacing but keep two columns */
  }
  .atrium-item {
    flex: 1 1 50%;
  }
  .atrium-item img {
    max-width: 100%;
  }
}

.gif-flex2 video {
  max-width: 300px;
  width: 100%;
  min-width: 0;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  background: #fff;
  display: block;
}
@media (max-width: 960px) {
  .gif-flex2 video {
    max-width: 300px;
    width: 100%;
  }
}

.timerzon-center {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 20px;
}
.timerzon-center video {
  max-width: 250px;
  width: 100%;
  background: #fff;
  display: block;
}

.button-flex {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 32px 0 0 0;
}
.daglicht-btn {
  background: #f2f6fa;
  border: none;
  border-radius: 10px;
  padding: 14px 32px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}
.daglicht-btn:hover, .daglicht-btn:focus {
  background: #2668ad;
  color: #fff;
  box-shadow: 0 4px 16px rgba(20,108,201,0.16);
  text-decoration: none;
}

.daglicht-btn.selected,
.daglicht-btn.selected:focus {
  background: #2668ad;
  color: #fff;
  box-shadow: 0 4px 16px rgba(19,173,71,0.16);
}

/* Responsive scaling for daglicht buttons */
@media (max-width: 960px) {
  .daglicht-btn {
    font-size: 1.05em;
    padding: 12px 28px;
  }
}
@media (max-width: 700px) {
  .daglicht-btn {
    font-size: 1.0em;
    padding: 12px 24px;
  }
}
@media (max-width: 480px) {
  .daglicht-btn {
    font-size: 0.95em;
    padding: 10px 20px;
  }
}

.wide-img-grid {
  display: flex;
  flex-direction: row;
  gap: 24px;
  margin: 48px 0 0 0;
  justify-content: center;
  align-items: stretch;
  flex-wrap: nowrap;
}
.wide-img-item {
  /* Override default grid to behave like gif-flex2 */
  flex: 0 0 auto;
  min-width: 0;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.wide-img-item img {
  max-width: 300px; /* mimic gif-flex2 video sizing */
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  background: #fff;
  display: block;
}
.wide-img-item video {
  max-width: 280px; /* slightly smaller to ensure 4 fit side by side */
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  background: #fff;
  display: block;
}
/* Remove rigid column constraints so items wrap naturally like gif-flex2 */

@media (max-width: 1400px) {
  .wide-img-grid {
    flex-wrap: wrap;
  }
}

@media (max-width: 960px) {
  .wide-img-item video {
    max-width: 280px;
    width: 100%;
  }
}

#animatie,
#atrium_nee {
  max-width: none !important;
  margin: 50px auto;
}
@media (max-width: 960px) {
  #animatie,
  #atrium_nee {
    margin: 25px auto;
  }
}
@media (max-width: 572px) {
  #animatie,
  #atrium_nee {
    margin: 25px auto;
  }
}

.section-title-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}
.section-inner {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}
.section-title-row h1 {
  margin: 0 auto;
}
/* Match spacing below title on the animatie page with other pages */
#animatie .section-title-row {
  margin-bottom: 32px;
}
.page-icons {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
}
.icon-button {
  background: #f2f6fa; /* same as daglicht-btn default */
  border-radius: 10px;
  padding: 8px; /* inner padding to create button look around the icon */
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-button:hover,
.icon-button:focus {
  background: #2668ad; /* same hover bg as daglicht-btn */
  box-shadow: 0 4px 16px rgba(20,108,201,0.16);
}
/* Only the icon image changes color on hover, not the whole button */
.icon-button:hover .icon-image,
.icon-button:focus .icon-image {
  filter: brightness(0) invert(1);
}
.page-icons img {
  width: 34px;
  height: 34px;
  display: block;
}
.page-icons:hover img {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}
@media (max-width: 960px) {
  .section-title-row {
    flex-direction: column;
    align-items: center;
  }
  .page-icons {
    position: static;
    transform: none;
    margin-top: 12px;
  }
}
@media (max-width: 572px) {
  .section-title-row {
    min-height: 40px;
  }
  .page-icons img {
    width: 30px;
    height: 30px;
  }
}

/* Info modal custom tweaks */
.info-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 30px 0 30px 0;
}
.info-icons img {
  width: 60px;
  height: 60px;
}
.info-text {
  text-align: left;
  max-width: 720px;
  padding: 0 30px 0 30px;
  font-size: 16px;
}

@media (max-width: 768px) {
  .info-text {
    max-height: 60vh;
    overflow-y: auto;
    padding: 0 20px 0 20px;
    scrollbar-width: thin;
    scrollbar-color: #2668ad #f0f0f0;
  }
  
  .info-text::-webkit-scrollbar {
    width: 6px;
  }
  
  .info-text::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
  }
  
  .info-text::-webkit-scrollbar-thumb {
    background: #2668ad;
    border-radius: 3px;
  }
}

@media (max-width: 480px) {
  .info-text {
    max-height: 50vh;
    padding: 0 15px 0 15px;
    font-size: 14px;
  }
}

.lampje-toggle {
  margin-top: 24px;
  text-align: center;
}
#lampje-img {
  margin-top: 0;
  text-align: center;
}
#lampje-btn {
  max-width: 75px;
  width: 100%;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  display: inline-block;
}

/* Hero section button */
.hero-btn {
  display: inline-block;
  margin-top: 32px;
  padding: 16px 32px;
  font-size: 1.2em;
  font-weight: 700;
  color: #fff;
  background: #2668ad;
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(19,173,71,0.16);
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  cursor: pointer;
  width: auto;
  max-width: 100%;
}

@media (max-width: 572px) {
  .hero-btn { font-size: 1.05em; padding: 14px 24px; }
}

.hero-btn:hover, .hero-btn:focus {
  background: #3d74af;;
  color: #fff;
  box-shadow: 0 6px 24px rgba(19,173,71,0.22);
  text-decoration: none;
}

.navbar li:hover > a {
  color: #2668ad;
}

/* SwiperJS GIF Lightbox Modal */
.gif-lightbox {
  position: fixed;
  z-index: 2000;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gif-lightbox-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  z-index: 0;
}
.gif-lightbox-content {
  position: relative;
  z-index: 10;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  padding: 32px 24px 24px 24px;
  max-width: 1100px;
  width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gif-lightbox-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 2.5rem;
  color: #000000;
  cursor: pointer;
  z-index: 40;
  line-height: 1;
}
.gif-swiper {
  width: 100%;
  max-width: 800px;
  min-width: 280px;
  height: auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  --swiper-navigation-sides-offset: 60px;
  z-index: 20;
}
.gif-swiper .swiper-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.gif-swiper img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: #fff;
  margin-bottom: 12px;
}
.gif-swiper .gif-caption,
.gif-swiper .gif-subcaption {
  text-align: center;
}
.swiper-button-next, .swiper-button-prev {
  color: #000 !important;
  z-index: 40;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  transition: background 0.2s;
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.swiper-button-prev {
  left: 24px;
}
.swiper-button-next {
  right: 24px;
}
@media (max-width: 1000px) {
  .swiper-button-prev {
    left: 6px;
  }
  .swiper-button-next {
    right: 6px;
  }
}
@media (max-width: 700px) {
  .swiper-button-next, .swiper-button-prev {
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
  }
  .gif-lightbox-content {
    padding: 24px 16px 16px 16px;
    width: 95vw;
  }
  .gif-swiper {
    min-width: 240px;
  }
}

.software,
a.software,
.gif-lightbox-content .software,
.info-text .software {
  color: #146cc9 !important;
}
.software:hover, 
a.software:hover,
.gif-lightbox-content .software:hover,
.info-text .software:hover {
  color: #2668ad !important;
  text-decoration: underline !important;
}
