/* ==========================================================
Tatiana Kosterina – main stylesheet
File: /site/templates/styles/main.css

Cleaned structure:
01. Base / tokens
02. Header / navigation
03. Homepage
04. Footer
05. Shared layouts / sidebars
06. Blog / news / archive
07. Gallery / lightbox
08. Special pages
09. Responsive
10. Utilities
==========================================================*/

/* ==========================================================
01. Design tokens / Reset / Base
==========================================================*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --color-text: #6f777b;
    --color-heading: #2f3438;
    --color-muted: #9fa9ae;
    --color-light: #eef4f6;
    --color-footer: #f4f6f7;
    --color-line: #d9e0e3;
    --color-blue: #039be5;
    --color-blue-light: #19aee7;
    --header-height: 56px;
    --content-max: 1320px;
    --content-wide: 1440px;
    --sidebar-width: 280px;
    --footer-max: 1100px;
    --space-page-top: 150px;
    --space-page-bottom: 90px;
    --gap-sidebar: 70px;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--color-text);
    background: #fff;
    font-size: 16px;
    line-height: 1.7;
    font-weight: 400;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--color-blue);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
textarea,
select {
    font: inherit;
}

main {
    padding-top: var(--header-height);
}

/* ==========================================================
02. Header / Navigation / Languages
==========================================================*/

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    height: var(--header-height);
    background: #fff;
    border-bottom: 1px solid #eee;
}

.topbar {
    max-width: 1280px;
    height: var(--header-height);
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    justify-content: center;
    position: relative;
}

.languages {
    position: absolute;
    left: 0;
    top: 50%;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 17px;
    line-height: 1;
    transform: translateY(-50%);
}

.languages a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: .65;
    filter: saturate(1.15) contrast(1.1);
    transition: opacity .2s ease, transform .2s ease;
}

.languages a:hover,
.languages a.active {
    opacity: 1;
    transform: translateY(-1px);
}

.languages img {
    width: 22px;
    height: 15px;
    display: block;
    object-fit: cover;
    border-radius: 1px;
    box-shadow: 0 0 0 1px rgba(0,0,0,.12);
}

.logo {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 30px;
    color: #333;
    font-size: 20px;
    line-height: var(--header-height);
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    white-space: nowrap;
}

.main-nav {
    min-height: var(--header-height);
    display: flex;
    align-items: stretch;
}

.main-nav a {
    min-width: 105px;
    min-height: var(--header-height);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #f0f0f0;
    color: #777;
    font-size: 15px;
    line-height: 1.15;
    font-weight: 400;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background-color .2s ease, color .2s ease;
}

.main-nav a:last-child {
    border-right: 1px solid #f0f0f0;
}

.main-nav a:hover,
.main-nav a.active {
    background: #f5f5f5;
    color: #111;
}

/* ==========================================================
03. Home: Hero slider
==========================================================*/

.hero-slider {
    position: relative;
    height: clamp(520px, 54vw, 820px);
    overflow: hidden;
    background: none;
}

.hero-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.hero-slide.active {
    display: block;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
}

.slider-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    height: 12px;
    text-align: center;
    z-index: 2;
}

.slider-dots button {
    width: 8px;
    height: 8px;
    margin: 0 3px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #d9d9d9;
    cursor: pointer;
}

.slider-dots button.active {
    background: var(--color-blue-light);
}

/* ==========================================================
04. Home: Quote
==========================================================*/

.quote-section {
    min-height: 390px;
    padding: 88px 24px 78px;
    background: var(--color-light);
    color: var(--color-text);
    text-align: center;
}

.quote-subtitle {
    margin: 0 0 50px;
    color: #bcc7cc;
    font-size: 20px;
    font-weight: 500;
}

.quote-section blockquote {
    max-width: 1320px;
    margin: 0 auto;
    color: #687176;
    font-size: clamp(18px, 1.25vw, 21px);
    line-height: 1.9;
    font-weight: 400;
}

.quote-section blockquote::before {
    content: "“";
    display: inline-block;
    margin-right: 16px;
    color: #535b60;
    font-size: 52px;
    font-weight: 700;
    line-height: 0;
    vertical-align: -14px;
}

.quote-section blockquote p {
    display: inline;
    margin: 0;
}

.quote-author {
    margin: 32px 0 0;
    color: #a4adb2;
    font-size: 14px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.blue-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-top: 25px;
    border-radius: 50%;
    background: #12aeea;
}

/* ==========================================================
05. Home: News + Blog teaser
==========================================================*/

.news-section {
    max-width: 920px;
    margin: 96px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 95px;
}

.news-column h2 {
    display: inline-block;
    margin: 0 0 24px;
    padding: 9px 16px 8px;
    background: var(--color-blue-light);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
}

.small-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 18px;
    min-height: 82px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eee;
}

.small-item:last-child {
    border-bottom: 0;
}

.small-item img {
    width: 96px;
    height: 72px;
    object-fit: cover;
}

.small-item h3 {
    margin: 0 0 6px;
    color: #333;
    font-size: 15px;
    line-height: 1.32;
    font-weight: 700;
}

.small-item p {
    margin: 0;
    color: #929ca1;
    font-size: 13px;
    line-height: 1.45;
}

.small-item small {
    display: block;
    margin-top: 5px;
    color: #b3bcc1;
    font-size: 11px;
}

/* ==========================================================
06. Home: About / Teasers
==========================================================*/

.about-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 600px;
    background: var(--color-light);
    margin-bottom: 50px;
}

.about-image {
    min-height: 600px;
    background: #ddd;
}

.about-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    object-position: center center;
}

.about-content {
    padding: 96px 70px 76px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-content h2 {
    width: 100%;
    max-width: 980px;
    margin: 0 0 52px;
    color: #3f4548;
    font-size: clamp(34px, 2.35vw, 42px);
    line-height: 1.1;
    font-weight: 700;
}

.teaser-grid {
    width: 100%;
    max-width: 980px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 56px;
}

.teaser-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    margin-bottom: 22px;
}

.teaser-card h3 {
    margin: 0 0 12px;
    color: #3f4548;
    font-size: 16px;
    line-height: 1.28;
    font-weight: 700;
}

.teaser-card p {
    margin: 0;
    color: #7f8a90;
    font-size: 14px;
    line-height: 1.55;
}

/* ==========================================================
07. Home: Stable / Heimatstall
==========================================================*/

.stable-section {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    color: #fff;
}

.stable-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
}

