@font-face { font-family: 'Abril Fatface'; font-style: normal; font-weight: 400; src: local('Abril Fatface'), local('AbrilFatface-Regular'), url(/_assets/_fonts/abrilfatface/abrilfatface-regular.woff2) format('woff2'), url(/_assets/_fonts/abrilfatface/abrilfatface-regular.woff) format('woff'); font-display: swap; }

/* Otago Magazine issue 41 specific CSS */

.titleinner {
    width: 100%;
    padding: 55px 0px 0px 0px;
    margin: 0px 0;
	overflow: hidden;
}
.titleinner img {
	margin-left: auto;
	margin-right: auto;
	display: block;
    margin-top: -262px;
}
body.OTAGO121038 .titleinner img {
    padding-left: 186px;
}
#title h1 {
    background-image: url("gfx/title-updated.png");
    background-repeat: no-repeat;
    background-position: 243px bottom;
    text-indent: -9999px;
    font-size: 12px;
	width: 1114px;
	max-width: 1114px;
	margin: 0 auto !important;
	position: relative;
    padding-bottom: 150px;
    opacity: 1;
}
body.OTAGO121061 #title h1,
body.OTAGO121062 #title h1,
body.OTAGO121085 #title h1,
body.OTAGO121088 #title h1 {
    background-image: url("gfx/title.png");
    background-repeat: no-repeat;
    background-position: -32px center;
}
#content h2 {
    font-size: 90px;
    line-height: 1;
    background-image: none;
    text-rendering: optimizeLegibility;
}
#content h2:after {
    display: none;
}
/* Frontpage styles */
body.OTAGO120892 #content .frontpage h2 {
    font-size: 30px;
    line-height: 1.2;
}
body.OTAGO120892 #content .frontpage h2 a {
    font-size: 90px;
}
#content .grid1.introbox.titleonly {
    min-height: 250px;
}
body.OTAGO121061 #content h2,
body.OTAGO121062 #content h2,
body.OTAGO121085 #content h2,
body.OTAGO121088 #content h2 {
    font-size: 60px;
    margin-bottom: 35px;
}
#content p {
    font-size: 17px;
    line-height: 1.65;
    margin-bottom: 21px;
    font-family: Georgia, Times New Roman, serif;
}
#content .grid1.magazine-intro {
    width: 100%;
    margin-right: 0;
    margin-bottom: 21px;
}
#content .grid3 {
    width: 100%;
    margin-right: 0;
}
#content .grid1 h3,
body.OTAGO121089 #content h3,
body.OTAGO121091 #content h3,
body.OTAGO121086 #content h3 {
    margin-bottom: 7px;
    font-size: 18px;
    font-family: 'Open sans', Helvetica, Arial, sans-serif;
    font-weight: 300;
    line-height: 1.45;
}
#content .grid1.magazine-intro h3,
body.OTAGO121089 #content h3,
body.OTAGO121091 #content h3,
body.OTAGO121086 #content h3 {
    margin-top: 21px;
    font-size: 22px;
}
#content .grid-third {
    width: 263px;
    float: left;
    margin-right: 46px;
    margin-bottom: 21px;
    position: relative;
}
#content  a.player img {
    width: 100%;
}
#content a.player:after {
    content: '';
    width: 20px;
    height: 20px;
    display: block;
    background: url(gfx/expand-icon.png) no-repeat;
    background-size: 20px;
    position: absolute;
    bottom: 20px;
    right: 15px;
    transition: all 0.2s ease;
}
#content a.player:hover:after {
    transform: scale(1.2);
}
#content a.player img {
    width: 100%;
    transition: all 0.2s ease-in-out;
}
#content a.player img:hover {
    box-shadow: 0 0 20px #cccccc;
}
#content .grid-third:nth-of-type(3n) {
    margin-right: 0;
}
#content .grid1 a.player,
#content .grid_third a.player {
    border-bottom: none;
}
#content .grid1.introbox p {
    font-family: 'Open sans', Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}
