/*
Theme Name: Astra Child – The Holy Calling
Template: astra
Description: The Holy Calling -sivuston lapsiteema (violetti väripaletti, modernit tehosteet, mobiili edellä).
Version: 1.0.0
Text Domain: astra-child
*/

@import url('https://fonts.googleapis.com/css2?family=Lobster&display=swap');

:root {
  --c1: #34117E;
  --c2: #491AB1;
  --c3: #6631DB;
  --c4: #7B45F0;
  --c5: #A981FF;
  --c6: #B796FE;
  --c7: #D0BCFC;
  --ink: #160836;
  --text: #f3edff;
  --muted: #d0bcfc;
  --glass: rgba(208, 188, 252, .08);
  --glass-line: rgba(208, 188, 252, .22);
  --radius: 28px;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.75;
  color: var(--text); background: var(--ink); overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c7); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; color: #fff; letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 7.5vw, 5.6rem); }
h2 { font-size: clamp(2rem, 5vw, 3.6rem); }
h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
p { margin: 0 0 1.2em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.eyebrow { display: inline-block; font-size: .78rem; letter-spacing: .28em; text-transform: uppercase; color: var(--c5); margin-bottom: 1.1rem; font-weight: 600; }
.grad-text { background: linear-gradient(100deg, #fff 0%, var(--c7) 40%, var(--c5) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--c4); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 8px; }

/* Etenemispalkki */
.progress { position: fixed; inset: 0 auto auto 0; height: 3px; width: 100%; z-index: 120; background: linear-gradient(90deg, var(--c4), var(--c6)); transform-origin: 0 50%; transform: scaleX(0); }

/* Kielenvaihtaja */
.head-right { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lang a { min-width: 40px; padding: 7px 12px; border-radius: 999px; text-align: center; font: 600 .78rem var(--sans); letter-spacing: .12em; color: var(--c7); transition: background .3s, color .3s; }
.lang a:hover { color: #fff; }
.lang a.on { background: linear-gradient(120deg, var(--c4), var(--c3)); color: #fff; box-shadow: 0 6px 18px -6px rgba(123, 69, 240, .9); }
@media (max-width: 959px) { .head-right .lang { order: -1; } }

/* Header */
.site-head { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background .4s, backdrop-filter .4s, box-shadow .4s, padding .4s; padding: 18px 0; }
.site-head.scrolled { background: rgba(22, 8, 54, .72); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 1px 0 var(--glass-line); padding: 10px 0; }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: #fff; letter-spacing: .01em; }
.brand svg { width: 28px; height: 36px; filter: drop-shadow(0 0 12px rgba(169, 129, 255, .8)); }
.nav { display: none; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 14px; border-radius: 999px; font-size: .95rem; color: var(--c7); transition: background .3s, color .3s; }
.nav a:hover, .nav .current a { background: var(--glass); color: #fff; box-shadow: inset 0 0 0 1px var(--glass-line); }
.burger { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--glass-line); background: var(--glass); display: grid; place-content: center; gap: 6px; cursor: pointer; z-index: 130; }
.burger span { display: block; width: 20px; height: 2px; background: #fff; transition: transform .35s var(--ease), opacity .2s; }
.menu-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 110; background: radial-gradient(circle at 80% 10%, var(--c3), var(--c1) 55%, var(--ink)); display: flex; flex-direction: column; justify-content: center; padding: 90px 32px 40px; clip-path: circle(0 at calc(100% - 44px) 44px); transition: clip-path .7s var(--ease); visibility: hidden; }
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 44px) 44px); visibility: visible; }
.mobile-menu a { display: block; font-family: var(--serif); font-size: clamp(2rem, 9vw, 3rem); color: #fff; padding: 6px 0; opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .5s var(--ease), color .3s; }
.menu-open .mobile-menu a { opacity: 1; transform: none; }
.menu-open .mobile-menu li:nth-child(2) a { transition-delay: .08s; } .menu-open .mobile-menu li:nth-child(3) a { transition-delay: .14s; }
.menu-open .mobile-menu li:nth-child(4) a { transition-delay: .2s; } .menu-open .mobile-menu li:nth-child(5) a { transition-delay: .26s; } .menu-open .mobile-menu li:nth-child(6) a { transition-delay: .32s; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu .current a { color: var(--c5); }
@media (min-width: 960px) { .nav { display: flex; } .burger, .mobile-menu { display: none; } }

/* Napit */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px; border-radius: 999px; border: 0; cursor: pointer; font: 600 .98rem var(--sans); color: #fff; background: linear-gradient(120deg, var(--c4), var(--c3) 55%, var(--c5)); background-size: 200% 100%; box-shadow: 0 10px 34px -8px rgba(123, 69, 240, .8); transition: background-position .5s, box-shadow .3s, transform .25s var(--ease); overflow: hidden; }
.btn:hover { background-position: 100% 0; color: #fff; box-shadow: 0 16px 44px -8px rgba(169, 129, 255, .9); }
.btn.ghost { background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn .rip { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .45); transform: scale(0); animation: rip .7s ease-out forwards; pointer-events: none; }
@keyframes rip { to { transform: scale(4); opacity: 0; } }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate; padding: 130px 0 90px; }
.hero.small { min-height: 62vh; min-height: 62svh; padding: 150px 0 70px; }
.hero-bg { position: absolute; inset: -10% 0; z-index: -3; background-size: cover; background-position: center; will-change: transform; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(22, 8, 54, .15) 0%, transparent 50%, rgba(22, 8, 54, .25) 100%); opacity: .25; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; z-index: -1; animation: float 16s ease-in-out infinite alternate; pointer-events: none; }
.blob.a { width: 380px; height: 380px; background: var(--c4); top: 8%; right: -80px; }
.blob.b { width: 300px; height: 300px; background: var(--c5); bottom: 5%; left: -60px; animation-delay: -6s; opacity: .35; }
@keyframes float { to { transform: translate(-40px, 50px) scale(1.2); } }
.hero h1 { max-width: 19ch; font-size: clamp(2.1rem, 6.4vw, 4.6rem); }
.hero .lead + .lead { margin-top: -.4em; }
.hero.small h1 { max-width: 20ch; font-size: clamp(2.4rem, 7vw, 4.8rem); }
.hero .lead { max-width: 56ch; font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--c7); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; }
.words .w > span { display: inline-block; transform: translateY(110%); animation: up .9s var(--ease) forwards; }
@keyframes up { to { transform: none; } }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; width: 26px; height: 44px; border: 2px solid var(--glass-line); border-radius: 20px; transform: translateX(-50%); }
.scroll-hint::after { content: ''; position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--c6); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(16px); } }

