
/* mrs-saint-delafield-regular - latin */
@font-face {
  font-display: block; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Mrs Saint Delafield';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/mrs-saint-delafield-v13-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

@font-face {
    font-display: fallback;
    font-family: 'consolasregular';
    src: url('../fonts/consola-webfont.woff2') format('woff2'),
         url('../fonts/consola-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* im-fell-english-sc-regular - latin */
@font-face {
  font-display: fallback; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'IM Fell English SC';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/im-fell-english-sc-v16-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* saira-stencil-one-regular - latin */
@font-face {
  font-display: fallback; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Saira Stencil One';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/saira-stencil-one-v16-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* fredericka-the-great-regular - latin */
@font-face {
  font-display: fallback; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Fredericka the Great';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/fredericka-the-great-v21-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* dancing-script-regular - latin */
@font-face {
  font-display: fallback; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Dancing Script';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/dancing-script-v25-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* rock-salt-regular - latin */
@font-face {
  font-display: fallback; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Rock Salt';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/rock-salt-v22-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


/******************/
/* main structure */
/******************/



.heritage {
    background-color: #f2f2f2 !important;
    background-image: url("https://learngraspshow.eu/wp-content/themes/bones/library/images/sketchbook/background/white-paper-texture50light.jpg");
}

li[aria-current=true] {
    background-color: #224478;
}

li[aria-current=true] a {
    color: #fff;
}

.heritage p {
    width: 100%;
    line-height: 1.2em;
    text-align: unset;
}

.heritage #tagline {
    font-size: 1.8em;
    margin-bottom: 0.5em;
}

.heritage cite {
    text-align: right;
    width: 100%;
    display: inline-block;
    font-style: normal;
}

/*******************/
/* Common elements */
/*******************/

.heritage section .grid-i {
    position: relative;
}

.heritage section h2 {
    font-weight: normal;
}

.heritage section div img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.heritage .icon {
    position: relative;
}

.heritage button.play-button {
    position: absolute;
    width: 105%;
    height: 100%;
    top: 0px;
    left: 0;
    background-color: transparent;
    border: none;
    z-index: 3;
    cursor: pointer;
}

.heritage button.play-button.playing {
    visibility: hidden;
}

video:hover + button.play-button.playing, button.play-button.playing:hover   {
    visibility: visible;
    /*background-color: blue;*/
}

.heritage button.play-button:focus-visible img {
    outline: 3px solid white;
    border-radius: 35px;
    outline-offset: 2px;
}

@media (hover: none) and (pointer: coarse) {
    .heritage button.play-button.playing img {
        opacity: 0;
    }
}


.heritage button.play-button img {
    width: 60px;
}

.heritage button.hide {
    visibility: hidden;
}

.heritage #instructions p {
    width: 205px;
}

.heritage #instructions img {
    float: left;
    width: 30px;
    margin-right: 0.2em;
}

.heritage .tooglehide {
    display: none;
}

.heritage iframe.viewer {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
}

/************************/
/* Transition animation */
/************************/

.heritage .circle {
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -moz-border-radius: 150px;
    -webkit-border-radius: 150px;
    border-radius: 150px;
}

.heritage .reveal.circle {
    transform: scale(0.5);
    opacity: 0;
    transition: 0.75s all ease;
}

.heritage .reveal.circle.active {
    transform: scale(1);
    opacity: 1;
}


.heritage .reveal.opacity {
    opacity: 0;
    transition: 1s all ease;
    transition-delay: 0.3s;
}

.heritage .reveal.opacity.active {
    opacity: 1;

}

.heritage .reveal.twistr {
    opacity: 0;
    transform: rotate(0);
    transition: 0.55s all ease;
}

.heritage .reveal.twistr.active {
    transform: rotate(-10deg);
    opacity: 1;
}

.heritage .reveal.twistl {
    opacity: 0;
    transform: rotate(-5deg);
    transition: 0.55s all ease;
}

.heritage .reveal.twistl.active {
    transform: rotate(3deg);
    opacity: 1;
}

.heritage #section2 .grid-i-3 div.reveal.translatel {
    opacity: 0;
    transform: translateX(150px);
    transition: 0.40s all ease;
}

.heritage #section2 .grid-i-3 div.reveal.translatel.active {
    opacity: 1;
    transform: translateX(0px);
    transform: rotate(1deg);
}

.heritage .reveal.translater {
    opacity: 0;
    transform: translateX(-150px);
    transition: 0.40s all ease;
}

.heritage .reveal.translater.active {
    opacity: 1;
    transform: translateX(0px);
    transform: rotate(1deg);
}


.heritage a.learnmore {
    position: relative;
    display: block;
    text-align: center;
    width: 90px;
    border-radius: 80px;
    margin-right: auto;
    margin-left: auto;
    text-decoration: none;
    z-index: 4;
}

/*********/
/* Photo */
/*********/

.heritage .polaroid {
    display: block;
    background-color: #fff;
    margin-left: auto;
    margin-right: auto;
    padding: 20px 20px 0 20px;
    -webkit-box-shadow: 4px 4px 10px -4px rgba(102,102,102,0.30); 
    box-shadow: 4px 4px 10px -4px rgba(102,102,102,0.30);
}

.heritage .polaroid span {
    font-family: 'Rock Salt', cursive;
    display: block;
    width: 100%;
    padding-top: 10px;
    padding-bottom: 5px;
    text-align: center;
    color: #808080;
}

/*********/
/* Paper */
/*********/

.heritage .letter {
    background: #fff;
    box-shadow: 0 0 10px rgb(0 0 0 / 30%);
    margin: 5px 10px 10px 0px;
    max-width: 570px;
    min-height: 170px;
    padding: 3px 10px 10px 20px;
    position: relative;
    width: 100%;
}
.heritage .letter:before, .heritage .letter:after {
  content: "";
  height: 98%;
  position: absolute;
  width: 100%;
  z-index: -1;
}
.heritage .letter:before {
  background: #fafafa;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
  left: -5px;
  top: 4px;
  transform: rotate(-2.5deg);
}

.heritage .letter:after {
  background: #f6f6f6;
  box-shadow: 0 0 3px rgba(0,0,0,0.2);
  right: -3px;
  top: 1px;
  transform: rotate(1.4deg);
}

.heritage .box {
  padding:15px;
  position: relative;
  margin: 10px auto;
  width: 330px;
  min-height: 150px;
  background: #F8F3E8;
  border-radius: 2px;
  border:  1px solid #edecec;
}

.heritage .box::before,
.heritage .box::after {
  content: '';
  position: absolute;
  bottom: 10px;
  width: 40%;
  height: 10px;
  box-shadow: 0 5px 14px rgba(0,0,0,.7);
  z-index: -1;
  transition: all .3s ease-in-out;
}

.heritage .box::before {
  left: 15px;
  transform: skew(-5deg) rotate(-5deg);
}

.heritage .box::after {
  right: 15px;
  transform: skew(5deg) rotate(5deg);
}

.heritage .box:hover::before,
.heritage .box:hover::after {
  box-shadow: 0 2px 14px rgba(0,0,0,.4);
}

.heritage .box:hover::before {
  left: 5px;
}

.heritage .box:hover::after {
  right: 5px;
}

.heritage .letter p, .heritage p.box {
    font-family: 'consolasregular','Cutive Mono', monospace;
}



.heritage #section1 .item3 button.play-button {
    left: 170px;
}

.heritage #section1 .icon {
    bottom: 30px;
}

.heritage #section3 .item3 button.play-button {
    left: 160px;
}

