body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  letter-spacing: 0;
  text-transform: lowercase;
  text-align: justify;
  word-spacing: normal;
  hyphens: auto;
  margin: 15px;
}

p {
  margin: 0;
}

header h1 {
  margin: 0;
  font-weight: normal;
  font-size: 18px;
  letter-spacing: 0;
  text-align: right;
}

nav {
  display: flex;
  flex-flow: row;
  justify-content: flex-end;
  gap: 7px;
}

nav a {
  color: black;
  margin-bottom: 5px;
  text-decoration: none;
  display: block;
}

nav a:hover {
  color: rgb(0, 155, 52);
}

.current {
  position: relative;
  text-align: left;
  left: 36px;
  bottom: 20px;
}

/* responsive + max reasonable size */
.current img {
  width: 100%;
  max-width: 450px;
  height: auto;
}

.address {
  text-align: right;
}

.info {
  position: absolute;
  right: 30%;
  top: 58px;
  font-size: 18px;
  width: 424px;
}

/* container */
.docu_images {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 30px 0 0 0;
  align-items: flex-start;
  width: 100%;
}

/* fully responsive images */
.docu_images img {
  width: 100%;
  max-width: 1000px;
  height: auto;
}

.docu_images_vertical img {
  width: 100%;
  max-width: 800px;
  height: auto;
}

.docu_video {
  height: 700px;
  width: 100%;
}

.vp-center {
  display: block;
}

.edit_images {
  position: relative;
}

/* responsive but limited */
.edit_images img {
  width: 100%;
  max-width: 278px;
  height: auto;
  transition: opacity 0.5s;
}

.edit_images img:hover {
  opacity: 0.3;
}

.img_caption {
  position: absolute;
  bottom: 2px;
  left: 5px;
  transition: opacity 0.5s;
}

.edit_gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 58px 170px 0 0;
}

.edit_images .img_caption {
  opacity: 0;
}

.edit_images:hover .img_caption {
  opacity: 1;
}

.residents_cont {
  display: flex;
  flex-flow: column wrap;
  align-content: flex-end;
  margin: 0 30% 0 0;
  gap: 58px;
}

.residents {
  max-width: 400px;
}

.res_name {
  text-align: right;
  padding-bottom: 10px;
}

.programme {
  margin-top: 58px;
  padding: 0;
  text-align: right;
}

.programme a {
  display: block;
  color: black;
  text-decoration: none;
  margin-top: 5px;
  margin-right: 30%;
}

.programme a:hover {
  color: rgb(132, 186, 241);
}

.docu_text {
  margin-top: 58px;
}

.docu_link a {
  color: black;
  text-decoration: none;
  text-align: left;
  padding-top: 10px;
}

.docu_link a:hover {
  color: rgb(230, 105, 215);
}

.link {
  color: black;
  text-decoration: none;
}

/* === Responsive Styles === */

/* Small screens */
@media (max-width: 600px) {
  .info p {
    margin-top: 30px;
    margin-left: 10px;
  }
}

/* Prevent overlap on narrow screens */
@media (max-width: 900px) {
  .info {
    position: static;
    width: auto;
    right: auto;
    top: auto;
    margin-bottom: 20px;
  }

  /* optional: centers the image on phones */
  .current img {
    margin: 0 auto;
  }
}

/* Medium screens */
@media (max-width: 1200px), (max-height: 740px) {
  nav {
    position: relative;
    top: 0;
    right: 0;
  }

  nav a {
    margin: 0;
  }

  header h1 {
    margin-right: 0;
    margin-bottom: 5px;
  }

  body {
    margin: 15px;
  }

  .current {
    position: static;
    margin: 40px 0 0 0;
  }

  .current img {
    margin: 50px auto 0;
    max-height: none;
    max-width: 70%;
    display: block;
  }

  .address {
    position: static;
    margin-top: 50px;
    padding: 0;
    right: 0;
  }

  .docu_images,
  .edit_gallery,
  .residents_cont {
    margin-right: 0;
  }

  .edit_gallery img {
    width: 100%;
    max-width: none;
  }

  .programme {
    margin-right: 0;
    text-align: left;
  }

  .programme a {
    position: static;
  }

  .info {
    position: static;
    right: 0;
    top: 0;
    padding: 0;
    margin-top: 58px;
    width: auto;
  }

  .docu_video {
    height: 400px;
    width: 100%;
  }
}

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}
