/*
 * rollovercollection5 - MOTION
 * Nine layouts, CSS only (no JavaScript).
 * Layout numbers (tt_content.layout): 2850 Arch, 2851 Accordion, 2852 Frosted glass, 2853 3D tilt,
 * 2854 Glowing border, 2855 Bento grid, 2856 Black and white to colour, 2857 Full screen view, 2858 Curtain.
 * Colours, radius and gap come from the site settings (inline variables on .rc5).
 * Every layout is scoped to .rc5 and driven by the variables below.
 */
@property --rc5-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --rc5-gx { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
@property --rc5-gy { syntax: '<percentage>'; inherits: true; initial-value: 50%; }

.rc5 {
    --rc5-accent: #3d5afe;
    --rc5-ink: #12141a;
    --rc5-muted: #5d6472;
    --rc5-surface: #ffffff;
    --rc5-line: #e2e5eb;
    --rc5-glow-colors: #22d3ee, #a855f7, #f43f5e;
    --rc5-radius: 18px;
    --rc5-gap: 24px;
    --rc5-ease: cubic-bezier(.2, .7, .2, 1);
    --cols: 3;
    display: grid;
    grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
    gap: var(--rc5-gap);
    margin-bottom: var(--rc5-gap);
}
.rc5-cols-1 { --cols: 1; }
.rc5-cols-2 { --cols: 2; }
.rc5-cols-3 { --cols: 3; }
.rc5-cols-4 { --cols: 4; }
.rc5-cols-5 { --cols: 5; }
.rc5-cols-6 { --cols: 6; }
@media (max-width: 991px) { .rc5-cols-3, .rc5-cols-4, .rc5-cols-5, .rc5-cols-6 { --cols: 2; } }
@media (max-width: 575px) { .rc5 { --cols: 1; } }

.rc5-item { position: relative; margin: 0; min-width: 0; border-radius: var(--rc5-radius); isolation: isolate; color: var(--rc5-ink); }
.rc5-media { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; }
.rc5-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rc5 .rc5-title { display: block; margin: 0 0 .35rem; color: inherit; font-family: inherit; font-size: 1.25rem; font-weight: 700; line-height: 1.2; letter-spacing: normal; text-transform: none; }
.rc5-text { margin: 0 0 1rem; font-size: .95rem; line-height: 1.5; }
.rc5-text > :last-child { margin-bottom: 0; }
.rc5-more {
    position: relative; z-index: 3;
    display: inline-flex; align-items: center; gap: .5em;
    padding: .6em 1.15em; border-radius: 999px;
    background: var(--rc5-accent); color: #fff; text-decoration: none;
    font-size: .9rem; font-weight: 600; line-height: 1.2;
    transition: gap .3s var(--rc5-ease), filter .3s;
}
.rc5-more::after { content: "→"; }
.rc5-more:hover, .rc5-more:focus { gap: .8em; filter: brightness(1.1); color: #fff; text-decoration: none; }
.rc5-more:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px var(--rc5-accent); }
/* caption over the image */
.rc5-overlay {
    position: absolute; inset: auto 0 0 0; z-index: 2;
    padding: 1.25rem 1.35rem; color: #fff;
    background: linear-gradient(to top, rgba(8, 10, 16, .78), rgba(8, 10, 16, .35) 60%, transparent);
}
.rc5-overlay .rc5-text { color: rgba(255, 255, 255, .9); }
/* height that opens from 0 (grid rows trick) */
.rc5-extra { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--rc5-ease); }
.rc5-extra > div { overflow: hidden; opacity: 0; transition: opacity .4s ease .1s; }
.rc5-extra > div > :first-child { margin-top: .25rem; }