.heritage #section3 .item3 span {
    position: relative;
    top: -70px;
}

.heritage #section4 .item7 button.play-button {
    top: -120px;
    left: -295px;
}


/******************/
/* Grid structure */
/******************/

.heritage .grid-container, #footer.grid-container {
    display: grid;
    grid-template-columns: repeat(20, 1fr);
    
 }

/********************************/
/* Section 1 - Seeing the world */
/********************************/

.heritage #section1 h2 {
    font-family: 'Mrs Saint Delafield';
    font-size: 5em;
    color: #666;
    margin: 1em auto 0.2em auto;
}

.heritage #section1 {
    grid-template-rows: 200px 400px;
    grid-auto-rows: 45px;
}

.heritage #section1 .grid-i-1 {
    grid-column: 1 / -1;
}

.heritage #section1 .grid-i-2 {
    z-index: 1;
    grid-column: 1 / 15;
    grid-row: 2 / 3;
}

.heritage #section1 .grid-i-3 {
    z-index: 1;
    grid-column: 15 / -1;
}

.heritage #section1 .videoplayer {
    position: relative;
    top: -50px;
    overflow: hidden;
}


.heritage #section1 .videoplayer video {
    width: 400px;
    left: -80px;
    position: relative;
}

.heritage #section1 .grid-i-4 {
    grid-column: 1 / -1;
}

.heritage #section1 .grid-i-5 {
    grid-column: 3 / 13;
    grid-row: 5 / 15;
    -moz-border-radius: 260px;
    -webkit-border-radius: 260px;
    border-radius: 260px;
    background-color: #acc3cb;
    overflow: hidden;
}

.heritage #section1 .grid-i-5 video {
    width: 100%;
}

