:root {
  --font-size-h1-masthead: 70px;
}
@media (max-width: 1024px) {
  :root {
    --font-size-h1-masthead: 50px;
  }
}
@media (max-width: 767px) {
  :root {
    --font-size-h1-masthead: 40px;
  }
}

.masthead {
  position: relative;
}
.masthead__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(40px, 4vw, 80px) 0 clamp(40px, 3vw, 60px);
  gap: clamp(20px, 3vw, 80px);
  min-height: 90vh;
  justify-content: space-between;
}
@media (max-width: 1024px) {
  .masthead__content {
    min-height: 50vh;
  }
}
.masthead__content--header {
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 55%;
}
@media (max-width: 1024px) {
  .masthead__content--header {
    max-width: 100%;
    width: 100%;
  }
}
.masthead__content--actions {
  max-width: 350px;
  position: relative;
  display: flex;
  flex-direction: column;
}
@media (max-width: 767px) {
  .masthead__content--actions {
    flex-wrap: wrap;
    flex-direction: row;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    max-width: 100%;
  }
}
.masthead__content--actions .masthead__action {
  width: 100%;
  padding: 2% 0;
  background-color: transparent;
  position: relative;
  color: var(--color-primary-white);
  font-size: var(--font-size-body-large);
  line-height: var(--line-height-body-large);
  letter-spacing: var(--letter-spacing-body);
  font-family: var(--font-family-body);
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 20px;
  text-transform: uppercase;
  transition: all ease-in-out 0.4s;
}
@media (max-width: 1566px) {
  .masthead__content--actions .masthead__action {
    padding: 2% 0;
  }
}
.masthead__content--actions .masthead__action:after {
  content: "";
  position: absolute;
  background-color: transparent;
  top: 0;
  left: -60px;
  width: calc(100% + 60px);
  height: 100%;
  z-index: 0;
  transition: all ease-in-out 0.4s;
}
@media (max-width: 767px) {
  .masthead__content--actions .masthead__action:after {
    width: 100%;
    left: 0;
  }
}
.masthead__content--actions .masthead__action:hover {
  color: var(--color-primary-red);
  text-decoration: underline;
  text-underline-offset: 3px;
  z-index: 1;
}
.masthead__content--actions .masthead__action:hover:after {
  background-color: var(--color-primary-white);
}
.masthead__content--actions .masthead__action:hover .masthead__action--text::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 20px;
}
@media (max-width: 767px) {
  .masthead__content--actions .masthead__action:hover .masthead__action--text::after {
    display: none;
  }
}
.masthead__content--actions .masthead__action:hover .masthead__action--icon * {
  fill: transparent;
  stroke: var(--color-primary-red);
  transition: all ease-in-out 0.4s;
}
.masthead__content--actions .masthead__action:hover svg path[mask] {
  stroke: transparent;
  fill: var(--color-primary-red);
  mask: none;
}
.masthead__content--actions .masthead__action--text, .masthead__content--actions .masthead__action--icon {
  position: relative;
  z-index: 1;
}
.masthead__content--actions .masthead__action--text::after {
  display: none;
}
.masthead__content--actions .masthead__action svg {
  width: clamp(35px, 1.8vw, 4vw);
  height: clamp(35px, 1.8vw, 4vw);
  max-width: 40px;
}
@media (max-width: 767px) {
  .masthead__content--actions .masthead__action svg {
    width: 25px;
    height: 25px;
  }
}
.masthead__content--actions .masthead__action svg path, .masthead__content--actions .masthead__action svg rect, .masthead__content--actions .masthead__action svg circle {
  stroke: var(--color-primary-white);
  transition: all ease-in-out 0.4s;
}
.masthead__content--actions .masthead__action svg path[mask] {
  fill: var(--color-primary-white);
  transition: all ease-in-out 0.4s;
}
.masthead__content--actions .masthead__action {
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}
.masthead__content--actions .masthead__action:last-child {
  border-bottom: none;
}
@media (max-width: 767px) {
  .masthead__content--actions .masthead__action:last-child {
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  }
}
@media (max-width: 767px) {
  .masthead__content--actions .masthead__action {
    flex: 1 0 calc(50% - 20px);
    padding: 2% 10px;
    border-right: 2px solid rgba(255, 255, 255, 0.3);
  }
  .masthead__content--actions .masthead__action:nth-child(even) {
    border-right: none;
  }
}
@media (max-width: 767px) {
  .masthead__content {
    width: calc(100% - 20px);
    height: 620px;
    gap: 35px;
    justify-content: flex-end;
    padding: 20px 0;
  }
}
.masthead__background {
  position: absolute;
  aspect-ratio: 1920/975;
  width: 100%;
  height: 100%;
  z-index: 0;
  top: 0;
  left: 0;
}
@media (max-width: 1024px) {
  .masthead__background {
    height: calc(100% - 360px);
  }
}
@media (max-width: 767px) {
  .masthead__background {
    aspect-ratio: 1/1;
    height: 466px;
  }
}
.masthead__background:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(270deg, rgba(0, 0, 0, 0) 0%, rgba(30, 30, 30, 0.85) 100%);
  max-width: 46.875%;
}
@media (max-width: 767px) {
  .masthead__background:after {
    background: linear-gradient(0deg, #000000 11.01%, rgba(0, 0, 0, 0) 52.03%);
    max-width: 100%;
  }
}
@media (max-width: 767px) {
  .masthead__background:before {
    content: "";
    background: #000000;
    width: 100%;
    height: 620px;
    top: 0;
    left: 0;
    position: absolute;
  }
}
.masthead__background--picture {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.masthead__background--img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: right top;
}
@media (max-width: 1024px) {
  .masthead__background--img {
    object-position: 30% center;
  }
}
@media (max-width: 767px) {
  .masthead__background--img {
    object-position: center 35%;
  }
}
.masthead__title {
  color: var(--color-primary-white);
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  text-transform: capitalize;
}
.masthead__title--primary {
  font-size: var(--font-size-h1-masthead);
  line-height: var(--line-height-h1);
  letter-spacing: var(--letter-spacing-h1);
  font-family: var(--font-family-heading);
  font-weight: 700;
}
.masthead__title--secondary {
  font-size: var(--font-size-h1-masthead);
  line-height: var(--line-height-h1);
  letter-spacing: var(--letter-spacing-h1);
  font-family: var(--font-family-heading);
  font-weight: 700;
  white-space: nowrap;
}
.masthead__description {
  color: var(--color-primary-white);
  font-size: var(--font-size-body-large);
  line-height: 1.3;
  letter-spacing: var(--letter-spacing-body);
  font-family: var(--font-family-body);
  font-weight: 500;
}
@media (max-width: 767px) {
  .masthead__description {
    display: none;
  }
}
.masthead__overlay {
  position: absolute;
  bottom: 40px;
  right: max(5%, (100vw - 1800px) / 2);
  max-width: 732px;
  flex-direction: row;
  background: rgba(255, 255, 255, 0.9);
  padding: 15px;
  gap: 20px;
  align-items: center;
  display: flex;
  width: clamp(400px, 30%, 550px);
  z-index: 1;
}
.masthead__overlay:before {
  content: "";
  position: absolute;
  top: unset;
  left: unset;
  bottom: 10px;
  right: 10px;
  width: 30%;
  height: 30%;
  background-image: url("data:image/svg+xml,%3Csvg width%3D%2260%22 height%3D%2260%22 viewBox%3D%220 0 60 60%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M52 0V52H0%22 stroke%3D%22%23B4181E%22 stroke-width%3D%2216%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: 30%;
}
@media (max-width: 767px) {
  .masthead__overlay:before {
    width: 40px;
    height: 40px;
    background-size: 40px 40px;
  }
}
.masthead__overlay--imgs {
  position: relative;
  aspect-ratio: 1/1;
  flex: 0 1 clamp(120px, 45%, 300px);
  max-width: 300px;
  max-height: 300px;
  overflow: hidden;
}
@media (max-width: 767px) {
  .masthead__overlay--imgs {
    flex: 0 0 150px;
    width: 150px;
    height: 150px;
    max-width: 150px;
    max-height: 150px;
  }
}
.masthead__overlay--imgs img {
  position: absolute;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center center;
  top: 0;
  left: 0;
}
.masthead__overlay--content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1 1 0;
  min-width: 0;
}
@media (max-width: 767px) {
  .masthead__overlay--content {
    gap: 15px;
  }
}
.masthead__overlay--header {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
@media (max-width: 767px) {
  .masthead__overlay--header {
    gap: 10px;
  }
}
.masthead__overlay--tag {
  padding: 2px 12px;
  border-radius: 20px;
  border: 1px solid #000;
  width: fit-content;
  font-size: var(--font-size-caption);
  line-height: var(--line-height-caption);
  font-family: var(--font-family-body);
  font-weight: 500;
}
.masthead__overlay--title {
  font-size: var(--font-size-body-large);
  line-height: var(--line-height-body-large);
  letter-spacing: var(--letter-spacing-body);
  font-family: var(--font-family-body);
  font-weight: 700;
}
.masthead__overlay--title-link {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-decoration: none;
}
.masthead__overlay--title-link:hover,
.masthead__overlay--title-link:focus-visible {
  text-decoration: underline;
}
.masthead__overlay--action,
.masthead__overlay--deeda {
  font-size: var(--font-size-text-link);
  line-height: var(--line-height-text-link);
  letter-spacing: var(--letter-spacing-text-link);
  font-family: var(--font-family-body);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-secondary-red);
}
.masthead__overlay--action:hover,
.masthead__overlay--deeda:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--color-primary-red);
}
@media (max-width: 1024px) {
  .masthead__overlay {
    position: relative;
    bottom: unset;
    right: unset;
    width: 100%;
    padding: 30px 20px;
    max-width: 100%;
    gap: 15px;
  }
}
.masthead .modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}
.masthead .modal.is-open {
  display: block;
}
.masthead .modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.masthead .modal__box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-primary-white);
  padding: 40px;
  max-width: 1495px;
  width: calc(100% - 120px);
  max-height: fit-content;
  overflow-y: auto;
  display: flex;
  flex-direction: row;
  gap: 60px;
  align-items: center;
}
@media (max-width: 767px) {
  .masthead .modal__box {
    flex-direction: column;
    width: calc(100% - 30px);
    gap: 30px;
    align-items: flex-start;
    max-height: calc(100% - 30px);
  }
}
.masthead .modal__close {
  position: absolute;
  top: 52px;
  right: 52px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
@media (max-width: 767px) {
  .masthead .modal__close {
    top: 15px;
    right: 15px;
  }
  .masthead .modal__close svg {
    width: 16px;
    height: 16px;
  }
}
.masthead .modal__image {
  position: relative;
  aspect-ratio: 1/1;
  flex: 0 1 clamp(150px, 45%, 600px);
  max-width: 600px;
  max-height: 600px;
  overflow: hidden;
}
@media (max-width: 767px) {
  .masthead .modal__image {
    flex: 0 0 auto;
    width: min(280px, 100%);
    max-width: 280px;
    max-height: 280px;
  }
}
.masthead .modal__image img {
  position: absolute;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center center;
  top: 0;
  left: 0;
}
.masthead .modal__content {
  margin: 60px 0;
  flex: 1 1 0;
  min-width: 0;
}
@media (max-width: 767px) {
  .masthead .modal__content {
    margin: 0;
    flex: 0 0 auto;
    width: 100%;
  }
}
.masthead .modal__content--header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}
.masthead .modal__content--tag {
  padding: 2px 12px;
  border-radius: 20px;
  border: 1px solid #000;
  width: fit-content;
  font-size: var(--font-size-caption);
  line-height: var(--line-height-caption);
  font-family: var(--font-family-body);
  font-weight: 500;
}
.masthead .modal__content--title {
  font-size: var(--font-size-h3);
  line-height: var(--line-height-h3);
  letter-spacing: var(--letter-spacing-h3);
  font-family: var(--font-family-header);
  font-weight: 700;
}
