html {
  overflow: auto;
}

:root {
  --top-clearance: 230px;
  --bottom-clearance: 95px;
}

body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  font-family: sans-serif, Helvetica;
  background: linear-gradient(180deg, #0f1620 0%, #10161d 40%, #121f2d 100%);
}

header {
  z-index: 9998;
  width: 100%;
  height: 150px;
  min-height: 150px;
  text-align: center;
  color: white;
  text-shadow: 0 0 5px rgba(0, 0, 0, 1);
  border: 0;
  font-family: 'helvetica', arial black;
  font-size: 3em;
  background-size: cover;
  background-image: url('../images/MarineHeader.jpg');
  background-color: white;
  position: fixed;
  top: 0;
  left: 0;
}

#Logo {
  width: 110px;
  height: 110px;
  border: 0;
  position: absolute;
  top: 11px;
  left: 11px;
  background-image: url('../images/MarineLogo.jpg');
  background-size: cover;
  background-position: bottom right;
  z-index: 9999;
}

#content {
  padding: var(--top-clearance) 14px var(--bottom-clearance);
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

.image-grid {
  width: min(98vw, 1800px);
  height: calc(100vh - var(--top-clearance) - var(--bottom-clearance));
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 14px;
}

.image-card {
  margin: 0;
  background-color: rgba(0, 0, 0, 0.75);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.image-card img {
  display: block;
  width: 100%;
  height: 100%;
  flex: 1 1 auto;
  min-height: 0;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.3);
}

.image-card figcaption {
  padding: 8px;
  flex: 0 0 auto;
  color: white;
  text-align: center;
  font-family: 'helvetica', arial black;
  background-color: rgba(255, 255, 255, 0.08);
}

footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 79px;
  text-align: center;
  border: 0;
  font-family: 'helvetica', arial black;
  font-size: 1em;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 9999;
  background-size: cover;
  background-image: url('../images/Footer.png');
  background-position: bottom right;
}

#LocationTag,
#ContactTag {
  width: auto;
  text-align: center;
  color: white;
  font-family: 'helvetica', arial white;
  font-size: 1em;
  line-height: 1.6;
  position: static;
  margin: 0;
}

#TrmbLogo {
  width: 500px;
  height: 140px;
  transform: scale(0.35);
  border: 0;
  position: fixed;
  bottom: -32.5px;
  right: -150px;
  background-image: url('../images/TrmbLogo.jpg?v=20260830');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 9999;
}

@media (max-width: 900px) {
  :root {
    --top-clearance: 230px;
    --bottom-clearance: 90px;
  }

  header {
    height: 150px;
    min-height: 150px;
  }

  #Logo {
    width: 110px;
    height: 110px;
  }

  #content {
    padding: var(--top-clearance) 10px var(--bottom-clearance);
  }

  .image-grid {
    height: auto;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .image-card img {
    height: auto;
  }
}
