	html {
    height: 100%;
}
body {
    min-height: 100%;
    position: relative;
}

body,
html {
    margin: 0;
    padding: 0;
    color: #333333;
    background-color: #EEF0F0;
    font-size: 16px;
    font-family: komet, sans-serif;
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Gilroy';
    src: url('fonts/Gilroy-ExtraBold.woff2') format('woff2'),
        url('fonts/Gilroy-ExtraBold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Gilroy';
    src: url('fonts/Gilroy-Light.woff2') format('woff2'),
        url('fonts/Gilroy-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

h1 {
    font-size: 1.25rem;
    font-family: 'Gilroy', sans-serif;
    font-weight: 800;
}

p {
    font-family: 'Komet', sans-serif;
    font-weight: 300;
}
strong {
    font-weight:800;
}
a {
    text-decoration: none;
    color: #333333;
}
span.nav {
    font-weight: 400;
    font-size: 0.875rem;
    margin-top: 40px;
}
.container {
    width: 1160px;
    margin: 0 auto;
}
#wrapper .inner > .container.white {
    background-color: #fff;
}
.thincontainer {
    width: 960px;
    margin: 0 auto; 
}

/* Navigation controls */
.loader {
    width: 42px;
    height: 42px;
    content: '';
    background: url('../img/loader.gif') no-repeat;
    display: inline-block;
    margin-right: 0.3em;
    vertical-align: sub;
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
}
#swipebox-overlay {
    background: rgba(0,0,0,0.5) !important;
}

/* Bars always visibru */
#swipebox-top-bar.visible-bars,
#swipebox-bottom-bar.visible-bars {
   transform: translate3d(0,0px,0)! important;
}
#swipebox-top-bar {
   top: 0!important;
}
#swipebox-bottom-bar {
   bottom: 0px !important;
}
#swipebox-action{bottom: 0;}
#swipebox-action.visible-bars{-ms-transform:translateY(0);-webkit-transform:translateY(0);transform:translateY(0)}

#swipebox-slider .slide img {
    max-width: 1280px !important;
    max-height: 720px !important;
}
.controls {
    font-family: 'Gilroy', sans-serif;
}
.eventlistcontainer h1 {
    font-size: 3.438rem;
    font-weight: 800;
    margin: 0.3em 0 0.5em 0;
}
.eventlistcontainer > h1 {
    margin: 0.8em 0 0.5em 0;
}
.controls h2 {
    font-size: 1.125rem;
    display: inline-block;
    text-transform: uppercase;
    margin: 0;
}

.controls h2:active {
    color: #E42213;
}
.controls a,
.controls span {
    display: inline-block;
    padding: 0.5em 1em 0.5em 0;
    cursor: pointer;
}
.controls h2:first-child > a {
    padding-left: 0;
}
.controls h2:last-child > a {
    padding-right: 0;
}

a.bluearrow::after {
    width: 9px;
    height: 15px;
    content: '';
    background: url('../img/bluearrow.svg') no-repeat;
    display: inline-block;
    margin-left: 1em;
    margin-right: 1em;
    transform: rotate(90deg);
}

a.redarrow:after {
    width: 9px;
    height: 15px;
    content: '';
    background: url('../img/redarrow.svg') no-repeat;
    display: inline-block;
    margin-left: 1em;
    margin-right: 1em;
    transform: rotate(90deg);
}

nav.mainmenu h2 {display:none;}
span.cal:after {
    width: 21px;
    height: 21px;
    content: '';
    background: url('../img/calendar.svg') no-repeat;
    display: inline-block;
    margin-left: 0.8em;
    transform: none;
    position: relative;
    bottom: -2px;
}

/* Dropdown */

.dropdown {
    margin: 0;
    padding: 1em 0.5em;
    position: absolute;
    z-index: 40;
    background: white;
    list-style: none;
    border: solid 1px #009EE3;
    display: none;
}
.dropdown li {
    padding: 0;
}
.dropdown a {
    padding: 0.2em 1em;
}

h2.dropdownactive .dropdown {
    display: block;
}

.crumbs {
    margin-top: 2.8rem;
    font-size: 0.875em;
    color: #102D69;
    text-transform: none;
    font-weight: 400;
    padding-bottom: 1em;
}

.crumbs a {
    color: #102D69 !important;
}
.newscontrols {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
}
.crumbs.news {
    width: 75%;
}
.reddivider {
    border-bottom: 2px solid #E42213;
    margin-bottom: 2em;
    opacity: 0.3;
}
.bluedivider {
    border-bottom: 2px solid #009EE3;
    margin-bottom: 2em;
    opacity: 0.3;
}
.greydivider.mob {display:none;}
.greydivider {
    border-bottom: 1px solid #AAAAAAA6;
    margin: 2em 0 2em 0;
}
/* Header */

header {
    position: relative;
    z-index: 10;
}

header:after {
    content: "";
    background: white;
    display: block;
    width: 100%;
    height: calc(100% - 20px);
    left: 0;
    top: 0;
    position: absolute;
    z-index: -1;
}

header .container {
    display: flex;
    justify-content: space-between;
    position: relative;
}

header .someicons {
    position: absolute;
    bottom: 0;
    right: 0;
}

header .someicons a {
    margin-right: 0.4em;
}

.logo {
    text-transform: uppercase;
    font-family: 'Gilroy', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    line-height: 69px;
    margin-top: 40px;
    display: block;
}
.logo img {
    max-height: 100%;
    vertical-align: middle;
    margin-right: 0.5em;
}

/* Headermap */
a.mainopener {
    display:none !important;
    z-index: 3;
}

.headermap {
    display: flex;
    flex-wrap: wrap;
}

.headermap.desc {
    width: 50%;
    display: flex;
    flex-direction: column;
}
.headermap.desc h1 {
    font-size: 3.438rem;
    font-weight: 800;
}
.headermap.desc p {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.5em;
}
.headermap.map {
    width: 50%;
    display: flex;
    margin: 2em 0;
}
.headermap.map img {
    margin-top: 45px;
    padding-left: 1em;
}
.headermap h1 {
    padding: 0;
}

.map-maakunta {
    transition: all .2s;
}

.map-maakunta.hasclub {
    opacity: 1;
}
.map-maakunta.hasclub:hover {
    fill: #2e3d8b;
}

/* Carousel */

