@import url('https://fonts.googleapis.com/css2?family=Oxanium:wght@400;500;600;700&family=Rajdhani:wght@400;500;600;700&display=swap');

* {
    box-sizing: border-box;
    font-family: 'Rajdhani', sans-serif;
}

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

body {
    margin: 0;
}

#page-loader {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: #080808;
    color: white;
    font-size: 14px;
    z-index: 1000;
    transition: opacity 250ms ease, visibility 250ms ease;
}

#page-loader.is-loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loader-spinner {
    position: relative;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
}

.page-loader-spinner::before {
    position: absolute;
    inset: 0;
    border: 3px solid rgb(255 255 255 / 25%);
    border-top-color: coral;
    border-radius: 50%;
    animation: page-loader-spin 800ms linear infinite;
    content: "";
}

.page-loader-spinner svg {
    width: 22px;
    height: 22px;
    fill: coral;
}

@keyframes page-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

html {
    scroll-behavior: smooth;
}

html.color-inverted::after {
    position: fixed;
    z-index: 2147483647;
    inset: 0;
    background: #fff;
    content: "";
    mix-blend-mode: difference;
    pointer-events: none;
}

html.color-inverted img,
html.color-inverted video {
    filter: invert(1);
}

body.shell-page {
    min-height: 100vh;
    padding-top: 100px;
}

header {
    background-color: black;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    padding: 8px 12px;
    z-index: 12;
}

#hamburger {
    display: flex;
    width: 44px;
    height: 40px;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    z-index: 14;
}

#color-invert-toggle {
    display: inline-flex;
    width: 44px;
    height: 40px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: white;
    cursor: pointer;
}

#color-invert-toggle:hover,
#color-invert-toggle:focus-visible {
    color: coral;
}

#color-invert-toggle:focus-visible {
    outline: 2px solid coral;
    outline-offset: -3px;
}

#support-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    background-color: #ff813f;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
}

#support-button:hover {
    background-color: #e56c2c;
}

#hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #ecf0f1;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

#logo {
    height: 32px;
}

#hamburger.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

#hamburger.open span:nth-child(2) {
    opacity: 0;
}

#hamburger.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

#navigation-row {
    background-color: black;
    display: flex;
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    height: 52px;
    z-index: 11;
    border-bottom: 1px solid #d0d5d8;
    align-items: center;
}

#breadcrumb {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    padding: 8px 16px;
    color: white;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

nav {
    display: flex;
    position: fixed;
    top: 100px;
    right: 0;
    bottom: 0;
    width: min(360px, 88vw);
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: black;
    border-left: 1px solid #d0d5d8;
    box-shadow: -12px 12px 28px rgb(0 0 0 / 35%);
    transform: translateX(105%);
    transition: transform 0.25s ease;
    z-index: 13;
}

nav.open {
    transform: translateX(0);
}

#left-pane {
    position: fixed;
    top: 100px;
    bottom: 0;
    left: 0;
    width: min(300px, 85vw);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    font-size: 50%;
    background-color: black;
    border-top: 16px solid coral;
    border-right: 1px solid #d0d5d8;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 10;
}

#left-pane.open {
    transform: translateX(0);
}

#quote-pane {
    position: fixed;
    top: 100px;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: min(300px, 85vw);
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 24px;
    border-top: 16px solid coral;
    border-right: 1px solid #d0d5d8;
    background-color: black;
    color: coral;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 10;
    gap: 24px;
}

#quote-pane.open {
    transform: translateX(0);
}

#quote-pane.open ~ #left-pane-toggle {
    visibility: hidden;
}

#quote-pane.open ~ #quote-pane-toggle {
    left: min(300px, 85vw);
}

#music-pane,
#audio-pane {
    position: fixed;
    top: 100px;
    bottom: 0;
    left: 0;
    display: flex;
    width: min(300px, 85vw);
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px;
    border-top: 16px solid coral;
    border-right: 1px solid #d0d5d8;
    background-color: black;
    color: white;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 10;
}