.stable-overlay {
    position: absolute;
    inset: 0;
    background: rgba(18, 28, 34, .36);
    z-index: 1;
}

.stable-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 70px 24px;
}

.stable-content h2 {
    margin: 0 0 22px;
    color: #fff;
    font-size: clamp(38px, 3vw, 56px);
    line-height: 1.1;
    font-weight: 300;
    text-shadow: 0 2px 14px rgba(0,0,0,.35);
}

.stable-content p {
    margin: 0 auto 34px;
    max-width: 680px;
    color: rgba(255,255,255,.92);
    font-size: 18px;
    line-height: 1.75;
    text-shadow: 0 1px 10px rgba(0,0,0,.45);
}

.stable-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 28px;
    border: 2px solid rgba(255,255,255,.8);
    color: #fff;
    font-size: 15px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .4px;
    background: rgba(255,255,255,.08);
    transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}

.stable-button::before {
    content: "›";
    margin-right: 9px;
    font-size: 20px;
    line-height: 1;
}

.stable-button:hover {
    background: var(--color-blue);
    border-color: var(--color-blue);
    color: #fff;
}

/* ==========================================================
08. Home: Video
==========================================================*/

.video-section {
    padding: 98px 24px 108px;
    background: var(--color-light);
    text-align: center;
    margin-top: 50px;
}

.video-section h2 {
    margin: 0 0 18px;
    color: #333;
    font-size: clamp(34px, 2.5vw, 44px);
    line-height: 1.15;
    font-weight: 700;
}

.video-section > p {
    margin: 0 0 60px;
    color: #a8b2b7;
    font-size: 18px;
}

.video-grid {
    max-width: 920px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 42px;
}

.video-card {
    position: relative;
}

.video-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: transparent;
    color: #fff;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease, opacity .35s ease;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 28, 34, .34);
    z-index: 1;
    transition: background .35s ease;
}

.video-title {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 50%;
    z-index: 3;
    transform: translateY(-50%);
    color: #fff;
    font-size: clamp(21px, 1.6vw, 26px);
    line-height: 1.15;
    font-weight: 300;
    text-align: center;
    text-shadow: 0 1px 8px rgba(0,0,0,.45);
    pointer-events: none;
}

.video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.9);
    background: rgba(0,0,0,.18);
    opacity: 0;
    transition: opacity .25s ease, background .25s ease, transform .25s ease;
    pointer-events: none;
}

.video-play::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 13px;
    width: 0;
    height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 14px solid #fff;
}

.video-thumb:hover img,
.video-thumb:focus img {
    transform: scale(1.08);
    opacity: .78;
}

.video-thumb:hover .video-overlay,
.video-thumb:focus .video-overlay {
    background: rgba(20, 28, 34, .58);
}

.video-thumb:hover .video-play,
.video-thumb:focus .video-play {
    opacity: 1;
    background: rgba(0,0,0,.34);
    transform: translate(-50%, -50%) scale(1.05);
}

/* ==========================================================
09. Home: Map / Contact
==========================================================*/

.map-section {
    position: relative;
    height: clamp(420px, 38vw, 570px);
    overflow: hidden;
    background: #e9f1f2;
}

.map-image-link,
.map-placeholder {
    display: block;
    width: 100%;
    height: 100%;
}

.map-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-placeholder {
    background: #e9f1f2;
}

.contact-box {
    position: absolute;
    top: 105px;
    left: 85px;
    width: 340px;
    min-height: 280px;
    padding: 28px 30px;
    background: var(--color-blue);
    color: #fff;
    font-size: 15px;
    line-height: 1.65;
    z-index: 2;
}