.heritage #section1 .grid-i-5 a.learnmore {
    background-color: #ffffff8c;
    bottom: 50px;
}

 .heritage #section1 .grid-i-6 {
    grid-column: 14 / 18;
    grid-row: 4 / 8;
    position: relative;
}

/*        .heritage #section1 .item4 {
    top: -50px;
    left: 130px;
    display: block;
}*/

.heritage #section1 .grid-i-6 .circle {
    background-color: #ded5a4;
}

.heritage #section1 .grid-i-6 .icon {
    bottom: 155px;
    left: 70px;
}

.heritage #section1 .grid-i-7 {
    grid-column: 16 / 20;
    grid-row: 10 / 14;
    position: relative;
}

.heritage #section1 .grid-i-7 .circle {
    background-color: #9aa0d5;
}

.heritage #section1 .grid-i-7 .icon {
    bottom: 160px;
    left: 65px;
}

/*********************************/
/* Section 2 - 3D representation */
/*********************************/

.heritage #section2 h2 {
    font-family: 'IM Fell English SC', serif;
    font-size: 3em;
    text-align: center;
    margin-bottom: 0.5em;
    margin-right: 40px;
    width: 100%;
}

.heritage #section2 {
    grid-template-rows: 80px;
    grid-auto-rows: 45px;
    margin-top: 40px;
}

.heritage #section2 .grid-i-1 {
    grid-column: 9 / -1;
}

.heritage #section2 .grid-i-2 {
    grid-column: 4 / 10;
    grid-row: 2 / 12;
    position: relative;
}

.heritage #section2 .grid-i-2 .viewer {
    top: -130px;
    left: 5px;
    width: 100%;
    height: 120%;
}

.heritage #section2 .grid-i-2 .circle {
    height: 60%;
    background-color: #fde9db;
    border : 4px solid white;
}

.heritage #section2 .grid-i-2 .icon {
    top: -345px;
    left: 120px;
}

.heritage #section2 .grid-i-3 {
    grid-column: 11 / 20;
    grid-row:  2 / 7;
}

.heritage #section2 .grid-i-3 div {
    transform: rotate(1deg);
    position: relative;
    z-index: 5;
}

.heritage #section2 .grid-i-4 {
    grid-column: 9 / 20;
    grid-row:  8 / 19 ;
}

.heritage #section2 .grid-i-4 .circle {
    -moz-border-radius: 275px;
    -webkit-border-radius: 275px;
    border-radius: 275px;
    background-color: var(--lgs-blue);
}

.heritage #section2 .grid-i-4 .icon {
    bottom: 465px;
    left: 175px;
}


.heritage #section2 .grid-i-5 {
    grid-column: 3 / 8;
    grid-row:  13 / 18 ;
}

.heritage #section2 .grid-i-5 a.learnmore {
    top: 10px;
    background-color: #dcc2d08c;
}


.heritage #section2 .grid-i-5 .icon {
    display: block;
    float: left;
    width: 20px;
    margin-left: 40px;
    margin-right: 5px;
}

/********************************/
/* Section 3 - Condition report */
/********************************/

.heritage #section3 h2 {
    font-family: 'Saira Stencil One', cursive;
    font-size: 3em;
    text-transform: uppercase;
    margin-bottom: 0.5em;
    margin-left: 20px;
    width: 100%;
}

.heritage #section3 {
    margin-top: 40px;
    grid-template-rows: 100px;
    grid-auto-rows: 45px;
}

.heritage #section3 .grid-i-1 {
    grid-column: 1 / -1;
}

.heritage #section3 .grid-i-2 {
    grid-column: 2 / 9;
    z-index: 1;
}

.heritage #section3 .grid-i-2 .letter {
    margin-left: 10px;
    margin-top: 40px;
    width: 105%;
}

.heritage #section3 .letter:before {
    left: 13px;
    top: 4px;
}

.heritage #section3 .grid-i-3 {
    grid-column: 11 / -1;
    grid-row: 2 / 15;
    z-index: 1;
}

.heritage #section3 .grid-i-3 div {
    width: 400px;
    height: 520px;
    transform: rotate(1deg);
}

.heritage #section3 .grid-i-3 .viewer {
    height: 90%;
}


.heritage #section3 .grid-i-3 .square {
    position: absolute;
    z-index: 0;
    top: 100px;
    /* left: 190px; */
    width: 400px;
    height: 300px;
    background-color: #e3e5db;
    opacity: 50%;
    transform: rotate(0deg);
}

.heritage #section3 .grid-i-3 .icon {
    top: 0px;
    left: 0px;
    display: unset;
    vertical-align: middle;
}

.heritage #section3 .grid-i-4 {
    grid-column: 2 / 10;
    grid-row: 12 / 21;
    z-index: 1;
    overflow: hidden;
}