/* Kuvakaistat (risti, soihtu) */
.photo-band { position: relative; isolation: isolate; overflow: hidden; padding: clamp(90px, 14vw, 190px) 0; }
.photo-band .bg { position: absolute; inset: -12% 0; z-index: -2; background-size: cover; background-position: center; will-change: transform; }
.photo-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--ink) 0%, rgba(52, 17, 126, .62) 22%, rgba(52, 17, 126, .7) 78%, var(--ink) 100%); }
.photo-band .quote { background: rgba(22, 8, 54, .55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

/* Osiot */
section.block { position: relative; padding: clamp(70px, 11vw, 140px) 0; }
section.block.tint { background: linear-gradient(180deg, var(--ink), var(--c1) 50%, var(--ink)); }
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr .95fr; gap: 80px; } .split.flip .media { order: -1; } }
.media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px var(--glass-line); }
.media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.6s var(--ease); }
.media.in img { transform: scale(1); }
.media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(123, 69, 240, .35), transparent 55%, rgba(52, 17, 126, .55)); mix-blend-mode: multiply; }
.card { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: box-shadow .4s, border-color .4s; transform-style: preserve-3d; will-change: transform; }
.card:hover { border-color: rgba(183, 150, 254, .6); box-shadow: 0 30px 70px -30px rgba(123, 69, 240, .9); }
.cards { display: grid; gap: 20px; margin-top: 44px; }
@media (min-width: 800px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card .num { font-family: var(--serif); font-size: 3.4rem; line-height: 1; color: var(--c5); display: block; margin-bottom: 12px; }
.quote { position: relative; margin: 0; padding: clamp(28px, 5vw, 56px); border-radius: var(--radius); background: linear-gradient(135deg, rgba(123, 69, 240, .28), rgba(52, 17, 126, .5)); border: 1px solid var(--glass-line); overflow: hidden; }
.quote::before { content: '“'; position: absolute; top: -30px; left: 16px; font-family: var(--serif); font-size: 12rem; line-height: 1; color: var(--c4); opacity: .35; }
.quote p { position: relative; font-family: var(--serif); font-size: clamp(1.25rem, 3vw, 1.85rem); line-height: 1.45; color: #fff; font-style: italic; }
.quote cite { position: relative; display: block; font: 600 .8rem var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--c5); font-style: normal; }
.verse { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2.6vw, 1.6rem); line-height: 1.6; color: #fff; }
.verse span { display: block; }
.verse .ind { padding-left: 1.4em; }
.center { text-align: center; } .center .lead { margin-inline: auto; }
.statement { font-family: var(--serif); font-size: clamp(1.9rem, 5.2vw, 3.6rem); line-height: 1.2; max-width: 24ch; margin-inline: auto; text-align: center; }
.list-lines { list-style: none; margin: 0; padding: 0; }
.list-lines li { position: relative; padding: 20px 0 20px 48px; border-bottom: 1px solid var(--glass-line); }
.list-lines li::before { content: ''; position: absolute; left: 0; top: 30px; width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle, var(--c5) 0 30%, transparent 32%), conic-gradient(var(--c4), var(--c6), var(--c4)); opacity: .9; }
.soon { padding: clamp(40px, 8vw, 90px) 24px; text-align: center; border-radius: var(--radius); background: var(--glass); border: 1px dashed var(--glass-line); }
.soon .big { font-family: var(--serif); font-size: clamp(2rem, 6vw, 3.8rem); color: #fff; display: block; }

/* Lomake */
.form { display: grid; gap: 18px; }
.field { position: relative; }
.field input, .field textarea { width: 100%; padding: 24px 18px 10px; font: 1rem var(--sans); color: #fff; background: rgba(22, 8, 54, .55); border: 1px solid var(--glass-line); border-radius: 16px; outline: none; transition: border-color .3s, box-shadow .3s; }
.field textarea { min-height: 150px; resize: vertical; }
.field label { position: absolute; left: 18px; top: 16px; color: var(--muted); font-size: 1rem; pointer-events: none; transition: all .25s var(--ease); }
.field input:focus, .field textarea:focus { border-color: var(--c5); box-shadow: 0 0 0 4px rgba(169, 129, 255, .22); }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 6px; font-size: .74rem; color: var(--c5); letter-spacing: .06em; }
.field.err input, .field.err textarea { border-color: #ff9fb8; }
.field .msg { display: none; margin: 6px 6px 0; font-size: .85rem; color: #ffb7cb; }
.field.err .msg { display: block; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--muted); cursor: pointer; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--c4); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn .spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: rot .7s linear infinite; }
.loading .btn .spin { display: block; }
@keyframes rot { to { transform: rotate(360deg); } }
.thanks { display: none; text-align: center; padding: 30px 10px; }
.thanks.show { display: block; animation: pop .6s var(--ease); }
.thanks .tick { width: 74px; height: 74px; margin: 0 auto 16px; }
.thanks .tick circle { fill: none; stroke: var(--c5); stroke-width: 4; stroke-dasharray: 190; stroke-dashoffset: 190; animation: draw .9s .1s forwards; }
.thanks .tick path { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 50; stroke-dashoffset: 50; animation: draw .5s .8s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.96); } }
.formerr { display: none; padding: 14px 18px; border-radius: 14px; background: rgba(255, 120, 150, .15); border: 1px solid #ff9fb8; color: #ffd3de; }
.formerr.show { display: block; }

/* Footer */
.site-foot { position: relative; margin-top: 0; padding: 80px 0 34px; background: linear-gradient(180deg, var(--ink), var(--c1)); border-top: 1px solid var(--glass-line); }
.foot-grid { display: grid; gap: 40px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1.4fr; } }
.site-foot h4 { margin: 0 0 14px; font: 600 .78rem var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--c5); }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 8px; }
.news { display: flex; gap: 8px; flex-wrap: wrap; }
.news .field { flex: 1 1 200px; }
.news .field input { padding: 14px 18px; }
.news .btn { padding: 13px 24px; }
.copy { margin-top: 50px; padding-top: 22px; border-top: 1px solid var(--glass-line); font-size: .85rem; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Paljastus */
.rv { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

/* Kursori (vain hiirellä) */
.cur { position: fixed; top: 0; left: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1.5px solid var(--c5); border-radius: 50%; z-index: 300; pointer-events: none; transition: width .25s, height .25s, margin .25s, background .25s, opacity .3s; opacity: 0; mix-blend-mode: screen; }
.cur.on { opacity: 1; }
.cur.big { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(169, 129, 255, .22); }
@media (hover: none), (pointer: coarse) { .cur { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; } .words .w > span { transform: none; }
}

/* ===== Blokkieditorin blokit (sivut ovat muokattavaa sisältöä) ===== */
.wp-block-cover.hero, .wp-block-cover.photo-band { color: var(--text); min-height: 0; padding-left: 0; padding-right: 0; display: block; }
.wp-block-cover.hero { min-height: 100svh; padding: 130px 0 90px; display: grid; align-items: center; }
.wp-block-cover.hero.small { min-height: 62svh; padding: 150px 0 70px; }
.hero .wp-block-cover__inner-container, .photo-band .wp-block-cover__inner-container { width: min(1160px, 100% - 32px); margin-inline: auto; padding: 0; max-width: none; color: inherit; }
.hero .wp-block-cover__image-background { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; z-index: -3; will-change: transform; }
.photo-band .wp-block-cover__image-background { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; z-index: -2; will-change: transform; }
.wp-block-cover.hero .wp-block-cover__background, .wp-block-cover.photo-band .wp-block-cover__background { display: none; }
.hero h1 { margin-top: 0; }
.hero:not(.small)::after { content: ''; position: absolute; bottom: 26px; left: 50%; width: 26px; height: 44px; border: 2px solid var(--glass-line); border-radius: 20px; transform: translateX(-50%); background: radial-gradient(circle at 50% 24%, var(--c6) 0 3px, transparent 4px); }
.eyebrow { margin-top: 0; }
.wp-block-buttons.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.wp-block-button__link, .wp-block-button .wp-block-button__link { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px; border-radius: 999px; border: 0; font: 600 .98rem var(--sans); color: #fff; background: linear-gradient(120deg, var(--c4), var(--c3) 55%, var(--c5)); background-size: 200% 100%; box-shadow: 0 10px 34px -8px rgba(123, 69, 240, .8); transition: background-position .5s, box-shadow .3s, transform .25s var(--ease); overflow: hidden; text-decoration: none; }
.wp-block-button__link:hover { background-position: 100% 0; color: #fff; box-shadow: 0 16px 44px -8px rgba(169, 129, 255, .9); }
.wp-block-button.is-style-ghost .wp-block-button__link { background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.wp-block-image.media { margin: 0; }
.wp-block-image.media img { width: 100%; height: 100%; object-fit: cover; }
.wp-block-group.card, .wp-block-group.cards { margin: 0; }
.wp-block-group.card > :last-child, .wp-block-group.split > div > :last-child { margin-bottom: 0; }
.wp-block-quote.quote { border: 0; margin: 0 0 60px; }
.wp-block-quote.quote cite { margin-top: 1.4rem; }
.wp-block-verse.verse { background: none; border: 0; padding: 0; margin: 0; white-space: pre-wrap; font-family: var(--serif); color: #fff; overflow: visible; }
.photo-band .quote { margin: 0; }
.photo-band .quote cite, .photo-band .cite-line { display: block; margin-top: 1.4rem; font: 600 .8rem var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--c5); font-style: normal; }
ul.list-lines { padding: 0; }
.wp-block-list.list-lines li { margin: 0; }
.wp-block-group.soon p { margin: 0; }
.wp-block-heading { overflow-wrap: anywhere; }
main#main > .wp-block-cover:first-child { margin-top: 0; }
main#main { display: block; }

.cards.one { grid-template-columns: 1fr; margin-top: 0; }
.lead-text { font-size: 1.2rem; }
.lead-text.white { color: #fff; }
.lead-text.big { font-size: 1.3rem; }
.split .statement { text-align: left; margin: 0 0 1em; font-size: clamp(1.7rem, 4vw, 2.7rem); max-width: none; }

/* Kaikki Lainaus- ja Runo-blokkit saavat saman ulkoasun kuin sivujen Raamatunpaikat (myös uudet, joita ei ole luokiteltu) */
.wp-block-quote:not(.quote), .wp-block-verse:not(.verse) { position: relative; margin: 0 0 1.5em; padding: clamp(28px, 5vw, 56px); border: 1px solid var(--glass-line); border-radius: var(--radius); background: linear-gradient(135deg, rgba(123, 69, 240, .28), rgba(52, 17, 126, .5)); overflow: hidden; color: #fff; }
.wp-block-quote:not(.quote)::before, .wp-block-verse:not(.verse)::before { content: '“'; position: absolute; top: -30px; left: 16px; font-family: var(--serif); font-size: 12rem; line-height: 1; color: var(--c4); opacity: .35; pointer-events: none; }
.wp-block-quote:not(.quote) p { position: relative; font-family: var(--serif); font-size: clamp(1.25rem, 3vw, 1.85rem); line-height: 1.45; color: #fff; font-style: italic; margin-bottom: .6em; }
.wp-block-quote:not(.quote) cite { position: relative; display: block; margin-top: 1.2rem; font: 600 .8rem var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--c5); font-style: normal; }
.wp-block-verse:not(.verse) { position: relative; white-space: pre-wrap; font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2.6vw, 1.6rem); line-height: 1.6; }
.wp-block-verse:not(.verse) a, .wp-block-quote:not(.quote) a { color: var(--c7); }
.wp-block-quote:not(.quote) { text-align: left; }

/* Itse lisätyt blokit (esim. kuva, galleria, teksti) sivun ylätasolla: sama leveys ja tyyli kuin valmiissa osioissa */
main#main > *:not(.wp-block-cover):not(section.block):not(.photo-band) { width: min(1160px, 100% - 32px); margin-left: auto; margin-right: auto; }
main#main > *:first-child:not(.wp-block-cover):not(section.block) { margin-top: 150px; }
main#main > *:last-child:not(.wp-block-cover) { margin-bottom: 80px; }
main#main > .alignfull { width: 100%; }
.wp-block-image:not(.media) img, .wp-block-gallery img { border-radius: var(--radius); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7), 0 0 0 1px var(--glass-line); }
.wp-block-image:not(.media) { margin-bottom: 1.5em; }
.wp-block-image:not(.media) img { width: 100%; height: auto; }
.wp-block-image.is-resized img, .wp-block-image.alignleft img, .wp-block-image.alignright img { width: auto; }
.wp-block-image figcaption, .wp-block-gallery figcaption { margin-top: .7em; text-align: center; font-size: .9rem; color: var(--muted); }
.wp-block-gallery { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 1.5em; }
.wp-block-gallery.has-nested-images figure.wp-block-image { margin: 0; flex: 1 1 calc(33.333% - 16px); min-width: 220px; }
.wp-block-gallery.has-nested-images figure.wp-block-image img { height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.wp-block-gallery .wp-block-image figcaption { position: static; background: none; color: var(--muted); padding: 0; margin-top: .5em; }
.wp-block-video video, .wp-block-embed iframe { max-width: 100%; border-radius: var(--radius); }

/* Blockquote and citation font */
blockquote,
blockquote p,
blockquote cite,
blockquote footer,
cite,
figcaption.wp-block-quote__citation,
.quote-author,
.quote cite,
.cite-line,
.wp-block-quote p,
.wp-block-quote cite,
.wp-block-quote:not(.quote) p,
.wp-block-quote:not(.quote) cite {
  font-family: 'Lobster', cursive !important;
}


/* Subpage hero heading badge */
.hero.small .wp-block-cover__inner-container {
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.hero.small h1,
.hero.small h2,
.hero.small .wp-block-heading {
  display: inline-block !important;
  width: fit-content !important;
  max-width: 90% !important;
  margin-inline: auto !important;
  box-sizing: border-box !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  padding: 0.6rem 2.2rem;
}