/* ================================================================ 2850 Arch */
.rc5-arch .rc5-item { color: var(--rc5-ink); }
.rc5-arch .rc5-media {
    aspect-ratio: 4 / 5;
    clip-path: inset(0 round 999px 999px var(--rc5-radius) var(--rc5-radius));
    transition: clip-path .8s var(--rc5-ease);
}
.rc5-arch .rc5-media img { transform: scale(1.12); transition: transform 1.1s var(--rc5-ease); }
.rc5-arch .rc5-badge {
    position: absolute; top: 14px; right: 14px; z-index: 2;
    display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
    background: var(--rc5-accent); color: #fff; font-size: 1.35rem; line-height: 1;
    transform: scale(0) rotate(-45deg); transition: transform .5s var(--rc5-ease) .1s;
}
.rc5-arch .rc5-caption { padding: 1.1rem .15rem 0; text-align: center; }
.rc5-arch .rc5-title { transition: color .3s ease; }
.rc5-arch .rc5-text { color: var(--rc5-muted); }
.rc5-arch .rc5-item:is(:hover, :focus-within) .rc5-media { clip-path: inset(0 round var(--rc5-radius)); }
.rc5-arch .rc5-item:is(:hover, :focus-within) .rc5-media img { transform: scale(1); }
.rc5-arch .rc5-item:is(:hover, :focus-within) .rc5-badge { transform: none; }
.rc5-arch .rc5-item:is(:hover, :focus-within) .rc5-title { color: var(--rc5-accent); }

/* ================================================================ 2858 Curtain */
.rc5-curtain .rc5-item { overflow: hidden; background: var(--rc5-accent); }
.rc5-curtain .rc5-media { aspect-ratio: 4 / 5; z-index: 2; pointer-events: none; }
.rc5-curtain .rc5-half { position: absolute; inset: 0; transition: transform .8s var(--rc5-ease); }
.rc5-curtain .rc5-half img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rc5-curtain .rc5-half:nth-child(1) { clip-path: inset(0 50% 0 0); }
.rc5-curtain .rc5-half:nth-child(2) { clip-path: inset(0 0 0 50%); }
.rc5-curtain .rc5-label {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 1.1rem 1.25rem;
    color: #fff; font-weight: 700; font-size: 1.2rem;
    background: linear-gradient(transparent, rgba(8, 10, 16, .7));
    transition: opacity .3s ease;
}
.rc5-curtain .rc5-panel {
    position: absolute; inset: 0; z-index: 1;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 2rem 1.75rem; color: #fff;
}
.rc5-curtain .rc5-panel .rc5-title { font-size: 1.6rem; }
.rc5-curtain .rc5-panel .rc5-text { color: rgba(255, 255, 255, .9); }
.rc5-curtain .rc5-panel .rc5-more, .rc5-curtain .rc5-panel .rc5-more:hover, .rc5-curtain .rc5-panel .rc5-more:focus { background: #fff; color: var(--rc5-accent); }
.rc5-curtain .rc5-panel > * { opacity: 0; transform: translateY(16px); transition: opacity .4s ease, transform .5s var(--rc5-ease); }
.rc5-curtain .rc5-item:is(:hover, :focus-within) .rc5-half:nth-child(1) { transform: translateX(-101%) rotate(-4deg); }
.rc5-curtain .rc5-item:is(:hover, :focus-within) .rc5-half:nth-child(2) { transform: translateX(101%) rotate(4deg); }
.rc5-curtain .rc5-item:is(:hover, :focus-within) .rc5-label { opacity: 0; }
.rc5-curtain .rc5-item:is(:hover, :focus-within) .rc5-panel > * { opacity: 1; transform: none; transition-delay: .3s; }
.rc5-curtain .rc5-item:is(:hover, :focus-within) .rc5-panel > :nth-child(2) { transition-delay: .38s; }
.rc5-curtain .rc5-item:is(:hover, :focus-within) .rc5-panel > :nth-child(3) { transition-delay: .46s; }
@media (hover: none) {
    .rc5-curtain .rc5-label { display: none; }
    .rc5-curtain .rc5-panel { position: static; padding: 1.25rem; }
    .rc5-curtain .rc5-panel > * { opacity: 1; transform: none; }
}

/* ================================================================ 2851 Accordion */
.rc5-accordion { display: flex; gap: 12px; height: clamp(380px, 46vw, 540px); }
.rc5-accordion .rc5-item { flex: 1 1 0; overflow: hidden; transition: flex-grow .75s var(--rc5-ease); }
.rc5-accordion .rc5-media { position: absolute; inset: 0; aspect-ratio: auto; }
.rc5-accordion .rc5-media img { transition: transform 1.2s var(--rc5-ease); transform: scale(1.12); }
.rc5-accordion .rc5-tab {
    position: absolute; z-index: 2; left: 50%; bottom: 1.25rem;
    writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg);
    color: #fff; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
    transition: opacity .35s ease;
}
.rc5-accordion .rc5-item::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to top, rgba(8, 10, 16, .55), transparent 50%);
}
.rc5-accordion .rc5-overlay > * { opacity: 0; transform: translateY(18px); transition: opacity .4s ease, transform .5s var(--rc5-ease); }
.rc5-accordion .rc5-overlay { min-width: 320px; background: none; padding: 1.75rem; }
.rc5-accordion .rc5-item:is(:hover, :focus-within),
.rc5-accordion:not(:hover):not(:focus-within) .rc5-item:first-child { flex-grow: 5; }
.rc5-accordion .rc5-item:is(:hover, :focus-within) .rc5-media img,
.rc5-accordion:not(:hover):not(:focus-within) .rc5-item:first-child .rc5-media img { transform: scale(1); }
.rc5-accordion .rc5-item:is(:hover, :focus-within) .rc5-tab,
.rc5-accordion:not(:hover):not(:focus-within) .rc5-item:first-child .rc5-tab { opacity: 0; }
.rc5-accordion .rc5-item:is(:hover, :focus-within) .rc5-overlay > *,
.rc5-accordion:not(:hover):not(:focus-within) .rc5-item:first-child .rc5-overlay > * { opacity: 1; transform: none; transition-delay: .3s; }
.rc5-accordion .rc5-item:is(:hover, :focus-within) .rc5-overlay > :nth-child(2) { transition-delay: .38s; }
.rc5-accordion .rc5-item:is(:hover, :focus-within) .rc5-overlay > :nth-child(3) { transition-delay: .46s; }
@media (max-width: 767px), (hover: none) {
    .rc5-accordion { flex-direction: column; height: auto; }
    .rc5-accordion .rc5-item { flex: none; height: 260px; }
    .rc5-accordion .rc5-tab { display: none; }
    .rc5-accordion .rc5-overlay { min-width: 0; padding: 1.25rem; }
    .rc5-accordion .rc5-overlay > * { opacity: 1; transform: none; }
    .rc5-accordion .rc5-media img { transform: none; }
}

