.scrollable-table-wrapper {
  max-height: 520px;
  overflow-y: auto;
  width: 100%;
}

.main-table {
  border-collapse: collapse;
  margin: 0 auto;
  background: transparent;
  table-layout: fixed;
  position:fixed;
}

.linkedin-logo{
    width:45px;
    height:45px;
    background-image: url('../gallery/LinkedIn_logo_initials.png');
    background-size: cover;
    margin-top: 30px;
    margin-bottom: 0px;
    margin-left: auto;
    margin-right: auto;
}

.fixed-row {
  position: sticky;
  top: 0;
  background: #000;
  z-index: 2;
}
.visually-hidden{
    display: none;
}
.slide-image{
    width:98%;
    max-width: 540px;
    height: auto;
    border: none;
}

  body.df-body {
  background: #000;
  color: #666;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}

a, a:visited {
  color: #666;
  text-decoration: none;
}
a:active, a:hover {
  color: #999;
}

table {
    border-spacing: 4px;
}
.container {
    width: 100%;
    justify-content: center;
    align-items: flex-start;
    height: 146vh;
}

.main-table {
    border-collapse: collapse;
    margin: 0 auto;
    background: black;
    z-index: 2;
    width: 100%;
}

.header-cell {
  text-align: center;
  background: transparent;
}

.header-center {
    text-align: center;
    margin-top:20px;
    margin-bottom: 20px;
}

.site-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.2em;
  color: #ccc;
  margin: 0;
}

.side-spacer, .footer-spacer {
  background: transparent;
}

.main-image-cell {
  text-align: center;
  background: transparent;
}

.slide-image {
  object-fit: cover;
  border: none;
}

.gallery-row {
  background: transparent;
}

.gallery-table {
  width: fit-content;
  border-collapse: collapse;
  margin: 0 auto;
  background: transparent;
}

.gallery-container{
    width: fit-content;
    display: unset;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    top: 60vh;
    padding-bottom: 80px;
}

.gallery-table td{
    opacity: 0.5;
    padding-right: 3px;
    padding-left: 3px;
}

.gallery-table td:hover{
    opacity: 1;
    cursor: pointer;
}

.email-center {
  text-align: center;
}

.footer-image{
    width: 98%;
    max-width: 540px;
    height: 360px;
    background-image: url(../images/whaleshark-Kenya.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    margin-top: 275px;
}
.footer-email a {
  font-size: 1.2em;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
}

.bottom-center {
  text-align: center;
}

.spacer, .divider {
  padding: 0;
  margin: 0;
  border: none;
}

.gallery-table td, .gallery-table .spacer, .gallery-table .divider {
  vertical-align: middle;
  text-align: center;
  border: none;
}

@media screen and (min-width: 500px) {
  .gallery-container{
      top: calc(60vh + 5vw);
  }
  .footer-image {
      margin-top: calc(275px + 5vw);
  }
}

/* Layout and scroll behavior for hero + story flow */
.container {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 12px 36px;
  height: auto;
}

.main-table {
  position: sticky;
  top: 8px;
  width: 100%;
  margin: 0 auto;
  background: #000;
  z-index: 3;
  will-change: transform, opacity;
  transition: transform 180ms linear, opacity 180ms linear;
}

.slide-image {
  width: min(96vw, 540px);
  max-width: 100%;
  height: auto;
  transition: width 180ms linear;
}

.gallery-container {
  position: relative;
  top: auto;
  display: block;
  width: fit-content;
  margin: 22px auto 0;
  padding-bottom: 30px;
}

.footer-image {
  width: min(96vw, 540px);
  max-width: 100%;
  height: 360px;
  margin-top: 34px;
  margin-bottom: 34px;
}

.story-section {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 28px 96px;
  margin-top: 0px;
  color: #7e7e7e;
  line-height: 1.48;
  background: #000;
  z-index: 2;
}

.story-section h2 {
  max-width: 760px;
  margin: 0 auto 20px;
  color: #8f8f8f;
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.08;
}

.story-section p,
.story-section blockquote {
  max-width: 760px;
  margin: 0 auto 18px;
  font-size: clamp(17px, 2.1vw, 34px);
}

.story-section a,
.story-section a:visited {
  color: #9ec5ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.story-section a:hover,
.story-section a:active {
  color: #c6deff;
}

.story-section blockquote {
  border-left: 3px solid #404040;
  padding-left: 14px;
  color: #b5b5b5;
}

@media screen and (max-width: 500px) {
  .main-table {
    top: 2px;
  }

  .gallery-container {
    margin-top: 14px;
  }

  .footer-image {
    height: 240px;
    margin-top: 20px;
  }

  .story-section {
    padding: 22px 16px 64px;
    margin-top: 220px;
  }

  .story-section h2 {
    font-size: clamp(30px, 8vw, 38px);
  }

  .story-section p,
  .story-section blockquote {
    font-size: clamp(14px, 4.2vw, 20px);
    line-height: 1.42;
  }
}