/*
Theme Name: Haminan Museot
Theme URI: https://markkinointiukkonen.fi/kotisivut-yritykselle/
Author: Markkinointi Ukkonen Oy
Author URI: https://markkinointiukkonen.fi/
Description: Haminan museolle luotu WordPress-teema.
Version: 1.0
Text Domain: haminanmuseot
*/

:root {
	--musta: #1a0a27;
	--valkoinen: #FFFFFF;
	--violetti: #4A2965;
    --pinkki: #F6B6C3;
    --keltainen: #F8DA60;
    --punainen: #E34640;
    --sininen: #7DCAE6;
}

body {
    background: var(--violetti);
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 400;
    overflow-y: scroll;
    color: var(--musta);
}

html, body {
    display: block;
    margin: 0;
    padding: 0;
}

a {
    transition: 0.25s color, 0.25s background;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.rajoittaja {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    /* min-height: 2000px; */
    border: 15px solid var(--violetti);
    box-sizing: border-box;
}

.laatikko {
    display: block;
    background: var(--valkoinen);
    /* border: 4px solid var(--musta); */
    border-radius: 0 0 20px 20px;
}

.valilehdet {
    display: flex;
    align-items: center;
    background: var(--violetti);
}

.valilehdet > div {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
    text-align: center;
    padding: 30px;
    box-sizing: border-box;
    font-size: 40px;
    border: 4px solid var(--valkoinen);
    /* border-bottom: 4px solid var(--violetti); */
    min-height: 115px;
    cursor: pointer;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
    background: var(--violetti);
    color: var(--valkoinen);
    font-weight: 700;
    border-radius: 20px 20px 0 0;
    transition: 0.25s background;
}

.nakyma_kartta {
    display: none;
    padding: 0;
    box-sizing: border-box;
}

.nakyma_lista {
    display: none;
    padding: 20px;
}

.kohde_sisalto img.align-left {
    float: left;
    margin-right: 15px;
    margin-bottom: 5px;
    display: block;
    max-width: calc(100% - 15px);
}

.kohde_avaa {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    cursor: pointer;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
    position: relative;
    padding: 0 100px 0 0;
    transition: 0.25s background;
    border-radius: 10px 10px 0 0;
}

.kohde_sisalto {
    padding: 20px 0 15px 0;
    display: none;
    /* border: 4px solid var(--violetti); */
    /* border-top: 0; */
    /* border-bottom: 0; */
}

.kohde_sisalto > *:first-child {
    margin-top: 0;
}

.kohde_sisalto > *:last-child {
    margin-bottom: 0;
}

.kohde_napit {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    clear: both;
}

.nappula {
    font-size: 20px;
    display: inline-block;
    padding: 25px 40px;
    background: var(--violetti);
    color: var(--valkoinen);
    cursor: pointer;
    font-weight: 700;
    transition: 0.25s background;
	text-decoration: none;
}

.kohde_avaa > img {
    display: block;
    margin-right: 25px;
    width: 200px;
    height: auto;
}

article.lista_kohde {
    display: block;
    margin-bottom: 20px;
    padding-top: 0;
    padding-bottom: 0;
    border: 4px solid var(--violetti);
    border-radius: 10px;
    padding: 15px;
    background: var(--valkoinen);
    transition: 0.25s background;
    scroll-margin-top: 20px;
    order: 1;
}

article.lista_kohde.kategoria_yleinen {
    order: 0;
}

span.valilehti_lista.avoinna {
    border-left: 4px solid var(--valkoinen);
}

span.valilehti_kartta.avoinna {
    border-bottom: 4px solid var(--valkoinen);
    border-right: 4px solid var(--valkoinen);
    color: var(--violetti);
}

article.lista_kohde:last-of-type {
    margin-bottom: 0;
}

.nakyma_kartta.avoinna {
    display: block;
    position: relative;
    width: 1000px;
	max-width:100%;
	/*calc(72vh - 203px)*/
    margin: 0 auto;
}

.nakyma_lista.avoinna {
    display: flex;
    flex-direction: column;
    margin-bottom: 70vh;
}

.valilehdet > div.avoinna {
    background: var(--valkoinen) !important;
    color: var(--violetti);
}

img {
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
}

.avaasulje {
    display: block;
    width: 40px;
    height: 40px;
    position: absolute;
    right: 30px;
    top: calc(50% - 20px);
}

.avaasulje .pystyviiva {
    position: absolute;
    background-color: var(--violetti);
    width: 10px;
    height: 40px;
    right: 15px;
    top: 50%;
    margin-top: -20px;
    border-radius: 5px;
    transition: all 0.5s ease-in-out;
    transform: rotate(-90deg);
}

.avaasulje .vaakaviiva {
    position: absolute;
    background-color: var(--violetti);
    width: 40px;
    height: 10px;
    right: 0;
    margin-left: -15px;
    top: 50%;
    margin-top: -5px;
    border-radius: 5px;
    transition: all 0.5s ease-in-out;
    transform: rotate(-90deg);
    opacity: 1;
}

.lista_kohde.avoinna .avaasulje .pystyviiva {
    transition: all 0.5s ease-in-out;
    transform: rotate(90deg);
}

.lista_kohde.avoinna .avaasulje .vaakaviiva {
    transition: all 0.5s ease-in-out;
    transform: rotate(90deg);
    opacity: 0;
}

.karttanakyma {
    display: block;
    width: 1000px;
    padding-top: 156.556%;
    max-width: 100%;
    background-size: auto 100% !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
}

div.kartta_kohde,
div.kartta_lisakohde {
    position: absolute;
    width: 5%;
    padding-top: 5%;
    background: var(--violetti);
    border-radius: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-weight: 500;
    font-size: 40px;
    cursor: pointer;
    box-sizing: border-box;
    z-index: 2;
    transition: 0.25s opacity;
    opacity: 0.4;
	transform: translate(-50%,-50%);
}

.kartta_kohde span,
.kartta_lisakohde span {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6vh;
    z-index: 2;
}

@media screen and (min-width: 1040px) and (min-height: 1100px) {
    .kartta_kohde span,
    .kartta_lisakohde span {
        font-size: 26px;
    }
}

@keyframes valkytaValoja {
    0%   { opacity:1; }
    50%  { opacity:0; }
    100% { opacity:1; }
}
@-o-keyframes valkytaValoja{
    0%   { opacity:1; }
    50%  { opacity:0; }
    100% { opacity:1; }
}
@-moz-keyframes valkytaValoja{
    0%   { opacity:1; }
    50%  { opacity:0; }
    100% { opacity:1; }
}
@-webkit-keyframes valkytaValoja{
    0%   { opacity:1; }
    50%  { opacity:0; }
    100% { opacity:1; }
}

div.kartta_kohde.focus::before,
div.kartta_lisakohde.focus::before {
    position: absolute;
    content: '';
    left: -3px;
    top: -3px;
    right: -3px;
    bottom: -3px;
    background: #c72424;
    border-radius: 50%;
    z-index: 1;
    -webkit-animation: valkytaValoja 1s infinite;
    -moz-animation: valkytaValoja 1s infinite;
    -o-animation: valkytaValoja 1s infinite;
    animation: valkytaValoja 1s infinite;
}

div.kartta_kohde:hover,
div.kartta_lisakohde:hover {
    opacity: 0.8;
}

.kohde_avaa > h1 {
    font-size: 3vw;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--violetti);
    transition: 0.25s color;
}