/* ================================================================ 2852 Frosted glass */
.rc5-glass .rc5-item { overflow: hidden; }
.rc5-glass .rc5-media { aspect-ratio: 4 / 5; }
.rc5-glass .rc5-media img { transition: transform 1.1s var(--rc5-ease); }
.rc5-glass .rc5-media::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .35)); }
.rc5-glass .rc5-caption {
    position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
    padding: 1rem 1.15rem; border-radius: calc(var(--rc5-radius) - 6px);
    color: #fff; background: rgba(255, 255, 255, .14);
    -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6);
    border: 1px solid rgba(255, 255, 255, .35);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .35);
    text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.rc5-glass .rc5-title { margin: 0; }
.rc5-glass .rc5-text { color: rgba(255, 255, 255, .92); margin-top: .5rem; }
.rc5-glass .rc5-more, .rc5-glass .rc5-more:hover, .rc5-glass .rc5-more:focus { background: #fff; color: var(--rc5-ink); text-shadow: none; }
.rc5-glass .rc5-item:is(:hover, :focus-within) .rc5-media img { transform: scale(1.07); }
.rc5-glass .rc5-item:is(:hover, :focus-within) .rc5-extra,
.rc5-bento .rc5-item:is(:hover, :focus-within) .rc5-extra { grid-template-rows: 1fr; }
.rc5-glass .rc5-item:is(:hover, :focus-within) .rc5-extra > div,
.rc5-bento .rc5-item:is(:hover, :focus-within) .rc5-extra > div { opacity: 1; }
@media (hover: none) {
    .rc5-glass .rc5-extra { grid-template-rows: 1fr; }
    .rc5-glass .rc5-extra > div { opacity: 1; }
}

/* ================================================================ 2853 3D tilt (CSS only: nine invisible zones) */
.rc5-tilt .rc5-item { perspective: 900px; }
.rc5-tilt .rc5-card {
    position: relative; overflow: hidden; border-radius: var(--rc5-radius);
    transform: rotateX(var(--rc5-rx, 0deg)) rotateY(var(--rc5-ry, 0deg));
    transition: transform .5s var(--rc5-ease), box-shadow .5s var(--rc5-ease), --rc5-gx .45s ease, --rc5-gy .45s ease;
    box-shadow: 0 6px 18px rgba(16, 24, 40, .10);
}
.rc5-tilt .rc5-media { aspect-ratio: 4 / 5; }
.rc5-tilt .rc5-glare {
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: radial-gradient(circle at var(--rc5-gx) var(--rc5-gy), rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 50%);
    mix-blend-mode: overlay; opacity: 0; transition: opacity .4s ease;
}
.rc5-tilt .rc5-zones { position: absolute; inset: 0; z-index: 2; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); }
.rc5-tilt .rc5-overlay { z-index: auto; }
.rc5-tilt .rc5-item:is(:hover, :focus-within) .rc5-card { box-shadow: 0 24px 50px rgba(16, 24, 40, .25); }
.rc5-tilt .rc5-item:is(:hover, :focus-within) .rc5-glare { opacity: 1; }
.rc5-tilt .rc5-card:has(.rc5-zones > :nth-child(1):hover) { --rc5-rx: 8deg;  --rc5-ry: -8deg; --rc5-gx: 15%; --rc5-gy: 15%; }
.rc5-tilt .rc5-card:has(.rc5-zones > :nth-child(2):hover) { --rc5-rx: 8deg;  --rc5-ry: 0deg;  --rc5-gx: 50%; --rc5-gy: 12%; }
.rc5-tilt .rc5-card:has(.rc5-zones > :nth-child(3):hover) { --rc5-rx: 8deg;  --rc5-ry: 8deg;  --rc5-gx: 85%; --rc5-gy: 15%; }
.rc5-tilt .rc5-card:has(.rc5-zones > :nth-child(4):hover) { --rc5-rx: 0deg;  --rc5-ry: -8deg; --rc5-gx: 12%; --rc5-gy: 50%; }
.rc5-tilt .rc5-card:has(.rc5-zones > :nth-child(5):hover) { --rc5-rx: 0deg;  --rc5-ry: 0deg;  --rc5-gx: 50%; --rc5-gy: 50%; }
.rc5-tilt .rc5-card:has(.rc5-zones > :nth-child(6):hover) { --rc5-rx: 0deg;  --rc5-ry: 8deg;  --rc5-gx: 88%; --rc5-gy: 50%; }
.rc5-tilt .rc5-card:has(.rc5-zones > :nth-child(7):hover) { --rc5-rx: -8deg; --rc5-ry: -8deg; --rc5-gx: 15%; --rc5-gy: 85%; }
.rc5-tilt .rc5-card:has(.rc5-zones > :nth-child(8):hover) { --rc5-rx: -8deg; --rc5-ry: 0deg;  --rc5-gx: 50%; --rc5-gy: 88%; }
.rc5-tilt .rc5-card:has(.rc5-zones > :nth-child(9):hover) { --rc5-rx: -8deg; --rc5-ry: 8deg;  --rc5-gx: 85%; --rc5-gy: 85%; }