.carousel {
    margin: 0 auto;
    padding: 0;
    height: 450px;
    list-style: none;
    position: relative;
    z-index: 5;
    max-width: 98%;
}
.carousel .container {
    position: relative;
    height: 100%;
}

.footercarousel {
    height: 280px;
}
.footercarousel .slide {
    margin-left: 2em;
}

.footercarousel .swipebox {
    padding: 0 1em 0 1em;
}
div.slide {
    height: 450px;
    position: relative;
    margin: 0;
    padding: 0;
    background-size: cover;
    background-position: center center;
}
div.slide h1 {
    position: absolute;
    top: 20%;
    color: #ffffff;
    font-size: 3.438rem;
    font-family: 'Gilroy', sans-serif;
    font-weight: 800;
}
.bluebox.mobile {display: none;}
.carousel .bluebox {
    width: 500px;
    display: block;
    position: absolute;
    bottom: -63px;
    right: 0;
}

#wrapper .slick-list {
    overflow-y: visible;
    padding-bottom: 63px; /* Same as bluebox negative bottom */
}
#wrapper .slick-dots {
    bottom: 25px;
    width: 42% !important;
}
#wrapper .slick-dots li button:before {
    font-size: 13px;
}
#wrapper .slick-dots li button::before,
#wrapper .slick-dots li.slick-active button::before {
    color: white;
}

/* Main */

#wrapper {
    position: relative;
    margin-top: -20px;
}

body.border #wrapper:before {
    content: "";
    display: block;
    height: 20px;
    width: 100%;
    top: 0;
    background: white;
    z-index: 0;
    position: relative;
    position: absolute;
}

#wrapper .inner {
    position: relative;
    z-index: 2;
}
#wrapper .inner.white {
    /* background-color: #fff; */
}

#wrapper .inner > .container {
    position: relative;
    z-index: 15;
}

/* Blue box */

.bluebox {
    background-color: #102D69;
    display: inline-block;
    padding: 2em 3.6em;
    box-sizing: border-box;
}
.bluebox p {
    font-size: 1.25rem;
    color: #fff;
    line-height: 1.6em;
    font-weight: 300;
    text-transform: uppercase;
}
.bluebox a {
    color: white;
    font-size: 1rem;
    text-decoration: underline;
    text-transform: none;
}

.mainbg ul.mobile {display: none;}
nav.mainmenu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}
nav.mainmenu ul ul {
    display:none;
    padding: 0;
}
nav.mainmenu ul li {
    flex: 0 1 auto;
    padding: 0;
}

nav.mainmenu ul li a {
    padding: 2.3em 1em 0.5em 1em;
    display: block;
    font-family: 'Gilroy', sans-serif;
    font-weight: 800;
    letter-spacing: 0.32px;
}
nav.mainmenu ul li:active {
    border-bottom: 5px solid #E42213;
}
nav.mainmenu ul li:hover {
    border-bottom: 5px solid #E42213;
}


/* footercarousel */

.footercarousel {
    display: flex;
    flex-direction: row;
    margin-top: 3em;
}
.footercarousel img {
    margin-right: 1em;
    max-height: 280px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.footercarousel a {
    display: block;
    padding-left: 1em;
    padding-right: 1em;
}
.footercarousel img:last-child {
    margin-right: 0;
}
.footercarousel .slick-dots {
    bottom: 25px !important;
    left: 120px !important;
    text-align: left !important;
}
.footercarousel .slick-list {
    padding-bottom: 0 !important;
}
.footercarousel li button:before {
    font-size: 13px !important;
}

#imagelightbox {
    position: fixed;
    z-index: 9999;
    -ms-touch-action: none;
    touch-action: none;
}

/* Sidebar */

.sidebarcontent {
    display: flex;
    justify-content: space-between;
    clear: both;
}

.kerho .sidebarcontent aside,
.lapin_kampat .sidebarcontent aside,
.clubsubpage.hasheaderimage {
    margin-top: -193px;
}


aside {
    flex: 0 0 31%;
    z-index: 100;
    margin-bottom: 3em;
}
main {
    flex: 0 0 65%;
    margin-left: 4%;
}
.col.mobile{display:none;}
.sidebar.mobile {display:none;}
.sidebar {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: flex-start;
    font-family: 'Gilroy', sans-serif;
    width: 360px;
}
.sidebarnav {
    background-color: #ffffff;
    margin-bottom: 2em;
    min-width: 360px;
    box-sizing: border-box;
    padding: 0.7em 1.3em 0 1.3em;
}
.greyborder {
    border: 1px solid #EEF0F0;
}
.sidebarcontact h1 {
    padding: 0 1em 0 0;
    text-align: left;
}

.sidebar h1 { 
    font-size: 2.75rem;
    padding-right: 0.3em;
}
.sidebarnav ul {
    margin: 0;
    padding: 0;
}
.sidebarnav ul.sub {
    padding-left: 0;
}
.sidebarnav ul.sub li {
    margin-bottom: 0.3em;
    font-weight: 300;
    letter-spacing: 0.3px;
}
.sidebarnav ul li {
    padding: 0;
}
.sidebarnav ul li a {
    display: block;
    padding: 0.17em 0;
}
.sidebarnav ul li.head > a {
    padding: 1.33em 40px 1.33em 0;
}
.sidebarnav ul li.head.sub.active > a {
    padding-bottom: 0.5em;
}
.sidebarnav ul li.head.active > a {
    color: #009EE3;
}

.sidebarnav ul li.active > a {
    color: #009EE3;
    font-weight: 700;
}
.sidebarnav ul li ul li.active > a {
    font-weight: 300;
}

.sidebarnav ul li.head {
    font-weight: 800;
    list-style: none;
    border-bottom: 1px solid #AAAAAAA6;
    position: relative;
}
.sidebarnav ul li.head:last-child {
    border-bottom: none;
}
.sidebarnav ul li.head ul {
    padding: 0 0 1.4em 0;
    display: none;
}
.sidebarnav ul li.head.active ul {
    display: block;
}
.sidebarnav ul li .opener {
    padding: 0 !important;
    display: block;
    position: absolute;
    right: -1.3em;
    top: 0;
    height: 61px;
    width: 54px;
}
.sidebarnav ul li .opener .arrow {
    display: block;
    width: 100%;
    height: 100%;
    background: url('../img/redarrow.svg') no-repeat center center;
    background-size: 9px 15px;
    transition: all .1s linear;
}