.valilehdet > div span {
    display: inline-block;
    width: 32px;
    height: 32px;
    margin-right: 10px;
    background-size: 100% auto !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

.valilehdet > div.valilehti_kartta span {
    background: url('./images/kartta_valkoinen.svg');
}

.valilehdet > div.valilehti_kartta.avoinna span {
    background: url('./images/kartta_violetti.svg');
}

.valilehdet > div.valilehti_lista span {
    background: url('./images/lista_valkoinen.svg');
}

.valilehdet > div.valilehti_lista.avoinna span {
    background: url('./images/lista_violetti.svg');
}

.nappula:hover {
    background: var(--musta);
}

.valilehdet > div:hover {
    background: rgba(255,255,255,0.4);
}

.avoinna > .kohde_avaa {
    background: var(--valkoinen) !important;
}

article.lista_kohde:hover {
    background: #4a29651a;
}

article.lista_kohde.avoinna {
    background: var(--valkoinen) !important;
}

@media screen and (min-width: 1500px) {
    .kohde_avaa > h1 {
        font-size: 45px;
    }
}

.kohde_sisalto img {
    display: block;
    max-width: 100%;
    margin: 25px 0;
    max-height: 1000px;
    box-sizing: border-box;
}

.kohde_sisalto img.align-left+* {
    clear: both;
}

#slb_viewer_wrap .slb_theme_slb_default .slb_controls .slb_slideshow .slb_template_tag,
#slb_viewer_wrap .slb_theme_slb_default .slb_controls .slb_close .slb_template_tag,
#slb_viewer_wrap .slb_theme_slb_default.slideshow_active .slb_controls {
    transition: 0.25s background-color !important;
}