#audio-pane {
    border-top-color: #4da3ff;
}

#music-pane.open,
#audio-pane.open {
    transform: translateX(0);
}

#music-pane.open ~ #left-pane-toggle,
#audio-pane.open ~ #left-pane-toggle {
    visibility: hidden;
}

#music-pane.open ~ #music-pane-toggle,
#audio-pane.open ~ #audio-pane-toggle {
    left: min(300px, 85vw);
}

#music-pane .music-pane-inner,
#audio-pane .music-pane-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: center;
}

.music-pane-icon {
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: coral;
    color: black;
}

.music-pane-icon svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

#music-pane h2 {
    margin: 0;
    color: coral;
    font-size: 26px;
}

.music-pane-videos {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 12px;
}

.music-pane-videos video,
.audio-pane-tracks audio {
    display: block;
    width: min(100%, 220px);
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.music-pane-videos video {
    max-height: 170px;
    border-radius: 8px;
    background: black;
    object-fit: cover;
}

.audio-pane-tracks audio {
    min-width: 0;
    min-height: 38px;
    appearance: auto;
    -webkit-appearance: auto;
}

#quote-pane .quote-pane-image {
    display: block;
    width: min(220px, 100%);
    height: auto;
    margin: 0 auto 8px;
    border-radius: 16px;
    object-fit: cover;
}

#quote-pane blockquote {
    margin: 0;
    font-family: 'Oxanium', sans-serif;
    font-size: 20px;
    line-height: 1.5;
    text-align: center;
}

#quote-pane blockquote p {
    margin: 0 0 12px;
}

#quote-pane blockquote cite {
    display: block;
    margin-top: 8px;
    font-style: normal;
}

#quote-pane .quote-divider {
    width: 100%;
    margin: 0;
    border: 0;
    border-top: 2px solid coral;
}

.left-pane-contact-form {
    display: grid;
    gap: 6px;
    width: calc(100% - 32px);
    margin: 16px auto 0;
    color: white;
}

.left-pane-contact-title {
    margin: 16px 0 0;
    color: white;
    text-align: center;
}

.left-pane-contact-form input,
.left-pane-contact-form textarea {
    width: 100%;
    padding: 8px;
    border: 2px solid coral;
    border-radius: 4px;
    background-color: white;
    color: black;
    font: inherit;
}

.left-pane-contact-form textarea {
    resize: vertical;
}

.left-pane-contact-form button {
    justify-self: start;
    margin-top: 4px;
    padding: 8px 14px;
    border: 0;
    border-radius: 4px;
    background-color: coral;
    color: white;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.left-pane-social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    width: calc(100% - 32px);
    margin: 16px auto 0;
}

.left-pane-social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 8px 10px;
    border-radius: 999px;
    color: white;
    text-decoration: none;
    font-size: 6.5px;
    font-weight: 600;
}

.left-pane-social-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.left-pane-social-link.instagram svg rect,
.left-pane-social-link.instagram svg circle:not(.instagram-dot) {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.left-pane-social-link.facebook {
    background-color: #1877f2;
}

.left-pane-social-link.instagram {
    background-color: #c13584;
}

.left-pane-social-link.tiktok {
    background-color: #111;
}

.left-pane-social-link:focus-visible {
    outline: 2px solid coral;
    outline-offset: 3px;
}

.left-pane-gallery-item {
    overflow: hidden;
    width: calc(100% - 32px);
    margin: 16px auto;
    border-radius: 8px;
}

.left-pane-gallery-item img {
    display: block;
    width: 100%;
    height: auto;
}

.left-pane-overlay {
    padding: 12px 8px;
    background-color: white;
    color: black;
    text-align: center;
}

.left-pane-overlay h2 {
    margin: 0;
    font-size: 9px;
}

#left-pane-toggle {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    padding: 12px 8px;
    border: 0;
    border-radius: 0 6px 6px 0;
    background-color: coral;
    color: white;
    font: inherit;
    font-weight: bold;
    cursor: pointer;
    z-index: 11;
}