.sidebarnav ul li.active .opener .arrow {
    transform: rotate(90deg);
}
.clubnav ul li .opener {
    padding: 0 !important;
    display: block;
    position: absolute;
    right: -1.3em;
    top: 0;
    height: 61px;
    width: 54px;
}
.clubnav ul li .opener .arrow {
    display: block;
    width: 100%;
    height: 100%;
    background: url('../img/redarrow.svg') no-repeat center center;
    background-size: 9px 15px;
    transition: all .1s linear;
}

.clubnav ul li.active .opener .arrow {
    transform: rotate(90deg);
}
.sidebarnav ul li {
    font-weight: 300;
    list-style: none;
}
.sidebarcontact {
    padding: 1em;
    background-color: #ffffff;
    margin-bottom: 2em;
}
.sidebar .contact {
    padding: 1em 0 1em 0;
}

.sidebarcontact .sectionheader h2 {
    color: #009EE3;
    background: white;
    margin-top: 0.7em;
}
.sidebarcontact .sectionheader:after {
    background-color: #009EE3;
    width: 100% !important;
}

.sidebarcontact p {
    font-size: 0.875rem;
    margin: 0;
    line-height: 20px;
    font-weight: 400;
}

/* Clubsubpage */

.clubsubpage {
    display: flex;
    flex-direction: row;
}
.clubsubpage .club {
    width: 75%;
    margin-left: 2em;
    margin-bottom: 2em;
    padding-bottom: 3em;
}

.clubcontainer {
    margin: 0 1.3rem;
}

.clubsubpage .club h1 {
    font-size: 2.625rem;
}
.clubsubpage ul {
    list-style: none;
    padding: 0;
}
.clubsubpage ul li {
    line-height: 1.5rem;
}
.clubcontainer ul li {
    text-indent: -1em;
    padding-left: 2em;
}
.cabindesc ul li {
    text-indent: -1em;
    margin-left: 2em;
}
.clubsubpage .club ul li::before {
    content: "\2022";
    color: #009EE3;
    font-weight: bold;
    display: inline-block;
    width: 1em;
}
.clubcontainer ol {
    margin-left: -1.5em;
}
.club {
    background: white;
}

.club .crumbs {
    margin-top: 1.5rem;
}

.clubsubpage .club {
    /* margin-top: -193px; */
}

.clubsubpage .club a {
    color: #009EE3;
    text-decoration: underline;
}

.clubsubpage img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 1200px;
    padding-bottom: 1em;
    padding-top: 2em;
}
.mainimg a {
    display: block;
}
.mainimg img {
    padding: 0 !important;
}

/* News / clubpage */

.news-club {
    margin-top: 2em;
}
.news-club .newsitem {
    flex: 0 0 47%;
    width: 47%;
    box-sizing: border-box;
}
.news-club .club {
    background: transparent;
}
.sidebar .bluebutton {
    background-color: #102D69;
    padding: 0.5em;
    color: #ffffff;
}
.sidebar .bluebutton h1 {
    font-size: 2.25rem;
}

.template-clubpage .carousel .bluebox {
    bottom: -11%;
}

.bluebutton h3.attachment::before {
    width: 30px;
    height: 36px;
    content: '';
    background: url('../img/materials.svg') no-repeat;
    display: inline-block;
    margin-right: 0.3em;
    vertical-align: sub;
}
.club.sectionheader.borderbottom {
    width: calc(100% - 500px);
}
.club.sectionheader.borderbottom.nobb {
    width: 100%;
}
.club.sectionheader.borderbottom:after {
    background: #E42213;
}
.club.sectionheader.borderbottom p {
    font-size: 0.875rem;
    color: #E42213;
}
.club.sectionheader.borderbottom h2 {
    color: #E42213;
    background: #EEF0F0;
    font-size: 1.125rem;
}
.club.cabin {
    background-color: #fff;
}
.club.cabin h1 {
    font-size: 2.625rem;
    font-weight: 800;
    padding: 0;
}
.club.cabin h2 {
    font-family: 'Gilroy', sans-serif;
    padding: 0;
    padding-top: 1em;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
}
.club.cabin span {
    font-size: 1.25rem;
    font-weight: 300;
    font-family: 'Gilroy', sans-serif;
}
.cabinloc a.cabinloc {
    color: #009EE3;
    text-decoration: underline;
}
.cabindesc {
    margin-left: 1em;
}
.cabindesc ul {
    list-style: none;
    padding-left: 1em;
}
.cabindesc p {
    margin: 0;
    line-height: 1.5em;
    margin-bottom: 1rem;
}
.cabindesc ul li {
    line-height: 1.2rem;
}
.cabindesc ul li::before {
    content: "\2022";
    color: #009EE3;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    margin-right: 1em;
    font-size: 14px;
}
.cabindesc a {
    text-decoration: underline;
    color: #009EE3;
}
.cabinloc h2 {
    margin-top:1.4em !important;
}
.cabinloc {
    margin-left: 1em;
}

/* Events */    

.eventlist .material,
.eventlist .event {
    background-color: #ffffff;
    padding: 2em;
    margin-bottom: 1em;
}
.events .sectionheader {
    margin-bottom: 2.3em;
}
.material h1,
.event h1 {
    font-size: 1.75rem;
    font-weight: 800;
}
.eventlist h2.date {
    display: inline-block;
    position: relative;
    z-index: 2;
    font-size: 1.125rem;
    color: #009EE3;
    background-color: #EEF0F0;
    text-transform: uppercase;
    margin: 2em 0 2em 0;
}
.eventlist .event h2 {
    font-size: 1.475rem;
    font-weight: 400;
    margin-top: 0;
}
.material span,
.event span {
    font-size: 0.875rem;
    color: #009EE3;
    margin-bottom: 25px;
}
.material li {
    color: #009EE3;
    line-height: 1.5em;
    margin-left: -1.5em;
}
.material ul li a {
    color: #009EE3;
}
.event {
    border-bottom: solid 1px #AAAAAAA6;
}
.eventlist.event { border-bottom: none !important; }
.event:last-child {
    border-bottom:none;
}
.event p.date {
    font-family: 'Komet', sans-serif;
    font-weight: 500;
    font-size: 1.375rem;
    margin-bottom: 0.3em;
    margin-top: 1em;
}
.event h3 {
    font-family: 'Gilroy', sans-serif;
    font-weight: 400;
    font-size: 1.25rem;
    margin-bottom: 0.8em;
    margin-top: 0;
}
.event p.footer {
    font-family: 'Komet', sans-serif;
    font-size: 0.875rem;
    color: #009EE3;
    margin-bottom: 1em;
}

