/* Illustrated slides and their detail views. */
.door-study { width: 100%; margin: 0; }
.study-label, .study-controls { display: flex; align-items: center; }
.study-intro small, .study-label small { font: 650 10px/1.5 'Segoe UI',sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.study-intro small { color: var(--wp--custom--marmur--etykieta); }
.study-intro small::before { content: ''; display: inline-block; vertical-align: middle; width: 25px; border-top: 1px solid var(--wp--custom--marmur--mosiadz); margin-right: 10px; }
.study-intro .study-title { font: 400 clamp(34px,3.4vw,64px)/1.08 Bask,Georgia,serif; letter-spacing: -.054em; margin: 6px 0 4px; color: var(--wp--preset--color--zielen); }
.study-intro em { color: inherit; }
.study-grid { display: grid; grid-template-columns: minmax(0,2.15fr) minmax(260px,1fr); align-items: center; }
.study-scene { position: relative; touch-action: pan-y; }
.study-artwork { position: relative; }
.study-artwork > img { display: block; width: 100%; height: auto; }
@media (min-width: 1024px) {
    .study-scene { align-self: stretch; overflow: hidden; }
    .study-scene::before { content: ''; display: block; aspect-ratio: 3 / 2; }
    /* Keep the photograph and its detail points on the same 3:2 canvas. */
    .study-artwork { position: absolute; top: 0; left: 50%; height: 100%; aspect-ratio: 3 / 2; transform: translateX(-50%); }
}
.study-spot { position: absolute; transform: translate(-50%,-50%); width: 44px; height: 44px; display: grid; place-items: center; border: 0; padding: 0; background: transparent; cursor: pointer; }
.study-spot:nth-of-type(1) { left: 25.1%; top: 19.5%; }
.study-spot:nth-of-type(2) { left: 60%; top: 55.4%; }
.study-spot:nth-of-type(3) { left: 90%; top: 24%; }
.study-confessionals .study-spot:nth-of-type(1) { left: 30%; top: 24%; }
.study-confessionals .study-spot:nth-of-type(2) { left: 27.5%; top: 55.5%; }
.study-confessionals .study-spot:nth-of-type(3) { left: 71.8%; top: 49%; }
.study-exterior .study-spot:nth-of-type(1) { left: 33%; top: 22%; }
.study-exterior .study-spot:nth-of-type(2) { left: 73%; top: 57%; }
.study-interior .study-spot:nth-of-type(1) { left: 73%; top: 35%; }
.study-interior .study-spot:nth-of-type(2) { left: 31%; top: 44%; }
.study-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; grid-column: 2; }
.study-gallery-link { color: inherit; font-size: 14px; text-underline-offset: 4px; }
@media (min-width: 1024px) {
    :is(.study-exterior,.study-interior) .study-scene { align-self: center; }
    :is(.study-exterior,.study-interior) .study-scene::before { display: none; }
    :is(.study-exterior,.study-interior) .study-artwork { position: relative; left: auto; width: 100%; height: auto; transform: none; }
    :is(.study-exterior,.study-interior) .study-panel { gap: 13px; padding-block: 18px; }
    :is(.study-exterior,.study-interior) .study-macro { width: min(100%,310px); }
    .study-confessionals .study-scene { container-type: size; background: var(--wp--preset--color--krem); }
    /* The upper six rows of the source image are a pale border. Fit the photo below them. */
    .study-confessionals .study-artwork { width: max(100cqw, calc(100cqh * 1234 / 623)); height: auto; aspect-ratio: 1234 / 629; top: auto; bottom: 0; transform: translateX(-50%); }
    .study-confessionals .study-panel { gap: 12px; padding-block: 20px; }
    .study-confessionals .study-macro { width: min(100%, 310px); }
}
@media (min-width: 1024px) and (max-width: 1599px) {
    .study-confessionals .study-panel { gap: 8px; padding-block: 12px; }
    .study-confessionals .study-macro { width: clamp(158px,16vw,255px); }
    .study-confessionals .study-description { max-width: none; margin: 0; }
    .study-confessionals .study-detail-name { font-size: clamp(28px,2.8vw,44px); }
}
@media (min-width: 1024px) and (max-width: 1350px) {
    .study-confessionals .study-panel { gap: 6px; padding-block: 8px; }
    .study-confessionals .study-macro { width: 14vw; }
    .study-confessionals .study-label { padding-bottom: 6px; }
}
.study-spot span { display: grid; place-items: center; width: 28px; height: 28px; border: 1.5px solid var(--wp--custom--marmur--tlo); border-radius: 50%; background: var(--wp--custom--marmur--punkt); color: var(--wp--preset--color--krem); font: 20px/1 Arial; box-shadow: 0 1px 6px color-mix(in srgb, var(--wp--preset--color--atrament) 53%, transparent); }
.study-spot[aria-pressed=true] span { background: var(--wp--custom--marmur--tlo); color: var(--wp--preset--color--zielen); outline: 1px solid var(--wp--custom--marmur--obrys); outline-offset: 4px; }
.study-panel { display: flex; flex-direction: column; justify-content: center; gap: 15px; padding: clamp(18px,2.3vw,36px); color: var(--wp--preset--color--zielen); }
.study-label { justify-content: space-between; color: var(--wp--custom--marmur--etykieta); border-bottom: 1px solid var(--wp--custom--marmur--linia); padding-bottom: 10px; }
.study-count { font-size: 12px; letter-spacing: .13em; }
.study-macro { display: block; width: min(100%,360px); aspect-ratio: 3/2; }
.study-panel .study-detail-name { font: 400 clamp(32px,3.4vw,50px)/1.03 Bask,Georgia,serif; letter-spacing: -.045em; margin: 0; }
.study-description { color: var(--wp--custom--marmur--tekst); font-size: 17px; line-height: 1.45; max-width: 34ch; }
.study-description:empty { display: none; }
.study-controls { gap: 8px; }
.study-controls button { border: 1px solid var(--wp--custom--marmur--mosiadz); background: transparent; color: var(--wp--custom--marmur--strzalka); width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 21px; }
.study-controls button:hover { background: var(--wp--preset--color--kamien); }
@media (max-width: 1250px) {
    .study-grid { grid-template-columns: minmax(0,1.85fr) minmax(245px,1fr); }
    .study-panel { padding: 16px; gap: 10px; }
    .study-description { font-size: 15px; }
}
@media (width < 1024px) {
    .study-confessionals .study-scene { overflow: hidden; }
    .study-confessionals .study-artwork { margin-top: calc(-100% * 6 / 1234); }
    .study-intro { grid-column: 1/-1; }
    .study-intro .study-title { font-size: clamp(33px,8.9vw,58px); }
    .study-grid { display: block; }
    .study-panel { display: grid; grid-template-columns: minmax(95px,.78fr) minmax(0,1.22fr); gap: 10px 13px; padding: 13px 14px; align-items: start; }
    .study-label { grid-column: 1/-1; padding-bottom: 6px; }
    .study-macro { grid-column: 1; grid-row: 3/6; aspect-ratio: 1; }
    .study-panel .study-detail-name, .study-description, .study-controls { grid-column: 2; }
    .study-panel .study-detail-name { font-size: clamp(25px,6.5vw,36px); }
    .study-description { font-size: 14px; line-height: 1.32; }
    .study-spot span { width: 21px; height: 21px; font-size: 16px; }
    .study-spot[aria-pressed=true] span { outline-offset: 2px; }
}