#quote-pane-toggle {
    position: fixed;
    top: calc(50% + 58px);
    left: 0;
    display: inline-flex;
    width: 34.16px;
    height: 45px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0 6px 6px 0;
    background-color: #4da3ff;
    color: white;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
    z-index: 11;
}

#music-pane-toggle,
#audio-pane-toggle {
    position: fixed;
    left: 0;
    display: inline-flex;
    width: 34.16px;
    height: 45px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0 6px 6px 0;
    background-color: #4da3ff;
    color: white;
    cursor: pointer;
    z-index: 11;
}

#music-pane-toggle {
    top: calc(50% + 116px);
}

#audio-pane-toggle {
    top: calc(50% + 174px);
}

#music-pane-toggle svg,
#audio-pane-toggle svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

#quote-pane-toggle:hover,
#quote-pane-toggle:focus-visible,
#music-pane-toggle:hover,
#music-pane-toggle:focus-visible,
#audio-pane-toggle:hover,
#audio-pane-toggle:focus-visible {
    background-color: #2f7ae6;
}

#quote-pane-toggle:focus-visible,
#music-pane-toggle:focus-visible,
#audio-pane-toggle:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

#section-pager {
    position: fixed;
    top: 50%;
    right: 6px;
    bottom: auto;
    left: auto;
    display: inline-flex;
    width: auto;
    max-width: none;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    transform: translateY(-50%);
    transition: none;
    z-index: 12;
}

.section-pager-button {
    width: 34.16px;
    height: 45px;
    padding: 0;
    border: 0;
    border-radius: 6px 0 0 6px;
    background: rgba(77, 163, 255, 0.95);
    color: white;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.section-pager-button:hover,
.section-pager-button:focus-visible {
    background: #2f7ae6;
}

nav a {
    flex: 0 0 auto;
    color: #ecf0f1;
    text-decoration: none;
    text-align: left;
    padding: 16px 22px;
    cursor: pointer;
}

nav a:hover {
    background-color: rgb(52, 73, 94);
}

nav a.active {
    background-color: coral;
    color: #fff;
}

iframe {
    flex: 1;
    width: 100%;
    border: none;
}

.shell-page #content .page {
    scroll-margin-top: 112px;
}

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    min-height: 72px;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    border-top: 1px solid coral;
    background-color: #000;
    color: #fff;
    font-size: 14px;
}

.site-footer-image {
    justify-self: center;
    width: auto;
    max-width: 40vw;
    height: 60px;
    object-fit: contain;
}

.site-footer a {
    justify-self: end;
    color: coral;
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: #fff;
    text-decoration: underline;
}

.shell-page #content .page:target {
    animation: section-flow-down 500ms ease-out both;
}

@keyframes section-flow-down {
    from {
        opacity: 0.7;
        transform: translateY(-18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    #page-loader {
        transition: none;
    }

    .page-loader-spinner {
        animation: none;
    }

    .page-loader-spinner::before {
        animation: none;
    }

    .shell-page #content .page:target {
        animation: none;
    }
}

/* Dark themed content pages (about, services, galleries, etc.) */
body.dark-page {
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #111111;
}

body.dark-page h2 {
    text-align: center;
    margin-top: 24px;
}

body.dark-page h3 {
    text-align: center;
    margin-top: 16px;
}

#contact h1 {
    font-size: 1.5em;
    text-align: center;
}

body.dark-page .contact-form {
    display: grid;
    gap: 10px;
    width: min(600px, calc(100% - 32px));
    margin: 24px auto;
}

body.dark-page .contact-form label {
    font-weight: 600;
}

body.dark-page .contact-form input,
body.dark-page .contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid coral;
    border-radius: 4px;
    background: black;
    color: white;
    font: inherit;
}

body.dark-page .contact-form textarea {
    resize: vertical;
}