.contact-box strong {
    display: block;
    margin: 0 0 14px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.contact-box p {
    margin: 0 0 15px;
}

.contact-box a {
    color: #fff;
}

/* ==========================================================
10. Footer
==========================================================*/

.site-footer {
    padding: 100px 24px 82px;
    background: var(--color-footer);
    color: var(--color-muted);
}

.footer-inner {
    max-width: var(--footer-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 130px;
    padding-bottom: 58px;
    border-bottom: 1px solid var(--color-line);
}

.site-footer h3 {
    margin: 0 0 24px;
    color: #a5afb4;
    font-size: clamp(34px, 2.2vw, 42px);
    line-height: 1.08;
    font-weight: 400;
}

.site-footer p {
    margin: 0 0 12px;
    font-size: 14px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 90px;
}

.footer-columns ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-columns li {
    margin: 0 0 18px;
    color: var(--color-muted);
    font-size: 14px;
}

.footer-columns a,
.social-link {
    color: var(--color-muted);
    transition: color .2s ease;
}

.footer-columns a::before {
    content: "›";
    display: inline-block;
    margin-right: 8px;
    color: inherit;
    font-size: 18px;
    line-height: 1;
    transform: translateY(1px);
}

.footer-columns a:hover,
.social-link:hover {
    color: var(--color-blue);
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 14px;
    line-height: 1;
}

.facebook-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #3b5998;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    transition: background-color .2s ease;
}

.social-link:hover .facebook-icon {
    background: var(--color-blue);
}

/* ==========================================================
11. Shared page layouts / sidebars
==========================================================*/

.page-hero {
    padding: 80px 20px;
    background: var(--color-light);
    text-align: center;
}

.page-hero h1 {
    margin: 0;
    color: #333;
    font-size: clamp(34px, 2.3vw, 42px);
    font-weight: 700;
}

.content-section,
.listing-section {
    max-width: 960px;
    margin: 60px auto;
    padding: 0 24px;
}

.content-inner {
    max-width: 760px;
    margin: 0 auto;
}

.subpage-layout,
.blog-layout,
.news-page-layout,
.archive-layout,
.gallery-layout {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: var(--space-page-top) 24px var(--space-page-bottom);
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
    gap: var(--gap-sidebar);
    background: #fff;
}

.subpage-main,
.blog-main,
.news-page-main,
.archive-main,
.gallery-main {
    min-width: 0;
}

.subpage-main {
    max-width: 880px;
}

.subpage-main.full-width {
    max-width: none;
    grid-column: 1 / -1;
}

.page-title,
.archive-title,
.gallery-title,
.news-page-title {
    margin: 0 0 58px;
    color: var(--color-heading);
    font-size: 56px;
    line-height: 1.1;
    font-weight: 400;
}

.blog-article h1,
.blog-preview h1,
.blog-preview h2 {
    margin: 0 0 28px;
    color: var(--color-heading);
    font-size: clamp(28px, 2.2vw, 38px);
    line-height: 1.25;
    font-weight: 700;
}

.article-body,
.blog-summary {
    color: #6d7478;
    font-size: 18px;
    line-height: 1.75;
}

.blog-meta {
    margin: 26px 0 34px;
    color: #a4afb4;
    font-size: 15px;
}

.blog-meta span {
    margin-right: 15px;
}

.read-more {
    display: inline-block;
    padding: 13px 20px;
    border: 2px solid #9da8ad;
    color: #4f575b;
    font-size: 17px;
    text-transform: uppercase;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.read-more:hover {
    border-color: var(--color-blue);
    background: var(--color-blue);
    color: #fff;
}

/* Generic right sidebar blocks used by blog/news/archive/gallery/biography*/

.subpage-sidebar,
.gallery-sidebar,
.blog-sidebar-block,
.news-sidebar-block,
.archive-sidebar-block {
    align-self: start;
    padding: 26px 26px 8px;
    border-top: 5px solid #d8dde0;
    background: #f3f6f7;
}

.blog-sidebar,
.news-page-sidebar,
.archive-sidebar {
    align-self: start;
}

.blog-sidebar-block,
.news-sidebar-block,
.archive-sidebar-block {
    margin: 0 0 42px;
}

.subpage-sidebar h2,
.gallery-sidebar h2,
.blog-sidebar-block h2,
.news-sidebar-block h2,
.archive-sidebar-block h2 {
    margin: 0 0 20px;
    color: #a4afb4;
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.gallery-sidebar ul,
.blog-sidebar-news,
.news-sidebar-posts,
.archive-sidebar-news {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gallery-sidebar li,
.blog-sidebar-news li,
.news-sidebar-posts li,
.archive-sidebar-news li {
    margin: 0;
    padding: 14px 0;
    border-bottom: 1px solid #d5dcdf;
}

.gallery-sidebar a,
.blog-sidebar-news a,
.news-sidebar-posts a,
.archive-sidebar-news a {
    display: block;
    color: #6f777b;
    font-size: 16px;
    line-height: 1.55;
}

.gallery-sidebar a:hover,
.blog-sidebar-news a:hover,
.news-sidebar-posts a:hover,
.archive-sidebar-news a:hover {
    color: var(--color-blue);
}

.blog-sidebar-news span,
.archive-sidebar-news span {
    display: block;
    margin-top: 3px;
    color: #9fa9ae;
    font-size: 14px;
}

.gallery-sidebar-block {
    margin-bottom: 44px;
}

.gallery-sidebar-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.gallery-sidebar-gallery a {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #eee;
}

.gallery-sidebar-gallery img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .25s ease, opacity .25s ease;
}

.gallery-sidebar-gallery a:hover img {
    transform: scale(1.08);
    opacity: .85;
}

.gallery-sidebar-posts {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gallery-sidebar-posts li {
    border-bottom: 1px solid #d8dde0;
}

.gallery-sidebar-posts a {
    display: block;
    padding: 10px 0;
    color: #6e7b80;
    text-decoration: none;
    line-height: 1.35;
}

.gallery-sidebar-posts a:hover {
    color: #039be5;
}

/* ==========================================================
12. Blog index
==========================================================*/

.blog-preview {
    margin-bottom: 15px;
    padding-bottom: 15px;
}

.blog-preview-image {
    display: block;
    margin: 0 0 34px;
    overflow: hidden;
}

.blog-preview-image img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
    transition: transform .35s ease, opacity .35s ease;
}

.blog-preview-image:hover img {
    transform: scale(1.04);
    opacity: .9;
}

.blog-preview-with-image h1,
.blog-preview-with-image h2 {
    margin-top: 0;
}

.blog-sidebar-gallery,
.news-sidebar-gallery,
.archive-sidebar-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
}

.blog-sidebar-gallery img,
.news-sidebar-gallery img,
.archive-sidebar-gallery img {
    width: 100%;
    height: 110px;
    object-fit: cover;
}

/* ==========================================================
13. Latest News index
==========================================================*/

.news-page-entry {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 42px;
    margin: 0 0 78px;
    align-items: start;
}

.news-page-image img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    display: block;
}

.news-page-content h2 {
    margin: -6px 0 26px;
    color: var(--color-heading);
    font-size: 34px;
    line-height: 1.22;
    font-weight: 700;
}

.news-page-content h2 a:hover {
    color: var(--color-blue);
}

.news-page-content p {
    margin: 0 0 24px;
    color: #6d7478;
    font-size: 17px;
    line-height: 1.75;
}

.news-page-meta {
    margin: 0 0 30px;
    color: #a0adb2;
    font-size: 14px;
}

.news-page-meta::before {
    content: "◉";
    display: inline-block;
    margin-right: 7px;
    color: #a0adb2;
    font-size: 10px;
    transform: translateY(-1px);
}

.news-page-read-more {
    display: inline-block;
    padding: 11px 17px;
    border: 2px solid #9da8ad;
    color: #4f575b;
    font-size: 15px;
    line-height: 1;
    text-transform: uppercase;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.news-page-read-more:hover {
    border-color: var(--color-blue);
    background: var(--color-blue);
    color: #fff;
}

/* Legacy news preview if still used somewhere*/

.news-preview {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 34px;
    margin-bottom: 58px;
    padding-bottom: 58px;
    border-bottom: 1px solid #d8d8d8;
}

.news-preview-image img {
    width: 260px;
    height: 180px;
    object-fit: cover;
}

.news-preview-content h2 {
    margin: 0 0 22px;
    color: var(--color-heading);
    font-size: 30px;
    line-height: 1.25;
    font-weight: 700;
}

.news-preview-content .blog-summary {
    margin: 0 0 24px;
}

.news-preview-content .blog-meta {
    margin: 0 0 28px;
}

/* ==========================================================
14. Archive
==========================================================*/

.archive-entry {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 45px;
    margin: 0 0 78px;
}

.archive-entry-image img {
    width: 300px;
    height: 300px;
    object-fit: cover;
}

.archive-entry-content h2 {
    margin: -6px 0 28px;
    color: var(--color-heading);
    font-size: 32px;
    line-height: 1.25;
    font-weight: 700;
}

.archive-entry-content h2 a:hover {
    color: var(--color-blue);
}

.archive-entry-text {
    margin: 0 0 22px;
    color: #6d7478;
    font-size: 17px;
    line-height: 1.75;
}

.archive-entry-meta {
    margin: 0 0 28px;
    color: #a0adb2;
    font-size: 14px;
}

.archive-entry-meta::before {
    content: "◉";
    display: inline-block;
    margin-right: 7px;
    color: #a0adb2;
    font-size: 10px;
    transform: translateY(-1px);
}

.archive-read-more {
    color: #91a0a5;
    font-size: 15px;
    line-height: 1.4;
    text-transform: uppercase;
}

.archive-read-more:hover {
    color: var(--color-blue);
}

.archives-list article {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 24px;
    padding: 16px 0;
    border-bottom: 1px solid #e1e1e1;
    font-size: 17px;
}

.archives-list span {
    color: #a4afb4;
}

.archives-list a {
    color: #333;
    font-weight: 700;
}

.archives-list a:hover {
    color: var(--color-blue);
}

/* ==========================================================
15. Gallery / Bilder
==========================================================*/

.album-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.album-card {
    position: relative;
    overflow: hidden;
    background: #111;
}

.album-card a {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    color: #fff;
    overflow: hidden;
}

.album-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease, opacity .35s ease;
}

.album-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom,
        rgba(0,
        0,
        0,
        .05) 0%,
        rgba(0,
        0,
        0,
        .18) 45%,
        rgba(0,
        0,
        0,
        .68) 100%);
    transition: background .35s ease;
}

