/**
 * Groen Service
 * Nagebouwd van het Drupal-thema "pameijer_microsite" met kleurinstelling F90-6C00AA
 * (primaire kleur oranje #FF9900, secundaire kleur paars #6C00AA).
 * Opzet gelijk aan de nagebouwde Pameijer Print-site.
 */

:root {
  --primair: #FF9900;
  --secundair: #6C00AA;
}

/**
 * Basis
 */
body {
  margin: 8px;
  background: #FFFFFF;
  color: #000000;
  font: 13px/1.231 arial, helvetica, clean, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  padding: 0;
  margin: 1em 0 0.5em 0;
  font-size: 1.2em;
  font-weight: bold;
  text-transform: lowercase;
  color: var(--secundair);
}

p {
  margin: 1em 0;
}

a:link, a:visited {
  color: var(--secundair);
  font-weight: bold;
  text-decoration: none;
}

a:active, a:hover, a:focus {
  color: var(--secundair);
  text-decoration: underline;
}

img {
  border: 0;
}

table {
  width: 100%;
  margin-bottom: 2.5em;
  border-collapse: collapse;
}

th, td {
  padding: 0.3em;
  text-align: left;
  vertical-align: top;
}

th {
  border-bottom: 1px solid var(--secundair);
}

.visueel-verborgen {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  overflow: hidden;
  height: 1px;
  width: 1px;
}

.naar-inhoud:focus {
  position: static !important;
  clip: auto;
  height: auto;
  width: auto;
}

/**
 * Pagina-indeling
 */
#page {
  width: 980px;
  margin: 0 auto 20px auto;
}

#header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

#logo img,
#slogan img {
  display: block;
}

#main {
  background: url("../img/achtergrond.jpg") no-repeat;
  border-top: 2px solid var(--primair);
  padding-bottom: 25px;
  min-height: 505px;
  display: flow-root;
}

#content {
  float: left;
  width: 620px;
  margin-left: 20px;
}

#sidebar {
  float: right;
  width: 300px;
  margin-right: 20px;
}

#content .section,
#sidebar .section {
  background: rgba(255, 255, 255, 0.75);
  padding: 20px;
  border-top: 12px solid var(--primair);
  display: flow-root;
}

#content h1 {
  margin-top: 0;
}

#sidebar .block {
  margin-bottom: 2.5em;
}

#sidebar .block:last-child {
  margin-bottom: 0;
}

#sidebar h2 {
  margin-top: 0;
}

/**
 * Hoofdmenu: knoppen als afbeelding (sprite van 2 x 26px).
 * Normaal: witte tekst op paars (onderste helft); actief/hover: paars op wit (bovenste helft).
 */
.main-menu {
  padding: 20px 0 20px 16px;
  margin: 0;
}

.main-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
}

.main-menu li {
  margin: 0 4px;
  padding: 0;
}

.main-menu a {
  display: block;
  height: 26px;
  background-color: transparent;
  background-position: 0 -26px;
  background-repeat: no-repeat;
  border: 1px solid #FFFFFF;
}

.main-menu a:hover,
.main-menu a:focus,
.main-menu a.active {
  background-position: 0 0;
  border-color: var(--secundair);
}

.main-menu a.home      { background-image: url("../img/menu/home.png");      width: 91px; }
.main-menu a.werken    { background-image: url("../img/menu/werken.png");    width: 222px; }
.main-menu a.tuin      { background-image: url("../img/menu/tuin.png");      width: 229px; }
.main-menu a.locaties  { background-image: url("../img/menu/locaties.png");  width: 104px; }
.main-menu a.fotoalbum { background-image: url("../img/menu/fotoalbum.png"); width: 123px; }
.main-menu a.contact   { background-image: url("../img/menu/contact.png");   width: 104px; }

/**
 * Foto's in de tekst (was: Colorbox insert, stijl thumbnail_right 180x180)
 */
.image-thumbnail-left,
.image-thumbnail-right,
.image-thumbnail-inline {
  margin-left: 4px;
  margin-right: 4px;
  padding: 3px;
  background: #FFFFFF;
  border: 1px solid #999999;
}

.image-thumbnail-left {
  float: left;
  margin-left: 0;
  margin-right: 8px;
}