body.dark-page .contact-form button {
    justify-self: start;
    margin-top: 8px;
    padding: 12px 22px;
    border: 0;
    border-radius: 4px;
    background: coral;
    color: white;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

#contact .contact-form button {
    justify-self: center;
}

body.contact-page .contact-divider {
    width: min(600px, calc(100% - 32px));
    margin: 28px auto 20px;
    border: 0;
    border-top: 1px solid #777;
}

#contact .social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 auto 32px;
}

#contact .social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 999px;
    color: white;
    text-decoration: none;
    font-weight: 600;
}

#contact .social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

#contact .social-link.instagram svg rect,
#contact .social-link.instagram svg circle:not(.instagram-dot) {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

#contact .social-link.facebook {
    background-color: #1877f2;
}

#contact .social-link.instagram {
    background-color: #c13584;
}

#contact .social-link.tiktok {
    background-color: #111;
}

#contact .social-link:focus-visible {
    outline: 2px solid coral;
    outline-offset: 3px;
}

#contact .contact-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: min(900px, calc(100% - 32px));
    margin: 24px auto;
}

#contact .contact-gallery .gallery-item {
    overflow: hidden;
    border-radius: 8px;
    background-color: black;
    color: white;
}

#contact .contact-gallery img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

#contact .contact-gallery .overlay {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 220px;
    padding: 12px;
    background-color: black;
    color: white;
    text-align: center;
    overflow-y: auto;
}

#contact .contact-gallery .overlay h3 {
    margin: 0 0 8px;
    color: coral;
    text-align: center;
}

#contact .contact-gallery .overlay p {
    margin: 0;
}

@media (max-width: 600px) {
    #contact .contact-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    #contact .contact-gallery img {
        height: 67px;
        object-fit: contain;
        background-color: black;
    }

    #contact .contact-gallery .overlay {
        height: 100px;
        padding: 4px;
        font-size: 10px;
    }

    #contact .contact-gallery .overlay h3 {
        margin-bottom: 4px;
        font-size: 10px;
    }
}

/* Home page */
.page.home-page {
    margin: 0;
    min-height: 100vh;
    background-color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#home > .container {
    margin-top: 112px;
}

#home > .home-intro-container {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: min(80%, 760px);
    padding: 8px 10px;
    background-color: transparent;
}

#home > .home-intro-container::before {
    position: absolute;
    z-index: 1;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    content: "";
    pointer-events: none;
}

.home-intro-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.home-feature-video {
    width: min(100%, 420px);
    margin: 18px auto 0;
    display: flex;
    justify-content: center;
}

.home-feature-video video {
    display: block;
    width: min(100%, 220px);
    height: auto;
    border-radius: 14px;
    background: #000;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

#byc-dzieckiem-title {
    text-align: center;
}

#home-title,
.home-intro-content h1,
.home-intro-content h2,
.home-intro-content h3,
.home-intro-content .thunder-emoji {
    color: #fff;
}

.home-photo-container {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    line-height: 0;
}

.home-photo-container img {
    display: block;
    width: min(100%, 760px);
    height: 92%;
    object-fit: cover;
    object-position: center center;
    border-radius: 18px;
    opacity: 0.9;
}

@media (max-width: 600px) {
    #left-pane {
        font-size: 50%;
    }

    .left-pane-social-link {
        font-size: 6.5px;
    }

    .left-pane-overlay h2 {
        font-size: 9px;
    }

    .page.home-page {
        font-size: 50%;
    }

    .page.home-page .thunder-emoji {
        font-size: 20px;
    }

    #home .hashes-container {
        margin-top: 32px;
        padding: 12px 8px;
        font-size: 13px;
    }
}

