@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&family=Saira+Condensed:wght@200;300;400;500;600;700;800&family=Ubuntu+Condensed&display=swap");

/* BASIC STYLING */
/* VÄRIT
Musta: #000000
Tummanharmaa: #333333
Tummavihertävä: #086c72
Lähijunaturkoosi: #009aa3
Vaaleasinertävä: #ace1e0 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Lato", sans-serif;
    max-width: 2100px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Saira Condensed", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    color: #009aa3;
}

body {
    background-color: #fbfbfb;
    width: 100%;
    height: 100%;
}

html {
    margin: 0 auto;
    scroll-behavior: smooth;
}

iframe {
    margin: 1em 0;
    width: 100%;
    height: 426px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

/* ANIMATIONS */
.active.miten-lahijuna-img {
    animation: fadeIn 0.7s linear both;
}

.active.miten-lahijuna-article {
    animation: fadeIn 1s linear both;
}

.active.member1 {
    animation: fadeIn 0.5s linear both;
}

.active.member2 {
    animation: fadeIn 0.5s linear both;
    animation-delay: 0.5s;
}

.active.member3 {
    animation: fadeIn 0.5s linear both;
    animation-delay: 1s;
}

.active.member4 {
    animation: fadeIn 0.5s linear both;

    /* animation-delay: 1.5s; */
}

.active.member5 {
    animation: fadeIn 0.5s linear both;

    /* animation-delay: 2s; */
    animation-delay: 0.5s;
}

.active.member6 {
    animation: fadeInBottom 0.5s linear both;
    animation-delay: 1s;
}

.active.contact-phone {
    animation: fadeIn 0.2s linear both;
}

.active.fa-phone {
    animation: wiggle 1s linear both;
    animation-delay: 0.2s;
}

.active.contact-email {
    animation: fadeIn 0.2s linear both;
    animation-delay: 0.8s;
}

.active.fa-envelope {
    animation: wiggle 1s linear both;
    animation-delay: 1s;
}

.down-arrow-header {
    animation: jumpInfinite 2s infinite;
}

.contact-arrow {
    animation: jumpInfiniteRight 2s infinite;
}

.reveal {
    position: relative;
    opacity: 0;
}

.reveal.active {
    opacity: 1;
}

@keyframes wiggle {
    0% {
        transform: skewX(0deg);
    }

    10% {
        transform: skewX(-8deg);
    }

    20% {
        transform: skewX(7deg);
    }

    30% {
        transform: skewX(-6deg);
    }

    40% {
        transform: skewX(5deg);
    }

    50% {
        transform: skewX(-4deg);
    }

    60% {
        transform: skewX(3deg);
    }

    70% {
        transform: skewX(-2deg);
    }

    80% {
        transform: skewX(1deg);
    }

    90% {
        transform: skewX(0deg);
    }

    100% {
        transform: skewX(0deg);
    }
}

@keyframes flipSide {
    0% {
        opacity: 0;
        transform: rotateY(180deg);
    }

    to {
        opacity: 1;
        transform: rotateY(0);
    }
}

