/* ---------- general design: body ---------- */
html, body {
  margin: 0;
  font-family: Cambria, Calibri, Arial, sans-serif;
  color: #555753;
  line-height: 1.5;
  text-align: justify;
}

/* ---------- general design: header ---------- */
header {
    display: -webkit-flex;
    display: flex;
    flex-direction: column;

    width: 100;
    padding: 0px 0%;

    background-color: white;  /* #333; */
    box-shadow: 0px 0px 10px gray;
}

/* ---------- general design: nav ---------- */
nav {
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;

    padding: 0 10%;
    text-transform: uppercase;
}
nav ul {
    float: right;
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
nav li {
  float: left;
}
nav li a {
  display: block;
  color: #555;
  text-align: center;
  padding: 15px 15px;
  text-decoration: none;
}
nav li a:active {
  color: #777;
  background-color: #222;
}
nav li a:hover {
  color: white;
  background-color: #555;
}

.header-banner {
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;

  width: 100%;
  position: relative;

  color: white;
  font-family: Roboto, Arial;
  font-size: 24pt;
}
.header-banner img {
  width: 100%;
  max-height: 320px;
  opacity: 1.0;
  object-fit: cover;
  transition: 0.3s;
}
.header-banner img:hover {
  opacity: 0.9;
}
.header-title {
  margin-left: 10%;
  margin-bottom: 20px;
  padding: 20px;
  position: absolute;
  bottom: 10px;
  left: 10px;
  text-decoration: none;
  color: white;
  background-color: rgba(255, 255, 255, 0.5)
}


/* ---------- general design: main ---------- */
main {
    width: 70%;
    margin: auto;
    padding: 25px;

    color: #333;
}
main a {
  color: #111;
  text-decoration: none;
}
main a:hover {
  text-decoration: underline;
}
main h1 {
  margin-top: 40px;
}
main h2 {
  margin-top: 60px;
}

/* ---------- responsive design ---------- */
@media (max-width: 1200px) {
  nav {
    padding: 0 25px;
  }

  .header-banner a {
    padding: 0 25px;
  }

  main {
    width: 98%;
    margin: 0;
    padding: 5px;
  }
}

/* ---------- individual design: profile picture ---------- */
.profile {
  width: 300px;
  margin: 20px;
  float: left;
}

.profile img {
  width: 100%;
  border-radius: 100px;
  object-fit: cover;
  opacity: 1.0;
}

/* ---------- individual design: plot ---------- */
.plot {
  width: 390px;
  margin: 5px;
  float: left;
}
.plot img {
  width: 100%;
  object-fit: cover;
  opacity: 1.0;
}


.plot_center_big {
  width: 500px;
  text-align: center;   /* centers inline elements like <img> */
  margin: 1em auto;        /* adds vertical spacing */
}

.plot_center_big img {
  display: inline-block;
  max-width: 100%;      /* optional, makes it responsive */
  height: auto;
}


.plot_center_enormous {
  width: 1000px;
  text-align: center;   /* centers inline elements like <img> */
  margin: 1em auto;        /* adds vertical spacing */
}

.plot_center_enormous img {
  display: inline-block;
  max-width: 100%;      /* optional, makes it responsive */
  height: auto;
}


.plot_side_by_side {
  display: flex;
  justify-content: center;   /* center all images as a group */
  align-items: center;       /* align portrait and landscape bottoms */
  gap: 1em;                  /* spacing between images */
  margin: 1em auto;
  max-width: 750px;
  max-height: 450px;
}

.plot_side_by_side img {
  flex: 0 0 auto;           
  object-fit: contain;

  /* New key: fix height instead of width */
  max-height: 450px;         /* all images match in height */
  width: auto;               /* width adjusts to aspect ratio */
}

/* When there are 2 images, cap container width so they don’t spread too far */
.plot_side_by_side.two img {
  max-height: 350px;         /* optional: a bit smaller for 2 */
}

/* When there are 3 images, same height but they’ll fit tighter */
.plot_side_by_side.three img {
  max-height: 350px;
}



.plot_center {
  width: 390px;
  text-align: center;   /* centers inline elements like <img> */
  margin: 1em auto;     /* adds vertical spacing */
}

.plot_center img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}

/* Clickable box */
.click-box {
  background: #fff;
  border: 2px solid #ccc;
  border-radius: 10px;
  padding: 20px;
  text-align: center;        /* center text and image */
  width: 420px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin: 2em auto;
  position: relative;        /* for the click-hint */
}

.click-box:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Optional small "click hint" */
.click-hint {
  font-size: 0.85em;
  color: #666;
  margin-top: 10px;
  font-style: italic;
}



.plot_2 {
  width: 250px;
  height: 400px;
  margin: 15px;
  float: left;
}

.plot_2 img {
  width: 80%;
  object-fit: cover;
  opacity: 1.0;
}

/* ---------- individual design: table ---------- */
.table {
  width: 100%;
  border-collapse: collapse;
}
.table tr:nth-child(odd) {
  background-color: #eeeeee;
}
.table td {
  padding: 12px 24px 12px 24px;
  border: 1px solid #eeeeee;
  text-align: left;
}

/* ---------- individual design: card ---------- */
.card {
  width: 320px;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
  transition: 0.3s;
  display: inline-block;
}
.card:hover {
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}
.card img {
  width: 100%;
  }
.card-text {
  padding: 2px 16px;
}


/* ------- openable pictures -------- */
/* The grid: Four equal columns that floats next to each other */
.column {
  float: left;
  width: 30%;
  padding: 10px;
}

/* Style the images inside the grid */
.column img {
  opacity: 0.9; 
  cursor: pointer; 
}

.column img:hover {
  opacity: 1;
}

/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}

/* The expanding image container */
.container {
  position: absolute;
  display: none;
}

/* Expanding image text */
#imgtext {
  position: absolute;
  bottom: 15px;
  left: 15px;
  color: white;
  font-size: 20px;
}

/* Closable button inside the expanded image */
.closebtn {
  position: absolute;
  top: 10px;
  right: 15px;
  color: white;
  font-size: 35px;
  cursor: pointer;
}

/* ------- VIDEOS ------- */
.video-container {
  position: relative;
  width: 70%;            /* smaller relative width */
  max-width: 600px;      /* lower cap on large screens */
  margin: 1em auto;      /* centers horizontally */
  padding-top: 35%;   /* 16:9 aspect ratio */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