/* Wesołe Maluchy page */
body.wesole-maluchy-page {
    min-height: 100vh;
    background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url("assets/images/logo-wesole-maluchhy.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.container {
    text-align: center;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 8px 10px;
    border-radius: 8px;
}

.thunder-emoji {
    margin: 8px 0;
    font-size: 40px;
    line-height: 1;
}

.logo-icon {
    height: 100px;
    margin: 16px 0;
}

/* Bio text (about page) reuses .container without the dark overlay look */
body.about-page .container {
    background-color: transparent;
    color: #111111;
}

#about > .container,
#posluchaj > .container {
    width: min(960px, calc(100% - 32px));
    margin: 0 auto;
    padding: 12px 20px;
    background-color: transparent;
    color: #111111;
    text-align: left;
}

@media (max-width: 700px) {
    body.about-page .container p {
        font-size: 10px;
    }
}

.hashes-container {
    width: 80%;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 16px 0;
    margin-top: 120px;
    border: 1px solid coral;
    border-radius: 8px;
    color: coral;
    font-weight: bold;
}

.poland-flag-icon {
    display: block;
    width: 22px;
    height: auto;
    margin: 4px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.hashes {
    font-style: italic;
    margin: 0;
    color: #4da3ff;
    font-weight: bold;
}

.home-intro-content .hashes {
    color: #4da3ff;
}

.coffee-button {
    align-self: center;
    margin-top: 32px;
    padding: 14px 24px;
    background-color: #ff813f;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.coffee-button:hover {
    background-color: rgb(229, 108, 44);
    align-items: center;
}

/* Video + slideshow (about page) */
.video-container {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    width: min(900px, calc(100% - 32px));
    margin: 24px auto;
    padding: 16px;
}

#keep-blue .keep-blue-video,
#in-space .keep-blue-video {
    justify-content: center;
    background-color: black;
    border-radius: 8px;
}

#keep-blue .keep-blue-video video {
    display: block;
    width: min(100%, 480px);
    max-height: 80vh;
    object-fit: contain;
}

#in-space .keep-blue-video video {
    display: block;
    width: min(100%, 480px);
    max-height: 80vh;
    object-fit: contain;
}

#in-space h1 {
    font-size: 1.5em;
    text-align: center;
}

#angel-of-peace h1 {
    font-size: 1.5em;
    text-align: center;
    color: coral;
}

body.angel-video-page h2, body.angel-video-page h3 {
    text-align: center;
    color: black;
}

#angel-of-peace .angel-video {
    justify-content: center;
    background-color: black;
    border-radius: 8px;
}

#angel-of-peace .angel-video video {
    display: block;
    width: min(100%, 720px);
    max-height: 80vh;
    object-fit: contain;
}

body.angel-video-page > .divider {
    width: min(720px, calc(100% - 32px));
    margin: 24px auto;
    border: 0;
    border-top: 1px solid #777;
}

#angel-of-peace .angel-description {
    width: min(720px, calc(100% - 32px));
    margin: 24px auto;
    padding: 24px;
    border-radius: 8px;
    background-color: black;
    color: coral;
    text-align: center;
}

#angel-of-peace .angel-description p {
    margin: 0;
}

#angel-of-peace .angel-description-logo {
    display: block;
    width: min(160px, 100%);
    height: auto;
    margin: 0 auto 16px;
}

body.keep-blue-page > .divider {
    width: min(900px, calc(100% - 32px));
    margin: 24px auto;
    border: 0;
    border-top: 1px solid #777;
}

#keep-blue .keep-blue-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: min(700px, calc(100% - 32px));
    margin: 24px auto;
}

#keep-blue .keep-blue-gallery .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: black;
}

#keep-blue .keep-blue-gallery .gallery-item.matrix-item {
    grid-column: 2;
}

#keep-blue .keep-blue-gallery .gallery-item::after {
    content: none;
}

#keep-blue .keep-blue-gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    cursor: zoom-in;
    opacity: 1;
}

#in-space .keep-blue-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: min(700px, calc(100% - 32px));
    margin: 24px auto;
}

#in-space .keep-blue-gallery .gallery-item {
    overflow: hidden;
    border-radius: 8px;
    background-color: black;
    color: white;
}

#in-space .keep-blue-gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background-color: black;
    cursor: zoom-in;
}

