body {
  margin: 0;
  background-color: #fff;
  font-family: "forma-djr-text", sans-serif;
}

.main-container {
  display: flex;
  min-height: 100vh;
}

.sidenav {
  min-height: 100vh;
  min-width: 235px;
  width: 235px;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #fff;
  padding-left: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-sizing: border-box;
  z-index: 900;
}

.logo-container {
  width: 205px;
  padding: 30px 0 0 0;
  display: flex;
  justify-content: flex-start;
  margin-bottom: 5px;
}

.logo {
  width: 205px;
  height: auto;
  display: block;
}

.name-container {
  width: 205px;
  text-align: left;
  margin-bottom: 5px;
}

.top-line,
.bottom-line,
.line {
  border-top: 5px solid #190B28;
  width: 205px;
  margin: 8px 0;
}

.name {
  font-weight: 700;
  font-size: 40px;
  color: #190B28;
  margin: 10px 0;
  line-height: 40px;
}

.section-title {
  font-weight: 700;
  color: #190B28;
  margin: 0 0 12px 0;
  text-transform: uppercase;
  font-size: 20px;
}

.sidenav a {
  text-decoration: none;
  font-size: 20px;
  color: #190B28;
  display: block;
  margin: 0;
  line-height: 2;
}

.content {
  margin-left: 235px;
  padding: 30px 30px 30px 30px;
  box-sizing: border-box;
  flex: 1;
}

.image-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: stretch;
  gap: 30px;
  margin-bottom: 30px;
}

.image-row.double-gap {
  gap: 30px;
}

.container {
  position: relative;
  flex: 1 1 0;
  display: flex;
  align-items: stretch;
  height: 440px;
}

.container.tall {
  min-height: unset;
  max-height: 100%;
}