#content .next-prev {
    border-top: none;
}
#content .next-prev .prev {
    position: absolute;
    top: 0;
    left: -202px;
    width: 180px;
    text-align: right;
    font-family: 'Abril fatface', Georgia, Times New Roman, serif;
    text-transform: uppercase;
    color: #999999;
    letter-spacing: 3px;
    font-size: 14px;
    line-height: 1.3;
}
#content .next-prev .prev a,
#content .next-prev .next a {
    transform: scale(1);
    transition: all 0.1s ease;
}
#content .next-prev .prev a:hover {
	background-color: #ffffff;
	padding: 7px 0px 7px 20px;
	border-radius: 4px;
	background-position: 0px 3px;
    transform: scale(1.1);
}
#content .next-prev .next {
    position: absolute;
    top: 0;
    right: -194px;
    width: 180px;
    text-align: left;
    font-family: 'Abril fatface', Georgia, Times New Roman, serif;
    text-transform: uppercase;
    color: #999999;
    letter-spacing: 3px;
    font-size: 14px;
    line-height: 1.3;
}
#content .next-prev .next a {
    background: #ffffff url("gfx/simple-arrows-sprite.png") no-repeat 165px -335px;
}
#content .next-prev .next a:hover {
	background-color: #ffffff;
	padding: 7px 20px 7px 0px;
	border-radius: 4px;
	background-position: 165px -335px;
    transform: scale(1.1);
}
#content blockquote {
    background: #f9f9f9;
    box-shadow: 0 0 10px #eeeeee;
    padding: 31px 21px;
    margin: 42px 0;
    border: 1px solid #e4e4e4;
}
#content blockquote p {
    font-size: 22px;
    line-height: 1.45;
    font-style: italic;
    font-family: Georgia, Times New Roman, serif;
    margin-bottom: 0;
    -moz-osx-font-smoothing: grayscale;
}
#content p.fullwidthimage img {
    width: 100%;
    max-width: 100%;
    padding: 0;
    border: none;
}
/* Infographics */
@-webkit-keyframes fadein {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}
@keyframes fadein {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}
#infographic-block {
    margin-top: 28px;
    margin-bottom: 35px;
    overflow: hidden;
    opacity: 0;
    -webkit-transition: all 2s ease;
    transition: all 2s ease;
}
#infographic-block.element-visible {
    opacity: 1;
}
#infographic-block .increase-icon {
    background: url(gfx/increase-background.png) no-repeat center 0;
    height: 186px;
    width: 33.3%;
    float: left;
    opacity: 0;
}
#infographic-block .increase-icon span {
    background: url(gfx/increase-icon.png) no-repeat center 35px;
    width: 100%;
    height: 186px;
    display: block;
    opacity: 0;
}
#infographic-block .total-icon {
    background: url(gfx/total-background.png) no-repeat center 0;
    height: 186px;
    width: 33.3%;
    float: left;
    opacity: 0;
}
#infographic-block .total-icon span {
    background: url(gfx/total-icon.png) no-repeat center 35px;
    width: 100%;
    height: 186px;
    display: block;
    opacity: 0;
}
#infographic-block .total-efts-icon {
    background: url(gfx/total-efts-background.png) no-repeat center 0;
    height: 186px;
    width: 33.3%;
    float: left;
    opacity: 0;
}
#infographic-block .total-efts-icon span {
    background: url(gfx/total-efts-icon.png) no-repeat center 35px;
    width: 100%;
    height: 186px;
    display: block;
    opacity: 0;
}
#infographic-block.element-visible .increase-icon,
#infographic-block.element-visible .total-icon,
#infographic-block.element-visible .total-efts-icon {
    -webkit-animation-duration: 2s;
    animation-duration: 2s;
    -webkit-animation-name: fadein;
    animation-name: fadein;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}
#infographic-block.element-visible .increase-icon span,
#infographic-block.element-visible .total-icon span,
#infographic-block.element-visible .total-efts-icon span {
    -webkit-animation-duration: 2s;
    animation-duration: 2s;
    -webkit-animation-name: fadein;
    animation-name: fadein;
    -webkit-animation-delay: 1.5s;
    animation-delay: 1.5s;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}
#infographic-block.element-visible .increase-icon {
    -webkit-animation-delay: 0.5s;
    animation-delay: 0.5s;
}
#infographic-block.element-visible .total-icon {
    -webkit-animation-delay: 1.0s;
    animation-delay: 1.0s;
}
#infographic-block.element-visible .total-efts-icon {
    -webkit-animation-delay: 1.5s;
    animation-delay: 1.5s;
}
#infographic-block.element-visible .increase-icon span {
    -webkit-animation-delay: 1.5s;
    animation-delay: 1.5s;
}
#infographic-block.element-visible .total-icon span {
    -webkit-animation-delay: 2s;
    animation-delay: 2s;
}
#infographic-block.element-visible .total-efts-icon span {
    -webkit-animation-delay: 2.5s;
    animation-delay: 2.5s;
}

/*body.OTAGO087560 #content .grid4.frontpage h2 a {
    font-size: 60px;
}*/
#right {
    padding: 0;
}


@media only screen and (max-width: 1024px) {
    .titleinner img {
        margin-left: -150px
    }
    #title h1 {
        background-position: 42% bottom;
        width: 94%;
    }
    #content h2 {
       -webkit-hyphens: auto;
       -moz-hyphens: auto;
        hyphens: auto;
    }
    #content .grid3 {
        width: 78%;
        margin-right: 0px;
    }
    #content .grid-third {
        width: 30%;
        margin-right: 3% !important;
    }
    #content .grid-third:nth-of-type(3n) {
        margin-right: 0;
    }
    #infographic-block.element-visible .increase-icon,
    #infographic-block.element-visible .total-icon,
    #infographic-block.element-visible .total-efts-icon {
        background-size: 100%;
    }
}

@media only screen and (max-width: 768px) {
    #title h1 {
        background-position: 72% 0px;
    }
    #content h2 {
        font-size: 50px;
    }
    #content {
        padding: 12px 0px 46px 125px;
    }
    #title .titleinner img {
        width: 150%;
        margin-left: 0;
    }
    #content .grid3 {
        width: 100%;
    }
    #infographic-block .increase-icon span,
    #infographic-block .total-icon span,
    #infographic-block .total-efts-icon span {
        background-position: center 22px;
        background-size: 25%;
    }
    #content .next-prev .next {
        right: -145px;
        width: 125px;
    }
    #content .next-prev .next a {
        background-position: 109px -335px;
    }
    #content .next-prev .prev a {
        background-position: 30px 3px;
    }
}
@media only screen and (max-width: 700px) {
    #title .titleinner img {
        width: 100%;
        margin-top: 0;
        margin-left: 0;
    }
    #title .titleinner:after {
        content: '';
        display: block;
        height: 150px;
        width: 150px;
        background: url(gfx/title-updated.png) no-repeat;
        background-size: 155px;
        top: 60px;
        left: 10px;
        position: absolute;
    }
    .titleinner {
        padding-top: 0;
    }
    #title h1 {
        padding-bottom: 0px;
       padding-top: 0;
        line-height: 0;
    }
    #content .next-prev .prev,
    #content .next-prev .next {
        position: static;
    }
    #content .next-prev .next {
        width: 35%;
    }
    #content .next-prev .next a {
        background-position: right -335px;
    }
    #content .next-prev .prev {
        width: 35%;
    }
    #content .next-prev .prev a {
        background-position: left 3px;
    }
    #content {
        padding-left: 0;
    }
}