#slb_viewer_wrap .slb_theme_slb_default .slb_controls .slb_slideshow .slb_template_tag {
    background-color: var(--violetti) !important;
    background-image: url('/wp-content/themes/haminanmuseot/images/nappi_play.svg') !important;
    background-size: 60% !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    width: 40px !important;
    height: 40px !important;
}

#slb_viewer_wrap .slb_theme_slb_default .slb_controls .slb_close .slb_template_tag {
    background-color: var(--violetti) !important;
    background-image: url(/wp-content/themes/haminanmuseot/images/nappi_close.svg) !important;
    background-size: 60% !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    width: 40px !important;
    height: 40px !important;
    margin-left: 10px !important;
}

#slb_viewer_wrap .slb_theme_slb_default.slideshow_active .slb_controls .slb_slideshow .slb_template_tag {
    background-color: var(--violetti) !important;
    background-image: url(/wp-content/themes/haminanmuseot/images/nappi_pause.svg) !important;
    background-size: 60% !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    width: 40px !important;
    height: 40px !important;
}

#slb_viewer_wrap .slb_theme_slb_default .slb_controls .slb_slideshow .slb_template_tag:hover,
#slb_viewer_wrap .slb_theme_slb_default .slb_controls .slb_close .slb_template_tag:hover,
#slb_viewer_wrap .slb_theme_slb_default.slideshow_active .slb_controls .slb_slideshow .slb_template_tag:hover {
    background-color: var(--musta) !important;
}

div.wp-caption.aligncenter {
    display: block;
    margin: 25px auto;
}

div.wp-caption img {
    display: block;
    margin: 0;
}

.kohde_sisalto img.aligncenter {
    margin: 25px auto;
}

.kohde_sisalto img.alignleft,
.wp-caption.alignleft {
    float: left;
    margin: 3px 25px 25px 0;
}

.kohde_sisalto img.alignright,
.wp-caption.alignright {
    float: right;
    margin: 3px 0 25px 25px;
}

div.wp-caption .wp-caption-text {
    margin: 0;
    background: var(--violetti);
    padding: 10px;
    color: var(--valkoinen);
}

.mejs-container+p {
    margin-top: 5px;
}

.wp-caption {
    max-width: 100%;
    box-sizing: border-box;
}

.category-4 .karttanakyma {
    padding-top: 49.8%;
    width: 100%;
}

.category-4 .nakyma_kartta.avoinna {
    max-width: 100%;
}