.picturebutton,
.eventpic {
    width: auto;
    min-height: 230px;
    line-height: 230px;
    margin-bottom: 1em;
    text-align: center;
    background-size: cover;
    position: relative;
}

.picturebutton a {
    display: inline-block;
    vertical-align: middle;
    margin: 1em 0em;
    position: relative;
    z-index: 2;
    line-height: normal;
}
.eventpic a {
    display: inline-block;
    vertical-align: middle;
    margin: 3em 2em;
    position: relative;
    z-index: 2;
    line-height: normal;
}
.picturebutton::after,
.eventpic:after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: black;
    opacity: 0.3;
    z-index: 1;
}
.eventpic img {
    display: block;
}
.eventpic h3 {
    font-family: 'Gilroy', sans-serif;
    margin: 0;
    font-size: 2.25rem;
    color: #ffffff;
    font-weight: 800;
}
.eventpic p {
    font-size: 1.25rem;
    margin: 0;
    color: #ffffff;
    font-weight: 400;
}

/* magazine */

.maginfo {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 2em 0 4em 0;
    justify-content: space-between;
}
.maginfoleft { 
    display: flex;
    flex-direction:column;
    width: 33%;
    margin-top: -1em;
}
.maginfoleft p {
    font-size: 1.25rem;
    display: block;
}

.magheader h1 {
    font-size: 3.438rem;
}
.maginforight {
    display: flex;
    flex-direction: row;
    width: 60%;
    background-color: #ffffff;
    margin-left: 0;
    padding: 2em 0 4em 4em;
}
.maginfoleft table {
    margin-top: 2em;
    width: 50%;
}
.maginfo th {
    padding-right: 2.5em;
    font-size: 1.25rem;
    font-weight:400;
}
.maginfo th:nth-child(2) {
    padding-right: 1.2em;
}
.maginfo th:last-child {
    padding-right: 0;
}
.maginfo td {
    font-size: 1rem;
}
.maginfo tbody {
    text-align: left;
}
.maginfo tr {
    line-height: 1.4em;
    text-align: left;
}
.right-1 {
    display: block;
    width: 50%;
}
.right-2 {
    width: 50%;
    display: block;
}
.maginforight p {
    font-size: 0.875rem;
    margin: 0;
    margin-top: 1em;
}

.maginfo a {
    color: #009EE3;
}

.magazines {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
}
.magazines.celpubs {
    justify-content:space-around;
}

.mag {
    display: flex;
    flex: 0 0 25%;
    flex-direction: column;
}
.mag img {
    display: block;
    width: 260px;
    height: 370px;
}
.mag p {
    display: block;
    font-size: 1.375rem;
}
.mag.dummy {
    background: none;
    margin: 0;
    flex: 0 0 25%;
}

.sectionheader {
    position: relative;
}
.sectionheader.borderbottom:after {
    content: "";
    position: absolute;
    display: block;
    width: 95%;
    height: 2px;
    opacity: 0.3;
    bottom: 0.3em;
}

.sectionheader h2 {
    text-transform: uppercase;
    display: inline-block;
    z-index: 2;
    position: relative;
    font-weight: 800;
    font-size: 1.125rem;
    font-family: 'Gilroy', sans-serif;
    margin: 0;
    padding-right: 0.667em;
}

/* News */

div.articles {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 2.4em;
    /* margin-bottom: 2.9em; */
}
.news .sectionheader {
    margin-top: 2.875em;
    width: 55%;
    z-index: 10;
}
.news .sectionheader.borderbottom:after {
    background: #E42213;
}
.news .sectionheader h2 {
    color: #E42213;
    background: #EEF0F0;
}
.news-club a.all,
.news a.all {
    position: relative;
    z-index: 2;
    color: #E42213;
    font-weight: 400;
    font-size: 0.875rem;
    float: right;
    background: #EEF0F0;
    padding-top: 0.3em;
    padding-left: 0.857em;
}
.newsitem {
    margin: 0 0 2em 0;
    background-color: #ffffff;
    box-sizing: border-box;
    flex: 0 0 31%;
    max-width: 360px;
}
.newslist .newsitem {
    max-width: 100%;
}
.newsitem.dummy {
    background: none;
    margin: 0;
}
.news a.newsitem:first-child {
    padding: 0;
}
.newsitem img {
    width: 100%;
    height: auto;
    max-height: 260px;
    display: block;
    object-fit: cover;
}
.newsitem .content {
    margin: 1.45em 1.25em 1.25em 1.25em;
}
.newsitem h3 {
    font-family: 'Gilroy', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0;
}
.newscontent.frontpage {padding: 0; visibility:visible;}
.newscontent {
    padding: 0 1em 0 1em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}
.kerhot .newscontent {
    padding: 0;
}

.newscontent .clamp p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    word-wrap: break-word;
}
.newscontent.current h3 {
    margin: 0 0 0.5em 0;
    padding: 0;
}
.newscontent.frontpage .clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
    -webkit-line-clamp: 8;
    padding: 0;
}
.newscontent.frontpage p {
	overflow: visible !important;
	margin-bottom:0;
}
.newsitemcontent {
    margin: 0 3em;
}
.newsitemcontent p {
    margin-bottom: 2em;
}
.newscontent p,
.clubcontainer p,
.newsitem p {
	overflow:hidden;
    font-weight: 300;
    font-family: 'Komet';
    line-height: 1.5em;
}
.newsitem p.footer {
    font-size: 0.875rem;
    font-weight: 500;
    color: #E42213;
}
.newsitem p.footer.news {
    padding: 1em 0 0 0;
}

.newsitem.small {
    background: transparent;
    margin-top: 1em;
}
.newsitem.small .content {
    margin-left:1em !important;
}

.newsitem.small a {
    display: flex;
}
.newsitem.small .img {
    flex: 0 0 160px;
    width: 160px;
    height: 160px;
}
.newsitem.small .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.newsitem.small h3 {
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 0;
    padding: 0;
}
.newsitem.small p.footer {
    margin-top: 0.8em;
    margin-left: 0;
    padding: 0;;
}