.heritage #section3 .grid-i-4 .polaroid {
    transform: rotate(-1deg);
    height: 360px;
}

.heritage #section3 .grid-i-4 .polaroid span {
    position: relative;
    bottom: 10px;
}


.heritage #section3 .grid-i-4 .square {
    position: absolute;
    width: 90%;
    height: 85%;
    z-index: 0;
    top: 17px;
    /* left: 190px; */

    background-color: #e9f0f4;
    transform: rotate(0deg);
}

.heritage #section3 .grid-i-4 video {
    position: relative;
    width: 100%;
    z-index: 3;
}

.heritage #section3 .grid-i-5 {
    grid-column: 13 / 20;
    grid-row: 16 / 24;
    z-index: 1;
}

.heritage #section3 .grid-i-5 img {
    width: 275px;
}

.heritage #section3 .item4 {
    order: 4;
    flex-basis: 30%;
    margin-top: 60px;
    margin-left: 10%;
}

.heritage #section3 .item4 div {
   width: 250px;
    height: 310px; 
}

.heritage #section3 .item5 {
    order: 5;
    position: relative;
    flex-basis: 310px;
    margin-top: 90px;
    margin-right: auto;
    margin-left: auto;
    top: -80px;
}

.heritage #section3 .grid-i-6 {
    grid-column: 6 / 12;
    grid-row: 21 / 27;
    z-index: 1;
    left: 25px;
}

.heritage #section3 .grid-i-6 .circle {
    background-color: #e7dbbf;
}

.heritage #section3 .grid-i-6 .icon {
    bottom: 250px;
    left: 80px;
}

/*********************************/
/* Section 4 - Conservation Work */
/*********************************/

.heritage #section4 {
    grid-template-rows: 100px;
    grid-auto-rows: 45px;
}

.heritage #section4 .grid-i-1 {
    grid-column: 1 / -1;
}

.heritage #section4 .grid-i-1 img {
    width: 400px;
    margin-right: 180px;
    margin-top: 30px;
}

.heritage #section4 .grid-i-2 {
    grid-column: 10 / 20;
    grid-row: 2 / 10;
    z-index: 2;
}

.heritage #section4 .letter {
    background-color: #f7f5ee;
}

.heritage #section4 .letter:before {
    top: 6px;
    left: -7px;
    transform: rotate(-1.5deg);
    opacity: 0.7;
}

.heritage #section4 .grid-i-3 {
    grid-column: 1 / 10;
    grid-row: 2 / 11;
    z-index: 1;
}

.heritage #section4 .grid-i-3 .circle {
    background-color: #e8e1e1;
    border-radius: 200px;
    -moz-border-radius:200px;
    -webkit-border-radius:200px;
}

.heritage #section4 .grid-i-3 .icon {
    bottom: 395px;
    left: -90px;
}

.heritage #section4 .grid-i-3 .learnmore {
    top: -60px; 
    background-color: #faf7f7;
}

.heritage #section4 .grid-i-4 {
    grid-column: 3 / 11;
    grid-row: 12 / 20;
    top: -20px;
    z-index: 1;
    transform: rotate(-2deg);
}

.heritage #section4 .grid-i-5 {
    grid-column: 11 / 20;
    grid-row: 11 / 18;
    z-index: 1;
    transform: rotate(2deg);
}

.heritage #section4 .polaroid {
    width: 300px;
}

.heritage #section4 .polaroid span {
    padding-bottom: 15px;

}

.heritage #section4 .polaroid > img {
    width: 300px;
}

.heritage #section4 .grid-i-6 {
    grid-column: 4 / 11;
    grid-row: 20 / 29;
    z-index: 1;
    transform: rotate(-1deg);
}

.heritage #section4 .grid-i-6 video {
    width: 300px;
}

.heritage #section4 .grid-i-7 {
    grid-column: 12 / 20;
    grid-row: 18 / 26;
    z-index: 1;
    transform: rotate(-1deg);
}


/**************************************/
/* Section 5 - Context reconstruction */
/**************************************/

.heritage #section5 h2 {
    font-family: 'Fredericka the Great', cursive;
    font-size: 4.5em;
    text-align: center;
    color: #fff;
}

.heritage #section5 {
    grid-template-rows: 160px;
    grid-auto-rows: 45px;
}

.heritage #section5 .grid-i-1 {
    grid-column: 1 / -1;
}

.heritage #section5 .grid-i-2 {
    grid-column: 1 / -1;
    grid-row: 2 / 5;
}

.heritage #section5 .grid-i-3 {
    grid-column: 2 / 6;
    grid-row: 5 / 10;
}

.heritage #section5 .grid-i-3 img {
    width: 170px;
    height: auto;
    transform: rotate(30deg);
}

