@font-face {
  font-family: Ubuntu;
  src: url('/static/fonts/ubuntu/Ubuntu-R.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Ubuntu;
  src: url('/static/fonts/ubuntu/Ubuntu-B.ttf') format('truetype');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

.deck-plan-map {
  position: relative;
  container-type: inline-size;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: white;
}

.deck-plan-map > img { display: block; width: 100%; max-width: none; height: auto; }

.deck-location {
  position: absolute;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: 23%;
  padding: .1em .25em;
  background: #fff;
  color: #26343b;
  font-family: Ubuntu, Arial, sans-serif;
  font-size: 1.25cqw;
  font-weight: 700;
  line-height: 1.12;
  text-align: center;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.deck-sundeck { left: 51%; top: 32.5%; max-width: 17%; }
.deck-muster { left: 71%; top: 32.5%; max-width: 23%; }
.deck-dive { left: 16.5%; top: 63%; max-width: 15%; }
.deck-galley { left: 30%; top: 63%; max-width: 13%; }
.deck-restaurant { left: 49%; top: 63%; max-width: 22%; }
.deck-crew { left: 18%; top: 94%; max-width: 20%; }
.deck-engine { left: 35.5%; top: 94%; max-width: 14%; }

/* Cover the original raster deck captions with translated Ubuntu labels. */
.deck-level {
  left: 0;
  width: 7.5%;
  max-width: none;
  min-height: 7%;
  display: grid;
  align-items: center;
  transform: translateY(-50%);
  padding: .2em .6cqw;
  text-align: start;
}
.deck-upper { top: 20%; }
.deck-main { top: 51%; }
.deck-lower { top: 81%; }

.vessel-specs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 22px;
}

.vessel-specs > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  padding: 12px;
  border: 1px solid #dce2eb;
  border-radius: 10px;
  background: #f4f7fc;
}

.vessel-specs dt {
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.4;
}

.vessel-specs dd {
  margin: 0;
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 700;
}

.construction-photos {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.58fr);
  gap: 14px;
  align-items: start;
}

.construction-photos figure {
  overflow: hidden;
  padding: 0;
  border-color: #dce2eb;
}

.construction-photos img {
  max-width: none;
  height: auto;
}

.construction-photos figcaption {
  margin: 0;
  padding: 9px 12px;
}

.deck-plan-page {
  padding: 0;
  background: white;
}

.deck-plan-page header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid #dce2eb;
}

.deck-plan-page header a {
  font-size: .82rem;
}

.deck-plan-page h1 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: normal;
}

.deck-plan-page main {
  padding: 0;
  overflow: auto;
}

.deck-plan-page .deck-plan-map { min-width: 1000px; }

.deck-plan-page .poster {
  border-radius: 0;
}

@media (max-width: 900px) {
  .vessel-specs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .vessel-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .construction-photos {
    grid-template-columns: 1fr;
  }
}