/* ================================================================ 2854 Glowing border */
.rc5-glow .rc5-item { padding: 2px; background: var(--rc5-line); border-radius: var(--rc5-radius); }
.rc5-glow .rc5-item::before,
.rc5-glow .rc5-item::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    background: conic-gradient(from var(--rc5-angle), var(--rc5-accent), var(--rc5-glow-colors), var(--rc5-accent));
    opacity: 0; transition: opacity .5s ease;
    animation: rc5-spin 3.5s linear infinite paused;
}
.rc5-glow .rc5-item::after { z-index: -1; inset: 8px; filter: blur(22px); }
.rc5-glow .rc5-inner { position: relative; z-index: 1; height: 100%; overflow: hidden; border-radius: calc(var(--rc5-radius) - 2px); background: var(--rc5-surface); }
.rc5-glow .rc5-media { aspect-ratio: 16 / 10; }
.rc5-glow .rc5-media img { transition: transform .9s var(--rc5-ease); }
.rc5-glow .rc5-caption { padding: 1.25rem 1.35rem 1.4rem; }
.rc5-glow .rc5-text { color: var(--rc5-muted); }
.rc5-glow .rc5-item:is(:hover, :focus-within)::before { opacity: 1; animation-play-state: running; }
.rc5-glow .rc5-item:is(:hover, :focus-within)::after { opacity: .7; animation-play-state: running; }
.rc5-glow .rc5-item:is(:hover, :focus-within) .rc5-media img { transform: scale(1.05); }
@keyframes rc5-spin { to { --rc5-angle: 360deg; } }

