/*
Theme Name: Hostel River — Karjapiha
Description: Hostel Riverin oma majataloteema majoitukselle ja tilavuokraukselle.
Version: 1.2.1
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: hostelriver
*/
@font-face{font-family:Fraunces;src:url("assets/fraunces.woff2") format("woff2");font-style:normal;font-weight:500 800;font-display:swap}
@font-face{font-family:Work Sans;src:url("assets/work-sans.woff2") format("woff2");font-style:normal;font-weight:400 700;font-display:swap}
:root{
    --ink:#202f32;--green:#174a40;--deep:#12352f;--paper:#eef5f3;--white:#ffffff;
    --line:#b5c9c4;--blue:#155580;--mint:#d8ebe5;
    --serif:Fraunces,Georgia,serif;--sans:"Work Sans",system-ui,sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-padding-top:1rem}
body.river-site{margin:0;background:var(--paper);color:var(--ink);font:400 1rem/1.6 var(--sans)}
a{color:inherit;text-underline-offset:.25em}
button,input,select,textarea{font:inherit}
img{display:block;max-width:100%}
h1,h2,h3{font-family:var(--serif);font-weight:650;line-height:1.045;letter-spacing:-.04em;color:var(--deep);margin:0 0 .55em}
h2{font-size:clamp(2rem,4.5vw,3.4rem)}
p{margin:0 0 1em}
:focus-visible{outline:3px solid var(--blue);outline-offset:4px}
.wrap{width:min(100% - 3rem,77rem);margin-inline:auto}
.skip-link{position:absolute;z-index:10;top:.8rem;left:1rem;background:var(--white);color:var(--deep);padding:.5rem 1rem;transform:translateY(-200%)}
.skip-link:focus{transform:none}
.river-header{background:var(--white);border-top:6px solid var(--green);border-bottom:1px solid var(--line)}
.masthead{display:grid;grid-template-columns:auto 1fr auto;gap:1.5rem;min-height:5.55rem;align-items:center}
.river-brand{display:flex;align-items:center;gap:.65rem;color:var(--deep);text-decoration:none;white-space:nowrap}
.river-brand b{display:block;font:750 1.66rem/.95 var(--serif);letter-spacing:-.07em}
.river-brand small{display:block;font-size:.68rem;font-weight:650;letter-spacing:.105em;margin-top:.37rem}
.brand-mark{width:2.6rem;height:2.6rem;flex:none;display:grid;align-content:center;gap:.21rem;background:var(--green);padding:0 .52rem;border-radius:.18rem 47% 47% .18rem;transform:rotate(-6deg)}
.brand-mark i{height:.155rem;background:var(--white);border-radius:80%;transform:rotate(-9deg)}
.brand-mark i:nth-child(2){width:87%;justify-self:end}.brand-mark i:nth-child(3){width:79%;justify-self:start}
.river-nav{display:flex;flex-wrap:wrap;justify-content:center;gap:.35rem clamp(.75rem,2.2vw,2rem);font-size:.94rem}
.river-nav a{text-decoration:none;font-weight:550;white-space:nowrap}
.river-nav a:is(:hover,[aria-current]){text-decoration:underline;color:var(--blue)}
.masthead-actions{display:flex;align-items:center;gap:clamp(.7rem,1.5vw,1.35rem)}
.language{font-weight:700;text-decoration:none;padding:.35rem 0}.language:hover{text-decoration:underline}
.button{display:inline-flex;align-items:center;justify-content:center;min-height:3rem;padding:.66rem 1.2rem;border:1px solid var(--deep);border-radius:.18rem;background:var(--green);color:var(--white);text-decoration:none;line-height:1.2;font-weight:650;cursor:pointer;text-align:center}
.button:hover{background:var(--blue);border-color:var(--blue);color:white}
.button-small{min-height:2.65rem;padding:.55rem .87rem;font-size:.91rem;white-space:nowrap}
.text-link{font-weight:650;color:var(--deep);text-decoration-thickness:1px}
.text-link:hover{color:var(--blue)}
.home-hero{display:grid;grid-template-columns:43fr 57fr;min-height:clamp(33rem,42vw,40rem);margin-top:1.65rem;margin-bottom:1.6rem;border:1px solid var(--line);background:var(--white)}
.hero-note{align-self:center;padding:clamp(2rem,4.9vw,5.6rem) clamp(1.65rem,4.05vw,4.1rem)}
.overline{display:flex;align-items:center;gap:.68rem;margin:0 0 1.65rem;color:var(--blue);font-size:.81rem;font-weight:700;letter-spacing:.115em}
.overline span{height:2px;width:2rem;background:currentColor;transform:rotate(-6deg)}
.hero-note h1{font-size:clamp(4.35rem,7.1vw,7.4rem);line-height:.88;max-width:7.2ch;letter-spacing:-.072em;margin-bottom:1.5rem;font-weight:720}
html[lang="en"] .hero-note h1{font-size:clamp(3.35rem,5.9vw,6.1rem);max-width:9ch}
.hero-description{max-width:32ch;font-size:clamp(1rem,1.24vw,1.15rem);margin-bottom:1.65rem}
.hero-link{display:inline-block;margin:.6rem 0 .2rem .65rem;font-size:.93rem;white-space:nowrap}
.hero-picture{margin:0;position:relative;min-width:0;background:var(--green);border-left:1px solid var(--line);display:grid;grid-template-rows:minmax(0,1fr) auto}
.hero-picture img{width:100%;height:100%;object-fit:cover;object-position:53% center;min-height:0;position:absolute;inset:0}
.hero-picture figcaption{grid-row:2;z-index:1;justify-self:end;align-self:end;margin:0 .85rem .85rem 0;display:flex;gap:.55rem;align-items:center;background:var(--paper);border:1px solid var(--line);color:var(--deep);padding:.42rem .65rem;font-size:.84rem}
.hero-picture figcaption span{width:.5rem;height:.5rem;border:1.5px solid var(--blue);border-radius:50%;display:block}
.arrival-strip{background:var(--green);color:var(--white)}
.arrival-content{min-height:6.25rem;display:grid;align-content:center;align-items:center;grid-template-columns:.75fr .82fr 1.35fr auto;gap:1rem;padding:1rem 0}
.arrival-content div{padding-inline:1.2rem;border-left:1px solid #7fa89e}
.arrival-content div:first-child{padding-left:0;border-left:0}
.arrival-content span,.arrival-content strong{display:block}
.arrival-content span{color:#e1f0ed;font-size:.85rem}
.arrival-content strong{font-weight:650}
.arrival-content a{font-size:.94rem}
.arrival-content a:hover{color:#b9e5ff}
.split-story{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1.5rem,6vw,6rem);align-items:center;padding:clamp(2.3rem,7vw,6rem) 0}
.story-copy{max-width:34rem}
.story-copy p{max-width:36ch}
.story-photo{padding:.46rem;background:var(--white);border:1px solid var(--line)}
.story-photo img{width:100%;height:clamp(15rem,27vw,23rem);object-fit:cover;object-position:50% 44%}
.event-story{border-top:1px solid var(--line);padding-top:clamp(2.3rem,5vw,4rem)}
.event-story .story-photo img{object-position:50% 40%}
.page-intro{padding:clamp(2.7rem,7vw,5rem) 0 2.2rem;max-width:77rem}
.page-intro h1{font-size:clamp(3rem,6.5vw,6rem);margin-bottom:.21em}
.page-intro p{max-width:48rem;font-size:clamp(1.04rem,2vw,1.25rem)}
.action-row{display:flex;gap:1rem;flex-wrap:wrap;align-items:center}
.rooms-list{display:grid;gap:0;margin-bottom:4rem}
.room-row{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--line);gap:clamp(1rem,5vw,4rem);padding:1.5rem 0;align-items:center}
.room-row img{aspect-ratio:1.72;width:100%;object-fit:cover;border:1px solid var(--line)}
.room-row h2,.dorm-note h2{font-size:clamp(1.8rem,3.65vw,3rem)}
.room-description p{margin-bottom:.45rem}
.room-price{color:var(--blue);font-weight:700}
.dorm-note{margin-top:1rem;padding:clamp(1rem,4vw,2.2rem);background:var(--mint);border:1px solid #8cb4a8;display:flex;justify-content:space-between;align-items:center;gap:1rem}
.dorm-note p{margin:0}
.information{max-width:56rem;padding-bottom:4rem;margin-left:max(1.5rem, (100vw - 77rem)/2);margin-right:1.5rem}
.information > section{margin-bottom:2.25rem}
.information h2,.venue-rates h2,.form-aside h2{font-size:clamp(1.8rem,3.4vw,2.65rem)}
.lined-list{margin:0 0 1rem;border-top:1px solid var(--line)}
.lined-list > div{display:grid;grid-template-columns:1fr 1.7fr;gap:.8rem;padding:.7rem 0;border-bottom:1px solid var(--line)}
.lined-list dt{font-weight:700}.lined-list dd{margin:0}
.venues-photos{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:2.4rem}
.venues-photos img{width:100%;height:clamp(11rem,31vw,24rem);object-fit:cover;border:1px solid var(--line)}
.venues-photos img:first-child{object-position:50% 34%}
.venue-rates{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1.4rem,5vw,5rem);margin-bottom:2.7rem}
.venue-rates .lined-list > div{grid-template-columns:1fr auto}
.form-section{display:grid;grid-template-columns:minmax(13rem,1fr) minmax(0,2.25fr);gap:clamp(1.25rem,4.8vw,4.5rem);align-items:start;margin-bottom:4rem}
.form-aside{padding-top:1.15rem}.form-aside h2{margin-bottom:.45em}.form-aside p{max-width:28ch}
.form-aside img{margin-bottom:1.15rem;border:1px solid var(--line)}
.river-form,.river-receipt{background:var(--white);border:1px solid var(--line);padding:clamp(1rem,3vw,2.25rem)}
.river-form fieldset{border:0;border-bottom:1px solid var(--line);margin:0 0 1.25rem;padding:0 0 1rem;min-width:0}
.river-form legend{font:650 1.45rem/1.15 var(--serif);padding:0;margin:0 0 .75rem;color:var(--deep)}
.river-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.8rem 1rem}
.river-field{display:grid;gap:.2rem;font-size:.91rem;font-weight:650;align-content:start;min-width:0}
.river-field-wide{grid-column:1/-1}
.river-field :is(input,select,textarea){width:100%;min-height:2.8rem;background:#fafffe;color:var(--ink);border:1px solid #849f9b;border-radius:.12rem;padding:.47rem .55rem;font-size:1rem;font-weight:400}
.river-field textarea{resize:vertical}
.river-field select{appearance:none;padding-right:1.8rem;background-image:linear-gradient(45deg,transparent 50%,var(--green) 50%),linear-gradient(135deg,var(--green) 50%,transparent 50%);background-position:calc(100% - 15px) 50%,calc(100% - 10px) 50%;background-size:5px 5px;background-repeat:no-repeat}
.river-field-check{display:flex;gap:.6rem;align-items:flex-start;font-size:.92rem;margin:.9rem 0}
.river-field-check input{margin:.36em 0 0;accent-color:var(--green)}
.river-optional{color:#4d655f;font-weight:400}
.river-trap{position:absolute!important;left:-200vw!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important}
.river-form-feedback{padding:.75rem;border-left:4px solid var(--blue);background:#e7f2fa;margin-bottom:1rem}
.river-receipt h2{font-size:2rem}
.entry-content{padding-bottom:2rem}
.river-footer{background:var(--deep);color:var(--white);border-top:5px solid #5fadc4}
.footer-layout{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:1.45rem;padding:clamp(2rem,5vw,3.5rem) 0}
.footer-name{font:730 2rem/1.1 var(--serif);letter-spacing:-.06em;text-decoration:none}
.footer-layout p{margin:.6rem 0 0}
.footer-contact{display:grid;justify-items:start;align-content:start;gap:.2rem}
.footer-contact a:hover{color:#b9e5ff}
@media(max-width:1020px){
    .masthead{grid-template-columns:auto 1fr auto;gap:.7rem 1rem}
    .river-nav{gap:.4rem .7rem;font-size:.86rem}
    .hero-note h1{font-size:clamp(3.35rem,7.6vw,5.5rem)}
}
@media(max-width:850px){
    .masthead{grid-template-columns:1fr auto;min-height:0;padding:.85rem 0 .6rem}
    .river-nav{grid-column:1/-1;grid-row:2;justify-content:start;border-top:1px solid var(--line);padding-top:.55rem;gap:.3rem 1.15rem}
    .home-hero{grid-template-columns:1fr 1fr;min-height:29rem}
    .hero-note{padding:1.45rem}.hero-description{margin-bottom:1.3rem}.hero-link{margin-left:0;margin-top:.8rem}
    .arrival-content{grid-template-columns:1fr 1fr;gap:.65rem 1rem}.arrival-content div:nth-child(3){padding-left:0;border-left:0}
}
@media(max-width:640px){
    .wrap{width:calc(100% - 2rem)}
    .masthead{gap:.63rem .45rem}.river-brand b{font-size:1.35rem}.river-brand small{font-size:.58rem}
    .brand-mark{width:2.02rem;height:2.02rem;padding-inline:.33rem}.masthead-actions{gap:.53rem}
    .button-small{min-height:2.35rem;font-size:.78rem;padding:.39rem .51rem}
    .river-nav{font-size:.83rem;gap:.26rem .75rem}
    .home-hero{display:flex;flex-direction:column;min-height:0;margin-top:1rem;margin-bottom:1rem}
    .hero-note{align-self:stretch;padding:1.6rem 1.25rem 1.4rem}.overline{margin-bottom:1rem}
    .hero-note h1{font-size:clamp(2.7rem,11.5vw,4.7rem);max-width:11ch;margin-bottom:.8rem;line-height:.95}
    html[lang="en"] .hero-note h1{font-size:clamp(2.7rem,10vw,4rem);max-width:12ch}
    .hero-description{max-width:35ch;margin-bottom:1rem}
    .hero-link{margin:.65rem 0 .3rem .65rem}
    .hero-picture{border-left:0;border-top:1px solid var(--line);aspect-ratio:1.36}
    .hero-picture figcaption{font-size:.75rem;margin:0 .48rem .48rem 0}
    .arrival-content{font-size:.87rem}.arrival-content div{padding:0 .2rem 0 .6rem}.arrival-content span{font-size:.77rem}
    .arrival-content a{font-size:.84rem}
    .split-story,.form-section,.venue-rates{grid-template-columns:1fr;gap:1rem}
    .event-story .story-copy{order:2}
    .room-row{grid-template-columns:1fr;gap:.8rem;padding:1rem 0}
    .room-row img{aspect-ratio:1.8}
    .dorm-note{display:block}.dorm-note .button{margin-top:1rem}
    .information{margin-inline:auto}
    .lined-list > div{grid-template-columns:1fr;gap:.15rem}
    .venue-rates .lined-list > div{grid-template-columns:1fr auto}
    .form-aside{padding-top:0}.form-aside p{max-width:40ch}
    .contact-section .form-aside img{max-height:13rem;width:100%;object-fit:cover}
    .footer-layout{grid-template-columns:1fr 1fr}
}
@media(max-width:360px){
    .wrap{width:calc(100% - 1.35rem)}
    .masthead-actions{gap:.35rem}.river-brand{gap:.35rem}
    .river-fields{grid-template-columns:minmax(0,1fr)}
    .hero-note{padding-inline:1rem}.hero-link{margin-left:.42rem;font-size:.82rem}
}

/* Accommodation enquiry */
.booking-intro{padding-top:clamp(2rem,5vw,4.25rem);padding-bottom:1rem}
.booking-intro h1{font-size:clamp(2.65rem,5.6vw,5rem)}
.booking-section{margin-bottom:clamp(2.5rem,6vw,5rem)}
.stay-form{padding:0;border:0;background:transparent}
.stay-form [hidden]{display:none!important}
.stay-progress{
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-width:58rem;
    gap:.5rem;margin:0 0 1rem;padding:0;list-style:none
}
.stay-progress li{
    display:flex;align-items:center;gap:.6rem;border-bottom:2px solid var(--line);
    padding:.55rem .18rem .7rem;color:#4d655f;font-size:.92rem;font-weight:550
}
.stay-progress li span{
    display:grid;place-items:center;flex:0 0 1.65rem;height:1.65rem;border:1px solid var(--line);
    border-radius:50%;color:var(--deep);background:var(--white);font-size:.8rem
}
.stay-progress li[aria-current]{border-color:var(--green);color:var(--deep);font-weight:700}
.stay-progress li[aria-current] span,.stay-progress li.is-completed span{background:var(--green);border-color:var(--green);color:white}
.stay-layout{display:grid;grid-template-columns:minmax(0,2.15fr) minmax(15rem,1fr);gap:1rem;align-items:start}
.stay-panels{border:1px solid var(--line);background:var(--white);min-width:0}
.stay-panel{padding:clamp(1rem,3.45vw,2.35rem)}
.stay-panel + .stay-panel{border-top:1px solid var(--line)}
.stay-panel h2{font-size:clamp(1.75rem,3.1vw,2.9rem);margin-bottom:.65em}
.stay-panel h2:focus{outline:none}
.stay-form fieldset{padding:0;margin:0;border:0}
.stay-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.stay-date-fields{max-width:37rem}
.stay-step-note{color:#4d655f;max-width:43ch}
.stay-actions{display:flex;gap:1rem;flex-wrap:wrap;align-items:center;margin-top:1.3rem}
.stay-back{
    padding:.45rem 0;border:0;background:transparent;color:var(--deep);font-weight:650;
    text-decoration:underline;text-underline-offset:.24em;cursor:pointer
}
.stay-back:hover{color:var(--blue)}
.stay-rooms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.78rem}
.stay-room{
    display:flex;flex-direction:column;min-width:0;border:1px solid var(--line);
    border-radius:.25rem;overflow:hidden;background:var(--white);cursor:pointer
}
.stay-room:hover,.stay-room:has(input:checked){border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}
.stay-room:has(input:checked){background:var(--paper)}
.stay-room:focus-within{outline:3px solid var(--blue);outline-offset:2px}
.stay-room input{margin:0;width:1.06rem;height:1.06rem;flex:none;accent-color:var(--green)}
.stay-room input:focus-visible{outline:0}
.stay-room-photo{width:100%;aspect-ratio:1.85;object-fit:cover}
.stay-room-body{display:grid;gap:.36rem;align-content:start;padding:.8rem}
.stay-room-title{display:flex;align-items:center;gap:.48rem;line-height:1.22}
.stay-room-title strong{font-size:1.04rem}
.stay-room-detail{color:#4d655f;font-size:.84rem;line-height:1.35}
.stay-room-rate{font-weight:650;color:var(--blue);font-size:.89rem}
.stay-room-total{font-weight:700;color:var(--deep);font-size:.99rem}
.stay-summary{
    position:sticky;top:1rem;background:#e2efec;border:1px solid var(--line);
    padding:clamp(1rem,2.3vw,1.7rem);min-width:0
}
.stay-summary h2{font-size:clamp(1.45rem,2.3vw,2.12rem);margin-bottom:.5em}
.stay-summary-hint,.stay-summary-dates{font-size:.91rem;margin-bottom:.65rem}
.stay-summary-photo{width:100%;aspect-ratio:2.15;object-fit:cover;margin:.7rem 0 .79rem}
.stay-summary-room{display:block;color:var(--deep);margin-bottom:.25rem}
.stay-summary-breakdown{clear:both;display:grid;gap:.4rem;margin:.65rem 0;font-size:.91rem}
.stay-summary-breakdown > div{display:flex;justify-content:space-between;align-items:baseline;gap:.5rem}
.stay-summary-breakdown strong{color:var(--deep);text-align:right}
.stay-summary-breakdown small{display:block;color:#405852;font-size:.8rem}
.stay-summary-price{display:grid;gap:.1rem;border-top:1px solid #9ebbb3;padding-top:.55rem;margin:.6rem 0}
.stay-summary-price span,.stay-summary-note{font-size:.9rem}
.stay-summary-price strong{font-size:1.68rem;color:var(--deep);line-height:1.15}
.stay-summary-note{margin:0;color:#405852}
.stay-submit{margin-top:1rem}
.stay-submit .stay-back{margin-left:1rem}
.stay-help{display:flex;justify-content:space-between;gap:.65rem;flex-wrap:wrap;padding-top:1rem;font-size:.91rem}
.stay-help p{margin:0}
@media(max-width:720px){
    .stay-layout{grid-template-columns:1fr}
    .stay-summary{position:static;grid-row:1}
    .stay-summary:has([data-summary-dates][hidden]){display:none}
    .stay-summary h2{font-size:1.28rem}
    .stay-summary-photo{width:6rem;aspect-ratio:1.4;float:right;margin:.1rem 0 .35rem .65rem}
    .stay-summary-price{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;clear:both}
    .stay-summary-price strong{font-size:1.24rem}
}
@media(max-width:430px){
    .stay-progress li{font-size:.8rem;gap:.3rem;line-height:1.15}
    .stay-progress li span{flex-basis:1.3rem;height:1.3rem;font-size:.71rem}
    .stay-rooms{grid-template-columns:1fr}
    .stay-room:has(.stay-room-photo){display:grid;grid-template-columns:36% 1fr}
    .stay-room-photo{height:100%;aspect-ratio:auto}
    .stay-room-body{padding:.65rem;gap:.23rem}
    .stay-room-title{gap:.35rem}
    .stay-room-title strong{font-size:.95rem}
    .stay-room-detail{font-size:.79rem}
    .stay-actions{gap:.6rem}
    .stay-date-fields input{min-width:0}
}

/* Hostel photographs */
.river-gallery-section{padding:clamp(1.8rem,4.8vw,4rem) 0 clamp(2.6rem,6vw,5rem);border-top:1px solid var(--line)}
.river-gallery-header{margin:0 0 1.2rem;max-width:42rem}
.river-gallery-header h2{margin-bottom:.25em}
.river-gallery-header p{margin:0}
.river-photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(.65rem,1.5vw,1.25rem)}
.river-photo-card{display:block;min-width:0;background:var(--white);border:1px solid var(--line);text-decoration:none}
.river-photo-card:hover,.river-photo-card:focus-visible{border-color:var(--blue)}
.river-photo-card:hover .river-photo-caption{text-decoration:underline}
.river-gallery-image{filter:brightness(var(--photo-light,1))}
.river-photo-card img{width:100%;aspect-ratio:4/3;object-fit:cover}
.river-photo-caption{display:block;padding:.55rem .7rem;color:var(--deep);font-size:.93rem;font-weight:650}
.river-site img:is([src$="/yhden-hengen.jpg"],[src$="/kahden-hengen.jpg"],[src$="/kolmen-hengen.jpg"]){filter:brightness(1.09)}
.river-gallery-dialog{
    width:min(94vw,70rem);max-width:none;max-height:92vh;max-height:92dvh;
    padding:0;border:1px solid var(--line);background:var(--white);color:var(--ink);overflow:auto
}
.river-gallery-dialog::backdrop{background:rgba(18,32,31,.84)}
.river-gallery-stage{margin:0;background:#1b2928}
.river-gallery-stage img{width:100%;max-height:69vh;max-height:69dvh;object-fit:contain}
.river-gallery-toolbar{
    display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.62rem .9rem;
    min-height:3.1rem;font-size:.9rem
}
.river-gallery-toolbar p{margin:0}
.river-gallery-toolbar strong{margin-right:.5rem}
.river-gallery-controls{display:flex;gap:.4rem;flex-wrap:wrap;justify-content:end}
.river-gallery-controls button{min-height:2.6rem;background:var(--white);border:1px solid var(--line);border-radius:.17rem;padding:.35rem .65rem;font-size:.88rem;font-weight:650;color:var(--deep);cursor:pointer}
.river-gallery-controls button:hover{background:var(--paper);border-color:var(--green)}
.river-gallery-controls [data-gallery-close]{background:var(--green);border-color:var(--green);color:var(--white)}
.river-gallery-controls [data-gallery-close]:hover{background:var(--blue);border-color:var(--blue)}
@media(max-width:700px){
    .river-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:485px){
    .river-gallery-toolbar{align-items:flex-start;flex-direction:column}
    .river-gallery-controls{justify-content:start}
    .river-photo-caption{padding:.43rem .52rem;font-size:.85rem}
}