@media screen and (max-width: 700px) {
    body {
        font-size: 16px;
    }
    
    .valilehdet > div {
        font-size: 25px;
        padding: 15px;
        min-height: 80px;
    }
    
    .valilehdet > div span {
        width: 20px;
        height: 20px;
    }
    
    .kohde_avaa > img {
        width: 20%;
        margin-right: 15px;
    }
    
    .nakyma_lista {
        padding: 10px;
    }
    
    article.lista_kohde {
        margin-bottom: 10px;
    }
    
    .kohde_avaa > h1 {
        font-size: 18px;
    }
    
    .nappula {
        font-size: 18px;
        display: block;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        margin-top: 10px;
    }
    
    .kohde_napit {
        display: block;
    }
    
    .nakyma_kartta.avoinna {
        max-width: 100%;
    }
    
    .kohde_avaa {
        padding-right: 50px;
    }
    
    .avaasulje {
        right: 4px;
    }

    div.wp-caption img,
    div.wp-caption.aligncenter,
    .kohde_sisalto img.aligncenter,
    .kohde_sisalto img.alignleft,
    .wp-caption.alignleft,
    .kohde_sisalto img.alignright,
    .wp-caption.alignright {
        float: none;
        display: block;
        width:100% !important;
        max-width:100% !important;
        height: auto;
        margin: 25px 0;
    }

    .kohde_sisalto img {
        width: 100%;
    }

    div.wp-caption img {
        margin: 0;
    }

}

@media screen and (max-width: 400px) {
    .valilehdet > div {
        font-size: 20px;
        padding: 10px;
    }
}

.nakyma_kartta.avoinna {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 147px);
    overflow:hidden;
}

.category-4 .nakyma_kartta.avoinna {
    width: 100%;
}

@media screen and (min-width: 1001px) and (min-height: 1800px) {
    .karttanakyma {
        height: 1644px;
        padding-top: 0;
    }
}

/* UUSI VERSIO 2023-11 */

.julkinen h1,
.julkinen h2,
.julkinen h3,
.julkinen h4,
.julkinen h5,
.julkinen h6 {
    margin: 70px 0 40px 0;
}

.julkinen h1 {
    font-size: 3em;
}

.julkinen h2 {
    font-size: 2em;
}

.julkinen h3 {
    font-size: 1.5em;
}

.julkinen h4 {
    font-size: 1.25em;
}

.julkinen h5 {
    font-size: 1em;
}

.julkinen h6 {
    font-size: 0.8em;
}

.julkinen_lista {
    display: block;
    padding: 75px 50px;
}

a.julkinen_kohde {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: rgb(74 41 101);
    margin: 20px 0;
    background: rgba(0,0,0,0);
    transition: 0.25s background, 0.25s color;
}

a.julkinen_kohde:focus,
a.julkinen_kohde:hover {
    /*background: rgba(74,41,101,0.05);*/
    background: var(--violetti);
    color: var(--keltainen);
}

a.julkinen_kohde > img {
    display: block;
    width: 150px;
    max-width: 20%;
    margin-right: 40px;
    opacity: 1.0;
    transition: 0.25s opacity;
}

a.julkinen_kohde:focus > img,
a.julkinen_kohde:hover > img {
    opacity: 0.8;
}

header.ylavalikko_wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile_nav_toggle {
    display: block;
    width: 29px;
    box-sizing: border-box;
    cursor: pointer;
    padding: 5px 0px;
}

@media screen and (min-width: 1001px) {
    .mobile_nav_toggle {
        display: none !important;
    }
}

.viiva1, .viiva2, .viiva3 {
    width: 29px;
    height: 5px;
    background-color: #FFF;
    margin: 6px 0;
    transition: 0.4s;
}

.avattu .viiva1 {
    -webkit-transform: rotate(-45deg) translate(-9px, 6px);
    transform: rotate(-45deg) translate(-8px, 7px);
}

.avattu .viiva2 {
    opacity: 0;
}

.avattu .viiva3 {
    -webkit-transform: rotate(45deg) translate(-8px, -8px);
    transform: rotate(45deg) translate(-8px, -8px);
}

a.paalogo {
    display: block;
    width: 300px;
    max-width: 50%;
    box-sizing: border-box;
}

a.paalogo > img {
    width: 100%;
    height: auto;
    display: block;
}

header.ylavalikko_wrapper {
    margin-top: 35px;
    margin-bottom: 15px;
}

nav.paavalikko ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

nav.paavalikko a {
    display: block;
    text-decoration: none;
    color: var(--valkoinen);
    margin: 0 0.3em;
    padding: 0.3em;
    transition: 0.25s color;
}

