/* Carousel styles reused from catalog/partials/humidifier-styles.blade.php. */

.rgb-projects {
    --sfh-bg: #544541;
    --sfh-dark: #2e2825;
    --sfh-text: #f3efe8;
    --sfh-muted: #e0d6ce;
    --sfh-accent: #ef6f2e;
    --sfh-line: #88776d;
    --sfh-radius: 8px;
    --sfh-shell: 1400px;
    --sfh-gutter: 48px;
    --sfh-section: 88px;
    background: var(--sfh-bg);
    color: var(--sfh-text);
    font-size: 16px;
    line-height: 1.6;
}
.rgb-projects *, .rgb-projects *::before, .rgb-projects *::after { box-sizing: border-box; }
.rgb-projects [id] { scroll-margin-top: 100px; }
.rgb-projects :where(a, button, summary, input):focus-visible { outline: 2px solid var(--sfh-accent); outline-offset: 4px; }
.rgb-projects button { cursor: pointer; }
.rgb-projects .sfh-shell { width: 100%; max-width: var(--sfh-shell); padding-inline: var(--sfh-gutter); margin-inline: auto; }
.rgb-projects .sfh-title { font-family: var(--font-display); font-size: 44px; font-weight: 400; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
.rgb-projects .sfh-gallery { padding-block: 65px 54px; background: #f5f5f4; border-top: 1px solid #dedbd8; color: var(--sfh-dark); color-scheme: light; }
.rgb-projects .sfh-projects-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px 35px; align-items: end; }
.rgb-projects .sfh-projects-intro { margin: 17px 0 0; color: #6b625e; font-size: 14px; line-height: 1.75; }
.rgb-projects .sfh-gallery-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 48px; margin-bottom: 4px; padding: 12px 18px; border: 1px solid #bbb3ad; border-radius: 4px; color: var(--sfh-dark); font-size: 12px; font-weight: 600; text-decoration: none; transition: background .2s, border-color .2s; }
.rgb-projects .sfh-gallery-link:hover { background: white; border-color: var(--sfh-dark); }
.rgb-projects .sfh-gallery-link svg { width: 19px; height: 19px; }
.rgb-projects .sfh-carousel { min-width: 0; grid-column: 1 / -1; }
.rgb-projects .sfh-project-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; margin: 0; padding: 5px 0 17px; overflow-x: auto; list-style: none; scroll-snap-type: x mandatory; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: #c8c1ba transparent; }
.rgb-projects .sfh-project { min-width: 0; scroll-snap-align: start; }
.rgb-projects .sfh-project-link { display: block; color: var(--sfh-dark); text-decoration: none; }
.rgb-projects .sfh-project-link:focus-visible { outline-offset: -3px; }
.rgb-projects .sfh-project-track:focus-visible { outline: 2px solid var(--sfh-accent); outline-offset: 4px; }
.rgb-projects .sfh-project-image { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px; background: #dedbd8; }
.rgb-projects .sfh-project-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 54%; transition: transform .35s; }
.rgb-projects .sfh-project-link:hover img { transform: scale(1.025); }
.rgb-projects .sfh-project-open { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: white; color: var(--sfh-dark); }
.rgb-projects .sfh-project-open svg { width: 19px; height: 19px; }
.rgb-projects .sfh-project-caption { padding: 16px 2px 6px; }
.rgb-projects .sfh-project-caption h3 { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 500; line-height: 1.3; letter-spacing: -.02em; }
.rgb-projects .sfh-project-caption > span { display: block; margin-top: 5px; color: #6b625e; font-size: 12px; }
.rgb-projects .sfh-carousel-controls { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.rgb-projects .sfh-carousel-controls button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #bab2ac; border-radius: 50%; background: transparent; color: var(--sfh-dark); cursor: pointer; transition: background .2s, border-color .2s; }
.rgb-projects .sfh-carousel-controls button:hover:not(:disabled) { background: white; border-color: var(--sfh-dark); }
.rgb-projects .sfh-carousel-controls button:disabled { opacity: .35; cursor: default; }
.rgb-projects .sfh-carousel-controls svg { width: 20px; height: 20px; }
@media (max-width: 1100px) {
    .rgb-projects .sfh-carousel-controls { padding-inline-end: 32px; }
}
@media (max-width: 1023px) {
    .rgb-projects { --sfh-gutter: 32px; --sfh-section: 64px; }
    .rgb-projects .sfh-title { font-size: 36px; }
    .rgb-projects .sfh-project-track { grid-auto-columns: calc((100% - 24px) / 2); }
    .rgb-projects .sfh-projects-inner { column-gap: 24px; }
}
@media (max-width: 767px) {
    .rgb-projects { --sfh-section: 48px; }
    .rgb-projects .sfh-title { font-size: 30px; }
    .rgb-projects .sfh-gallery { padding-block: 42px 38px; }
    .rgb-projects .sfh-projects-inner { grid-template-columns: 1fr; gap: 22px; }
    .rgb-projects .sfh-gallery-link { grid-row: 3; justify-self: start; margin: 0; }
    .rgb-projects .sfh-carousel-controls { margin-top: 12px; }
}
@media (max-width: 639px) {
    .rgb-projects { --sfh-gutter: 20px; }
    .rgb-projects .sfh-project-track { grid-auto-columns: 88%; gap: 16px; }
    .rgb-projects .sfh-project-caption h3 { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
    .rgb-projects *, .rgb-projects *::before, .rgb-projects *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