@keyframes flipBottom {
    0% {
        opacity: 0;
        transform: rotateX(180deg);
    }

    to {
        opacity: 1;
        transform: rotateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(10%, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-10%, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate3d(0, -10%, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInBottom {
    from {
        opacity: 0;
        transform: translate3d(0, 10%, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes jumpInfinite {
    0% {
        margin-top: 0;
    }

    50% {
        margin-top: 10px;
    }

    100% {
        margin-top: 0;
    }
}

@keyframes jumpInfiniteRight {
    0% {
        margin-left: 0;
    }

    50% {
        margin-left: 20px;
    }

    100% {
        margin-left: 0;
    }
}

/* NAVIGATION STYLES */
header {
    height: 100vh;
}

.navContent {
    width: 100vw;
    margin: auto;
    padding: 0 2em 1em 2em;
    z-index: 101;
}

.nav {
    background-color: #ffffff;
    position: fixed;
    z-index: 100;
    width: 100%;
    padding: 1em 0 0 0;
    transition: all 0.6s ease;
}

.nav.sticky {
    padding: 0.5em 0;
}

.navShadow.sticky {
    box-shadow: rgba(0, 0, 0, 0.1) 0 4px 4px -2px;
}

.nav.sticky .submenu {
    position: absolute;
    top: 41px;
    left: -35px;
    background-color: #fff;
    transition: all 0.3s ease;
    box-shadow: rgba(0, 0, 0, 0.1) 0 4px 4px -2px;
}

.nav.sticky .navContent {
    padding: 0 2em 0.3em 2em;
}

.nav.sticky .navContSec {
    padding: 0 2em 0 2em;
}

.nav.sticky .logo img {
    width: 50px;
}

.nav.sticky .menu-link-active {
    padding-top: 0;
}

.nav .navContent {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.secondary-nav {
    background-color: #333333;
    padding: 0.8em 0;
}

.secondary-nav.sticky {
    padding: 0.4em 0;
    box-shadow: rgba(0, 0, 0, 0.1) 0 4px 4px -2px;
}

.secondary-nav.sticky .secondary-navContent {
    padding: 0 2em;
}

.secondary-navContent {
    display: flex;
    justify-content: flex-end !important;
    padding: 0 2em;
}

.secondary-nav .menu-links li a {
    color: #fff;
    font-size: 0.9em;
    letter-spacing: 2px;
}

.nav .logo img {
    width: 80px;
    transition: all 0.4s ease;
}

.nav .menu-links {
    display: inline-flex;
}

.menu-links li {
    list-style: none;
}

.menu-links li a {
    font-family: "Saira Condensed", sans-serif;
    color: black;
    font-size: 1em;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 40px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 5px 5px 0 5px;
}

.submenu-icon {
    display: none;
}

.menu-link-active {
    border-top: 2px solid #009aa3;
    color: #009aa3 !important;
    font-weight: 600 !important;
    letter-spacing: 2px !important;
}

.homepage-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.homepage-link i {
    font-size: 2em;
}

.homepage-link p {
    font-family: "Saira Condensed", sans-serif;
    font-size: 0.7em;
    margin-top: 3px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    cursor: pointer;
}

/* .icon:hover {
  color: #086c72;
} */
.menu-link {
    transition: all 0.3s ease;
}

/* .menu-link:hover {
  transform: translateY(-5px);
} */
.menu-link a:hover {
    color: #009aa3;
}

.icon {
    position: relative;
    top: -1.5em;
    right: -1.5em;
    color: black;
    cursor: pointer;
    display: none;
}

.fa-xmark {
    color: #fff !important;
}

.icon.menu-icon {
    position: absolute;
    right: 1em;
    top: 1em;
}

.submenu {
    display: none;
}

/* HEADER PARALLAX */
#hero {
    height: 100%;
    overflow: hidden;
    position: relative;
}

.layer {
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 100%;
    position: fixed;
}

.layer1 {
    background-image: url("../img/green_bg.png");
    position: absolute;
    z-index: 5;
}

.layer2 {
    background-image: url("../img/train_bg.png");
    background-position: right;
    position: absolute;
    z-index: 10;
}

.layer3 {
    background-image: url("../img/white_bg.png");
    z-index: 15;
    position: absolute;
}

/* HEADER TEXT SECTION */
.header-img {
    position: relative;
}

.header-text-section {
    position: absolute;
    left: 8%;
    top: 37%;
    text-align: center;
    margin: auto;
    z-index: 30;
}

.header-text-section h1 {
    text-transform: uppercase;
    font-size: 5em;
    letter-spacing: 1.5px;
    line-height: 1.2;
    margin-top: 10px;
}

.header-text-section h2,
.lahijuna-title h2 {
    text-transform: uppercase;
    font-size: 1.2em;
    font-weight: 300;
    letter-spacing: 1.5px;
    color: #000000;
}

.down-arrow-header {
    font-size: 2.2em;
    margin-top: 20px;
    color: #009aa3;
}

/* MAIN */
main {
    position: relative;
    z-index: 50;
    background-color: #fbfbfb;
}

/* MIKSI LÄHIJUNA */
.miksi-lahijuna {
    width: 100%;
    margin: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.miksi-lahijuna-article {
    width: 40%;
    padding: 2em;
    margin: 4em 0;
}

.miksi-lahijuna-left {
    border-right: 3px solid #009aa3;
    padding-right: 3em;
}

.miksi-lahijuna-right {
    padding-left: 3em;
}

.miksi-lahijuna-left h3 {
    font-size: 2.5em;
    letter-spacing: 1px;
}

.miksi-lahijuna-article p {
    line-height: 2;
}

/* MITEN LÄHIJUNA */
.miten-lahijuna {
    width: 100%;
    margin: 8em auto 4em auto;
    background-color: #ace1e0;
    padding: 2em 2em 0 2em;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.miten-lahijuna-img {
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.miten-lahijuna-img img {
    width: 450px;
    margin-top: -200px;
}

.miten-lahijuna-article {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    padding: 5em 6em 2em 6em;
    margin: -200px auto 0 auto;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

.miten-lahijuna-title {
    text-align: center;
    margin-top: -50px;
    padding: 0 1em;
}

.miten-lahijuna-title h3 {
    font-size: 2em;
    letter-spacing: 1px;
}

.miten-lahijuna-article p {
    margin: 1em 0 2em 0;
    line-height: 1.6;
}

.lahijuna-btn {
    display: inline-block;
    margin-bottom: -70px;
    background-color: #333333;
    border: none;
    padding: 1.5em 2.5em;
    text-align: center;
    text-decoration: none;
    border-top-right-radius: 20px;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    cursor: pointer;
    transition: all 0.5s ease;
    text-decoration: none;
    color: #fff;
    font-family: "Saira Condensed", sans-serif;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.fa-arrow-right {
    margin-left: 5px;
    transition: all 0.5s ease;
}

.nHover:hover {
    transform: translateY(-5px);
}

.sHover:hover {
    box-shadow: rgba(33, 35, 38, 0.1) 0px 10px 10px -10px;
}

.lahijuna-btn:hover {
    background-color: #3e3e3e;
}

.lahijuna-btn:hover .fa-arrow-right {
    transform: translatex(5px);
}

/* KAIKKI JULKAISUT SINGLE PAGE */
.julkaisut-header {
    height: 360px;
    width: 100%;
}

.julkaisut-header-title-section {
    padding: 5.5em 0;
}

.julkaisut-header-main-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 2em;
    background-color: #086c72;
}

.julkaisut-header-title-section h2 {
    text-transform: uppercase;
    font-size: 3em;
    letter-spacing: 1.5px;
    line-height: 1.2;
    margin-top: 10px;
}

.julkaisut-header-title-section h1 {
    color: #000000;
    text-transform: uppercase;
    font-size: 1.2em;
    font-weight: 300;
    letter-spacing: 1.5px;
}

.julkaisut-down-container {
    text-align: center;
    position: relative;
    width: 100%;
}

.julkaisut-down-arrow {
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    font-size: 2em;
}

.julkaisut-header-title-container {
    padding: 3em 3em 5em 3em;
    margin: 1em 1em -80px 1em;
    width: 50%;
    height: 100%;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    text-align: center;
}

.julkaisut-header-img-container {
    width: 50%;
    height: 100%;
    background-color: #c0e7e7;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.julkaisut-header-img-container img {
    width: 450px;
    height: 450px;
    margin-bottom: -85px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

.all-julkaisut-container {
    margin: 4em auto 5em auto;
    width: 95%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.all-julkaisut-single {
    width: auto !important;
    margin: 1em !important;
    flex-direction: column !important;
}

.all-julkaisut-date {
    width: 100% !important;
    flex-direction: row !important;
    padding: 1.5em 0 !important;
}

.all-julkaisut-date p {
    margin: 0 3px !important;
    font-size: 1.5em !important;
}

.all-j-content {
    padding: 1.5em 2em 2em 2em !important;
    width: 100% !important;
}

.julkaisu-category {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding-bottom: 5px;
}

.julkaisu-category p {
    padding-bottom: 0 !important;
    margin-left: 0.5em;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: "Saira Condensed", sans-serif;
    color: #000;
    font-weight: 500;
}

.julkaisu-category i {
    color: #009aa3;
}

/* TWITTER */
.twitter-section {
    width: 50%;
    margin: 2em auto -1em auto;
}

.twitter-timeline iframe {
    border-radius: 10px;
}

/* MAIN PAGE JULKAISUT SECTION */
.julkaisut-section {
    width: 100%;
    padding-top: 2em;
}

.julkaisut-title h2 {
    font-size: 2.5em;
    letter-spacing: 1px;
}

.julkaisut-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 1em 0;
}

.julkaisut-main-container {
    width: 70%;
    margin: auto;
}

.julkaisut-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.katsokaikki-btn {
    margin-bottom: 0;
    margin-top: 5px;
    padding: 1em 2em;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.julkaisu {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    margin: 1em 0;
    background-color: #fff;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

.julkaisu-date {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 20%;
    background-color: #086c72;
}

.julkaisu-date p {
    font-family: "Saira Condensed", sans-serif !important;
    text-transform: uppercase;
    font-weight: 900;
    font-size: 1.2em;
    line-height: 120%;
    color: #fff;
}

.date-number {
    font-size: 3.5em !important;
}

.julkaisu-content {
    padding: 2em 4em 2em 2em;
    width: 80%;
}

.julkaisu-content p {
    line-height: 1.6;
    padding-bottom: 1em;
}

.julkaisu-content h3 {
    color: #000000;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.readmore-btn {
    display: inline-block;
    margin-bottom: 0;
    padding: 0.5em 1.5em;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    font-size: 0.8em;
    color: #fff;
}

/* YKSITTÄINEN JULKAISU */
.kaikkijulkaisut-btn {
    transition: all 0.5s ease;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.kaikkijulkaisut-btn:hover {
    transform: translateY(-5px);
}

.kaikkijulkaisut-btn:hover .fa-arrow-left {
    transform: translatex(-5px);
}

.single-julkaisu-header {
    height: fit-content;
}

.single-header-links {
    display: flex;
    width: 100%;
    padding: 8em 4em 1em 4em;
}

.single-header-links a {
    color: #000000;
    text-decoration: none;
    font-family: "Saira Condensed", sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.back-arrow {
    margin-right: 10px;
    transition: all 0.5s ease;
}

.single-julkaisu-main {
    width: 100%;
    padding: 2em 4em 4em 4em;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
}

.single-container {
    padding-right: 2em;
    width: 60%;
}

.single-title {
    border-bottom: 2px solid #009aa3;
    margin-bottom: 1em;
}

.single-title h1 {
    color: #009aa3;
    font-size: 2em;
    letter-spacing: 1px;
}

.single-title h2 {
    color: #000000;
    font-weight: normal;
    font-size: 1.2em;
    letter-spacing: 1px;
    margin-bottom: 0.5em;
}

.single-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: baseline;
}

.single-content img {
    width: 70%;
    margin: 1em auto;
}

.single-content-mail {
    color: #009aa3;
    width: 100%;
    font-size: 1em !important;
}

.julkaisu-with-img {
    display: block;
}

.img-wrap {
    display: block;
    width: 50%;
    float: right;
    margin: 20px 0 10px 30px;
}

.img-wrap img {
    width: 100%;
}

.text-wrap {
    display: block;
}

.single-content p {
    width: 100%;
    line-height: 1.6;
    padding: 1em 0 0 0;
    word-wrap: break-word;
}

.single-content i {
    line-height: 1.6;
    font-size: 0.9em;
}

.single-content span {
    width: 100%;
    line-height: 1.7;
    padding: 0 0 0 0;
    word-wrap: break-word;
    font-size: 1.2em;
}

.single-content h3 {
    color: #000;
    letter-spacing: 1px;
    font-size: 1.3em;
}

.single-content ol,
.single-content ul {
    padding: 0.5em 1.5em;
}

.single-content ol li,
.single-content ul li {
    padding: 1em 0 0 0;
    line-height: 1.6;
}

/* .single-content a::before {
  font-family: "Font Awesome\ 5 Free";
  content: "\f0c1";
  margin: 0 0.5em;
} */
.single-content .single-content-mail::before {
    font-family: "Font Awesome\ 5 Free";
    content: "\f0e0";
    margin: 0 0.5em;
}

.single-content a {
    display: inline-block;
    border: none;
    color: #009aa3;
    font-family: "Saira Condensed", sans-serif;
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    word-wrap: break-word;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.single-content a:hover {
    transform: translateY(-3px);
}

.latest-posts {
    width: 35%;
    background-color: #333333;
    padding: 0 2em 3em 2em;
}

.latest-posts-title {
    width: 80%;
    margin: -50px auto 0 auto;
    text-align: center;
    background-color: #fff;
    padding: 2em 0;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

.latest-posts-title h2 {
    color: #009aa3;
    font-size: 2em;
    letter-spacing: 1px;
}

.posts {
    width: 80%;
    margin: 1em auto;
}

.posts-list {
    list-style-type: none;
}

.post {
    padding-top: 2em;
    line-height: 1.4;
    text-align: center;
}

.post a {
    color: #fff;
    font-size: 1.1em;
    font-family: "Saira Condensed", sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease-in-out;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.post a:hover {
    transform: translateY(-5px);
}

hr {
    margin: 2em auto 0 auto;
    width: 30%;
    border: 0.5px solid #ffff;
}

.post:last-child hr {
    display: none;
}

.single-date {
    display: flex;
    flex-direction: row;
    margin-bottom: 0.5em;
}

.single-cat {
    margin-left: 1em;
}

.kirjoittaja {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 0.5em;
}

.kirjoittaja i,
.single-date h2 {
    font-size: 1em;
}

.kirjoittaja h2 {
    margin-bottom: 0;
    margin-left: 0.5em;
    font-size: 1em;
}

/* TYÖRYHMÄ */
.team-section {
    margin-top: 6em;
    text-align: center;
}

.team-section h2 {
    color: #000000;
    text-transform: uppercase;
    font-size: 1.2em;
    font-weight: 300;
    letter-spacing: 1.5px;
    text-align: center;
    margin: 0 0.5em;
}

.team-section h3 {
    margin: 0 0 2em 0;
    font-size: 2.5em;
    letter-spacing: 1px;
}

.team-member-title {
    color: #000;
    font-weight: 300;
    font-size: 1em !important;
    letter-spacing: 1px;
    margin-top: -5px;
    padding-bottom: 0.5em;
}

.team-members-container {
    padding: 0 10em;
    background-color: #ace1e0;
    width: 100%;
    margin: 5em 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    margin: 2em 1em;
    flex: 0 0 auto;
    width: 300px;
    max-width: 400px;
}

.team-member h4 {
    font-size: 1.5em;
}

.member-title {
    margin-top: -3px;
    margin-bottom: 2px;
    font-size: 1em;
    color: #282828;
}

.team-member a {
    color: #000000;
    text-decoration: none;
}

.team-member-top {
    margin-top: -50px;
}

.team-member-bottom {
    margin-bottom: -50px;
}

.team-member-pic {
    width: 100%;
}

.team-member-pic img {
    width: 100%;
    margin: auto;
}

.team-member-content {
    padding: 1em 1em;
    height: 140px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.team-member-content p {
    margin-top: 5px;
    font-size: 0.95em;
}

/* MASONRY GALLERY */
.galleria-title {
    width: 100%;
    padding: 0 5em;
    margin: 2em 0;
}

.masonry-gallery {
    margin-top: 6em;
    width: 100%;
}

.mItem img {
    position: relative;
    width: 100%;
    height: auto;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

.masonry {
    margin: 1em 5em 0 5em;
    column-count: 3;
    column-gap: 4em;
}

.mItem {
    cursor: pointer;
    transition: 0.5s ease;
    display: inline-block;
    padding-top: 10px;
}

.grayscale {
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);

    /* Safari and Chrome */
    -moz-filter: grayscale(100%);

    /* Firefox */
    -o-filter: grayscale(100%);

    /* Opera */
    -ms-filter: grayscale(100%);

    /* IE */
}

.grayscale:hover {
    filter: grayscale(0%);
    -webkit-filter: grayscale(0%);

    /* Safari and Chrome */
    -moz-filter: grayscale(0%);

    /* Firefox */
    -o-filter: grayscale(0%);

    /* Opera */
    -ms-filter: grayscale(0%);

    /* IE */
    transform: translateY(-5px);
}

.sHoverImg:hover {
    opacity: 0.9;
}

.mItem a {
    text-decoration: none;
    color: #000000;
}

.mItem p {
    text-transform: uppercase;
    font-family: "Saira Condensed", sans-serif;
    font-size: 0.9em;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.masonry .mItem {
    display: inline-block;
    margin-bottom: 16px;
    width: 100%;
}

/* MODAL STYLES */
/* Image modal */
.modal {
    width: 100%;
    height: 100%;
    z-index: 1000;
    position: fixed;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    display: block;
    margin: auto;
    overflow: hidden;
    animation: opacityChange 0.5s ease-in-out;
    text-align: center;
}

.backdrop {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content img {
    max-height: 80vh;
    max-width: 1200px;
    object-fit: cover;
}

.image-caption {
    margin: 0 auto;
    left: 0;
    right: 0;
    position: absolute;
    width: 100%;
    bottom: 3px;
    padding: 0.5em;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    text-align: center;
}

.modal-content p {
    text-transform: uppercase;
    font-family: "Saira Condensed", sans-serif;
    font-size: 1em;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

@keyframes opacityChange {
    from {
        opacity: 0;
        transform: scale(0);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.closeModalBtn {
    position: absolute;
    top: 0;
    right: 0;
    color: #fff;
    font-size: 2em;
    margin: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nextBtn {
    margin: 0 1em;
    position: absolute;
    right: 0;
    color: #fff;
    font-size: 2.3em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prevBtn {
    margin: 0 1em;
    position: absolute;
    left: 0;
    color: #fff;
    font-size: 2.3em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nextBtn:hover {
    transform: translateX(5px);
}

.prevBtn:hover {
    transform: translateX(-5px);
}

.closeModalBtn:hover {
    transform: rotate(-180deg);
}

.hidden {
    display: none;
}

/* CONTACT SECTION */
.contact-section {
    margin-top: 7em;
}

.contact-container h3 {
    font-size: 3em;
    color: #fff;
    text-align: center;
    letter-spacing: 1px;
}

.contact-container h2 {
    text-transform: uppercase;
    font-size: 1.2em;
    font-weight: 300;
    letter-spacing: 1.5px;
    text-align: center;
    margin: 0 1em;
    color: #fff;
}

.contact-container {
    margin-top: 4em;
    padding-bottom: 4em;
    width: 100%;
}

.contact-main-content {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    width: 90%;
    margin: auto;
    background-color: #fff;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

.contact-title-section {
    width: 50%;
    padding: 5em 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #086c72;
}

.contact-info-container {
    width: 50%;
    padding: 5em 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-info {
    padding: 1em 0;
    width: fit-content;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-some {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0.5em;
}

.contact-some-icon-container {
    width: 100%;
    text-align: center;
    margin-top: 1.5em;
}

.contact-section h4 {
    letter-spacing: 1px;
    color: #333333;
    font-size: 1.3em;
}

.contact-some-icon {
    color: #fff;
    background-color: #333333;
    padding: 1em;
    border-radius: 50%;
    font-size: 1em;
    width: 50px;
    height: 50px;
    margin: 0 0.5em;
    transition: all 0.3s ease;
}

.contact-some-icon:hover {
    background-color: #3e3e3e;
    transform: translateY(-5px);
}

.contact-single {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 1em 0;
}

.contact-phone p,
.contact-email a {
    font-family: "Saira Condensed", sans-serif;
    letter-spacing: 0.5px;
    font-size: 1.3em;
    font-weight: 300;
    text-decoration: none;
    color: #000000;
}

.phone-number {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.front-phone-single {
    font-size: 1em !important;
    font-weight: 500 !important;
    text-transform: uppercase;
    padding-left: 5px;
}

a[href^="tel"] {
    color: inherit;
    text-decoration: none;
    font-family: "Saira Condensed", sans-serif;
}

.contact-icon {
    color: #fff;
    background-color: #333333;
    padding: 1em;
    border-radius: 50%;
    font-size: 1em;
    width: 50px;
    height: 50px;
    margin-right: 1.5em;
}

.contact-arrow {
    color: #fff;
    font-size: 1.8em;
    transition: all 0.3s ease;
}

/* FOOTER */
footer {
    position: relative;
}

.footer-main-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background-color: #333333;
    padding: 2em 2em 7em 2em;
    height: 450px;
}

.footer-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 33.333333%;
}

.footer-nav {
    flex: 0 0 33.333333%;
}

.footer-some {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex: 0 0 33.333333%;
}

.footer-s-icon {
    font-size: 1.5em;
    margin: 0 30px;
    color: #fff;
    transition: all 0.3s ease;
}

.footer-s-icon:hover,
.menu-link-footer:hover {
    transform: translateY(-5px);
}

.menu-links-footer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.menu-links-footer li a {
    color: #fff;
    font-size: 0.9em;
    letter-spacing: 2px;
    margin: 0 20px;
    transition: all 0.3s ease;
}

.menu-link-footer a:hover {
    color: #fff;
}

.footer-logo-container img {
    width: 150px;
}

.footer-credits {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    position: absolute;
    left: 0;
    bottom: 0;
    color: #fff;
    background-color: #282828;
    padding: 2.5em 2em;
}

.footer-contact {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.footer-contact-single {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-right: 50px;
}

.footer-contact-single p,
.footer-contact-single a {
    color: #fff;
    font-weight: 300;
    text-decoration: none;
    font-size: 0.9em;
    letter-spacing: 0.5px;
    font-family: "Lato", sans-serif;
}

.footer-phone,
.footer-envelope {
    margin-right: 15px;
}

.footer-copyright p {
    font-weight: 300;
    margin: 0 5px;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

#copyright {
    font-weight: 300;
    padding-right: 10px;
}

/* GALLERIA SINGLE PAGE */
.secondary-header {
    background-color: #8ad1d5;
    height: 12em;
}

.secondary-main-title {
    background-color: #fff;
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3em;
    position: absolute;
    top: -150px;
    left: 0;
    right: 0;
    margin: auto;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

.secondary-main-title h1 {
    text-transform: uppercase;
    font-size: 1.2em;
    font-weight: 300;
    letter-spacing: 1.5px;
}

.secondary-main-title h2 {
    color: #009aa3;
    font-size: 2.5em;
    letter-spacing: 1px;
}

.single-gallery-masonry {
    margin: 4em 3em;
}

.single-gallery-section {
    margin-top: 1em;
}

@media screen and (min-width: 1800px) {
    .team-members-container {
        padding: 0 10em;
    }

    .header-text-section {
        left: 10%;
    }

    .header-text-section h1 {
        font-size: 5.5em;
    }

    .header-text-section h2 {
        font-size: 1.6em;
    }

    .down-arrow-header {
        font-size: 2.5em;
    }

    .miksi-lahijuna {
        width: 90%;
    }

    .miten-lahijuna-article {
        width: 40%;
    }

    .julkaisut-main-container,
    .twitter-section {
        width: 60%;
    }

    .contact-container {
        margin: 4em auto 0 auto;
        width: 90%;
    }

    .masonry-gallery {
        margin: 0 auto;
        width: 90%;
    }

    .footer-main-container {
        padding: 2em 10em 7.5em 10em;
    }
}

@media screen and (min-width: 1660px) {
    .top-1660 {
        margin-top: -50px;
    }

    .team-members-container {
        padding: 0 !important;
    }

    .active.member4 {
        animation: fadeIn 0.5s linear both;
        animation-delay: 1.5s;
    }

    .active.member5 {
        animation: fadeIn 0.5s linear both;
        animation-delay: 2s;
    }
}

@media screen and (min-width: 1647px) {
    .single-julkaisu-main {
        padding: 2em 10em 8em 10em;
    }

    .single-header-links {
        padding: 8em 10em 1em 10em;
    }

    .team-members-container {
        padding: 0 12em;
    }
}

@media screen and (max-width: 1480px) {
    .modal-content img,
    .image-caption {
        max-width: 1000px;
    }
}

@media screen and (max-width: 1328px) {
    .team-members-container {
        justify-content: center;
        margin: 2em 0;
        padding: 0.5em 10em;
    }

    .team-member {
        margin: 2em;
    }

    .team-member-top {
        margin-top: -50px;
    }

    .team-member-pic {
        width: 300px;
    }

    .team-member {
        margin-top: 0.5em;
    }

    .team-section h3 {
        margin: 0 0 1em 0;
    }
}

@media screen and (max-width: 1295px) {
    .miksi-lahijuna-article {
        width: 45%;
    }

    .miten-lahijuna-article {
        padding: 5em 3em 2em 3em;
    }

    .miten-lahijuna-img img {
        width: 380px;
    }

    .miten-lahijuna {
        padding-bottom: 2em;
    }

    .modal-content img,
    .image-caption {
        width: 85%;
    }

    .twitter-section {
        width: 70%;
    }
}

@media screen and (max-width: 1100px) {
    .nextBtn {
        font-size: 1.8em;
        margin: 0 0.5em;
    }

    .prevBtn {
        font-size: 1.8em;
        margin: 0 0.5em;
    }

    .contact-container h3 {
        font-size: 2.5em;
    }

    .modal {
        background-color: rgba(0, 0, 0, 0.95);
    }

    .galleria-title {
        margin: 5em 0 2em 0;
    }

    .single-gallery-section {
        margin-top: 4em;
    }

    #hero {
        display: none;
    }

    body.disabledScroll {
        overflow: hidden;
    }

    .icon {
        display: block;
    }

    .icon.hide {
        display: none;
    }

    .nav {
        background-color: #ffffff;
        padding: 1em 0;
    }

    .nav.sticky {
        box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    }

    .nav.sticky .navContent {
        padding: 0.3em 1.5em;
    }

    .nav .menu-links {
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        width: 100%;
        max-width: 70%;
        background-color: #333333;
        display: block;
        padding: 3em 0;
        text-align: left;
        transition: all 0.3s ease;
        color: #fff;
    }

    .navContent {
        padding: 0.5em 1.5em;
    }

    .secondary-nav {
        display: none;
    }

    .menu-link-active {
        border-top: none;
        padding: 0;
        font-size: 1.5em !important;
        letter-spacing: 3px !important;
        color: #000 !important;
    }

    .nav .menu-links.active {
        left: 0%;
    }

    .nav .menu-links li {
        margin-top: 1em;
        padding: 0.5em;
    }

    .nav .menu-links li a,
    .submenu-link a {
        font-size: 1.3em;
        color: #fff !important;
    }

    .menu-link a:hover {
        color: #fff;
    }

    .hideSubmenu {
        display: none !important;
    }

    .submenu,
    .nav.sticky .submenu {
        position: relative;
        top: 0;
        left: 50px;
        display: block;
        transition: all 0.3s ease;
        background-color: transparent;
        box-shadow: none;
    }

    .submenu {
        padding: 0.5em 0 1em 0;
        transition: all 0.3s ease;
    }

    .submenu-icon {
        display: block;
        margin-left: 15px;
        cursor: pointer;
    }

    .submenu-parent {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }

    .submenu-menu-link {
        text-align: start;
    }

    .submenu-single-link {
        font-size: 1em !important;
        margin-left: 5px !important;
    }

    /* .subBtnAnimation {
    transform: rotate(-180deg);
  } */
    .submenu:first-child {
        margin-top: -35px;
    }

    .submenu:last-child {
        padding-bottom: 0;
    }

    .header-img {
        background-image: url("../img/background_mobile3.png");
        background-position: bottom center;
        background-repeat: no-repeat;
        background-size: cover;
        background-attachment: local;
    }

    .header-text-section {
        left: 0;
        right: 0;
        top: 15%;
        bottom: 0;
        margin: auto;
    }

    .header-text-section h1 {
        font-size: 3.5em;
        margin-top: 0.2em;
    }

    .header-text-section h2 {
        font-size: 1em;
    }

    .fa-angle-down {
        font-size: 2em;
    }

    .miksi-lahijuna-left h3 {
        font-size: 2em;
    }

    .miksi-lahijuna-left {
        padding: 0 2em 0 3em;
    }

    .miksi-lahijuna-article p {
        line-height: 1.5;
    }

    .miksi-lahijuna-article {
        width: 50%;
    }

    .miten-lahijuna-article {
        width: 90%;
        margin-top: -100px;
    }

    .miten-lahijuna {
        flex-direction: column;
        padding: 2em 2em 4em 2em;
        margin: 5em auto;
    }

    .miten-lahijuna-img {
        display: none;
    }

    .miten-lahijuna-title {
        padding: 0;
    }

    .item {
        width: 150px;
        height: 300px;
    }

    .item.current {
        width: 600px;
        height: 400px;
    }

    .item.prev {
        transform: translate(-310%, -50%);
    }

    .item.next {
        transform: translate(210%, -50%);
    }

    .button-container {
        width: 820px;
    }

    .gallery-container {
        -webkit-filter: grayscale(0%);

        /* Safari 6.0 - 9.0 */
        filter: grayscale(0%);
    }

    .gallery-items {
        -webkit-filter: grayscale(0%);

        /* Safari 6.0 - 9.0 */
        filter: grayscale(0%);
        padding: 1em 0;
    }

    .galleria-title {
        padding: 0 3em;
    }

    .masonry {
        column-count: 3;
        margin: 0 3em;
        column-gap: 2em;
    }

    .all-julkaisut-container {
        margin: 2em auto 5em auto;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .all-julkaisut-single {
        width: 90% !important;
    }

    .julkaisut-header-title-section {
        padding: 5.5em 0;
    }

    .julkaisut-header-title-container {
        width: 70%;
    }

    .julkaisut-down-arrow {
        color: #008d94;
    }

    .single-header-links {
        padding-left: 2em;
    }

    .single-julkaisu-main {
        padding: 2em;
    }

    .latest-posts {
        width: 40%;
    }

    .team-members-container {
        padding: 0.5em 4em;
    }
}

@media screen and (max-width: 995px) {
    .team-members-container {
        padding: 0.5em 0;
    }

    .twitter-section {
        margin: 0 auto;
    }

    .header-text-section {
        top: 18%;
    }

    .footer-main-container {
        flex-direction: column;
        align-items: center;
        padding: 2em 2em 7.5em 2em;
        height: 450px;
    }

    .footer-logo-container {
        flex: auto;
        order: 1;
    }

    .footer-nav {
        display: flex;
        flex: auto;
        order: 2;
        align-items: center;
    }

    .footer-some {
        flex: auto;
        order: 3;
        align-items: center;
    }

    .julkaisut-section {
        padding-top: 0;
    }

    .team-section {
        margin-top: 3em;
    }

    .galleria-title {
        padding: 3em 3em 0 3em;
        margin-top: 0;
    }

    .masonry .mItem:last-child {
        display: none;
    }

    .lahijuna-btn {
        margin-bottom: -45px;
        font-size: 0.9em;
    }

    .item {
        width: 250px;
        height: 250px;
    }

    .item.current {
        width: 500px;
        height: 350px;
    }

    .item.prev {
        transform: translate(-190%, -50%);
    }

    .item.next {
        transform: translate(90%, -50%);
    }

    .button-container {
        width: 550px;
    }

    .katsokaikki-btn,
    .readmore-btn {
        margin-bottom: 0;
    }

    .masonry {
        column-count: 2;
        margin: 0 3em;
    }

    .gallery-main-title {
        width: 60%;
    }

    .single-header-links {
        padding-left: 4em;
    }

    .single-julkaisu-main {
        flex-direction: column;
        padding: 2em 4em;
    }

    .single-container {
        width: 100%;
        padding-right: 0;
        padding-bottom: 6em;
    }

    .latest-posts {
        width: 90%;
        margin: 0 auto;
        padding: 2em;
    }

    .latest-posts-title {
        width: 60%;
        margin-top: -80px;
    }
}

@media screen and (max-width: 768px) {
    .modal-content img,
    .image-caption {
        width: 80%;
    }

    .nextBtn {
        margin: 0 0.5em;
    }

    .prevBtn {
        margin: 0 0.5em;
    }

    .nav {
        padding: 0.7em 0;
    }

    .miksi-lahijuna {
        margin: 2em 0;
        flex-direction: column;
    }

    .miksi-lahijuna-article {
        padding: 0.5em;
        margin: 0;
        width: 90%;
    }

    .miksi-lahijuna-left {
        border-right: none;
        text-align: center;
    }

    .miten-lahijuna {
        margin: 8em 0 4em 0;
        padding: 2em 1em 4em 1em;
    }

    .miten-lahijuna-article {
        width: 95%;
        padding: 5em 1.5em 1em 1.5em;
    }

    .miten-lahijuna-title {
        font-size: 0.8em;
    }

    .button-container .button:before {
        width: 35px;
        height: 35px;
    }

    .button-container .button {
        font-size: 20px;
    }

    .item {
        width: 250px;
        height: 250px;
    }

    .item.current {
        width: 350px;
        height: 350px;
    }

    .item.prev {
        transform: translate(-150%, -50%);
    }

    .item.next {
        transform: translate(50%, -50%);
    }

    .button-container {
        width: 400px;
    }

    .gallery-items {
        padding: 0;
    }

    .gallery-section {
        margin: 4em 0 0 0;
        padding-bottom: 12em;
    }

    .single-gallery-section {
        margin: 0.5em 0 0 0;
        padding-bottom: 5em;
    }

    .julkaisut-header-title-section {
        padding: 5em 0 0 0;
    }

    .all-julkaisut-container {
        margin: 0 auto 5em auto;
    }

    .footer-copyright {
        text-align: center;
        padding-top: 15px;
    }

    .footer-credits {
        flex-direction: column;
        padding: 2.5em 0.5em;
    }

    .footer-contact-single {
        margin-right: 10px;
        margin-left: 10px;
    }

    .footer-main-container {
        padding-bottom: 9em;
    }

    .footer-logo-container img {
        width: 100px;
    }

    .julkaisut-main-container,
    .twitter-section {
        width: 90%;
    }

    .julkaisu {
        flex-direction: column;
    }

    .julkaisu-date {
        width: 100%;
        flex-direction: row;
        padding: 1.5em 0;
    }

    .julkaisu-date p {
        margin: 0 3px;
        font-size: 1.5em;
    }

    .date-number {
        font-size: 1.5em !important;
    }

    .julkaisut-title {
        flex-direction: column;
        justify-content: center;
    }

    .julkaisu-content {
        width: 100%;
        padding: 2em;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }

    .readmore-btn {
        align-self: center;
    }

    .gallery-main-title {
        width: 80%;
    }

    .julkaisut-header-title-container {
        width: 100%;
        padding: 3em 1em 5em 1em;
    }

    .julkaisut-header-title-container h1 {
        font-size: 1.1em;
    }

    .single-gallery-masonry,
    .masonry {
        column-gap: 2em;
        margin: 0 1em;
    }

    .gallery-main-title {
        width: 90%;
    }

    .lahijuna-btn {
        padding: 1em 1.5em;
        border-top-right-radius: 15px;
        border-top-left-radius: 15px;
        border-bottom-left-radius: 15px;
    }

    .katsokaikki-btn {
        padding: 0.8em 1.3em;
        border-top-right-radius: 13px;
        border-top-left-radius: 13px;
        border-bottom-left-radius: 13px;
    }

    .miten-lahijuna {
        margin: 8em 0 2em 0;
    }

    .julkaisut-title h2 {
        margin-bottom: 10px;
        font-size: 2em;
    }

    .readmore-btn {
        margin: 0.5em;
        padding: 0.5em 1em;
        border-top-right-radius: 10px;
        border-top-left-radius: 10px;
        border-bottom-left-radius: 10px;
    }

    .team-section {
        margin-top: 2em;
    }

    .gallery-section {
        margin-top: 0;
        padding-bottom: 2em;
    }

    .masonry {
        column-gap: 1em;
        margin: 0 1em;
    }

    .team-section h3,
    .julkaisut-header-title-section h2 {
        font-size: 2em;
    }

    .single-header-links {
        padding-left: 1em;
    }

    .single-julkaisu-main {
        flex-direction: column;
        padding: 2em 1em;
    }

    .latest-posts {
        width: 100%;
    }

    .latest-posts-title {
        width: 80%;
    }

    .closeModalBtn {
        font-size: 1.8em;
        margin: 0.5em;
    }

    /* .modal-content img,
  .image-caption {
    width: 85%;
  } */
    .modal-content p {
        font-size: 0.8em;
    }

    .julkaisut-section {
        padding-top: 2em;
    }

    .galleria-title {
        padding: 1em;
    }

    .contact-main-content {
        flex-direction: column;
    }

    .contact-title-section,
    .contact-info-container {
        width: 100%;
        padding: 2em 0;
    }

    .contact-section {
        margin: 0;
    }

    .contact-arrow {
        display: none;
    }

    .contact-container h3 {
        font-size: 2em;
    }

    .contact-container h2 {
        font-size: 1em;
    }
}

@media screen and (max-width: 425px) {
    .item {
        width: 250px;
        height: 300px;
    }

    .item.current {
        width: 320px;
        height: 320px;
    }

    .item.prev {
        transform: translate(-110%, -50%);
    }

    .item.next {
        transform: translate(10%, -50%);
    }

    .button-container {
        width: 370px;
    }

    .julkaisu-content,
    .all-j-content {
        padding: 1em !important;
    }

    .team-member {
        flex: 1;
        width: 80%;
        margin: 1em 2em;
    }

    .team-member-pic {
        width: 100%;
    }

    .julkaisut-section {
        padding-top: 1em;
    }

    .mItem p {
        font-size: 0.6em;
    }

    .image-caption {
        padding: 0.2em;
    }

    .contact-container {
        margin-top: 2em;
    }

    .nextBtn {
        margin: 0 0.3em;
    }

    .prevBtn {
        margin: 0 0.3em;
    }

    .nav .menu-links {
        max-width: 80%;
    }

    .phone-number {
        flex-direction: column;
    }

    .front-phone-single {
        padding-left: 0;
        padding-bottom: 10px;
    }
}

@media screen and (max-width: 325px) {
    .footer-contact-single p,
    .footer-contact-single a,
    .footer-copyright p {
        font-size: 0.7em;
    }

    .menu-links-footer li a {
        margin: 0 5px;
    }

    .footer-s-icon {
        margin: 0 20px;
    }

    .button-container {
        width: 280px;
    }

    .miksi-lahijuna-left h3 {
        font-size: 1.5em;
    }

    .galleria-title {
        padding: 0;
    }

    .nav .logo img {
        width: 55px;
    }

    .nav.sticky .logo img {
        width: 40px;
    }

    /* .nav.sticky .navContent {
    padding: 0.3em 1em;
  }

  .navContent {
    padding: 0 1em;
  } */
    .contact-main-content {
        width: 95%;
    }

    .contact-icon {
        margin-right: 1em;
    }

    .all-julkaisut-container {
        margin: 2em auto 5em auto;
    }

    .single-gallery-section {
        margin-top: 1em;
    }

    .nextBtn {
        margin: 0 0.1em;
    }

    .prevBtn {
        margin: 0 0.1em;
    }
}

@media screen and (max-width: 280px) {
    .julkaisut-title h2 {
        font-size: 2em;
        text-align: center;
    }

    .julkaisut-section {
        padding-top: 1em;
    }

    .team-section h3 {
        margin: 0 0.5em;
    }

    .footer-contact-single {
        margin: 0 10px 0 5px;
    }

    .nav .menu-links {
        max-width: 100%;
    }

    .header-text-section h1 {
        font-size: 2.5em;
    }
}