/* ================================================================ 2855 Bento grid */
.rc5-bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 16vw, 210px); grid-auto-flow: dense; }
.rc5-bento .rc5-item { overflow: hidden; transition: opacity .45s ease, filter .45s ease, scale .45s var(--rc5-ease); }
.rc5-bento .rc5-item:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; }
.rc5-bento .rc5-item:nth-child(6n+4),
.rc5-bento .rc5-item:nth-child(6n+5),
.rc5-bento .rc5-item:nth-child(6n+6) { grid-column: span 2; }
.rc5-bento .rc5-media { position: absolute; inset: 0; aspect-ratio: auto; }
.rc5-bento .rc5-media img { transition: transform 1s var(--rc5-ease); }
.rc5-bento .rc5-item:nth-child(6n+1) .rc5-title { font-size: 1.6rem; }
.rc5-bento:has(.rc5-item:is(:hover, :focus-within)) .rc5-item:not(:hover):not(:focus-within) { opacity: .5; filter: saturate(.35); scale: .98; }
.rc5-bento .rc5-item:is(:hover, :focus-within) .rc5-media img { transform: scale(1.06); }
@media (max-width: 767px) {
    .rc5-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; }
    .rc5-bento .rc5-item:nth-child(6n+4),
    .rc5-bento .rc5-item:nth-child(6n+5),
    .rc5-bento .rc5-item:nth-child(6n+6) { grid-column: span 1; }
    .rc5-bento .rc5-item:nth-child(6n+1) .rc5-title { font-size: 1.3rem; }
    .rc5-bento .rc5-overlay { padding: .9rem; }
    .rc5-bento .rc5-title { font-size: 1.05rem; }
}

/* ================================================================ 2856 Black and white to colour */
.rc5-mono .rc5-item { overflow: hidden; }
.rc5-mono .rc5-media { aspect-ratio: 4 / 5; }
.rc5-mono .rc5-media img { filter: grayscale(1) contrast(1.08); transition: filter 1.2s ease, transform 7s cubic-bezier(.15, .6, .2, 1); }
.rc5-mono .rc5-media::after { content: ""; position: absolute; inset: 0; background: var(--rc5-accent); mix-blend-mode: color; opacity: .45; transition: opacity 1.2s ease; }
.rc5-mono .rc5-overlay { padding: 1.5rem; }
.rc5-mono .rc5-line { display: block; overflow: hidden; }
.rc5-mono .rc5-line > * { display: block; transform: translateY(105%); transition: transform .7s var(--rc5-ease); }
.rc5-mono .rc5-line > .rc5-more { display: inline-flex; }
.rc5-mono .rc5-line .rc5-title, .rc5-mono .rc5-line .rc5-text { margin: 0; }
.rc5-mono .rc5-line + .rc5-line { margin-top: .1rem; }
.rc5-mono .rc5-line:last-child { padding: 4px; margin: -4px; }
.rc5-mono .rc5-overlay { opacity: 0; transition: opacity .5s ease; }
.rc5-mono .rc5-item:is(:hover, :focus-within) .rc5-overlay { opacity: 1; }
.rc5-mono .rc5-item:is(:hover, :focus-within) .rc5-media img { filter: none; transform: scale(1.12); }
.rc5-mono .rc5-item:is(:hover, :focus-within) .rc5-media::after { opacity: 0; }
.rc5-mono .rc5-item:is(:hover, :focus-within) .rc5-line > * { transform: none; }
.rc5-mono .rc5-item:is(:hover, :focus-within) .rc5-line:nth-child(2) > * { transition-delay: .1s; }
.rc5-mono .rc5-item:is(:hover, :focus-within) .rc5-line:nth-child(3) > * { transition-delay: .2s; }
@media (hover: none) {
    .rc5-mono .rc5-overlay { opacity: 1; }
    .rc5-mono .rc5-line > * { transform: none; }
    .rc5-mono .rc5-media img { filter: none; }
    .rc5-mono .rc5-media::after { opacity: 0; }
}