/* News */
.newslist {
    display: flex;
    flex-direction: column;
}
.newslist h1 {
    font-size: 3.438rem;
    font-weight: 800;
}
.newslist .material h1 {
    font-size: 1.5rem;
    font-weight: 800;
}
.newslist p a {
    font-size: 1.125rem;
    font-weight: 800;
    font-family: 'Gilroy', sans-serif;
    text-transform: uppercase;
    display: block;
}
.loadmore {
    font-size: 0.875rem;
    margin-bottom: 1em;
    text-align: center;

}
.loadmore a {
    display: inline-block;
    color: #102D69;
    text-transform: uppercase;
    font-family: 'Komet', sans-serif;
    font-weight: 300;
    padding: 0.8em 1.5em;
    text-transform: uppercase;
}
.newslist p a:active {
    color: #E42213;
}
.newslist .newsitem {
    width: 100%;
    min-height: 250px;
    padding: 0;
    margin: 1em 0 1em 0;
    overflow: hidden;
}
.newslist .newsitem img {
    width: 360px;
    height: 250px;
    display: block;
    float: left;
    margin-right: 2em;
    object-fit: cover;
    object-position: center center;
}

/* Newsarticle */
.newsarticle {
    padding: 5em;
    background-color: #ffffff;
}
.newsarticle a {
    color: #009EE3;
}
.newsarticle img {
    max-height: 450px;
    margin-bottom: 2em;
    display: block;
}
.newsarticle img:has(+ small) {
	margin-bottom: 0.5em;
}
.newsarticle img + small {
	display: block;
	margin-bottom: 1em;
}
.newsarticle h1 {
    margin-top: 1em;
    font-size: 2.625rem;
}
.newsarticle h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 2em 0 0 0;
}
.newsarticle span a,
.newsarticle span {
    color: #E42213;
}
.tapahtuma .newsarticle span,
.tapahtuma-julkinen .newsarticle span {
    color: #009EE3;
}
.tapahtuma .newsarticle span a {
    color: #009EE3;
}
.newsarticle p {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0;
    line-height: 1.5em;
}
.newsarticle li {
    line-height: 1.4em;
}
.newsarticle p a {
    font-weight: 500;
    text-decoration: underline;
}
p.allnews {
    font-size: 1.125rem;
    font-weight: 800;
    text-transform: uppercase;
    width:50%;
    display: block;
}
.newscontrols p.allnews {
    align-self: flex-end;
    text-align: right;
}

/* Events */

.events {
    background-color: #ffffff;
    padding: 3em 0 3em 0;
}
.events .sectionheader.borderbottom:after {
    background: #009EE3;
}
.sectionheader.borderbottom.date::after {
    background-color: #009EE3;
}
.events .sectionheader h2 {
    color: #009EE3;
    background: white;
}

.date {
    position: relative;
}

.date.borderbottom:after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    background: #009EE3;
    height: 2px;
    opacity: 0.3;
    bottom: 2.5em;
}

.date h2 {
    display: inline-block;
    padding-right: 0.667em;
    z-index: 2;
}

.cols-2 {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}
.cols-2 .col {
    display: block;
    width: 48.3%;
}
.cols-2 .col:last-child {
    padding: 0;
}
div.eventlist {

}
div.picturelist {
    display:block;
}

.picturebutton {
    margin-top: 2em;
    max-width: 360px;
}

.picturebutton a {
    color: #fff;
}
.picturebutton h1 {
    position: relative;
    font-size: 2.25rem;
    font-weight: 800;
    text-align: center;
    padding: 0;
    margin-bottom: 0;
}
.picturebutton p {
    position: relative;
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    padding: 0 1em 1em 1em;
}
.bluebutton {
    max-width: 560px;
}
.bluebutton img {
    display: block;
    float: right;
}
.bluebutton h1 {
    text-align: center;
}
.bluebutton a {
    color: #fff;
}
.bluebutton h1.attach::before {
    width: 30px;
    height: 37px;
    content: '';
    background: url('../img/materials.svg') no-repeat;
    display: inline-block;
    margin-right: 0.5em;
}
.bluebutton h3 {
    background-color: #102D69;
    font-family: 'Gilroy', sans-serif;
    font-size: 2.25rem;
    text-align: center;
    color: #ffffff;
    padding: 35px 0 35px 0;
    margin: 0;
}
.newsbannerimg {
    
}

/* FooterImage */

.footerimage {
    min-height: 315px;
    max-width: 98%;
    margin-left: 1em;
    padding: 3em 0;
    box-sizing: border-box;
    background-size: cover;
    background-position: center center;
    height: auto;
}

.footerimage .bluebox {
    width: 500px;
    left: 10%;
}

/* Footer */

footer {
    position: absolute;
    bottom: 0;
    width: 100%;
}


footer .container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-top: 40px;
    border-bottom: 1px #AAAAAAA6;
}
footer.whitefooter #wrapper {
    content: "";
    background-color: white;
}

.foot-1 {
    display: flex;
    width: 60%;
    flex-direction: column;
}
.foot-1 ul {
    padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap:wrap;
}
.foot-1 ul li {
    padding-right: 4em;
    list-style: none;
    text-transform: none;
    font-weight: 300;
}
.foot-1 a.logo {
    margin: 0;
    line-height: 0;
    font-size: 1.25rem;
    text-transform: none;
}
.foot-1 .someicons {
    display: inline-block;
    margin-bottom: 1em;
    margin-left: -0.7em;
}
.foot-2 {
    font-size: 0.875rem;
    justify-content: flex-end;
    display: flex;
    text-align: right;
    width: 40%;
    margin-top: 1em;
    display: block;
}
.foot-2 img {
    margin-top: 10px;
}
.foot-3 {
    border-top: 1px solid #AAAAAAA6;
    padding: 1em 0;
    font-size: 0.75em;
    width: 1160px;
}
nav.mainmenu ul.club {display: none;}


.prevmags .dropdown {
    max-height: 300px;
    overflow-y: auto;
}

.pw-edit-buttons {z-index: 50;}