.image-thumbnail-right {
  float: right;
  margin-left: 8px;
  margin-right: 0;
}

/**
 * Kaarten en video
 */
.kaart {
  clear: both;
  max-width: 400px;
  aspect-ratio: 4 / 3;
  margin: 1em 0;
}

.video {
  clear: both;
  max-width: 580px;
  aspect-ratio: 16 / 9;
  margin: 1em 0;
}

.kaart iframe,
.video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/**
 * Boeknavigatie (Locaties)
 */
.boek-navigatie {
  clear: both;
  margin-top: 2em;
  padding-top: 0.5em;
  border-top: 1px solid var(--secundair);
}

.boek-navigatie ul {
  margin: 0.5em 0;
  padding-left: 20px;
}

.boek-navigatie ul.vorige-volgende {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: space-between;
}

.boek-navigatie .vorige-volgende li {
  flex: 1;
}

.boek-navigatie .omhoog {
  text-align: center;
}

.boek-navigatie .volgende {
  text-align: right;
}

#sidebar .boeknavigatie ul {
  margin: 0;
  padding-left: 10px;
  list-style: none;
}

#sidebar .boeknavigatie li {
  margin: 0.3em 0;
}

#sidebar .boeknavigatie a.active {
  color: #000000;
}

/**
 * Fotoalbum (was: Views "album" met Colorbox)
 */
table.albumlijst td {
  padding: 0 0 1.5em 0;
}

table.albumlijst td.omslag {
  width: 100px;
  padding-right: 10px;
}

table.albumlijst td.omslag img,
.albumraster img {
  display: block;
  padding: 4px;
  background: #FFFFFF;
  border: 1px solid #999999;
}

table.albumlijst h2 {
  margin-top: 0;
}

table.albumlijst p {
  margin: 0.3em 0;
}

table.albumlijst .aantal {
  font-style: italic;
  color: #666666;
}

.albumraster {
  list-style: none;
  margin: 1em 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.albumraster li {
  margin: 0;
}

.albumraster img {
  width: 100%;
  height: auto;
  box-sizing: border-box;
}

/**
 * Zijbalk-diashow (was: Views Slideshow "album-block_1", 250px breed, willekeurige volgorde)
 */
.diashow-fade {
  position: relative;
  max-width: 250px;
}

.diashow-fade a {
  display: none;
}

.diashow-fade a.actief {
  display: block;
}

.diashow-fade img {
  display: block;
  width: 100%;
  height: auto;
}

.js-diashow .diashow-fade a {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out, visibility 1s;
}

.js-diashow .diashow-fade a.actief {
  position: relative;
  opacity: 1;
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  .js-diashow .diashow-fade a {
    transition: none;
  }
}

/**
 * Vergroting van foto's (was: Colorbox)
 */
.lichtbak {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.lichtbak[hidden] {
  display: none;
}

.lichtbak figure {
  margin: 0;
  padding: 10px;
  background: #FFFFFF;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.lichtbak img {
  display: block;
  max-width: calc(100vw - 52px);
  max-height: calc(100vh - 100px);
  object-fit: contain;
  margin: 0 auto;
}

.lichtbak figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  padding-top: 8px;
  color: #666666;
}

.lichtbak button {
  font: inherit;
  font-weight: bold;
  color: var(--secundair);
  background: #FFFFFF;
  border: 1px solid var(--secundair);
  padding: 2px 8px;
  cursor: pointer;
}

.lichtbak button:hover,
.lichtbak button:focus {
  color: #FFFFFF;
  background: var(--secundair);
}

.lichtbak .knoppen {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

/**
 * Smalle schermen (de oude site was vast 980px breed)
 */
@media (max-width: 1000px) {
  body {
    margin: 0;
  }

  #page {
    width: auto;
  }

  #header {
    padding: 8px 16px 0;
  }

  #logo img {
    width: 180px;
    height: auto;
  }

  #slogan img {
    width: 120px;
    height: auto;
  }

  #main {
    background-size: 100% auto;
  }

  .main-menu {
    padding: 16px 12px;
  }

  #content,
  #sidebar {
    float: none;
    width: auto;
    margin: 0 16px 20px;
  }

  #content .section,
  #sidebar .section {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .image-thumbnail-right,
  .image-thumbnail-left {
    width: 120px;
    height: auto;
  }
}