.album-info {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    z-index: 2;
    text-shadow: 0 1px 7px rgba(0,0,0,.55);
}

.album-date {
    display: block;
    margin: 0 0 5px;
    color: rgba(255,255,255,.88);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
}

.album-title {
    display: block;
    margin: 0 0 9px;
    color: #fff;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 300;
}

.album-count {
    display: block;
    color: rgba(255,255,255,.9);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
}

.album-card a:hover img {
    transform: scale(1.06);
    opacity: .86;
}

.album-card a:hover .album-overlay {
    background: linear-gradient(to bottom,
        rgba(3,
        155,
        229,
        .12) 0%,
        rgba(0,
        0,
        0,
        .24) 45%,
        rgba(0,
        0,
        0,
        .75) 100%);
}

.album-detail-date {
    margin: 0 0 22px;
    color: #596266;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 400;
}

.album-detail-title {
    margin: 0 0 34px;
    color: #586064;
    font-size: 58px;
    line-height: 1.12;
    font-weight: 300;
}

.album-detail-summary {
    margin: 0 0 35px;
    color: #6d7478;
    font-size: 17px;
    line-height: 1.75;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.photo-item {
    display: block;
    overflow: hidden;
    background: #eee;
    border: 1px solid #e0e0e0;
}

.photo-item img {
    width: 100%;
    height: 185px;
    object-fit: cover;
    transition: transform .3s ease, opacity .3s ease;
}

.photo-item:hover img {
    transform: scale(1.05);
    opacity: .88;
}

/* ==========================================================
16. Lightbox
==========================================================*/

.tk-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    background: #000;
    color: #fff;
}

.tk-lightbox.is-open {
    display: block;
}

.tk-lightbox-stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 70px;
}

.tk-lightbox-stage img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.tk-lightbox-counter {
    position: absolute;
    top: 12px;
    left: 14px;
    z-index: 3;
    color: rgba(255,255,255,.75);
    font-size: 14px;
    line-height: 1;
}

.tk-lightbox-close,
.tk-lightbox-prev,
.tk-lightbox-next {
    position: absolute;
    z-index: 4;
    border: 0;
    background: transparent;
    color: rgba(255,255,255,.78);
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    transition: color .2s ease, background-color .2s ease;
}

.tk-lightbox-close:hover,
.tk-lightbox-prev:hover,
.tk-lightbox-next:hover {
    color: #fff;
}

.tk-lightbox-close {
    top: 8px;
    right: 14px;
    font-size: 34px;
    line-height: 1;
}

.tk-lightbox-prev,
.tk-lightbox-next {
    top: 50%;
    width: 48px;
    height: 80px;
    transform: translateY(-50%);
    font-size: 42px;
    line-height: 80px;
}

.tk-lightbox-prev {
    left: 0;
}

.tk-lightbox-next {
    right: 0;
}

.tk-lightbox-prev:hover,
.tk-lightbox-next:hover {
    background: rgba(255,255,255,.08);
}

/* ==========================================================
17. Generic grids / old helper classes
==========================================================*/

.image-grid,
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 35px;
}

.gallery-grid img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.listing-item {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.listing-item h2 {
    margin: 0 0 8px;
}

/* ==========================================================
18. Lara page
==========================================================*/

.lara-page {
    background: #fff;
    padding: 150px 24px 100px;
}

.lara-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.lara-header {
    text-align: center;
    margin: 0 0 48px;
}

.lara-header h1 {
    margin: 0 0 68px;
    color: #2f3438;
    font-size: 36px;
    line-height: 1.2;
    font-weight: 700;
}

.lara-header h2 {
    margin: 0 0 18px;
    color: #596266;
    font-size: 56px;
    line-height: 1.15;
    font-weight: 300;
}

.lara-intro {
    max-width: 760px;
    margin: 0 auto;
    color: #7f8a90;
    font-size: 15px;
    line-height: 1.7;
}

.lara-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 76px 42px;
}

.lara-card {
    text-align: center;
}

.lara-card-image {
    position: relative;
    margin: 0 0 24px;
    overflow: hidden;
    background: #eee;
}

.lara-card-image a {
    position: relative;
    display: block;
    cursor: pointer;
}

.lara-card-image img {
    width: 100%;
    height: 330px;
    object-fit: cover;
    display: block;
    transition: transform .38s ease, opacity .38s ease, filter .38s ease;
}

/* Zoom funktioniert immer, auch wenn kein Video-Link vorhanden ist*/

.lara-card-image:hover img {
    transform: scale(1.07);
    opacity: .88;
    filter: contrast(1.05);
}

/* Overlay nur bei verlinkten Bildern*/

.lara-card-image a::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, .20);
    opacity: 0;
    transition: opacity .28s ease;
    pointer-events: none;
}

.lara-card-image a::after {
    content: "Video";
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    transform: translate(-50%, -50%) scale(.96);
    padding: 10px 20px;
    border: 2px solid rgba(255, 255, 255, .85);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .5px;
    background: rgba(0, 0, 0, .30);
    opacity: 0;
    transition: opacity .28s ease, transform .28s ease, background-color .28s ease;
    pointer-events: none;
}