.heritage #section5 .grid-i-4 {
    grid-column: 7 / 19;
    grid-row: 5 / 10;
    font-size: 1.3em;
    font-family: 'EB Garamond', serif;
    color: #fff;
}

.heritage #section5 .grid-i-5 {
    grid-column: 3 / 8;
    grid-row: 11 / 19;
}

.heritage #section5 .grid-i-5 img {
    width: 220px;
    height: auto;
}

.heritage #section5 .grid-i-6 {
    grid-column: 7 / 13;
    grid-row: 11 / 19;
}

.heritage #section5 .grid-i-6 img {
    width: 210px;
    height: auto;
}

.heritage #section5 .grid-i-7 {
    grid-column: 12 / 20;
    grid-row: 11 / 20;
}

.heritage #section5 .grid-i-7 img {
    width: 350px;
    height: auto;
}

.heritage #section5 .grid-i-8 {
    grid-column: 2 / 9;
    grid-row: 19 / 24;
    z-index: 1;
}

.heritage #section5 .grid-i-8 img {
    width: 100%;
    height: auto;
    margin:0;
}

.heritage #section5 .grid-i-9 {
    grid-column: 2 / 14;
    grid-row: 23 / 30;
}

.heritage #section5 .grid-i-9 img {
    width: 85%;
/*    margin-top: 150px;*/
/*    transform: rotate(-10deg);*/
}

.heritage #section5 .grid-i-10 {
    grid-column: 10 / 13;
    grid-row: 19 / 21;
    left: -27px;
    top: 17px;
    font-family: 'Rock Salt', cursive;
    color: #fff;
    font-size: 0.7em;
}


.heritage #section5 .grid-i-11 {
    grid-column: 11 / 20;
    grid-row: 21 / 26;
}

.heritage #section5 .grid-i-11 video {
    width: 100%;
    border: 8px double #d5cfc3;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    background-color: #a59f94
}




.mask {
    -webkit-mask-image: url("../images/heritage/mask_context.svg");
    mask-image: url("../images/heritage/mask_context_copie.svg");
    -webkit-mask-size: 1220px;
    mask-size: 1220px;
    -webkit-mask-position: top center;
    mask-position: top center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat:  no-repeat;
    background-color: #2f2f36;
    height: 1580px;
    background: url("../images/heritage/chalk_net_seamless.jpg");
    background-repeat: repeat;
}

/***********************************/
/* Section 6 - Tell your own story */
/***********************************/

.heritage #section6 h2 {
    font-family: 'Dancing Script', cursive;
    text-align: center;
    font-size: 3em;
}

.heritage #section6 {
    grid-template-rows: 120px;
    grid-auto-rows: 100px;
}

.heritage #section6 .grid-i-1 {
    grid-column: 1 / -1;
    grid-row: 1 ;
}

.heritage #section6 .grid-i-2 {
    grid-column: 1 / -1;
    grid-row: 2 ;
}

.heritage #section6 .grid-i-2 ul {
    width: 100%;
    display: inline-block;
    list-style: none;
    text-align: center;
}

.heritage #section6 .grid-i-2 ul li {
    display: inline;
    margin-right: 85px;
}

.heritage #section6 .grid-i-2 ul li img {
    display: inline;
    height: 60px;
    width: 60px;
}

/***********************/
/* Footer - Credits */
/***********************/


#footer {
    grid-template-rows: 170px;
    grid-auto-rows: 55px;
    margin-top: 60px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.85em;
}



#footer .grid-i-1 {
    grid-column: 14 / 17;6 / 8;
    grid-row: 1 ;
}

#footer .grid-i-2 {
    grid-column: 6 / 8;
    grid-row: 1 ;
}

#footer .grid-i-1 img, #footer .grid-i-2 img {
    height: 150px;
}

#footer .grid-i-3 {
    grid-column: 1 / -1;
    grid-row: 2 ;
}

#footer .grid-i-4 {
    grid-column: 1 / -1;
    grid-row: 3 / 7 ;

    text-align: justify;
    margin-top: 1em;
}

#footer .grid-i-5 {
    grid-column: 1 / -1;
    grid-row: 7 ;
}

#footer .grid-i-6 {
    grid-column: 1 / -1;
    grid-row: 8 ;
    text-align: center;
}

#footer h2 {
    font-size: 2em;
    text-align: center;
}

#footer ul {
    margin:0;
    padding: 0;
}

#footer li {
    display: inline;
}

#footer li:before {
    content: " • ";
}

#footer li:first-child:before {
    content: "";
}

#footer a {
    text-underline-offset:0.15em;
}


