* {
  box-sizing: border-box;
}

*::before,
*::after {
  padding: 0;
  margin: 0 auto;
  box-sizing: border-box;
}

body {
  position: relative;
  min-height: 100vh;
  min-width: 100vw;
  margin: 0;
  font-family: "helvetica", "Open Sans", sans-serif;
  font-size: 14px;
  background-color: #000;
}

:root {
  --footer-height: 3rem; /* footer height including padding */
  --billboard-height: 3rem;
  --billboard-font-size: 1rem;
}

/* @media (max-width: var(600px)) {
  :root {
    --billboard-position: "relative";
    --billboard-flex-direction: "column";
    --billboard-font-size: "1rem";
  }
} */

/*
  * Billboard: company info at the top of the page
*/
.billboard {
  position: fixed;
  /* top: calc(100vh - var(--footer-height)); */
  top: 0;
  left: 0;
  right: 0;
  /* width: calc(100% - 35px); */
  width: 100%;
  /* height: calc(var(--footer-height) - 10px); */
  height: var(--billboard-height);

  /* margin: 1rem; */
  /* padding: 5px 30px 5px 5px; */
  padding: 1rem calc(1rem + 5px);

  display: flex;
  flex-direction: row;
  justify-content: space-between;

  background-color: #282b2f;
  color: #ffc000;
  z-index: 999;
}

@media (max-width: 768px) {
  .billboard {
    position: relative;
    flex-direction: column;
    font-size: 0.7rem;
    height: max-content;
  }
}

.billboard-text {
  /* width: 100%; */
  /* text-align: right; */
  font-family: Maison, sans-serif;
}

.main-div {
  display: flex;
  flex-direction: column;
  position: absolute;
  min-height: 100%;
  width: 100vw;
}

.banner-content {
  position: absolute;
  /* min-height: calc(100% - 30vh); */
  min-height: 100%;
  /* min-width: calc(100% - 3rem); */
  width: 100%;
  /* padding-top: 30vh; */
  padding-right: 3rem;
  text-align: left;
  background-image: url(../img/backgroundwall.jpg);
}

.banner-background {
  position: absolute;
  color: #ffc000;
  width: calc(100% - 30 px - 3rem);
  padding-left: 15px;
  padding-right: 15px;
  padding-top: 5vh;
  background-image: url(../img/backgroundcareer.jpg);
  background-attachment: fixed;
  min-height: 100vh;
  background-size: cover;
  background-position: center center;
  background-color: #282b2f;
  text-align: left;
}

.banner-image {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 60vw;
}

.home-content {
  position: absolute;
  width: 100%;
  top: 50%;
  margin: 0;
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);

  text-align: center;
}

footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #282b2f;
  position: absolute;
  top: calc(100vh - var(--footer-height));
  width: calc(100% - 35px);
  height: calc(var(--footer-height) - 10px);
  padding: 5px 30px 5px 5px;
  color: #ffc000;
}

.fftmDu p {
  font-family: Maison, sans-serif;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.4rem;
  text-transform: uppercase;
  font-size: 1.2rem;
  color: rgb(255, 255, 255);
  margin: 0px;
}

.footer-text {
  width: 100%;
  text-align: right;
  font-family: Maison, sans-serif;
}

.service-content {
  color: #fff;
  width: calc(100% - 30 px - 3rem);
  padding-left: 15px;
  padding-right: 15px;
  /* padding-top: 5vh; */
  padding-top: 3rem;
  /* background-image: url(../img/backgroundcareer.jpg); */
  /* background-attachment: fixed; */
  /* min-height: 100vh; */
  /* background-size: cover; */
  /* background-position: center center; */
  text-align: left;
}

.section p {
  text-align: justify;
  text-justify: inter-word;
}

.service-item p {
  text-align: left;
}

.section-header {
  color: #ffc000;
}

.section .spaced-section {
  padding-top: 30px;
}

.section .line-dec {
  width: 45px;
  height: 3px;
  background-color: #ffc000;
  margin: 20px 0px 20px 0px;
}

.contact-content {
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding-left: 15px;
  padding-right: 15px;
  /* padding-top: 16vh; */
}