.lara-card-image a:hover::before,
.lara-card-image a:focus::before {
    opacity: 1;
}

.lara-card-image a:hover::after,
.lara-card-image a:focus::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    background: rgba(3, 155, 229, .88);
}

.lara-card h3 {
    margin: 0 0 10px;
    color: #4b5256;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
    text-transform: uppercase;
}

.lara-video-link {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.3;
}

.lara-video-link a {
    color: #039be5;
}

.lara-video-link a:hover {
    text-decoration: underline;
}

.lara-card-text {
    max-width: 330px;
    margin: 0 auto;
    color: #7f8a90;
    font-size: 16px;
    line-height: 1.65;
}

/* ==========================================================
19. Diavolessas Erfolge / Results page
==========================================================*/

.results-layout {
    max-width: 1320px;
    margin: 0 auto;
    padding: 150px 24px 100px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 70px;
    background: #fff;
}

.results-main {
    min-width: 0;
}

.results-page-title {
    margin: 0 0 70px;
    color: #2f3438;
    font-size: 56px;
    line-height: 1.1;
    font-weight: 300;
}

.results-intro {
    margin: 0 0 56px;
    color: #6d7478;
    font-size: 18px;
    line-height: 1.75;
}

.results-title {
    margin: 0 0 22px;
    color: #596266;
    font-size: 44px;
    line-height: 1.15;
    font-weight: 300;
}

.results-table-wrap {
    width: 100%;
    overflow: visible;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    color: #5f6a6f;
    font-size: 15px;
    line-height: 1.45;
    table-layout: fixed;
}

.results-table th,
.results-table td {
    padding: 10px 12px;
    vertical-align: top;
    text-align: left;
    word-break: normal;
    overflow-wrap: anywhere;
}

.results-table th {
    background: #8f918f;
    color: #40494d;
    font-weight: 400;
}

.results-table tbody tr:nth-child(odd) {
    background: #cfcfcf;
}

.results-table tbody tr:nth-child(even) {
    background: #f2f2f2;
}

.results-table th:nth-child(1),
.results-table td:nth-child(1) {
    width: 118px;
    white-space: nowrap;
}

.results-table th:nth-child(2),
.results-table td:nth-child(2) {
    width: 130px;
}

.results-table th:nth-child(3),
.results-table td:nth-child(3) {
    width: auto;
}

.results-table th:nth-child(4),
.results-table td:nth-child(4) {
    width: 64px;
    text-align: right;
    white-space: nowrap;
}

.results-table th:nth-child(5),
.results-table td:nth-child(5) {
    width: 145px;
}

.results-table a {
    color: #039be5;
    text-decoration: none;
}

.results-table a:hover {
    text-decoration: underline;
}

.results-rank {
    text-align: right;
}

/* Sidebar*/

.results-sidebar {
    align-self: start;
}

.results-sidebar-block {
    margin: 0 0 42px;
    padding: 26px 26px 8px;
    border-top: 5px solid #d8dde0;
    background: #f3f6f7;
}

.results-sidebar-block h2 {
    margin: 0 0 20px;
    color: #a4afb4;
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.results-sidebar-block ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.results-sidebar-block li {
    margin: 0;
    padding: 14px 0;
    border-bottom: 1px solid #d5dcdf;
}

.results-sidebar-block a {
    display: block;
    color: #6f777b;
    font-size: 16px;
    line-height: 1.55;
}

.results-sidebar-block a:hover {
    color: #039be5;
}

/* Tablet*/

@media (max-width: 1024px) {
    .results-layout {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 45px;
        padding-top: 120px;
    }

    .results-page-title {
        font-size: 48px;
    }

    .results-table {
        font-size: 14px;
    }

    .results-table th,
        .results-table td {
        padding: 9px 9px;
    }

    .results-table th:nth-child(1),
        .results-table td:nth-child(1) {
        width: 104px;
    }

    .results-table th:nth-child(2),
        .results-table td:nth-child(2) {
        width: 115px;
    }

    .results-table th:nth-child(4),
        .results-table td:nth-child(4) {
        width: 54px;
    }

    .results-table th:nth-child(5),
        .results-table td:nth-child(5) {
        width: 125px;
    }
}

/* Mobile: table becomes cards*/

@media (max-width: 820px) {
    .results-layout {
        display: block;
        padding: 70px 24px;
    }

    .results-page-title {
        margin-bottom: 46px;
        font-size: 42px;
    }

    .results-sidebar {
        margin-top: 60px;
    }

    .results-table-wrap {
        overflow: visible;
    }

    .results-table,
        .results-table thead,
        .results-table tbody,
        .results-table tr,
        .results-table th,
        .results-table td {
        display: block;
        width: 100%;
    }

    .results-table {
        border-collapse: separate;
        border-spacing: 0;
        font-size: 15px;
    }

    .results-table thead {
        display: none;
    }

    .results-table tr {
        margin: 0 0 18px;
        padding: 14px 16px;
        background: #f2f2f2 !important;
        border-left: 5px solid #039be5;
        box-shadow: 0 1px 0 rgba(0,0,0,.08);
    }

    .results-table td {
        position: relative;
        min-height: 34px;
        padding: 7px 0 7px 130px;
        border-bottom: 1px solid #d8dde0;
        text-align: left;
        white-space: normal;
    }

    .results-table td:last-child {
        border-bottom: 0;
    }

    .results-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        top: 7px;
        width: 110px;
        color: #7f8a90;
        font-weight: 700;
        text-transform: uppercase;
        font-size: 12px;
        letter-spacing: .35px;
    }

    .results-table td.results-rank {
        text-align: left;
    }

    .results-table th:nth-child(1),
        .results-table td:nth-child(1),
        .results-table th:nth-child(2),
        .results-table td:nth-child(2),
        .results-table th:nth-child(3),
        .results-table td:nth-child(3),
        .results-table th:nth-child(4),
        .results-table td:nth-child(4),
        .results-table th:nth-child(5),
        .results-table td:nth-child(5) {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .results-layout {
        padding: 52px 18px;
    }

    .results-page-title {
        margin-bottom: 34px;
        font-size: 34px;
    }

    .results-intro {
        font-size: 16px;
    }

    .results-table tr {
        padding: 12px 14px;
    }

    .results-table td {
        padding-left: 112px;
        font-size: 14px;
    }

    .results-table td::before {
        width: 96px;
        font-size: 11px;
    }

    .results-sidebar-block {
        padding: 24px 22px 8px;
    }
}

@media (max-width: 380px) {
    .results-layout {
        padding-left: 14px;
        padding-right: 14px;
    }

    .results-table td {
        padding-left: 0;
        padding-top: 25px;
    }

    .results-table td::before {
        top: 6px;
        width: auto;
    }
}

/* ==========================================================
20. Responsive: Lara page
==========================================================*/

@media (max-width: 1200px) {
    .lara-inner {
        max-width: 1040px;
    }

    .lara-grid {
        gap: 64px 34px;
    }

    .lara-card-image img {
        height: 300px;
    }
}

@media (max-width: 1024px) {
    .lara-page {
        padding: 120px 24px 90px;
    }

    .lara-header h1 {
        margin-bottom: 56px;
        font-size: 34px;
    }

    .lara-header h2 {
        font-size: 46px;
    }

    .lara-grid {
        gap: 58px 30px;
    }

    .lara-card-image img {
        height: 280px;
    }

    .lara-card-text {
        font-size: 15px;
    }
}

@media (max-width: 820px) {
    .lara-page {
        padding: 70px 24px;
    }

    .lara-header {
        margin-bottom: 42px;
    }

    .lara-header h1 {
        margin-bottom: 44px;
        font-size: 32px;
    }

    .lara-header h2 {
        font-size: 40px;
    }

    .lara-intro {
        font-size: 15px;
    }

    .lara-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 50px 28px;
    }

    .lara-card-image img {
        height: 300px;
    }
}

