@import url("https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap");

@font-face {
  font-family: "WixMadeforText";
  src: url("../../assets/fonts/WixMadeforText-VariableFont_wght.ttf")
      format("truetype"),
    url("../../assets/fonts/WixMadeforText-Italic-VariableFont_wght.ttf")
      format("truetype");
  font-weight: 100 900;
  font-style: normal, italic;
  font-display: swap;
}

/* Inner row capped at 1200px; image + copy share space with fluid type */
.image-column {
  width: 100%;
  box-sizing: border-box;
  background-color: transparent;
  padding: clamp(2rem, 5vw, 2.5rem) clamp(1rem, 4vw, 2rem);
}

.image-column:not(.image-column--image-large) {
  padding-bottom: 0;
}

.image-column__inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 3.5vw, 2.25rem);
  width: 100%;
  max-width: min(1200px, 100%);
  margin: 0 auto;
  box-sizing: border-box;
}

.image-column__inner > :only-child {
  flex: 1 1 100%;
}

.image-column__inner > .image-column__content:only-child {
  max-width: min(38rem, 100%);
  margin-inline: auto;
  text-align: center;
}

.image-column--image-right .image-column__inner {
  flex-direction: row-reverse;
}

.image-column__image {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  max-width: none;
  box-sizing: border-box;
  border-radius: clamp(12px, 1.25vw, 20px);
  overflow: hidden;
  border: 2px solid #a3b199;
}

.image-column__image img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 800 / 540;
  object-fit: cover;
}

/* Large image: ACF "Large" — square, capped so it fits the 1200px content row */
.image-column--image-large .image-column__image {
  flex: 0 1 clamp(220px, 42%, 480px);
  width: auto;
  max-width: min(480px, 100%);
}

.image-column--image-large .image-column__image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.image-column__content {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  max-width: none;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.5vw, 27px);
  color: var(--Skog, #003d3e);
}

.image-column--image-large .image-column__content {
  flex: 1 1 0;
  min-width: min(100%, 15rem);
}

.image-column__content h2 {
  color: #a0b297;
  font-family: "Futura", "WixMadeforText", "Raleway", sans-serif;
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3.25rem);
  font-style: normal;
  font-weight: 400;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

.image-column__description {
  margin: 0;
  width: 100%;
  max-width: 100%;
  color: #fff;
  font-family: "WixMadeforText", "Raleway", sans-serif;
  font-size: clamp(0.9375rem, 0.35vw + 0.82rem, 1.6875rem);
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
}

.image-column__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: clamp(0.5rem, 1.5vw, 1.25rem);
  padding: 1em 2.5em;
  border-radius: 40px;
  box-sizing: border-box;
  background-color: #232323;
  color: #A3B199;
  box-shadow: -3px -3px 5px 0 rgba(255, 255, 255, 0.20);
  border: 1px solid #A3B199;
  font-family: "WixMadeforText", "Raleway", sans-serif;
  font-size: clamp(0.8125rem, 0.35rem + 1.1vw, 0.9375rem);
  font-weight: 400;
  line-height: 1.3;
  text-decoration: none;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}



.image-column__button:focus-visible {
  outline: 2px solid #a3b199;
  outline-offset: 3px;
}

@media screen and (max-width: 1280px) {
  .image-column__inner {
    max-width: 90%;
  }
}

@media screen and (max-width: 1200px) {
  .image-column__content h2 {
    line-height: 1.12;
  }
}

@media screen and (max-width: 900px) {
  .image-column__inner,
  .image-column--image-right .image-column__inner {
    flex-direction: column;
    align-items: stretch;
    gap: clamp(1.25rem, 5vw, 2rem);
  }
  .image-column {
    padding-inline: clamp(0.875rem, 4vw, 1.25rem);
  }

  /* Same wrapper + img for small and large */
  .image-column__image,
  .image-column--image-large .image-column__image {
    flex: none;
    width: 100%;
    max-width: none;
    order: -1;
    align-self: stretch;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    max-height: min(50vh, 420px);
  }

  .image-column__image img,
  .image-column--image-large .image-column__image img {
    position: absolute;
    inset: 0;
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    max-width: none;
    max-height: none;
    aspect-ratio: unset;
  }

  .image-column__content {
    flex: none;
    width: 100%;
    max-width: none;
    text-align: center;
    align-items: center;
  }

  .image-column__description {
    max-width: 42rem;
  }

  .image-column__button {
    align-self: center;
  }
}

@media screen and (max-width: 480px) {
  .image-column {
    padding-inline: clamp(0.875rem, 4vw, 1.125rem);
  }

  .image-column__image,
  .image-column--image-large .image-column__image {
    max-height: min(42vh, 320px);
  }
}