/* ================================================================ 2857 Full screen view (Popover API, no JavaScript) */
.rc5-open {
    display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none;
    color: inherit; font: inherit; text-align: left; cursor: zoom-in; border-radius: var(--rc5-radius);
}
.rc5-open .rc5-media { border-radius: var(--rc5-radius); }
.rc5-open .rc5-media img { transition: transform .8s var(--rc5-ease); }
.rc5-open .rc5-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .9rem .15rem 0; }
.rc5-open .rc5-title { margin: 0; }
.rc5-hint { color: var(--rc5-accent); font-size: .9rem; font-weight: 600; white-space: nowrap; transition: transform .3s var(--rc5-ease); }
.rc5-open:hover .rc5-media img, .rc5-open:focus-visible .rc5-media img { transform: scale(1.05); }
.rc5-open:hover .rc5-hint { transform: translateX(4px); }
.rc5-open:focus-visible { outline: 3px solid var(--rc5-accent); outline-offset: 4px; }

.rc5-pop {
    width: min(1000px, 92vw); max-height: 90vh; margin: auto; padding: 0; border: 0; overflow: auto;
    border-radius: 24px; background: var(--rc5-surface); color: var(--rc5-ink);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
    opacity: 0; transform: translateY(24px) scale(.94);
    transition: opacity .45s ease, transform .55s var(--rc5-ease), overlay .55s allow-discrete, display .55s allow-discrete;
}
.rc5-pop:popover-open { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); opacity: 1; transform: none; }
@starting-style { .rc5-pop:popover-open { opacity: 0; transform: translateY(24px) scale(.94); } }
.rc5-pop::backdrop {
    background: rgba(10, 12, 20, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0);
    transition: background .45s ease, backdrop-filter .45s ease, overlay .45s allow-discrete, display .45s allow-discrete;
}
.rc5-pop:popover-open::backdrop { background: rgba(10, 12, 20, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@starting-style { .rc5-pop:popover-open::backdrop { background: rgba(10, 12, 20, 0); backdrop-filter: blur(0); } }
.rc5-pop-media { min-height: 100%; }
.rc5-pop-media img { display: block; width: 100%; height: 100%; min-height: 360px; object-fit: cover; transition: transform 1.2s var(--rc5-ease); }
@starting-style { .rc5-pop:popover-open .rc5-pop-media img { transform: scale(1.12); } }
.rc5-pop-body { position: relative; padding: 3rem 2rem 2rem; align-self: center; }
.rc5 .rc5-pop-body .rc5-title { font-size: 1.75rem; margin-bottom: .75rem; padding-right: 2.5rem; }
.rc5-pop-body .rc5-text { color: var(--rc5-muted); font-size: 1rem; }
.rc5-close {
    position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px; border: 0; border-radius: 50%;
    background: #f1f3f6; color: var(--rc5-ink); font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.rc5-close:hover { background: #e3e6eb; }
.rc5-close:focus-visible { outline: 3px solid var(--rc5-accent); outline-offset: 2px; }
@media (max-width: 767px) {
    .rc5-pop:popover-open { grid-template-columns: 1fr; }
    .rc5-pop-media img { min-height: 0; aspect-ratio: 16 / 10; }
    .rc5-pop-body { padding: 1.5rem; }
}

/* ================================================================ accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
    .rc5 *, .rc5 *::before, .rc5 *::after, .rc5-pop, .rc5-pop::backdrop {
        animation: none !important;
        transition-property: opacity, background-color, filter, flex-grow, grid-template-rows, display, overlay !important;
        transition-duration: .2s !important;
    }
    .rc5-tilt .rc5-card { transform: none !important; }
    .rc5-curtain .rc5-half { transform: none !important; }
    .rc5-curtain .rc5-item:is(:hover, :focus-within) .rc5-half { opacity: 0; }
    .rc5 .rc5-media img { transform: none !important; }
    .rc5-pop { transform: none; }
}