@media (max-width: 560px) {
    .lara-page {
        padding: 52px 18px;
    }

    .lara-header {
        margin-bottom: 36px;
    }

    .lara-header h1 {
        margin-bottom: 34px;
        font-size: 28px;
    }

    .lara-header h2 {
        font-size: 34px;
        line-height: 1.2;
    }

    .lara-intro {
        font-size: 14px;
        line-height: 1.65;
    }

    .lara-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .lara-card-image {
        margin-bottom: 20px;
    }

    .lara-card-image img {
        height: 300px;
    }

    .lara-card h3 {
        font-size: 15px;
    }

    .lara-card-text {
        max-width: 100%;
        font-size: 15px;
        line-height: 1.6;
    }
}

@media (max-width: 380px) {
    .lara-page {
        padding: 44px 14px;
    }

    .lara-header h1 {
        font-size: 26px;
    }

    .lara-header h2 {
        font-size: 30px;
    }

    .lara-card-image img {
        height: 250px;
    }

    .lara-card-image a::after {
        padding: 9px 16px;
        font-size: 12px;
    }
}

/* ==========================================================
18. Responsive: desktop down
==========================================================*/

@media (max-width: 1200px) {
    :root {
        --header-height: 54px;
        --gap-sidebar: 55px;
    }

    .topbar {
        max-width: 100%;
        padding: 0 18px;
        justify-content: flex-start;
    }

    .languages {
        position: static;
        align-self: center;
        margin-right: 16px;
        transform: none;
    }

    .logo {
        padding: 0 22px;
        font-size: 16px;
    }

    .main-nav a {
        min-width: auto;
        padding: 0 17px;
        font-size: 12px;
    }

    .about-content {
        padding: 78px 60px 60px;
    }

    .teaser-grid {
        gap: 32px;
    }

    .footer-inner {
        gap: 80px;
    }
}