@media (max-width: 1223px) {

    .heritage .grid-container, #footer.grid-container {
        grid-template-columns: repeat(16, 1fr); 
    }
    /* section 1 * - Seeing the world */ 
    .heritage #section1 { grid-template-rows: 130px 450px;}
    .heritage #section1 h2 {margin: 0em 0 0.1em auto}
    .heritage #section1 .grid-i-2 { grid-column: 1 / 11 ;}
    .heritage #section1 .grid-i-3 { grid-column: 12 / -1 ;}
    .heritage #section1 .videoplayer { top: 0;}
    .heritage #section1 .grid-i-5 { grid-column: 2 / 12 ;}
    .heritage #section1 .grid-i-6 { grid-column: 12 / 16 ;}
    .heritage #section1 .grid-i-7 { grid-column: 13 / 20 ;}

    /* section 2 - 3d Representation */
    .heritage #section2 .grid-i-1 { grid-column: 8 / -1 ;}
    .heritage #section2 .grid-i-2 { grid-column: 2 / 8;}
    .heritage #section2 .grid-i-3 { grid-column: 9 / -1;}
    .heritage #section2 .grid-i-4 { grid-column: 8 / 17; grid-row: 7 / 16;}
    .heritage #section2 .grid-i-5 { grid-column: 2 / 7; grid-row: 11 / 17;}


    /* section 3 - Condition report */
    .heritage #section3 .grid-i-2 { grid-column: 1 / 7; grid-row: 2 / 11;}
    .heritage #section3 .grid-i-3 { grid-column: 9 / -1; grid-row: 2 / 12; }
    .heritage #section3 .grid-i-3 .polaroid {width: 300px; height: 410px}
    .heritage #section3 .grid-i-3 .polaroid .square {top:60px;width: 300px;height: 260px;}
    .heritage #section3 .grid-i-4 { grid-column: 1 / 8; grid-row: 12 / 21;}
    .heritage #section3 .grid-i-4 .polaroid {height: 300px}
    .heritage #section3 .grid-i-4 video {height: 80%;}
    .heritage #section3 .grid-i-4 .polaroid .square {width:88%;height: 78%;}
    .heritage #section3 .grid-i-4 .polaroid span {top:0px}
    .heritage #section3 .grid-i-5 { grid-column: 9 / 16; grid-row: 12 / 20;}
    .heritage #section3 .grid-i-6 { grid-column: 5 / 10; grid-row: 20 / 25;}
    .heritage #section3 .grid-i-6 .icon {bottom: 203px}

    /* section 4 - Conservation work */
    .heritage #section4 { grid-template-rows: 130px;}
    .heritage #section4 .grid-i-1 h2 img {margin-right: 80px}
    .heritage #section4 .grid-i-2 {grid-column: 8 / 16}
    .heritage #section4 .grid-i-3 {grid-column: 1 / 9; grid-row:  2 / 10;}
    .heritage #section4 .grid-i-3 .icon {bottom: 345px} 
    .heritage #section4 .grid-i-4 {grid-column: 1 / 9;}
    .heritage #section4 .grid-i-5 {grid-column: 9 / 17;}
    .heritage #section4 .grid-i-6 {grid-column: 1 / 9;}
    .heritage #section4 .grid-i-7 {grid-column: 9 / 16;}

    /* section 5 - Contexte reconstitution */
    .heritage #section5.mask {mask-size: 960px;-webkit-mask-size:960px;mask-image:url(../images/heritage/mask_context-2.svg);-webkit-mask-image:url(../images/heritage/mask_context-2.svg)}
    .heritage #section5 .grid-i-2 h2 {font-size: 3.5em} 
    .heritage #section5 .grid-i-3 {grid-column: 2 / 6; grid-row:  5 / 10;}
    .heritage #section5 .grid-i-3 img {width: 120px;}
    .heritage #section5 .grid-i-4 {grid-column: 6 / 16;}
    .heritage #section5 .grid-i-5 {grid-column: 1 / 6;}
    .heritage #section5 .grid-i-5 img {width: 160px;}
    .heritage #section5 .grid-i-6 {grid-column: 3 / 12; grid-row: 11 / 16;}
    .heritage #section5 .grid-i-6 img {width: 200px;}
    .heritage #section5 .grid-i-7 {grid-column: 9 / 17; grid-row: 11 / 17;}
    .heritage #section5 .grid-i-7 img {width: 300px;}
    .heritage #section5 .grid-i-8 {grid-column: 2 / 8}
    .heritage #section5 .grid-i-10 {grid-column: 9 / 13}
    .heritage #section5 .grid-i-11 {grid-column: 9 / 16}

    /* footer */
    #footer .grid-i-2 {grid-column: 4 / 6;}
    #footer .grid-i-1 {grid-column: 11 / 14;}
    #footer .grid-i-4 {grid-row: 3 / 8;}
    #footer .grid-i-5 {grid-row: 8;}
    #footer .grid-i-6 {grid-row: 9;}
    
}