nav.paavalikko a:hover {
    color: var(--keltainen);
}

nav.paavalikko li.current-menu-item a {
    color: var(--pinkki);
}

nav.paavalikko ul.ylavalikko {
    margin-bottom: 0.5em;
    margin-top: 1em;
}

nav.paavalikko li:first-child a {
    margin-left: 0;
}

nav.paavalikko li:last-child a {
    margin-right: 0;
}

nav.paavalikko .alavalikko a {
    font-weight: 700;
    text-transform: uppercase;
}

.rajoittaja.julkinen {
    width: 1130px;
    margin-bottom: 35px;
}

.laatikko.julkinen {
    border-radius: 20px;
}

.tekstisisalto {
    padding: 75px 50px;
}

.arkisto_kuvaus {
    display: block;
    margin-bottom: 100px;
}

p.eikohteita {
    display: block;
    text-align: center;
    background: var(--punainen);
    color: var(--valkoinen);
    font-size: 1.2em;
    padding: 50px 25px;
}

.wpcf7 input, .wpcf7 textarea {
    font-family: inherit;
    border: 1px solid var(--musta);
    font-size: 1em;
    padding: 10px 16px;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.wpcf7-form-control-wrap {
    display: block;
    margin-top: 0.25em;
}

span.wpcf7-not-valid-tip {
    background: var(--punainen);
    color: var(--valkoinen);
    padding: 10px 15px;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
    border: 0;
    background: var(--punainen);
    color: var(--valkoinen);
    padding: 50px 25px;
    text-align: center;
    margin-left: 0;
    margin-right: 0;
}

.tekstisisalto > h1:first-child,
h1.paaotsikko {
    text-align: center;
    border-bottom: 4px solid var(--musta);
    padding-bottom: 15px;
    margin-top: 0;
}

h2.alaotsikko {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    border-bottom: 4px solid var(--musta);
    padding-bottom: 15px;
}


.julkinen_kohde h2 {
    margin: 0;
}

img.aligncenter {
    display: block;
    margin: 25px auto;
}

h1 img.aligncenter,
h2 img.aligncenter,
h3 img.aligncenter,
h4 img.aligncenter,
h5 img.aligncenter,
h6 img.aligncenter {
    margin-top: 0;
    margin-bottom: 10px;
}

footer.alapalkki {
    font-size: 0.9em;
    text-align: center;
    color: var(--valkoinen);
}

footer.alapalkki a {
    color: var(--valkoinen);
}

footer.alapalkki a:hover {
    color: var(--keltainen);
}

.tekstisisalto a {
    text-decoration: none;
    font-weight: 700;
    color: var(--violetti);
}

.leivanmurut a:hover,
.tekstisisalto a:hover {
    color: var(--keltainen);
    background: var(--violetti);
}

.etusivu_nostot {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
}

.etusivu_nostot > a {
    display: block;
    margin: 10px;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background: var(--violetti);
    color: var(--valkoinen);
    box-sizing: border-box;
    transition: 0.25s background, 0.25s color;
    position: relative;
}

.etusivu_nostot > a:hover {
    background: var(--musta);
    color: var(--keltainen);
}

/*
.etusivu_nostot > a::before {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    content: '';
    background: var(--violetti);
    z-index: 1;
    opacity: 0.9;
    transition: 0.25s background;
}

.etusivu_nostot > a:hover::before {
    background: var(--musta);
}
*/

.etusivu_nostot > a span {
    display: block;
    position: relative;
    text-align: center;
    padding: 10px 10px 0 10px;
    color: inherit;
	text-transform: uppercase;
}

.etusivu_nostot > a.pieni {
    width: calc((100% / 3) - 20px);
}

.etusivu_nostot > a.iso {
    width: calc(50% - 20px);
}

.etusivu_nostot img {
    display: block;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.etusivu_nostot > a.pieni img {
    height: 170px;
}

.etusivu_nostot > a.iso img {
    height: 300px;
}

.julkinen div.wp-caption .wp-caption-text {
    background: var(--musta);
}

.tekstisisalto > *:first-child {
    margin-top: 0;
}

img.artikkelikuva {
    display: block;
    margin: 0 auto;
}

.kohde_kuvagalleria {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-left: -5px;
    margin-right: -5px;
}

.kohde_kuvagalleria > a, .kohde_kuvagalleria > img {
    display: block;
    width: calc(20% - 10px);
    margin: 5px;
}

.kohde_kuvagalleria > a img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.siirrypaasisaltoon {
    position: absolute;
    top: -1000px;
    left: 0;
    background: var(--valkoinen);
    text-decoration: none;
    padding: 5px 10px;
    color: var(--violetti);
    border: 2px dotted var(--violetti);
    text-transform: uppercase;
    font-weight: 700;
}

.siirrypaasisaltoon:focus {
    display: block;
    position: absolute;
    top: 10px;
    left: 10px;
}

a:focus {
    outline: 2px solid var(--violetti);
}

nav.paavalikko a:focus {
    outline: 2px solid var(--valkoinen);
}

h3.audio_otsikko {
    margin-top: 40px;
    margin-bottom: 15px;
}

p.audio_kuvaus {
    display: block;
    margin-top: 20px;
}

.single #slb_viewer_wrap .slb_theme_slb_default .slb_details .slb_data {
    background: var(--musta) !important;
}

.leivanmurut {
    display: block;
    text-align: center;
    font-size: 1.1em;
}

.leivanmurut a {
    color: var(--violetti);
    font-weight: 700;
    text-decoration: none;
}

.julkinen_kohde span {
    display: inline-block;
    background: var(--violetti);
    color: var(--valkoinen);
    padding: 2px 8px;
    border-radius: 5px;
    border: 1px solid var(--violetti);
    transition: 0.25s border;
}

.julkinen_kohde:hover span {
    border-color: var(--valkoinen);
}

.yleiset_jakaja {
    display: block;
    margin: 40px 0;
    width: 100%;
    background: var(--violetti);
    height: 2px;
}

.kosketusnayttoversio .audiolitteroinnit {
    display: block;
    padding: 35px 25px;
    background: rgb(74 41 101 / 10%);
}

.kosketusnayttoversio .audiolitteroinnit h2.alaotsikko {
    text-align: left;
    margin-top: 0;
}

.kosketusnayttoversio .audiolitteroinnit > *:last-child {
    margin-bottom: 0;
}

.mejs-container {
    margin-bottom: 20px;
}

@media screen and (min-width: 1001px) {
    nav.paavalikko {
        display: block !important;
    }
}

@media screen and (max-width: 1000px) {
    .julkinen h1 {
        font-size: 2.4em
    }

    .julkinen h2 {
        font-size: 1.7em;
    }
    
    .julkinen h3 {
        font-size: 1.3em;
    }

    nav.paavalikko {
        display: none;
        width: 100%;
    }
    
    nav.paavalikko ul.ylavalikko, nav.paavalikko ul.alavalikko {
        display: block;
    }
    
    header.ylavalikko_wrapper {
        flex-wrap: wrap;
        margin-bottom: 0;
        margin-top: 0;
    }
    
    nav.paavalikko a {
        margin: 0.5em 0;
        text-align: right;
        font-weight: bold;
        text-transform: uppercase;
        font-size: 1.2em;
    }
    
    .rajoittaja.julkinen {
        margin-bottom: 0;
    }
    
    .julkinen_lista,
    .tekstisisalto {
        padding: 40px 20px;
    }
    
    .etusivu_nostot > a, .etusivu_nostot > a.pieni, .etusivu_nostot > a.iso {
        width: 100%;
        padding: 50px 20px;
        font-size: 1.2em;
    }

    a.julkinen_kohde > img {
        width: 30%;
        margin-right: 20px;
    }

    .julkinen_kohde h2 {
        font-size: 1.4em;
    }

    .arkisto_kuvaus {
        margin-bottom: 50px;
    }

    .kohde_kuvagalleria > a, .kohde_kuvagalleria > img {
        display: block;
        width: calc(50% - 10px);
    }

    .yleiset_jakaja {
        margin: 10px 0;
    }
    
}