#terminator .terminator-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: min(900px, calc(100% - 32px));
    margin: 24px auto;
}

#terminator .terminator-gallery .gallery-item {
    overflow: hidden;
    border-radius: 8px;
    background-color: black;
}

#terminator .terminator-gallery img {
    display: block;
    width: 100%;
    height: 320px;
    object-fit: contain;
}

#terminator h1 {
    font-size: 1.5em;
    text-align: center;
    color: coral;
}

@media (max-width: 700px) {
    #keep-blue .keep-blue-gallery {
        gap: 8px;
    }

    #in-space .keep-blue-gallery {
        gap: 8px;
    }

    #terminator .terminator-gallery {
        width: min(700px, calc(100% - 32px));
        gap: 8px;
    }

    #terminator .terminator-gallery img {
        height: 160px;
    }
}

.video-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 166px;
    background-color: black;
    border-radius: 8px 0 0 8px;
    overflow: hidden;
    padding: 8px;
}

.video-wrapper video {
    width: clamp(140px, 45%, 350px);
    aspect-ratio: 9 / 16;
    height: auto;
    display: block;
    object-fit: cover;
}

#about .video-wrapper video {
    border: 2px solid coral;
    border-radius: 8px;
}

.video-container .divider {
    width: 50%;
    border: none;
    border-top: 1px solid white;
}

.video-comment {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 16px;
    color: white;
    background-color: black;
    border-radius: 0 8px 8px 0;
    padding: 16px 24px;
    flex: 1;
}

.about-coffee-button {
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    border-radius: 8px;
    background-color: #ff813f;
    color: #fff;
    text-decoration: none;
}

.about-coffee-button:hover,
.about-coffee-button:focus-visible {
    background-color: rgb(229, 108, 44);
}

@media (max-width: 701px) {
    .video-comment {
        font-size: 10px;
    }
}

/* Slideshow (about, services pages) */
.slideshow {
    position: relative;
    width: 50%;
    height: 400px;
    margin: 24px auto 0;
    border-radius: 8px;
    overflow: hidden;
}

.slideshow .slide {
    position: absolute;
    inset: 0;
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease-in-out;
}

.slideshow .slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slideshow .slide img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.slideshow .slide figcaption {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgb(0 0 0 / 50%);
    color: white;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.slideshow .slide figcaption a {
    color: coral;
}

#miricles h1 {
    text-align: center;
}

#angel-of-peace .angel-slideshow,
#miricles .angel-slideshow {
    position: relative;
    width: min(900px, calc(100% - 32px));
    margin: 24px auto 0;
    padding: 16px;
    border-radius: 8px;
    background-color: black;
}

#angel-of-peace .angel-slide-frame,
#miricles .angel-slide-frame {
    position: relative;
}

#angel-of-peace .angel-slide-frame .slideshow,
#miricles .angel-slide-frame .slideshow {
    width: 100%;
    margin: 0;
}

#angel-of-peace .slide-control,
#miricles .slide-control {
    position: absolute;
    z-index: 1;
    top: 50%;
    width: 40px;
    height: 40px;
    transform: translateY(-50%);
    border: 1px solid white;
    border-radius: 50%;
    background: black;
    color: white;
    cursor: pointer;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

#angel-of-peace .slide-control.previous,
#miricles .slide-control.previous {
    left: 12px;
}

#angel-of-peace .slide-control.next,
#miricles .slide-control.next {
    right: 12px;
}

#angel-of-peace .angel-slide-list,
#miricles .angel-slide-list {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 12px auto 0;
    padding: 0;
    list-style: none;
}

#angel-of-peace .angel-slide-list button,
#miricles .angel-slide-list button {
    display: block;
    width: 76px;
    height: 52px;
    padding: 2px;
    border: 2px solid transparent;
    border-radius: 4px;
    background: black;
    cursor: pointer;
}

#angel-of-peace .angel-slide-list button img,
#miricles .angel-slide-list button img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#angel-of-peace .angel-slide-list button.active,
#miricles .angel-slide-list button.active {
    border-color: coral;
}