@media (max-width: 767px) {

    /*.heritage .grid-container {display: block;}*/
    .heritage .grid-container, #footer.grid-container {
        grid-template-columns: repeat(4, 1fr); 
    }
    .heritage #tagline {font-size: 1.4em}
    .heritage .letter {max-width: 95%;box-shadow:2px 2px 20px -5px rgb(0 0 0 / 30%);width: calc(95% - 20px) !important;margin-left:auto !important;margin-right: auto !important;}
    .heritage .letter:before {content:unset}
    .heritage .letter:after {content:unset}

    
    .heritage .grid-i .circle, .heritage #section1 .grid-i-5, .heritage #section2 .grid-i-4 .circle  {border-radius: 0;-webkit-border-radius:0;-moz-border-radius:0}
    /*.heritage .grid-i {width:90%;margin-left:auto;margin-right: auto;}*/

    /* section 1 * - Seeing the world */ 
    .heritage #section1 { grid-template-rows: 100px; grid-auto-rows:auto}
    .heritage #section1 .grid-i {grid-column: 1 / -1; grid-row: auto}
    .heritage #section1 .grid-i-1 {grid-row: 1 / 1}
    .heritage #section1 .grid-i-1 h2 {font-size: 3.5em}
    .heritage #section1 .grid-i-2 {grid-row: 3 / 3}
    .heritage #section1 .grid-i-3 {grid-row: 2 / 2;text-align: center;}
    .heritage #section1 .grid-i-3.videoplayer video {position: static;width: 80%}
    .heritage #section1 .grid-i-5 a.learnmore {bottom: 10px}
    .heritage #section1 .grid-i-6 {grid-column: 1 / 3;}
    .heritage #section1 .grid-i-7 {grid-column: 3 / 5}
    .heritage #section1 .grid-i .icon {left: 30% !important;}

    /* section 2 - 3d Representation */
    .heritage #section2 { grid-template-rows: 50px; grid-auto-rows:auto}
    .heritage #section2 .grid-i {grid-column: 1 / -1; grid-row: auto}
    .heritage #section2 .grid-i-1 h2 {font-size: 2.1em}
    .heritage #section2 .grid-i-2 {grid-column: 1 / 3;grid-row: 5 / 5; }
    .heritage #section2 .grid-i-2 .viewer {top:-20%;left: -5px;width: 100%;height: 120%}
    .heritage #section2 .grid-i-2 .circle {height: 100%;border: none;}
    .heritage #section2 .grid-i-2 .icon {left: 35%; top:-115%;}
    .heritage #section2 .grid-i-3 {grid-row: 2 / 3;}
    .heritage #section2 .grid-i-4 {grid-row: 3 / 5; height: 300px}
    .heritage #section2 .grid-i-4 .circle {}
    .heritage #section2 .grid-i-4 .icon {top: -95%;left: 42%}
    .heritage #section2 .grid-i-5 {grid-column: 3 / -1;grid-row: 5 / 5; background-color: #dcc2d0;border-radius: 0;-webkit-border-raduis:0}
    .heritage #section2 .grid-i-5 img {width: 90%}
    .heritage #section2 .grid-i-5 a.learnmore {top:-10px;background-color: #fff}
    .heritage #section2 .box {width: 95%;min-height: 100px;}
    
    /* section 3 - Condition report */
    .heritage #section3 { grid-template-rows: 50px; grid-auto-rows:auto}
    .heritage #section3 .grid-i {grid-column: 1 / -1; grid-row: auto}
    .heritage #section3 .grid-i-1 h2 {font-size: 1.8em;margin-left: 0}
    .heritage #section3 .grid-i-2 .letter {width: 90%;margin-left: 0;margin-top:0}
    .heritage #section3 .grid-i-3 .polaroid {width:100%;transform: unset;padding:0} 
    .heritage #section3 .grid-i-3 .polaroid .square {width: 90%; top:20%; background-color: #50779cab;margin-left:5%;margin-right:5%;}
    .heritage #section3 .grid-i-3 span {position: relative; top:-15px}
    .heritage #section3 .grid-i-4 {grid-column: 1 / 3;}
    .heritage #section3 .grid-i-4 .polaroid {transform: unset;background-color: unset;box-shadow: unset; -webkit-box-shadow:unset;padding:0;height: unset}
    .heritage #section3 .grid-i-4 .polaroid .square {width: 100%;height:100%;top:0}
    .heritage #section3 .grid-i-4 .polaroid span, .heritage #section3 .grid-i-5 .polaroid span {top:0;font-size: 0.7em}
    .heritage #section3 .grid-i-5 {grid-column: 3 / -1; background-color: #d4e9e4}
    .heritage #section3 .grid-i-5 .polaroid {transform: unset;background-color: unset;box-shadow: unset; -webkit-box-shadow:unset;padding:0;height: unset}
    .heritage #section3 .grid-i-5 img {width: 100%}
    .heritage #section3 .grid-i-6 {display: none;}

    /* section 4 - Conservation work */
    .heritage #section4 { grid-template-rows: 85px; grid-auto-rows:auto}
    .heritage #section4 .grid-i {grid-column: 1 / -1; grid-row: auto}
    .heritage #section4 .grid-i-1 h2 img {width:300px;max-width: 80%}
    .heritage #section4 .grid-i-2 .letter {width: 90%;margin-left: auto;margin-top:auto}
    .heritage #section4 .grid-i-3 .icon {bottom: 260px} 
    .heritage #section4 .grid-i-3 iframe {padding: 0;height: 300px;}
    .heritage #section4 .grid-i-3 .circle {height:150px;top:50px;border-radius: 0;-webkit-border-radius:0}
    /*.heritage #section4 .grid-i-3 .learnmore {top: -70px; background-color: #faf7f7}*/
    .heritage #section4 .polaroid span {font-size: 0.7em}
    .heritage #section4 .polaroid {width:100%;transform: unset;background-color: unset;box-shadow: unset; -webkit-box-shadow:unset;padding:0;height: unset}
    .heritage #section4 .polaroid > img {width: 100%}

    .heritage #section4 .grid-i-4 {grid-column: 1 / 3;transform: unset;}
    .heritage #section4 .grid-i-5 {display: none}
    .heritage #section4 .grid-i-6 {grid-column: 1 / -1;transform: unset; top:-20px}
    .heritage #section4 .grid-i-6 video {width: 100%}
    .heritage #section4 .grid-i-7 {grid-column: 3 / -1;grid-row: 4; transform: unset; top:-20px}
    
    /* section 5 - Context reconstitution */
    .heritage #section5 {  grid-template-rows: auto;grid-auto-rows:auto; border-radius:5px;margin-bottom:20px }
    .heritage #section5 .grid-i {grid-column: 1 / -1; grid-row: auto}
    .heritage #section5.mask {mask:none; height: unset;}
    .heritage #section5 .grid-i-1 img {display: none;}
    .heritage #section5 .grid-i-2 {grid-column: 1 / -1; grid-row: 2 / 3}
    .heritage #section5 .grid-i-2 h2 { font-size: 1.8em } 
    .heritage #section5 .grid-i-3 {grid-column: 1 / -1; grid-row: 1 / 2}
    .heritage #section5 .grid-i-3 img { width: 80px} 
    .heritage #section5 .grid-i-4 { grid-column: 1 / -1; grid-row: 3 / 4; padding : 10px;} 
    .heritage #section5 .grid-i-5, .heritage #section5 .grid-i-6, .heritage #section5 .grid-i-7 {display: none;} 
    .heritage #section5 .grid-i-8 { grid-column: 1 / -1; grid-row: 4 / 5;  }
    .heritage #section5 .grid-i-10 { grid-column: 1 / 3; grid-row: 5 / 6;  left:10px; top:5px}
    .heritage #section5 .grid-i-11 { grid-column: 1 / -1; grid-row: 8 / 10; left:-7px; bottom:-10px}

    /* section 6 - Tell your own story */
    .heritage #section6 { grid-template-rows: auto;grid-auto-rows:auto;  }
    .heritage #section6 .grid-i {grid-column: 1 / -1; grid-row: auto}
    .heritage #section6 .grid-i-1 h2 {font-size: 2.5em}
    .heritage #section6 .grid-i-2 ul {padding: 0}
    .heritage #section6 .grid-i-2 ul li {margin-right: 5%}
    .heritage #section6 .grid-i-2 ul li img {width:40px;}


    /* footer */ 
    #footer { grid-template-rows: auto;grid-auto-rows:auto;  }
    /*#footer .grid-i {grid-column: 1 / -1; grid-row: auto}*/
    #footer .grid-i-2 {grid-column: 1 / 3;justify-self: center;}
    #footer .grid-i-1 {grid-column: 3 / -1;justify-self: center;}


    /*.heritage #section1 .grid-i-6 {grid-row: auto}*/

 /*   .heritage #section1 .grid-i-3.videoplayer {top:0}
    .heritage #section1 .grid-i-3.videoplayer video {width:100%;left: 0;position: relative;}
    .heritage #section1 .grid-i-5 {}
    .heritage #section1 .grid-i-5 video {width: 90%;}   */
 
    .heritage #section3 .grid-i-4.videoplayer {overflow: hidden;}

}


