.tlc-fp {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.tlc-fp[hidden] {
  display: none !important;
}

.tlc-fp__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 70, 71, 0.72);
}

.tlc-fp__dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #f5f4ed;
  color: #114647;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 70, 71, 0.28);
  outline: none;
}

.tlc-fp.is-open .tlc-fp__dialog,
.tlc-fp.is-open .tlc-fp__backdrop {
  animation: tlc-fp-in 0.28s ease-out;
}

.tlc-fp__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(245, 244, 237, 0.92);
  color: #004647;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tlc-fp__close:hover,
.tlc-fp__close:focus-visible {
  background: #ffffff;
  outline: 2px solid #004647;
  outline-offset: 2px;
}

.tlc-fp__media {
  aspect-ratio: 1600 / 980;
  overflow: hidden;
  background: #e8e4d8;
  border-radius: 14px 14px 0 0;
}

.tlc-fp__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.tlc-fp__body {
  padding: 28px 36px 34px;
  text-align: center;
}

.tlc-fp__title {
  margin: 0 0 10px;
  color: #004647;
  font-family: "Balboa", "balboa", sans-serif;
  font-weight: 200;
  font-style: normal;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.15;
}

.tlc-fp__text {
  margin: 0 auto 22px;
  max-width: 34em;
  color: #114647;
  font-family: "Balboa", "balboa", sans-serif;
  font-weight: 200;
  font-size: 18px;
  line-height: 1.4;
}

.tlc-fp__cta {
  display: inline-block;
  min-width: 129px;
  padding: 7px 24px;
  background: var(--main-brand-colour, #004647);
  border: 0.5px solid #114647;
  border-radius: 7px;
  color: #fff;
  font-family: "Balboa", "balboa", sans-serif;
  font-weight: 200;
  font-size: 16px;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.tlc-fp__cta:hover,
.tlc-fp__cta:focus-visible {
  background: transparent;
  color: var(--main-brand-colour, #004647);
  outline: 0;
}

.tlc-fp__cta:focus-visible {
  box-shadow: 0 0 0 2px #f5f4ed, 0 0 0 4px #004647;
}

@keyframes tlc-fp-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 480px) {
  .tlc-fp {
    padding: 12px;
    align-items: flex-end;
  }

  .tlc-fp__dialog {
    width: 100%;
    max-height: calc(100vh - 24px);
    border-radius: 12px;
  }

  .tlc-fp__media {
    aspect-ratio: 1600 / 900;
    border-radius: 12px 12px 0 0;
  }

  .tlc-fp__body {
    padding: 18px 18px 24px;
  }

  .tlc-fp__title {
    font-size: 26px;
  }

  .tlc-fp__text {
    font-size: 16px;
    margin-bottom: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tlc-fp.is-open .tlc-fp__dialog,
  .tlc-fp.is-open .tlc-fp__backdrop {
    animation: none;
  }
}
