/* Home page "Recent work" slideshow (project 5900): the photo on the left; the caption, a line of text
   and a button on the right.
   Uses the section title classes, button and colors of island-refresh.css (.rh, .rh-title, .rh-sub, .rh-btn). */
.rh-recent{background:#fff;padding:56px 0 48px}
.rh-recent .rh-sub{margin-bottom:28px}
.rw{max-width:954px;margin:0 auto;display:grid;grid-template-columns:506px minmax(0,400px);grid-template-areas:"stage panel" "controls .";column-gap:48px;justify-content:center}
/* touch-action leaves sideways swipes on the photo to the slideshow, so the browser does not go back a page. */
.rw-stage{grid-area:stage;position:relative;border:1px solid #dde1e5;background:#fff;touch-action:pan-y pinch-zoom}
.rh a.rw-slide{display:none;color:#1d252c}
.rh a.rw-slide.is-current{display:block}
.rw-slide img{display:block;width:100%;height:auto;aspect-ratio:506/380;object-fit:contain}
.rw-arrow{position:absolute;top:50%;z-index:2;width:36px;height:36px;margin-top:-18px;padding:0;border:0;border-radius:50%;background:rgba(13,15,18,.62);color:#fff;font:700 22px/34px Arial,sans-serif;cursor:pointer}
.rw-arrow:hover,.rw-arrow:focus{background:rgba(13,15,18,.85)}
.rw-prev{left:8px}
.rw-next{right:8px}

/* The text blocks share one cell, so the height is that of the tallest and nothing below moves. */
.rw-panel{grid-area:panel;display:grid;align-self:center}
.rw-info{grid-area:1/1;visibility:hidden;text-align:left}
.rw-info.is-current{visibility:visible}
/* Two lines are always reserved for the caption, so the button stays in one place. */
.rw .rw-name{display:flex;flex-direction:column;justify-content:flex-end;min-height:2.3em;margin:0 0 14px;font-family:Roboto,"Segoe UI",Arial,sans-serif;font-size:30px;font-weight:900;letter-spacing:.05em;text-transform:uppercase;line-height:1.15;color:var(--text,#1d252c)}
.rw .rw-line{margin:0 0 24px;font-size:17px;color:var(--muted,#5f6b76)}

.rw-controls{grid-area:controls;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px;margin-top:12px}
.rw-controls[hidden]{display:none}
.rw-dots{display:flex;flex-wrap:wrap;justify-content:center}
.rw-dot{width:20px;height:24px;padding:0;border:0;background:transparent;cursor:pointer}
.rw-dot:before{content:"";display:block;width:10px;height:10px;margin:0 auto;border-radius:50%;background:#c3c9cf}
.rw-dot.is-current:before{background:#f5a623}
.rw-toggle{min-width:64px;padding:4px 10px;border:1px solid #c3c9cf;border-radius:4px;background:#fff;color:#1d252c;font-size:13px;cursor:pointer}
.rw-count{font-size:13px;color:#66717c}
.rw.is-single .rw-arrow{display:none}

/* Smaller computer windows: the photo keeps its size and the text column gives way. */
@media (min-width:900px) and (max-width:1049px){
	.rw{column-gap:32px}
	.rw .rw-name{font-size:24px}
}

/* Narrow screens: one column, photo then text then controls. */
@media (max-width:899px){
	.rw{max-width:506px;grid-template-columns:minmax(0,1fr);grid-template-areas:"stage" "panel" "controls"}
	.rw-panel{margin-top:18px}
	.rw-info{text-align:center}
	.rw .rw-name{margin-bottom:8px;font-size:22px}
	.rw .rw-line{margin-bottom:16px;font-size:15px}
}
@media (max-width:600px){
	.rh-recent{padding:40px 0 36px}
	.rh-recent .rh-wrap{padding-left:16px;padding-right:16px}
}
