/*
Theme Name: Rue Grafisk Design Child Theme
Theme URI: http://www.ruegrafiskdesign.dk
Template: Divi
Author: Rue Grafisk Design
Author URI: http://www.ruegrafiskdesign.dk
Tags: responsive-layout,one-column,two-columns,three-columns,four-columns,left-sidebar,right-sidebar,custom-background,custom-colors,featured-images,full-width-template,post-formats,rtl-language-support,theme-options,threaded-comments,translation-ready
Version: 3.0.66.1502289322
Updated: 2017-08-09 16:35:22

*/

/*-------------------------------------- Misc --------------------------------------*/

.rain-aspect-1-1{
	aspect-ratio: 1/1;
}

.rain-flex{
  display: flex;
}

.rain-vertical-center{
  justify-content: center;
  flex-direction: column;
}


.rain-card {
  aspect-ratio: 4 / 5;
  box-sizing: border-box;
  overflow: hidden;

  --duration: 6s;
}

/* 1: Top-left */
.rain-card.rain-card--1 {
  --rounded: 50% 0 0 0 / 40% 0 0 0;

  animation: rain-morph-1 var(--duration)
    cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

/* 2: Arch */
.rain-card.rain-card--2 {
  --rounded: 50% 50% 0 0 / 40% 40% 0 0;

  animation: rain-morph-2 var(--duration)
    cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

/* 3: Top-right + bottom-left */
.rain-card.rain-card--3 {
  --rounded: 0 50% 0 50% / 0 40% 0 40%;

  animation: rain-morph-3 var(--duration)
    cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes rain-morph-1 {
  0% {
    border-radius: 0;
  }

  35%, 75% {
    border-radius: var(--rounded);
  }

  100% {
    border-radius: 0;
  }
}

@keyframes rain-morph-2 {
  0%, 10% {
    border-radius: 0;
  }

  45%, 75% {
    border-radius: var(--rounded);
  }

  100% {
    border-radius: 0;
  }
}

@keyframes rain-morph-3 {
  0%, 20% {
    border-radius: 0;
  }

  55%, 75% {
    border-radius: var(--rounded);
  }

  100% {
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rain-card.rain-card--1,
  .rain-card.rain-card--2,
  .rain-card.rain-card--3 {
    animation: none;
    border-radius: var(--rounded);
  }
}

@media only screen and (max-width: 980px){
	.grid-2-col{
		display: grid;
		grid-template-columns: auto auto;
		grid-template-rows: auto auto;
		gap: 30px 0;
		justify-items:center;
	}
	.grid-3-col{
        display: grid;
        grid-template-columns: auto auto auto;
        gap: 0 30px;
        justify-items: center;
	}
	
	.grid-order-parent{
		display:grid;
	}

	.grid-order-1{
		order: 1;
	}
	
	.grid-order-2{
		order: 2;
	}

}


/*-------------------------------- Journey animation --------------------------------*/

.journey {
  --journey-color: #612515;
  --journey-background: #f6f3eb;

  --arc-size: clamp(280px, 34vw, 380px);
  --circle-size: clamp(150px, 20vw, 240px);
  --line-width: 3px;

  overflow: hidden;
}


/* ROW */

/* .journey-row {
  position: relative;
  min-height: var(--arc-size);
  isolation: isolate;
  display: flex;
} */

.journey-row {
  container-type: inline-size;

  position: relative;
  min-height: var(--arc-size);
  isolation: isolate;
  display: flex;
}


/* Stop Divi's Code-module wrappers becoming positioning parents */

.journey-row .et_pb_code_inner {
  position: static;
}


/* SEMICIRCLE */

.journey-arc {
  position: absolute;
  top: 0;
  z-index: -1;

  width: var(--arc-size);
  height: var(--arc-size);

  overflow: visible;
  pointer-events: none;
}

.journey-row--left .journey-arc {
  left: 0;
}

.journey-row--right .journey-arc {
  right: 0;
}

.journey-arc path {
  fill: none;
  stroke: var(--journey-color);
  stroke-width: var(--line-width);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  shape-rendering: geometricPrecision;
  will-change: stroke-dashoffset;
}


/* STRAIGHT CONNECTING LINE */

.journey-straight {
  position: absolute;
  top: calc(var(--arc-size) - var(--line-width) / 2);
  z-index: -1;

  height: var(--line-width);
  background: var(--journey-color);

  transform: scaleX(var(--line-progress, 0));
  will-change: transform;
}

.journey-row--left .journey-straight {
  left: calc(var(--arc-size) / 2);
  right: calc(var(--arc-size) / 2);
  transform-origin: left;
}

.journey-row--right .journey-straight {
  left: calc(var(--arc-size) / 2);
  right: calc(var(--arc-size) / 2);
  transform-origin: right;
}


/* Let the final line leave the last semicircle */

.journey-row--last .journey-straight {
  right: 0;
}


/* NUMBER MODULE */

.journey-number {
  width: var(--circle-size);
  aspect-ratio: 1;

  display: grid;
  place-items: center;

  margin-inline: auto;
  border-radius: 50%;
  background: var(--journey-color);
  color: var(--journey-background);

  opacity: 0.3;
  transform: scale(0.86);

  transition:
    opacity 0.4s ease,
    transform 0.55s cubic-bezier(0.2, 0.9, 0.25, 1.2);
}

.journey-number .et_pb_text_inner {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.journey-number p {
  padding: 0;
}


/* ACTIVATED BY JAVASCRIPT */

.journey-row.is-active .journey-number {
  opacity: 1;
  transform: scale(1);
}


/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
  .journey-arc path {
    stroke-dashoffset: 0 !important;
  }

  .journey-straight {
    transform: scaleX(1) !important;
  }

  .journey-number {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* DIVI and Wordpress Fixes */

/* Make Divi's single column fill the row width */

/* .journey-row > .et_pb_column {
  position: relative;
  width: 100%;
  display: grid;
  align-items: center;
} */

.journey-row > .et_pb_column {
  position: relative;
  width: 100%;

  display: grid;
  grid-template-columns:
    var(--arc-size)
    minmax(0, 1fr)
    var(--arc-size);

  align-items: center;
}


/* Left: circle 34%, copy gets the rest */

/* .journey-row--left > .et_pb_column {
  grid-template-columns: 34% 1fr 34%;
} */


/* Right: copy gets the rest, circle 34% */

/* .journey-row--right > .et_pb_column {
  grid-template-columns: minmax(0, 1fr) 34%;
} */


/* Remove Code module from grid flow */

.journey-row .et_pb_code {
  position: absolute;
  inset: 0;
  margin: 0;
  pointer-events: none;
}


/* Left positioning */

.journey-row--left .journey-number {
  grid-column: 1;
  grid-row: 1;
}

.journey-row--left .journey-copy {
  grid-column: 2 / 4;
  grid-row: 1;
}


/* Right positioning */

.journey-row--right .journey-number {
  grid-column: 3;
  grid-row: 1;
}

.journey-row--right .journey-copy {
  grid-column: 1 / 3;
  grid-row: 1;
}


/* Divi spacing */

.journey-row .journey-number,
.journey-row .journey-copy {
  margin-bottom: 0;
}




/*-------------------------------------- Mobile Journey --------------------------------------*/


@media (max-width: 720px) {

  .journey {
    --circle-size: 78px;
    --mobile-row-gap: 60px;
    overflow: hidden;
  }


  /* ROW */

  .et_pb_section .et_pb_row.journey-row {
    display: block;
    min-height: 0;

    padding-top: 0 !important;
    padding-bottom: var(--mobile-row-gap) !important;

    overflow: visible;
  }

  /*
   * Same specificity as the rule above,
   * otherwise Divi/the previous rule wins.
   */

  .et_pb_section .et_pb_row.journey-row--last {
    padding-bottom: 0 !important;
  }



  /* MOBILE GRID */

  .journey-row > .et_pb_column {
    display: grid;

    grid-template-columns:
      var(--circle-size)
      minmax(0, 1fr);

    gap: 22px;
    align-items: start;
    width: 100%;
  }


  /* KEEP CODE MODULE AS OVERLAY */

  .journey-row .et_pb_code {
    display: block;
    position: absolute;
    inset: 0;
    margin: 0;
    pointer-events: none;
  }


  /* HIDE DESKTOP ARC */

  .journey-arc {
    display: none;
  }


  /* REMOVE ANY OLD PSEUDO-ELEMENT LINES */

  .journey-row::before,
  .journey-row::after {
    content: none !important;
    display: none !important;
  }


  /* NUMBER */

  .journey-row--left .journey-number,
  .journey-row--right .journey-number {
    grid-column: 1;
    grid-row: 1;

    width: var(--circle-size);
    margin: 0;
    z-index: 2;

    opacity: 1;
    transform: none;
    transition: none;
  }


  /* COPY */

  .journey-row--left .journey-copy,
  .journey-row--right .journey-copy {
    grid-column: 2;
    grid-row: 1;

    margin: 0;
    padding: 6px 0 0;
    z-index: 1;
  }


 /* VERTICAL LINE */

  .journey .journey-row .journey-straight {
    position: absolute;

    /* Horizontal centre of the number */
    left: calc(var(--circle-size) / 2);

    /*
     * Start directly underneath the current circle,
     * rather than behind its centre.
     */
    top: var(--circle-size);

    right: auto;
    bottom: auto;

    width: var(--line-width);

    /*
     * Column height
     * + row padding
     * - circle height
     *
     * This ends exactly at the top of the next circle.
     */
    height: calc(
      100% +
      var(--mobile-row-gap) -
      var(--circle-size)
    );

    background: var(--journey-color);

    transform:
      translateX(-50%)
      scaleY(var(--mobile-progress, 0));

    transform-origin: 50% 0;

    z-index: 0;
    will-change: transform;
  }


  /* NO LINE AFTER 05 */

  .journey .journey-row--last .journey-straight {
    display: none;
  }
}


  /* REMOVE OLD INNER ANIMATED LINE */

  .journey-straight::before,
  .journey-straight::after {
    content: none !important;
    display: none !important;
  }


/*-------------------------------------- Forside --------------------------------------*/
.rain-margin-top-hero{
  margin-top: -100px;
}

@media (max-width: 980px) {

  .rain-margin-top-hero{
    margin-top: 0px;
  }

}



/*-------------------------------------- Blog --------------------------------------*/