.container.tall .main-image {
  object-fit: contain;
  object-position: left;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.image-row.full-width {
  display: block;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.image-row.full-width .container {
  width: 100%;
  max-width: 100%;
  height: auto;
  flex: 1 1 100%;
}

.image-row.full-width .main-image {
  width: 100%;
  height: auto;
  max-height: 622px;
  object-fit: contain;
}

.container.verytall .main-image {
  object-fit: contain;
  object-position: left;
  width: 100%;
  min-height: 833px;
  height: auto;
  max-width: 100%;
}

.main-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

.main-image.square {
  width: 440px;
  height: 440px;
}

.rectangles {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 30px;
  flex-shrink: 0;
  width: 205px;
}

.rectangle {
  display: block;
  width: 205px;
  height: auto;
}

.overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.container:hover .overlay {
  opacity: 1;
}

.overlay-orange { background-color: #E98A15; }
.overlay-magenta { background-color: #59114D; }
.overlay-purple { background-color: #190B28; }
.overlay-mgreen { background-color: #074F57; }

.text.bottom-left {
  color: white;
  font-size: 40px;
  font-weight: 400;
  position: absolute;
  bottom: 28px;
  left: 26px;
  text-align: left;
  line-height: 40px;
}

.text.bottom-left strong {
  font-weight: 700;
}

.svg-text {
  fill: white;
  font-family: "forma-djr-text", sans-serif;
  font-size: 40px;
  font-weight: 400;
}

.rectangle-link:hover .svg-text {
  font-weight: 700 !important;
}

.topbar {
  display: none;
}

.logo-area {
  display: flex;
  align-items: stretch;
  position: relative;
  width: 100%;
}

.logo-mobile {
  width: 102px;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.name-container-mobile {
  position: relative;
  flex-grow: 1;
  margin-left: 11px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.top-line-mobile,
.bottom-line-mobile {
  position: absolute;
  left: 0;
  right: 0;
  height: 5px;
  background: #190B28;
}

.top-line-mobile {
  top: 0;
}

.bottom-line-mobile {
  bottom: 0;
}

.name-mobile {
  font-size: 30px;
  font-weight: 700;
  color: #190B28;
  margin: 0;
  line-height: 1.2;
  position: relative;
  z-index: 1;
  text-align: left;
  width: 100%;
}

.burger {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 7px;
  width: 31px;
  height: 22px;
  cursor: pointer;
  z-index: 1100;
}

.burger span {
  display: block;
  height: 4px;
  background: #190B28;
  border-radius: 0;
}

@media (max-width: 900px) {
  .topbar {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    background: #fff;
    z-index: 1000;
    align-items: flex-start;
    padding: 16px 13px 8px 13px;
    box-sizing: border-box;
  }

  .content {
    margin-left: 0;
    padding: 20px 13px;
    padding-top: 126px;
  }

  .image-row {
    flex-direction: column;
    height: auto;
    margin-top: 12px;
    gap: 30px;
  }

  .image-row:first-child {
    margin-top: 0;
  }

  .container {
    width: 100%;
    height: auto;
    gap: 0;
  }

  .container.tall {
    height: auto !important;
    width: auto !important;
  }

  .container.verytall {
    height: auto !important;
  }

  .main-image,
  .main-image.square {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    object-fit: contain;
  }

  .image-row .container {
    flex: 1 1 auto !important;
    max-width: 100% !important;
  }

  .image-row .container img[style] {
    width: 100% !important;
    height: auto !important;
  }

  .rectangles {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .rectangle {
    width: 100%;
    height: auto;
    max-width: none;
    max-height: none;
    margin-left: 0;
    margin-right: 0;
    display: block;
  }

  .sidenav {
    position: fixed;
    right: -250px;
    left: auto;
    top: 139px;
    width: 235px;
    height: calc(100vh - 139px);
    background: #fff;
    transition: right 0.3s ease;
    z-index: 1000;
    padding: 0 12px 0 8px;
    border-left: none;
    margin-top: 0;
    box-shadow: 0 -13px 0 0 #fff;
  }

  .sidenav .logo-container,
  .sidenav .name-container {
    display: none;
  }

  .sidenav.open {
    right: 0;
  }

  .hide-on-mobile {
    display: none;
  }

  .collage-shift {
    margin-top: 0;
  }
  .container.image-fit {
    flex: 1 1 auto !important;
    width: 100% !important;
    height: auto !important;
    display: flex !important;
  }

  .container.image-fit .main-image {
    width: 100% !important;
    height: auto !important;
  }
}

.container.full,
.main-image.full {
  width: auto;
  height: auto;
  max-height: 550px;
}

.main-image.full {
  object-fit: contain;
  object-position: center;
}

.container.fuller,
.main-image.fuller {
  width: auto;
  height: auto;
  max-height: 800px;
}

.main-image.fuller {
  object-fit: contain;
  object-position: center;
}

.rectangle-container {
  display: flex;
  align-items: stretch;
  height: auto;
}

.rectangle-fill {
  width: 100%;
  height: 100%;
  display: block;
}

.right-column {
  display: flex;
  flex-direction: column;
  gap: 30px;
  flex: 1;
}

.image-row.tall-match {
  display: flex;
  align-items: stretch;
  gap: 30px;
  height: auto;
}

.image-row.tall-match > .container {
  height: auto;
}

.image-row.tall-match > .container .main-image {
  height: 100%;
  object-fit: cover;
}

.image-row.tall-match > .right-column .container {
  flex: 1 1 0;
  height: auto;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

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

.container.tall-free {
  height: auto;
  align-items: flex-start;
}

.container.tall-free .main-image {
  object-fit: contain;
}

.collage-row {
  margin-top: -200px;
  position: relative;
  z-index: 1;
}

.column {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.column.right {
  max-width: 428px;
  max-height: 100%;
  flex: 1 1 428px;
}

.column.left {
  flex: 1 1 0;
}

.sketch-container {
  width: 100%;
  height: auto;
}

.sketch-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.vertical-gap {
  height: 53px;
  width: 100%;
  display: block;
  flex: none;
}

.image-row.align-to-first {
  display: flex;
  align-items: stretch;
  gap: 30px;
  width: 100%;
}

.reference-img {
  height: 440px;
  display: flex;
  align-items: stretch;
}

.reference-img .main-image {
  height: 100%;
  width: 100%;
  object-fit: contain;
  display: block;
}

.image-row.align-to-first .container:not(.reference-img) {
  height: 440px;
  display: flex;
  align-items: stretch;
}

.image-row.align-to-first .container:not(.reference-img) .main-image {
  height: 100%;
  width: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 900px) {
  .image-row.align-to-first {
    flex-direction: column;
    gap: 20px;
  }
  .reference-img,
  .image-row.align-to-first .container {
    max-width: 100%;
  }
  .main-image {
    max-height: 50vh;
    width: 100%;
    height: auto;
  }
  .hide-mobile {
    display: none !important;
  }
   /* Stack About columns */
  .about-columns {
    flex-direction: column;
    gap: 20px;
  }

  .about-left,
  .about-right {
    width: 100% !important;
    flex: none;
  }

  .line.full {
    width: 100vw;  /* exactly viewport width */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  /* Centre the About main image */
  .container.image-fit {
    margin: 0 auto;
    justify-content: center;
    align-items: center;
    width: 100% !important;
    max-width: 300px; /* keeps image from being too huge */
  }

  .container.image-fit .main-image {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
  }
  .about-page .container.image-fit {
    max-width: 90vw;
    width: 100%;
    margin: 0 auto;
  }
  .about-page .container.image-fit .main-image {
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
  }
  .about-page .line.full {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .about-page .rectangles,
  .about-page .rectangle {
    width: 100%;
    max-width: 100%;
  }
  .about-page form {
    max-width: 100%;
    width: 100%;
  }
  .about-page form .rectangle {
    width: 100% !important;
    min-width: 0;
    max-width: 100% !important;
  }
}

.container.image-fit {
  flex: 0 0 auto;
  aspect-ratio: 1 / 1;
  height: auto;
  max-width: 537px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.container.image-fit .main-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
}

.line-with-text {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.line-text {
  margin-bottom: -2px;
  font-size: 40px;
  font-weight: 700;
  color: #190B28;
}

.line.full {
  border-top: 5px solid #190B28;
  width: 100%;
}

.about-columns {
  display: flex;
  align-items: stretch;
  gap: 30px;
}

.about-left {
  width: 197px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-right {
  width: 417px;
  flex-shrink: 0;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 512px;
}

.form-row {
  display: flex;
  gap: 15px;
}

.form-row .form-group {
  flex: 1;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px;
  border: none;
  background: #eaeaea;
  font-size: 16px;
  font-family: inherit;
  box-sizing: border-box;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

form .rectangle {
  width: 512px !important;
  height: 71px !important;
  display: block;
}
.form-success-btn {
  width: 100%;
  max-width: 512px; /* Match the width of .line.full or .line-text if needed */
  display: block;
  margin-top: 20px;
}

.form-success-btn .rectangle {
  width: 100%;
  height: 71px;
  display: block;
}