/* ===== ALGEMENE STRUCTUUR ===== */
#main {
  overflow: visible;
  width: 100%;
}

#container {
  min-height: auto;
  min-width: 100%;
}


/* ===== NAVBAR CENTRERING ===== */
.dropdown-content a {
    float: none;
    color: black;
    padding: 13px 16px; /* pas dit aan zodat het gelijk is aan residentieel */
    text-decoration: none;
    display: block;
    text-align: left;
}



/* ===== FOOTER ICONS ===== */

.footer{
  position: relative;
  top: 2cm;

}


    .schueco {
        z-index: 3;
        height: 30px;
        width: 80px;
        bottom: 0.0cm;
        position: relative;
    }
.footer .icons {
    float: right;
    position: absolute;
    bottom: 30%;
    font-size: 14px;
    right: 32%; /* zelfde als residentieel */
    display: flex;
    gap: 10px; /* dichter op elkaar */
}

/* mobiele versie */
@media screen and (max-width: 1100px) {
    .footer .icons {
        left: 60%; /* zelfde als residentieel */
    }
}



/* ===== LIGHTBOX ===== */
#lightbox {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
}

#lightbox img {
  max-width: 90%;
  max-height: 80%;
}

#close, #prev, #next {
  position: absolute;
  color: white;
  font-size: 3em;
  cursor: pointer;
  user-select: none;
}

#close { top: 20px; right: 40px; }
#prev { left: 30px; top: 50%; transform: translateY(-50%); }
#next { right: 30px; top: 50%; transform: translateY(-50%); }

/* ===== TERUGKNOP ===== */
#back-button {
  display: block;
  margin: 80px auto; /* horizontaal centreren */
  padding: 10px 20px;
  background-color: #1d2166;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#back-button:hover {
  background-color: #3b44aa;
  transform: translateY(-2px);
}

/* ===== PROJECTDETAIL / FOTO-GALERIJ ===== */
#photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  padding: 20px;
  max-width: 1000px;
  margin: 20px auto 0 auto;
  box-sizing: border-box;
  margin-top:-1cm;
}

#photo-gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

#photo-gallery img:hover {
  transform: scale(1.05);
}

/* ===== TITEL ===== */
.title {
  text-transform: uppercase;
  color: black;
  position: relative;
  font-size: 8px;
  border-style: ridge;
  border-color: #161a53;
  border-width: 1px;
  width: 75%;
  left: 12.5%;
  bottom: 1cm;
  text-align: center;
}

/* ===== GALERIJ CENTREREN ===== */
#project-gallery {
  display: flex;
  flex-wrap: wrap;
  margin-top: 1cm;
  justify-content: center;
  align-items: flex-start;
  gap: 50px;
  padding: 40px 0;
  width: 100%;
  box-sizing: border-box;
}

.column {
  float: none;
  width: 300px;
  max-width: 90%;
  display: flex;
  justify-content: center;
}

/* ===== PROJECTBLOK ===== */
.content1 {
  background-color: white;
  position: relative;
  text-align: center;
  border-style: solid;
  border-image: linear-gradient(to bottom, rgb(4, 4, 76), rgba(0, 0, 0, 0)) 1 100%;
  border-width: 5px;
  border-radius: 4px;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.content1:hover {
  transform: scale(1.03);
}

.content1 img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.content1:hover img {
  transform: scale(1.05);
}

.content1 h4 {
  font-size: 16px;
  font-weight: bold;
  margin: 10px 0 15px 0;
  text-transform: uppercase;
}

/* ===== RESPONSIEVE ===== */
@media (max-width: 1000px) {
  #project-gallery { gap: 25px; }
  .column { width: 45%; }
  .title { width: 92%; left: 4%; }
}

@media (max-width: 700px) {
  #project-gallery { gap: 20px; }
  .column { width: 90%; }
  .title { width: 85%; left: 7.5%; }
  .content1 h4 { font-size: 14px; }
}

@media (max-width: 600px) {
  #photo-gallery { grid-template-columns: 1fr; max-width: 300px; }
  #photo-gallery img { height: 200px; }
}