#angel-of-peace .slide-control:focus-visible,
#angel-of-peace .angel-slide-list button:focus-visible,
#miricles .slide-control:focus-visible,
#miricles .angel-slide-list button:focus-visible {
    outline: 2px solid coral;
    outline-offset: 2px;
}

body.services-page .slideshow {
    height: 200px;
}

/* Gallery (services, MaliPrzyjaciele pages) */
.gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 24px 0;
}

/* Gallery grid, 3 items per row (about page) */
#about .gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    width: min(900px, calc(100% - 32px));
    margin: 0 auto;
}

#about .gallery-item {
    grid-column: span 2;
    border-radius: 8px;
    overflow: hidden;
    color: white; 
    background-color: black;
}

#about .gallery-item:nth-child(4) {
    grid-column: 2 / span 2;
}

#about .gallery-item:nth-child(5) {
    grid-column: 4 / span 2;
}

#about .gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    cursor: zoom-in;
}

#about .gallery-item .overlay {
    display: flex;
    height: 112px;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background-color: black;
    font-size: 14px;
    line-height: 1.35;
    text-align: center;
}

#about .gallery-item .overlay p {
    margin: 0;
}

#about .gallery-item .overlay a {
    color: coral;
}

@media (max-width: 700px) {
    #about .gallery {
        gap: 8px;
    }

    #about .gallery-item .overlay {
        height: 96px;
        padding: 6px 8px;
        font-size: 10px;
    }
}

/* Gallery with image + description merged into one card (services page) */
body.services-page {
    background-color: black;
    color: white;
}

#services .gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: min(900px, calc(100% - 32px));
    margin: 0 auto;
}

#services .gallery-item {
    border-radius: 8px;
    overflow: hidden;
    color: white;
    background-color: black;
}

#services .gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}

#services .gallery-item .overlay {
    text-align: center;
    padding: 16px 24px;
    background-color: black;
    color: white;
}
@media (max-width: 700px) {
    #services .gallery {
        gap: 8px;
    }

    #services .gallery-item .overlay {
        padding: 6px 8px;
        font-size: 10px;
    }
}

/* Gallery with image + description merged into one card (MaliPrzyjaciele page) */
#mali-przyjaciele .gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: min(900px, calc(100% - 32px));
    margin: 0 auto;
}

#mali-przyjaciele .gallery-item {
    border-radius: 8px;
    overflow: hidden;
    color: white; 
    background-color: black;
}

#mali-przyjaciele .gallery-item img {
    width: 100%;
    display: block;
    cursor: zoom-in;
}

#mali-przyjaciele .gallery-item .overlay {
    text-align: center;
    padding: 16px 24px;
    background-color: black;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background-color: rgba(0, 0, 0, 0.85);
    cursor: zoom-out;
    z-index: 100;
}

.image-lightbox[hidden] {
    display: none;
}

.image-lightbox img {
    width: auto;
    height: auto;
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    cursor: default;
}

@media (max-width: 700px) {
    #mali-przyjaciele .gallery {
        gap: 8px;
    }

    #mali-przyjaciele .gallery-item .overlay {
        padding: 6px 8px;
        font-size: 10px;
    }
}

/* Gallery with image + description merged into one card, 2 per row (Wesołe Maluchy page) */
#wesole-maluchy .gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(900px, calc(100% - 32px));
    margin: 0 auto;
}

#wesole-maluchy h1 {
    font-size: 1.5em;
    text-align: center;
}


#wesole-maluchy .gallery-item {
    border-radius: 8px;
    overflow: hidden;
    color: white;
    background-color: black;
}

#wesole-maluchy .gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    cursor: zoom-in;
}

#wesole-maluchy .gallery-item .overlay {
    display: flex;
    height: 128px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 16px;
    background-color: black;
    font-size: 14px;
    line-height: 1.35;
}

