/**
 * Kandidaat-paginasjabloon
 * Layout: foto links, tekst rechts, teal achtergrond #007384
 */

#main {
  padding: 3rem;
}

figure.wp-block-image.size-full img {
  box-shadow: none;
  margin: unset;
  object-fit: contain;
}

.candidate-page {
  background-color: #007384;
  color: #fff;
  padding: 2rem 1.5rem 3rem;
  min-height: 100vh;
  border: solid 1px #ffff;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 700px) {
  #main {
    padding-left: 0rem;
    padding-right: 0rem;
  }
}

@media (min-width: 2500px) {
  #main {
    max-width: 60vw;
  }
}

@media (min-width: 700px) {
  .candidate-photo,
  .candidate-photo-placeholder {
    width: 300px;
    height: 300px;
  }
}

@media (min-width: 1200px) {
  .candidate-photo,
  .candidate-photo-placeholder {
    width: 350px;
    height: 350px;
  }
}

.candidate-layout {
  flex-wrap: wrap;
  gap: 2rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: flex-start;
  justify-content: center;
}

/* --- Links: logo + foto --- */
.candidate-left {
  flex: 0 1 380px;
  min-width: 260px;
}

.candidate-logo {
  margin-bottom: 1.25rem;
}

.candidate-logo img,
.candidate-logo svg {
  display: block;
  width: 130px;
  height: 130px;
}

.candidate-photo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: -20px;
}

.candidate-photo {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  display: block;
  background: rgba(255, 255, 255, 0.15);
  background-size: 130% 130%;
  background-position: center;
  background-repeat: no-repeat;
}

.candidate-photo-placeholder {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  opacity: 0.8;
  text-align: center;
  padding: 2rem;
  border-radius: 50%;
}

.candidate-photo-placeholder span {
  line-height: 1.4;
}

.candidate-plaats-overlay {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  font-size: 3.5rem;
  font-weight: 700;
  color: #1f3a66;
  line-height: 1;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
  font-family: sans-serif;
  z-index: 10;
}

/* --- Rechts: inhoud --- */
.candidate-right {
  flex: 1 1 400px;
  min-width: 0;
}

/* Override theme reset (font-size: 100% op p, div, span, etc.) en .entry-content;
   zet font-size op de container én op alle descendants via inherit. */
.candidate-page .candidate-content {
  font-size: 1.05rem !important;
  line-height: 1.65;
}

.candidate-page .candidate-content * {
  font-size: 1.5rem !important;
}

.candidate-content p:first-child {
  margin-top: 0;
}

.candidate-content a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.candidate-content a:hover {
  opacity: 0.9;
}

/* --- Illustratie direct onder de foto (in linkerkolom) --- */
.candidate-illustration {
  margin-top: 1.25rem;
  width: 100%;
  max-width: 100%;
}

.candidate-illustration svg,
.candidate-illustration img {
  width: 100%;
  height: auto;
  max-height: 90px;
  display: block;
  object-fit: cover;
}

/* --- Responsive: stapelen op kleine schermen --- */
@media (max-width: 700px) {
  .candidate-page {
    padding: 1.5rem 1rem 2.5rem;
  }

  .candidate-layout {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
  }

  .candidate-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .candidate-photo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -30px;
  }

  .candidate-photo,
  .candidate-photo-placeholder {
    width: 220px;
    height: 220px;
  }

  .candidate-plaats-overlay {
    right: 5%;
    transform: translateY(-50%);
    top: 50%;
    font-size: 2.75rem;
  }

  .candidate-right {
    text-align: left;
  }
}

@media (min-width: 1200px) {
  .candidate-layout {
    display: flex;
  }
}

@media (max-width: 1200px) {
  /* .candidate-layout {
    padding: 0 7.6923% 9.0909%;
  } */

  .candidate-logo {
    align-self: baseline;
    padding: 0 7.6923% 9.0909%;
  }

  .candidate-illustration img {
    max-width: 50%;
    margin: auto;
  }
}

@media (max-width: 500px) {
  .candidate-illustration img {
    max-width: 80vw;
  }
}