@media (max-width: 1024px) {
    :root {
        --sidebar-width: 260px;
        --space-page-top: 120px;
        --gap-sidebar: 45px;
    }

    body {
        font-size: 15px;
    }

    .hero-slider {
        height: clamp(440px, 58vw, 620px);
    }

    .quote-section {
        min-height: auto;
        padding: 70px 24px;
    }

    .quote-section blockquote {
        font-size: 18px;
    }

    .news-section {
        max-width: 760px;
        gap: 56px;
    }

    .about-section {
        grid-template-columns: 1fr;
    }

    .about-image,
        .about-image img {
        min-height: 420px;
        height: 420px;
    }

    .about-content {
        padding: 70px 50px;
    }

    .teaser-grid {
        max-width: none;
    }

    .video-grid {
        max-width: 820px;
        gap: 28px;
    }

    .contact-box {
        left: 50px;
        top: 70px;
    }

    .subpage-layout {
        grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
    }

    .news-page-entry {
        grid-template-columns: 230px minmax(0, 1fr);
        gap: 32px;
    }

    .news-page-image img {
        width: 230px;
        height: 230px;
    }

    .news-page-content h2 {
        font-size: 29px;
    }

    .archive-entry {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 32px;
    }

    .archive-entry-image img {
        width: 240px;
        height: 240px;
    }

    .archive-entry-content h2 {
        font-size: 28px;
    }

    .album-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .photo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ==========================================================
19. Responsive: tablet / mobile menu
==========================================================*/

@media (max-width: 820px) {
    :root {
        --space-page-top: 70px;
        --space-page-bottom: 70px;
    }

    .site-header {
        position: static;
        height: auto;
    }

    main {
        padding-top: 0;
    }

    .topbar {
        height: auto;
        min-height: 0;
        padding: 10px 16px 0;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }

    .languages {
        order: 1;
        width: 100%;
        justify-content: center;
        margin: 0 0 8px;
        font-size: 14px;
    }

    .logo {
        order: 2;
        width: 100%;
        min-height: auto;
        height: auto;
        justify-content: center;
        padding: 8px 0 12px;
        line-height: 1.25;
        font-size: 18px;
    }

    .main-nav {
        order: 3;
        width: calc(100% + 32px);
        min-height: auto;
        height: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        border-top: 1px solid #eee;
    }

    .main-nav a {
        flex: 1 1 33.333%;
        min-height: 44px;
        height: auto;
        min-width: 0;
        padding: 13px 8px;
        border-left: 0;
        border-right: 1px solid #eee;
        border-bottom: 1px solid #eee;
        font-size: 12px;
        line-height: 1.2;
        text-align: center;
        white-space: normal;
    }

    .main-nav a:nth-child(3n) {
        border-right: 0;
    }

    .hero-slider {
        height: clamp(380px, 68vw, 520px);
    }

    .quote-section {
        padding: 58px 22px;
    }

    .quote-subtitle {
        margin-bottom: 34px;
    }

    .quote-section blockquote {
        font-size: 17px;
        line-height: 1.8;
    }

    .quote-section blockquote::before {
        display: block;
        margin: 0 0 20px;
        vertical-align: 0;
    }

    .news-section {
        max-width: 520px;
        margin: 70px auto;
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .small-item {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .small-item img {
        width: 110px;
        height: 82px;
    }

    .about-content {
        padding: 60px 28px;
    }

    .about-content h2 {
        font-size: 34px;
    }

    .teaser-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .teaser-card img {
        height: 220px;
    }

    .stable-section {
        min-height: 360px;
    }

    .stable-content {
        padding: 58px 22px;
    }

    .stable-content p {
        font-size: 16px;
    }

    .video-section {
        padding: 70px 22px;
    }

    .video-grid {
        max-width: 560px;
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .video-title {
        font-size: 28px;
    }

    .map-section {
        height: auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .map-image-link {
        height: 360px;
    }

    .contact-box {
        position: static;
        width: auto;
        min-height: 0;
        margin: 0;
        padding: 28px 30px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 55px;
        max-width: 560px;
    }

    .footer-columns {
        gap: 45px;
    }

    .subpage-layout,
        .blog-layout,
        .news-page-layout,
        .archive-layout,
        .gallery-layout {
        display: block;
        padding: var(--space-page-top) 24px var(--space-page-bottom);
    }

    .subpage-main {
        max-width: none;
    }

    .subpage-sidebar,
        .gallery-sidebar,
        .blog-sidebar,
        .news-page-sidebar,
        .archive-sidebar {
        margin-top: 60px;
    }

    .page-title,
        .archive-title,
        .gallery-title,
        .news-page-title {
        font-size: 44px;
        margin-bottom: 45px;
    }

    .blog-sidebar-gallery,
        .news-sidebar-gallery,
        .archive-sidebar-gallery,
        .sidebar-gallery {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .blog-sidebar-gallery img,
        .news-sidebar-gallery img,
        .archive-sidebar-gallery img,
        .sidebar-gallery img {
        height: 120px;
    }

    .news-page-entry,
        .archive-entry,
        .news-preview,
        .listing-item {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .news-page-entry,
        .archive-entry {
        margin-bottom: 60px;
    }

    .news-page-image img,
        .archive-entry-image img,
        .news-preview-image img {
        width: 100%;
        height: 320px;
    }

    .album-detail-title {
        font-size: 44px;
    }

    .album-detail-date {
        font-size: 20px;
    }

    .photo-grid,
        .gallery-grid,
        .image-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .photo-item img {
        height: 210px;
    }

    .blog-preview-image img {
        height: 300px;
    }
}

/* ==========================================================
20. Responsive: phones
==========================================================*/

@media (max-width: 560px) {
    :root {
        --space-page-top: 52px;
        --space-page-bottom: 52px;
    }

    body {
        font-size: 15px;
        line-height: 1.65;
    }

    .topbar {
        padding-left: 12px;
        padding-right: 12px;
    }

    .main-nav {
        width: calc(100% + 24px);
    }

    .main-nav a {
        flex-basis: 50%;
        font-size: 11px;
        min-height: 42px;
    }

    .main-nav a:nth-child(3n) {
        border-right: 1px solid #eee;
    }

    .main-nav a:nth-child(2n) {
        border-right: 0;
    }

    .hero-slider {
        height: 340px;
    }

    .hero-slide img {
        object-position: center center;
    }

    .slider-dots {
        bottom: 10px;
    }

    .quote-section {
        padding: 46px 18px;
    }

    .quote-subtitle {
        font-size: 13px;
    }

    .quote-section blockquote {
        font-size: 16px;
        line-height: 1.7;
    }

    .news-section {
        margin: 54px auto;
        padding: 0 18px;
    }

    .small-item {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 14px;
    }

    .small-item img {
        width: 88px;
        height: 66px;
    }

    .small-item h3 {
        font-size: 14px;
    }

    .small-item p {
        font-size: 12px;
    }

    .about-image,
        .about-image img {
        min-height: 280px;
        height: 280px;
    }

    .about-content {
        padding: 46px 18px;
    }

    .about-content h2 {
        margin-bottom: 34px;
        font-size: 30px;
    }

    .teaser-card img {
        height: 190px;
    }

    .stable-section {
        min-height: 320px;
    }

    .stable-content {
        padding: 48px 18px;
    }

    .stable-content h2 {
        font-size: 34px;
    }

    .stable-content p {
        font-size: 15px;
        line-height: 1.65;
    }

    .stable-button {
        width: 100%;
        min-height: 46px;
        padding: 0 18px;
        font-size: 13px;
    }

    .video-section {
        padding: 54px 18px;
    }

    .video-section h2 {
        font-size: 32px;
    }

    .video-section > p {
        margin-bottom: 36px;
    }

    .video-title {
        font-size: 24px;
    }

    .map-image-link {
        height: 300px;
    }

    .contact-box {
        padding: 24px 22px;
        font-size: 14px;
    }

    .site-footer {
        padding: 60px 18px;
    }

    .site-footer h3 {
        font-size: 32px;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-columns li {
        margin-bottom: 14px;
    }

    .subpage-layout,
        .blog-layout,
        .news-page-layout,
        .archive-layout,
        .gallery-layout {
        padding: var(--space-page-top) 18px var(--space-page-bottom);
    }

    .page-title,
        .archive-title,
        .gallery-title,
        .news-page-title {
        font-size: 36px;
    }

    .blog-article h1,
        .blog-preview h1,
        .blog-preview h2 {
        font-size: 30px;
    }

    .blog-preview h2,
        .news-page-content h2,
        .archive-entry-content h2 {
        font-size: 25px;
    }

    .blog-summary,
        .article-body,
        .news-page-content p,
        .archive-entry-text {
        font-size: 16px;
    }

    .blog-meta {
        font-size: 13px;
    }

    .read-more,
        .news-page-read-more {
        width: 100%;
        text-align: center;
    }

    .blog-sidebar-gallery,
        .news-sidebar-gallery,
        .archive-sidebar-gallery,
        .sidebar-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blog-sidebar-gallery img,
        .news-sidebar-gallery img,
        .archive-sidebar-gallery img,
        .sidebar-gallery img {
        height: 130px;
    }

    .news-page-image img,
        .archive-entry-image img,
        .news-preview-image img {
        height: 240px;
    }

    .blog-preview-image {
        margin-bottom: 24px;
    }

    .blog-preview-image img {
        height: 220px;
    }

    .album-grid,
        .photo-grid,
        .gallery-grid,
        .image-grid {
        grid-template-columns: 1fr;
    }

    .album-title {
        font-size: 24px;
    }

    .album-detail-title {
        font-size: 34px;
    }

    .photo-item img,
        .gallery-grid img {
        height: 230px;
    }

    .archives-list article {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .tk-lightbox-stage {
        padding: 48px 20px;
    }

    .tk-lightbox-prev,
        .tk-lightbox-next {
        width: 38px;
        height: 64px;
        font-size: 32px;
        line-height: 64px;
    }
}

/* ==========================================================
21. Responsive: very small phones
==========================================================*/

@media (max-width: 380px) {
    .main-nav a {
        flex-basis: 100%;
        border-right: 0;
    }

    .hero-slider {
        height: 300px;
    }

    .small-item {
        grid-template-columns: 1fr;
    }

    .small-item img {
        width: 100%;
        height: 150px;
    }

    .teaser-card img {
        height: 165px;
    }

    .map-image-link {
        height: 250px;
    }

    .contact-box {
        padding: 22px 18px;
    }
}

/* ==========================================================
24. Article detail: news-item / blog-item
==========================================================*/

.article-layout {
    max-width: 1320px;
    margin: 0 auto;
    padding: 150px 24px 90px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 70px;
    background: #fff;
}

.article-main {
    min-width: 0;
}

.article-detail h1 {
    margin: 0 0 34px;
    color: #2f3438;
    font-size: 44px;
    line-height: 1.2;
    font-weight: 700;
}

.article-main-image {
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: cover;
    display: block;
    margin: 0 0 34px;
}

.article-meta {
    margin: 0 0 28px;
    color: #a0adb2;
    font-size: 14px;
}

.article-meta::before {
    content: "◉";
    display: inline-block;
    margin-right: 7px;
    color: #a0adb2;
    font-size: 10px;
    transform: translateY(-1px);
}

.article-summary {
    margin: 0 0 28px;
    color: #6d7478;
    font-size: 19px;
    line-height: 1.7;
}

.article-body {
    color: #6d7478;
    font-size: 18px;
    line-height: 1.8;
}

.article-body p {
    margin: 0 0 24px;
}

.article-body img {
    max-width: 100%;
    height: auto;
}

/* Sidebar*/

.article-sidebar {
    align-self: start;
}

.article-sidebar-block {
    margin: 0 0 42px;
    padding: 26px 26px 8px;
    border-top: 5px solid #d8dde0;
    background: #f3f6f7;
}

.article-sidebar-block h2 {
    margin: 0 0 20px;
    color: #a4afb4;
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.article-sidebar-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
}

.article-sidebar-gallery img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    display: block;
}

.article-sidebar-posts {
    list-style: none;
    margin: 0;
    padding: 0;
}

.article-sidebar-posts li {
    margin: 0;
    padding: 14px 0;
    border-bottom: 1px solid #d5dcdf;
}

.article-sidebar-posts a {
    display: block;
    color: #6f777b;
    font-size: 16px;
    line-height: 1.55;
}

.article-sidebar-posts a:hover {
    color: #039be5;
}

/* Responsive*/

@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 45px;
        padding-top: 120px;
    }

    .article-detail h1 {
        font-size: 38px;
    }
}

@media (max-width: 820px) {
    .article-layout {
        display: block;
        padding: 70px 24px;
    }

    .article-detail h1 {
        font-size: 34px;
    }

    .article-sidebar {
        margin-top: 60px;
    }

    .article-sidebar-gallery {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .article-sidebar-gallery img {
        height: 120px;
    }
}

@media (max-width: 560px) {
    .article-layout {
        padding: 52px 18px;
    }

    .article-detail h1 {
        font-size: 28px;
    }

    .article-body {
        font-size: 16px;
    }

    .article-summary {
        font-size: 17px;
    }

    .article-sidebar-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .article-sidebar-gallery img {
        height: 130px;
    }
}

/* ==========================================================
25. Back to top button
==========================================================*/

.back-to-top {
    position: fixed;
    right: 34px;
    bottom: 34px;
    z-index: 999;
    width: 56px;
    height: 56px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #039be5;
    cursor: pointer;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity .25s ease,
        visibility .25s ease,
        transform .25s ease,
        background-color .25s ease,
        color .25s ease,
        box-shadow .25s ease;
}

.back-to-top svg {
    width: 28px;
    height: 28px;
    display: block;
    margin: 14px auto;
    fill: currentColor;
    transition: transform .2s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus {
    background: #039be5;
    color: #fff;
    box-shadow: 0 8px 26px rgba(3, 155, 229, .32);
    outline: none;
}

.back-to-top:hover svg {
    transform: translateY(-2px);
}

@media (max-width: 820px) {
    .back-to-top {
        right: 22px;
        bottom: 22px;
        width: 52px;
        height: 52px;
    }

    .back-to-top svg {
        width: 26px;
        height: 26px;
        margin: 13px auto;
    }
}

@media (max-width: 560px) {
    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 48px;
        height: 48px;
    }

    .back-to-top svg {
        width: 24px;
        height: 24px;
        margin: 12px auto;
    }
}

/* ==========================================================
26. Pager / Pagination
==========================================================*/

.pager-wrap {
    margin: 58px 0 0;
    padding: 36px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    border-top: 1px solid #d8dde0;
}

.pager {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.pager li {
    margin: 0;
    padding: 0;
}

.pager a,
.pager span {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d6dde0;
    background: #fff;
    color: #89969b;
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.pager a:hover {
    border-color: #039be5;
    color: #039be5;
}

.pager li.active span {
    border-color: #039be5;
    background: #039be5;
    color: #fff;
}

.pager-prev a,
.pager-next a {
    min-width: auto;
    padding: 0 18px;
}

.pager-info {
    height: 42px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d6dde0;
    background: #fff;
    color: #7f8a90;
    font-size: 15px;
    white-space: nowrap;
    box-sizing: border-box;
}

@media (max-width: 820px) {
    .pager-wrap {
        display: block;
        text-align: center;
    }

    .pager {
        justify-content: center;
    }

    .pager-info {
        margin: 22px auto 0;
    }
}

@media (max-width: 560px) {
    .pager-wrap {
        margin-top: 42px;
        padding-top: 28px;
    }

    .pager a,
        .pager span {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 14px;
    }

    .pager-prev a,
        .pager-next a {
        padding: 0 14px;
    }

    .pager-info {
        height: 38px;
        font-size: 14px;
    }
}