#wesole-maluchy .gallery-item .overlay h3,
#wesole-maluchy .gallery-item .overlay p {
    margin: 0;
}

@media (max-width: 700px) {
    #wesole-maluchy .gallery {
        gap: 8px;
    }

    #wesole-maluchy .gallery-item .overlay {
        height: 104px;
        padding: 6px 8px;
        font-size: 10px;
    }
}

#keep-blue h1 {
    font-size: 1.5em;
    text-align: center;
}

body.shell-page h1,
body.shell-page h2,
body.shell-page h3,
body.shell-page h4,
body.shell-page h5,
body.shell-page h6 {
    color: coral;
}

#content > .page > h3 {
    color: #000;
}

html.color-inverted {
    --coral-inverted: rgb(0 128 175);
    --coffee-inverted: rgb(0 126 192);
    --coffee-hover-inverted: rgb(26 147 211);
}

html.color-inverted h1,
html.color-inverted h2,
html.color-inverted h3,
html.color-inverted h4,
html.color-inverted h5,
html.color-inverted h6 {
    color: var(--coral-inverted);
}

html.color-inverted #content > .page > h3 {
    color: white;
}

html.color-inverted .page-loader-spinner {
    border-top-color: var(--coral-inverted);
}

html.color-inverted #color-invert-toggle:hover,
html.color-inverted #color-invert-toggle:focus-visible {
    color: var(--coral-inverted);
}

html.color-inverted #color-invert-toggle:focus-visible,
html.color-inverted .left-pane-social-link:focus-visible,
html.color-inverted #contact .social-link:focus-visible,
html.color-inverted #angel-of-peace .slide-control:focus-visible,
html.color-inverted #angel-of-peace .angel-slide-list button:focus-visible {
    outline-color: var(--coral-inverted);
}

html.color-inverted #support-button,
html.color-inverted #support-button:hover,
html.color-inverted .coffee-button,
html.color-inverted .about-coffee-button {
    background-color: var(--coffee-inverted);
}

html.color-inverted #support-button:hover,
html.color-inverted .coffee-button:hover,
html.color-inverted .about-coffee-button:hover,
html.color-inverted .about-coffee-button:focus-visible {
    background-color: var(--coffee-hover-inverted);
}

html.color-inverted .left-pane-contact-form input,
html.color-inverted .left-pane-contact-form textarea,
html.color-inverted body.dark-page .contact-form input,
html.color-inverted body.dark-page .contact-form textarea,
html.color-inverted #about .video-wrapper video,
html.color-inverted .hashes-container {
    border-color: var(--coral-inverted);
}

html.color-inverted #left-pane {
    border-top-color: var(--coral-inverted);
}

html.color-inverted #quote-pane {
    border-top-color: var(--coral-inverted);
    color: var(--coral-inverted);
}

html.color-inverted #quote-pane .quote-divider {
    border-top-color: var(--coral-inverted);
}

html.color-inverted .left-pane-contact-form button,
html.color-inverted #left-pane-toggle,
html.color-inverted #quote-pane-toggle,
html.color-inverted nav a.active,
html.color-inverted body.dark-page .contact-form button {
    background-color: var(--coral-inverted);
}

html.color-inverted .left-pane-overlay {
    background-color: black;
    color: white;
}

html.color-inverted #quote-pane-toggle:hover,
html.color-inverted #quote-pane-toggle:focus-visible {
    background-color: var(--coffee-hover-inverted);
}

html.color-inverted .site-footer {
    border-top-color: var(--coral-inverted);
}

html.color-inverted .site-footer a,
html.color-inverted #contact .contact-gallery .overlay h3,
html.color-inverted .hashes-container,
html.color-inverted #angel-of-peace .angel-description,
html.color-inverted .slideshow .slide figcaption a,
html.color-inverted #about .gallery-item .overlay a {
    color: var(--coral-inverted);
}

html.color-inverted #angel-of-peace .angel-slide-list button.active {
    border-color: var(--coral-inverted);
}