/* Desktop Size */
@media (max-width: 1500px) {#wrapper .slick-dots {width: 26% !important;}}

@media (max-width: 1200px) {
    #wrapper .slick-dots {width: 13% !important;}
    .container {width: 95%;}
    .maginfo th {font-size: 1rem;}
    .news .sectionheader {width: 50%;}
    .club.sectionheader.borderbottom {width: 100%; margin-top: 5em;}
    .maginforight {box-sizing: border-box;}
    #swipebox-slider .slide img {max-width: 90% !important; max-height: auto !important; }
}
@media (max-width: 1100px) {
    .news .sectionheader{width: 40%;}
    main {margin-left: 1em;}
    .footerimage {min-height: none;}
    .news .newsitem.small a {flex-direction:column;}
    .news .newsitem.small .img {width: 100%; height: 75%;}
    .newsitem.small .content {margin: 1em 0.25em 1.25em 1.25em;}
    .footercarousel div.slide {height: auto;}
    .footercarousel {height: auto;}
}

@media (max-width: 1024px) {
    aside {flex: 0 0 25%;}
    .newsitem {flex: 0 0 49%;}
    .articles .newsitem.fp:nth-of-type(3) {display: none;}
    .news .newsitem.small {flex: 0 0 30%;}
    .sidebar {width: 250px;}
    .sidebarnav {width: 250px; min-width: 250px;}
    .foot-1 ul li {padding-right: 1em;}
    .newscontent.frontpage {-webkit-line-clamp: 3;}
    .news .sectionheader{width: 38%;}
    /* .clubsubpage img {margin-top: 2em;} */
    .sidebar .bluebutton h1 {font-size:1.95rem;}
    .sidebar .picturebutton  h1 {font-size:1.95rem;}
    .sidebar .picturebutton p {font-size: 1.15rem;}
    .kerhoparent-1433 .sidebar h1 { font-size: 1.75rem; }

}

/* Tabletsize */

@media (max-width: 988px) {
    nav.mainmenu ul li ul li {display:flex; flex-direction: column;}
    nav.mainmenu ul.club {display: flex;}
    nav.mainmenu ul li.has-children.has-sub ul,
    nav.mainmenu ul li.has-children.has-sub ul li ul {display: none;}
    nav.mainmenu ul li.has-children.has-sub.active ul,
    nav.mainmenu ul li.has-children.has-sub.active ul li ul {display: flex; flex-direction: column;}
    nav.mainmenu ul li ul li.currentpage > a,
    nav.mainmenu ul li.has-children.has-sub.currentpage > a {color: #009EE3;}
    nav.mainmenu ul li.has-children.has-sub.active ul li a {border-bottom: none !important;}
    nav.mainmenu ul li.has-children.has-sub.active ul li.has-children.has-sub.active li a {display:flex;}
    nav.mainmenu ul li.has-children.has-sub.active ul li.has-children.has-sub li a {display:none;}
    nav.mainmenu ul.club li.head.sub.has-sub ul.club li.sub {display: none;}
    nav.mainmenu ul.club li.head.sub.has-sub ul.club li.sub ul {display: flex;}
    nav.mainmenu ul.club li.head.sub.has-sub ul.club li.sub ul li {display: none;}
    nav.mainmenu ul.club li.head.sub.has-sub.active ul.club li.sub {display: flex;}
    nav.mainmenu ul ul {display:flex; margin: 0;}
    nav.mainmenu ul li:active { border-bottom: none; }
    nav.mainmenu ul li:hover { border-bottom: none; }
    .clubsubpage .club {width: 100%; margin-left: 0;}
    nav.mainmenu .mainnav > ul > li.active > ul {margin-bottom: 1em;}
    nav.mainmenu .mainnav > ul > li.has-children.active > a {padding-bottom: 0.5em;}
    nav.mainmenu ul ul li a {font-weight: 300;}
    /* nav.mainmenu ul ul li.has-children > a {font-weight: 600;} */
    nav.mainmenu ul ul ul {padding-left: 1em;}
    aside {flex: 0 0 0%;}
    a.mainopener {display:block !important; padding: 0 !important; position: absolute; right: -1em; top:0; height:59px; width: 54px;}
    .mainnav ul li a.mainopener .arrow {display:block;width:100%;height:100%;background: url('../img/redarrow.svg') no-repeat center center;background-size: 9px 15px; transition: all .1s linear;}
    .mainnav ul li.active > a.mainopener > .arrow { transform: rotate(90deg); }
    .mainnav ul li ul li a.mainopener {height: 24px;}
    /* .mainnav ul li.active a.mainopener .arrow::after {transition: all .3s ease; top: 23px; border: 0; height: 2px; width: 19px; background: #009EE3;}
    .mainnav ul li.active a.mainopener .arrow::before {top: 23px; background: #009EE3; width: 19px;} */
    .navcontainer {display: none;width:100%; margin-top: -15px;}
    .thincontainer {width: 100%;}
    #wrapper .slick-dots {display: none !important;}
    .news .sectionheader {margin-top: 5em; width: 100%;}
    /* header .container {background: #fff;}
    header {background: #fff;} */
    .someicons {display:none;}
    .news .sectionheader {margin-top: 6em;}
    div.articles {margin-top: 2em;}
    .newsarticle img {height: auto; width: 100%;}
    .logo {z-index: 1;margin-left: 5vw; margin-top: 20px;}
    nav.mainmenu {/*margin-top: -1em; margin-bottom: 2em;*/ width: 100% !important;}
    .clubnav {width: auto; background-color: #102D69; padding: 1em 3em 3em 3em; margin-top: 3em;}
    .mainnav {width: 100%; background-color: #102D69; padding: 2em 1.5em; box-sizing: border-box;padding: 2em 7.5%;}
    nav.mainmenu ul li {margin: 0 auto; width: 100%; position: relative;}
    nav.mainmenu ul {flex-direction: column; padding: 0 1em;}
    nav.mainmenu h2 {display: block; color: #fff;}
    nav.mainmenu ul li a {padding: 1.2em 0;}
    nav.mainmenu ul li ul li a {padding: 0.25em 0;}
    nav.mainmenu ul li.head.active > a {color: #009EE3;}
    nav.mainmenu ul li.mainhead {padding: 2.5em 0 0.3em 0; margin-bottom: 0.3em; border-bottom: solid 6px #E42213 !important;}
    nav.mainmenu ul li.mainhead a {  text-transform: uppercase; padding: 0;}
    nav.mainmenu ul.mobile ul li.head a {font-weight: 800; border-bottom: 5px transparent white !important;}
    nav.mainmenu ul.mobile ul li.sub a {font-weight: 300; color: #000000; padding: 0.7em; border-bottom:none !important;}
    nav.mainmenu ul.mobile ul li.sub a:hover {border-bottom: none !important;}
    nav.mainmenu ul.mobile ul li.sub a:active {font-weight: 500;}
    nav.mainmenu .mainnav > ul > li { border-bottom: 1px solid #AAAAAAA6;}
    nav.mainmenu ul li a.opener:hover {border-bottom: none; width: 54px;}
    nav.mainmenu ul li ul li:hover {width: 100%; margin: 0 auto;}
    .greydivider.mob {display: block; width: 100%; margin: 0 auto;}
    .mainmenu ul {background: #fff;}
    .maginfo {flex-direction: column;}
    .maginfoleft {width: 100%; margin-bottom: 2em;}
    .maginforight {width: 95%; padding: 2em 2em 2em 2em;}
    .carousel .bluebox {bottom: 0px;}
    .mobg {width: 100%; position: relative; padding: 2em 1em 2em 1em; background-color: #102D69;}
    nav.mainmenu ul.mobile {display: flex; flex-direction: column; padding-bottom: 1em; padding-top: 1em; margin: 0 auto; border-bottom: none;}
    nav.mainmenu ul.mobile ul.mobile {padding-left:0; margin-left:0; padding: 0;}
    nav.mainmenu .button {width: 55px; height: 46px; position:absolute;right:0;top:1em;cursor:pointer;z-index:3343;}
    nav.mainmenu .button::after {content:''; position:absolute; top: 23px; right: 0; display: block; height: 4px; width: 25px; border-top: 3px solid #102D69; border-bottom: 3px solid #102D69}
    nav.mainmenu .button::before {content:''; transition: all .3s ease; position: absolute; top: 16px; right: 0; display: block; height: 3px; width: 25px; background: #102D69;}
    nav.mainmenu .button.menu-opened::after {transition: all .3s ease; top: 23px; border: 0; height: 3px; width: 25px; background: #102D69; transform: rotate(45deg);}
    nav.mainmenu .button.menu-opened::before {top: 23px; background: #102D69; width: 25px; transform: rotate(-45deg);}
    nav.mainmenu {width: 80%;}
    nav.mainmenu ul li a {color: #000000;}
    .container {flex-direction: column;}
    .foot-1 ul li:first-of-type {display:inline;}
    .foot-1 ul li:first-of-type::after {content:'';display:block;}
    .foot-1 a.logo {line-height: 1em;}
    .foot-1 .someicons {margin-left: 0; width: 20%;}
    .newsitem.small .content {margin-left: 0em !important;}
    body.kerho .newsitem.small .content {margin-left: 1.25em !important;}
    main {margin-left: 0;}
    .mobileft, .mobiright {width: 50%; flex-direction: column; display:flex; align-items: stretch; justify-content: space-between;}
    .sidebarcontent {flex-direction: column;}
    .sidebar {display: none;}
    aside .sidebar {width: 100%; display: flex; flex-direction: row;}
    aside .sidebarnav {width: 100%; display: none;}
    .kerho .sidebarcontent aside,
    .clubsubpage aside,
    .lapin_kampat .sidebarcontent aside,
    .clubsubpage.hasheaderimage {margin: 0;}
    .carousel .bluebox {right: 30px; width: 100%; width: 98%;}
    .carousel .bluebox p {font-size: 1rem; line-height: 1rem;}
    .sidebarcontact {width: 47%; margin-bottom: 0; margin-top: 1em;}
    .bluebutton {width: 47%;}
    .picturebutton {max-width: 50%;}
    .footerimage {margin-left: 0; max-width: 100%;}
    .col {display: none;}
    .sidebar.mobile {display: flex;  width: 100%; flex-wrap: wrap; flex-direction: row;}
    .col.mobile {display: flex; width: 50%;}
    .col.club {display:none;}
    .sidebarcontact.club {display:none;}
    .bluebutton.club {display:none;}
    .sidebar.mobile .sidebarcontact{width: 95%; padding: 0em; margin-top: 0;}
    .sidebar.mobile .bluebutton{width: 95%; padding: 0em; flex-basis: 50% auto; display: flex; align-self: center;}
    .sidebar.mobile .eventpic {width: 95%; margin: 1em 1em 1em 0; display: flex; align-self: center; flex-grow: 1;}
    .sidebar.mobile .bluebutton a {margin: 0; width: 100%;}
    .col.mobile .sectionheader.borderbottom::after {width: 100%;}
    .sidebar.mobile div.picturelist {display:flex;}
    .sidebarcontact {box-sizing: border-box;margin-right:1em;}
    .sidebar .bluebutton {box-sizing: border-box;margin: 1em 1em 1em 0;}
    .sidebar .bluebutton h1 {position:relative; z-index:2; line-height:normal; vertical-align: middle; display: inline-block; width: 100%; font-size: 2rem;}
    .sidebar .picturebutton {box-sizing: border-box; margin-right:1em; max-width: 47%;}
    .cols-2 .col {width: 100%; margin-bottom: 2em;}
    nav.mainmenu {margin-left: -2.5vw; width: 100vw !important;}
}
@media (max-width: 870px) {
    .news .sectionheader {width: 35%;}
    .foot-2 img {margin-bottom: 0.5em;}
}
@media (max-width: 830px) {
    .news .sectionheader {width:100%;}
    .foot-1 ul li:first-of-type {width: 100%; margin-bottom: 1em;}
}
@media (max-width: 800px) {
    .newslist .newsitem img {width: 250px;}
}
@media (max-width: 768px) {
    .container {width: 85%;}
    .sidebar {width: 100%;}
    .carousel .bluebox {width: 100%; padding: 1em 2em; right: 0;}
    .carousel .bluebox p {font-size: 1rem; line-height: 1.2em;}
    .sidebarnav {width: 100%; margin-bottom: 0;}
    .clubsubpage .club {width: 100%; margin-left: 0;}
    .clubsubpage {flex-direction: column;}
    .cols-2 {flex-direction: column;}
    .cols-2 .col {width: 100%; padding-bottom: 2em;}
    .footerimage .bluebox {width: 415px; padding: 1em 2em;}
    .news .sectionheader {width:100%;}
    aside .sidebarcontact,
    aside .bluebutton,
    aside .picturebutton {display: flex; flex-direction: column; width: 100%;}
    aside .sidebar .bluebutton {width: 100%; max-width: 100%;}
    aside .sidebar .picturebutton {width: 100%; max-width: 100%; margin-top: 0em;}
    .bluebox {padding: 1em 2em;}
    /* nav.mainmenu ul li a {padding: 2em 1em 0.5em 1em;} */
    .newslist .newsitem {display: flex; flex-direction: column;}
    .newsitem.fp {max-width: 50%;}
    .newsarticle {padding: 3em;}
    .newsarticle h1 {font-size: 2rem;}
    .newsarticle h2 {font-size: 1.25rem;}
    .carousel {max-width: 100%;}
    .logo {margin-left: 0;}
    nav.mainmenu {margin-left: -7.5vw;}
    .maginfoleft table {width: 75%;}
}
@media (max-width: 650px) {
    .sidebar.mobile {flex-direction:column;}
    .foot-2 {display: none;}
    .foot-1 {width: 100%; flex-direction: row;}
    .logo {margin-left: 0;}
    .maginforight {display:flex; flex-direction:column;}
    .maginforight .right-2 {margin-top: 1em; width: 100%;}
    .maginforight .right-1 {width: 100%;}
    .mobileft, .mobiright {width: 100%; flex-direction: column; display:flex; align-items: stretch; justify-content: space-between;}
    .sidebar.mobile div.picturelist {flex-direction: column; width: 95%;}
    .clubsubpage .club h1 {line-break: break-all; font-size: 2.225rem;}
    .sidebar.mobile .sidebarcontact {width: 95%;}
    .sidebar.mobile .bluebutton {width: 95%; max-width: 95%;}
    .sidebar.mobile .bluebutton a {display:inline-block; vertical-align:middle;position:relative; z-index: 2; line-height:normal;}
    .sidebar.mobile .bluebutton h1 {width: 95%; text-align:center;}
    .sidebar.mobile .eventpic {width: 95%;}
    .newslist .newsitem img {width: 50%; height: auto;}
    .footercarousel div.slide img {height: 100%;}
    .footercarousel .slick-track .slick-slide {width: 300px !important;}
    .footercarousel .slick-track {width: 5000px !important;}
    .articles .newsitem.small:nth-of-type(6) {display: none;}
    .news .newsitem.small {flex: 0 0 48%;}
    .newslist .newsitem img {width: 200px; height: 200px;}

}

@media (max-width: 600px) {
    .newsarticle h1 {font-size: 2.225rem;}
    .carousel .bluebox {display: none;}
    .news .sectionheader.borderbottom::after {display:block;}
    .sectionheader.borderbottom {flex-direction: ''; width: 100%; display: block;}
    .bluebox.mobile {display: block; margin: 1em 0 3em 0; width: 100%;}
    .bluebox.mobile {position: relative; bottom: 5em; z-index: 5; margin-right: 1em;}
    .sidebarcontact,
    aside .bluebutton,
    aside .picturebutton {margin-top: -3em;}
    .news .sectionheader {margin-top:-5em;}
    .news a.all {padding-left: 0.857em; background: #EEF0F0; text-align: right;} 
    .foot-1 {width: 100%;}
    .foot-1 .someicons {margin-left: -0.4em; margin-top: 0.5em;}
    .foot-2 {width: 100%;text-align:left;}
    .foot-3 {width: 100%;}
    .headermap.desc {width: 100%;}
    .headermap.map {width: 100%;}
    .newsarticle {padding: 3em;}
    .newsarticle h1 {font-size: 1.175rem;}
    .newsarticle h2 {font-size: 1rem;}
    .headermap {flex-direction: column;}
    .articles {flex-direction: column;}
    .news-club .newsitem {flex: 0 0 100%; width: 100%;}
    .kerho .sidebarcontent aside,
    .lapin_kampat .sidebarcontent aside,
    .clubsubpage.hasheaderimage {margin-top: 0;}
}
@media (max-width: 550px) {
    .newsitem.fp {max-width: 100%;}
    .foot-1 {position: relative;}
    .foot-1 .someicons {position: absolute; right: 3px; width: auto;}
    .foot-1 .someicons {margin-left: 0;}
    .newsitem {flex: 0 0 100%;}
    .magazines {flex-direction: column;}
    .mag {flex: 0 0 100%; margin: 0 auto;}
    .mag img {width: 300px; height: auto;}
    .footerimage .bluebox {width: auto; margin-top: -5em;}
    .magheader h1 {font-size: 2.638rem;}
    .newslist .newsitem {display: flex; flex-direction: column;}
    .newslist .newsitem img {width: 100%;}
    .newsitem {max-width: 100%;}
    .newsitemcontent {margin: 0;}
    .sidebar.mobile {flex-direction: column;}
    .mainimg {width: 100vw; margin-left: -7.5vw;}
}

/* Mobile size */
@media (max-width: 495px) {
    .foot-1 ul {flex-direction: row; flex-wrap: wrap;}
    .foot-1 ul li:first {white-space:pre;}
    .newsarticle {padding: 2em;}
    .newsarticle h1 {font-size: 1.25rem;}
    .newsarticle h2 {font-size: 1rem;}
    .clubsubpage .club h1 {font-size: 2rem;}
    .maginfoleft table {width: 100%;}
    .news .newsitem.small {flex-basis: 100%;}
    .newslist h1 {font-size: 2.5rem;}
}
@media (max-width: 375px) {
    div.slide h1 {font-size: 3.25rem;}
    .newsitem.small a {flex-direction:column; margin: 0 auto;}
    .newsitem.small a img {width: 300px; height: auto;}
    .bluebox p {font-size: 1.15rem;}
    .clubsubpage .club h1 {font-size: 1.5rem;}
    .mag img {width: 275px; height: auto;}
}
@media (max-width: 330px) {
    header .someicons a {margin-right: 0;}
    .logo img {margin-right: 0;}
    .newslist h1 {font-size: 2.75rem;}
    .news .newsitem.small {flex: 0 0 100%; margin: 0 auto;  margin-left: 2em;}
    .news .newsitem.small .img {width: 80%; height: 50%;}
    .mag img {width: 250px; height: auto;}
}