.tabs-content {
  padding-left: 15px;
  padding-right: 15px;
  padding-top: 8vh;
  background-attachment: fixed;
  /* min-height: 100vh; */
  background-size: cover;
  background-position: center center;
}

.vertically-centered {
  position: absolute;
  margin: 0;
  top: 50%;
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}

.portfolio-grid {
  width: 100%;
  display: grid;
  margin: 0 auto;
  grid-template-columns: 1fr;
  /* the following clamp sizes are set so the cutting points */
  /* remains the same as for text-1 (see below)*/
  row-gap: clamp(2.4rem, 12vw, 3.6rem);
}

.portfolio-grid-item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 10px;
  /* background-color: turquoise; */
  box-sizing: border-box;
  opacity: 0;
  transition: 100ms;
}

.portfolio-grid-item.show {
  opacity: 1;
  transform: opacity(1);
}

.portfolio-grid-item img {
  width: 100%;
  transition: opacity 1s;
  border-radius: 1rem;
}

.portfolio-grid-item-text {
  display: block;
  position: absolute;
  top: 100%;
  /* transform: translateY(+50%); */
  width: 100%;
  color: #ffc000;
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
}

.portfolio-grid-item:hover .portfolio-grid-item-text {
  display: block;
}

.portfolio-grid-item:hover img {
  opacity: 0.5;
}

.portfolio-grid-item-text-over-white {
  color: #5c4600;
}

.portfolio-grid-item-text-1 {
  font-size: clamp(1rem, 5vw, 1.5rem);
}

/* the following clamp sizes are set so the cutting points */
/* remains the same as for text-1 */
.portfolio-grid-item-text-2 {
  font-size: clamp(0.6rem, 3vw, 0.9rem);
}

.portfolio-project-stages {
  display: flex;
  width: 100%;
  flex-direction: row;
  justify-content: space-around;
}

.portfolio-project > img {
  width: 100%;
}

.image-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  display: inline-block;
  margin-bottom: 2rem;
}

.image-container > img {
  width: 100%;
  max-width: 800px;
}

.image-attribution {
  position: absolute;
  bottom: -2em;
  right: 0;
  margin: 0;
  padding: 0.25em 1em;
  border-radius: 0 0 0.25em 0.25em;
  background-color: hsla(45, 100%, 50%, 0.2);
  color: hsl(0, 0%, 50%);
  font-size: 0.7em;
}

.image-attribution.top {
  border-radius: 0.25em 0.25em 0 0;
  top: -2em;
  bottom: auto;
}

.image-attribution:hover {
  background-color: hsla(45, 100%, 50%, 0.7);
  color: hsl(0, 0%, 30%);
}

.image-attribution[image-attribution-tooltip]:hover::after {
  content: attr(image-attribution-tooltip);
  position: absolute;
  right: 2em;
  bottom: 2em;
  min-width: 200px;
  /* border: 1px #aaaaaa solid; */
  border-radius: 10px;
  padding: 0.5em;
  background-color: hsla(0, 0%, 0%, 0.7);
  color: #fff;
  font-size: 1em;
  white-space: pre;
  word-wrap: break-word;
  z-index: 99;
}

.publications-column {
  padding: 0 2rem 0 1rem;
}

.in-page-link {
  text-decoration: none;
}

.current-in-page-link {
  color: hsl(45, 100%, 50%);
}

a,
a:visited,
a:hover,
a:active {
  color: inherit;
}

@media (max-width: var(768px)) {
  .home-content {
    top: 0;
    margin-top: 100px;
  }
  .banner-content {
    padding: 5px 0;
  }
  .container {
    padding: 0;
  }
  .publications-column {
    padding: 0;
  }
  h3 {
    font-size: 1rem;
  }
  h4 {
    font-size: 1.2rem;
  }
  p {
    font-size: 0.8rem;
  }
}
@media (min-width: 60em) {
  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 2em;
    /* max-width: 80%; */
  }
  .portfolio-grid-item-text {
    display: none;
    position: absolute;
    transform: translateY(-50%);
    width: 100%;
    top: 50%;
    color: #ffc000;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
  }
}
