.koleda-portfolio-grid--projects .koleda-project-cover{position:relative;display:block;width:min(100%,calc(70svh * var(--koleda-cover-ratio,1.5)));max-width:100%;line-height:0;color:#fff;text-decoration:none;isolation:isolate}.koleda-portfolio-grid--projects .koleda-project-cover>.koleda-portfolio-image{display:block;width:100%;height:auto;max-height:none;object-fit:contain}.koleda-project-overlay{position:absolute;inset:0;display:flex;align-items:flex-end;justify-content:center;padding:clamp(14px,2.5vw,30px);background:linear-gradient(180deg,transparent 35%,rgba(0,0,0,.78));color:#fff;pointer-events:none;opacity:1;transition:opacity .2s ease,background-color .2s ease}.koleda-project-caption{width:100%;max-height:100%;padding:12px 0;text-align:center;line-height:1.4;border:1px solid transparent;transition:transform .2s ease,border-color .2s ease}.koleda-project-caption :is(h2,.koleda-home-photo-caption){margin:0;color:inherit;font:600 clamp(13px,1.3vw,24px)/1.5 Arial,Helvetica,sans-serif;letter-spacing:.13em;text-transform:uppercase;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.koleda-project-caption::after{content:"";display:block;width:30px;height:1px;margin:14px auto 0;background:#d3bd8b}.koleda-project-cover-year{display:block;margin-top:8px;color:#fff;font:11px/1.4 Arial,sans-serif;letter-spacing:.12em}.koleda-project-cover:focus-visible{outline:2px solid #d3bd8b;outline-offset:5px}.koleda-project-cover--empty{min-height:230px;background:#24261f}.koleda-project-cover--empty .koleda-project-overlay{opacity:1!important}
@media(hover:hover) and (pointer:fine){.koleda-project-overlay{opacity:0;align-items:center;background:rgba(0,0,0,.5)}.koleda-project-caption{width:80%;padding:clamp(20px,3vw,50px) 12px;border-color:rgba(255,255,255,.8);transform:translateY(8px)}.koleda-project-cover:is(:hover,:focus-visible) .koleda-project-overlay{opacity:1}.koleda-project-cover:is(:hover,:focus-visible) .koleda-project-caption{transform:translateY(0)}}
@media(any-pointer:coarse){.koleda-project-overlay{opacity:1;align-items:flex-end;background:linear-gradient(180deg,transparent 35%,rgba(0,0,0,.78))}.koleda-project-caption{width:100%;padding:12px 0;border-color:transparent;transform:none}}
@media(prefers-reduced-motion:reduce){.koleda-project-overlay,.koleda-project-caption{transition:none;transform:none}}

/* Centre viewport-limited whole-frame covers in their grid tracks. */
.koleda-portfolio-grid--projects .koleda-project-cover{margin-inline:auto}

/* Galeria A shares the archive rhythm and keeps the Project title with its authored intro. */
.koleda-navigation .koleda-project-index {
    width: min(94vw, 2400px);
    padding-block: 0 clamp(48px, 6vw, 96px);
}

.koleda-project-index > .koleda-portfolio-heading {
    margin: clamp(24px, 4vw, 64px) 0 clamp(24px, 3vw, 48px);
}

.koleda-navigation .koleda-project-index > .koleda-portfolio-heading h1 {
    font-family: var(--koleda-body);
    font-size: clamp(42px, 6vw, 104px);
    line-height: 1.05;
    letter-spacing: -.06em;
    margin: 0;
}

.koleda-project-index .koleda-portfolio-grid--projects {
    gap: clamp(28px, 4vw, 64px) clamp(20px, 3vw, 56px);
}

.koleda-project-page .koleda-project-heading {
    width: min(94vw, 2400px);
    padding-top: 0;
}

.koleda-project-page .koleda-project-heading .koleda-portfolio-heading {
    margin: clamp(22px, 3vw, 50px) 0 clamp(18px, 2.5vw, 36px);
}

.koleda-navigation .koleda-project-page .koleda-portfolio-heading h1 {
    font-family: var(--koleda-body);
    font-size: clamp(36px, 4.5vw, 72px);
    line-height: 1.08;
    letter-spacing: -.055em;
    margin: 0;
}

.koleda-project-heading :is(.koleda-subtitle, .koleda-project-intro) {
    color: var(--koleda-muted);
    max-width: 62ch;
    margin: 16px 0 0;
    overflow-wrap: anywhere;
}

.koleda-project-heading .koleda-project-intro p {
    margin: 0 0 .75em;
}

.koleda-project-heading .koleda-project-intro p:last-child {
    margin-bottom: 0;
}

.koleda-project-return a {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    min-height: 44px;
}

@media (max-height: 480px) {
    .koleda-project-page .koleda-project-heading .koleda-portfolio-heading {
        margin-block: 14px 16px;
    }

    .koleda-navigation .koleda-project-page .koleda-portfolio-heading h1 {
        font-size: clamp(30px, 4.5vw, 44px);
    }
}

/* Align native Project prose with the title while Mosaic keeps its own canvas. */
.koleda-project-page .koleda-project-content > :is(p, h2, h3, ul, ol, blockquote, .post-password-form) {
    width: min(94vw, 62ch);
    margin-inline: max(0px, calc((100% - min(94vw, 2400px)) / 2)) 0;
    overflow-wrap: anywhere;
}

/* On the homepage comparison the Mosaic determines each photograph's frame. */
.koleda-mosaic__item > .koleda-project-cover { position: relative; isolation: isolate; }
.koleda-mosaic__item .koleda-project-caption .koleda-home-photo-caption { -webkit-line-clamp: 3; }
.koleda-home-hover-only { opacity: 0; background: rgba(0, 0, 0, .5); }
