/* SRMY – alisivut: Muistoja-sivun suuntaan (selkeä otsikko + rajattu sisältö + pehmeämmät kuvat) */

:root{
  --srmy-accent:#ffb90c; /* sama korostus kuin Muistoja */
}

.srmy-page{
  max-width:1100px;
  margin:0 auto;
  padding:24px 16px 48px;
}

.srmy-pagehead{
  text-align:center;
  margin:12px 0 28px;
}
.srmy-pagehead h1{
  margin:0 0 10px;
  line-height:1.15;
  display:inline-block;
  padding-bottom:10px;
  border-bottom:3px solid var(--srmy-accent);
}
.srmy-pagehead p{
  margin:0;
  opacity:.9;
}

/* Yleinen luettavuus sisällössä */
.srmy-page .wb_text_element{
  line-height:1.6;
}
.srmy-page .wb_text_element p{
  margin:0 0 12px;
}
.srmy-page .wb_text_element p:last-child{
  margin-bottom:0;
}

/* Kuvista pehmeämpiä + responsiivisia */
.srmy-page .wb_element_picture .wb_picture_wrap{
  border-radius:12px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(0,0,0,.08);
}
.srmy-page .wb_element_picture img{
  width:100%;
  height:auto;
  display:block;
}

/* Napeista yhtenäisiä */
.srmy-page a.wb_button{
  border-radius:999px;
  border:1px solid rgba(255,185,12,.55);
  background:rgba(255,185,12,.85);
  color:#111 !important;
  text-decoration:none;
}
.srmy-page a.wb_button:hover,
.srmy-page a.wb_button:focus{
  border-color:rgba(255,185,12,.95);
  box-shadow:0 2px 10px rgba(0,0,0,.25);
}

/* Pienillä ruuduilla lisää hieman tilaa elementtien väliin */
@media (max-width: 640px){
  .srmy-page{ padding:18px 12px 40px; }
  .srmy-page .wb_element_picture .wb_picture_wrap{ border-radius:10px; }
}


/* --- Yhdistyksestä: sisältö harmaaseen laatikkoon kuten tapahtumissa --- */
.srmy-aboutbox{
  border: 1px solid rgba(255,255,255,.18);
  border-left: 6px solid rgba(255,185,12,.65);
  border-radius: 12px;
  /* sama perus-padding kuin Muistoja-sivun tapahtumakorteissa */
  padding: 18px 18px 14px;
  margin: 0 auto 22px;
  background: rgba(0,0,0,.08);
}

/* Selkeämmät kappalevälit Yhdistyksestä-sivun tekstissä */
.srmy-aboutbox .srmy-event__body p{
  margin: 0 0 18px;
}
.srmy-aboutbox .srmy-event__body p:last-child{
  margin-bottom: 0;
}

/*
  Yhdistyksestä-sivulla Zonerin builderi lisää useita sisäkkäisiä layout-kontteja,
  joilla on omia paddings/marginaaleja. Ne tekevät "tuplamarginaalin" harmaan
  laatikon sisään. Nollataan ne vain tämän laatikon sisällä, jotta ulkonäkö
  vastaa Muistoja-sivun kortteja.
*/
.srmy-aboutbox .wb_content{
  padding: 0 !important;
  margin: 0 !important;
}
.srmy-aboutbox .wb-layout-element{
  padding: 0 !important;
  margin: 0 !important;
}
.srmy-aboutbox .wb_text_element{
  padding: 0 !important;
}
.srmy-aboutbox .wb_text_element + .wb_text_element{
  margin-top: 10px;
}

/* Kuvien koko + ulkoasu kuten Muistoja/Menneet tapahtumat */
.srmy-event__gallery{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  align-items: stretch;
  margin: 14px 0;
}
.srmy-thumb{
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.10);
  text-decoration: none;
}
.srmy-thumb img{
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.srmy-thumb:focus,
.srmy-thumb:hover{
  outline: none;
  border-color: rgba(255,185,12,.85);
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
@media (min-width: 900px){
  .srmy-thumb img{ height: 190px; }
}

/* Yhdistyksestä: pienemmät thumbnailit jotta asettelu on rauhallisempi */
.srmy-page[aria-label="Yhdistyksestä"] .srmy-thumb img{
  height: 140px;
}
@media (min-width: 900px){
  .srmy-page[aria-label="Yhdistyksestä"] .srmy-thumb img{ height: 160px; }
}
/* --- Lightbox (kuvat aukeavat sivun päälle) --- */
.srmy-lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.82);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  z-index: 9999;
}
.srmy-lightbox.is-open{ display: flex; }

.srmy-lightbox__img{
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  border-radius: 12px;
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
}
.srmy-lightbox__close{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 28px;
  line-height: 40px;
  cursor: pointer;
}
.srmy-lightbox__close:hover{
  background: rgba(0,0,0,.55);
}


/* --- Yhdistyksestä: poista tekstilaatikon sininen tausta (builderin taustaväri) --- */
#a191988dcd41058fa854122ce1a23a54 > .wb_content,
#a191988dcd420d3eb39c55770dab439b > .wb_content,
#a19198931d190096130eea2a47efe2f9 > .wb_content{
  background: transparent !important;
}

/* --- Yhdistyksestä: kuvat samaan tyyliin kuin Muistoja --- */
.srmy-aboutbox .wb_element_picture .wb_picture_wrap,
.srmy-aboutbox .wb_element_picture .wb-picture-wrapper{
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  overflow: visible !important;
}
.srmy-aboutbox a.srmy-thumb{
  display:block;
  border-radius:10px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.10);
  text-decoration:none;
}
.srmy-aboutbox a.srmy-thumb img{
  width:100%;
  height:160px;
  object-fit:cover;
  display:block;
}
@media (min-width: 900px){
  .srmy-aboutbox a.srmy-thumb img{ height:190px; }
}


/* --- Yhteystiedot: selkeä 2-palstainen asettelu + siistit some-ikonit --- */
.srmy-contactbox{ margin: 0 auto 22px; }
.srmy-contact-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.srmy-card{
  border: 1px solid rgba(255,255,255,.14);
  border-left: 6px solid rgba(255,185,12,.65);
  border-radius: 12px;
  padding: 16px 16px 14px;
  background: rgba(0,0,0,.06);
}
.srmy-card h2{
  margin: 0 0 10px;
  text-align: center;
  color: var(--srmy-accent);
}
.srmy-list{
  margin: 12px 0 0;
  padding-left: 18px;
}
.srmy-list li{ margin: 6px 0; }

.srmy-contact-list{
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.srmy-contact-item{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.05);
  text-decoration: none;
}
.srmy-contact-item:hover,
.srmy-contact-item:focus{
  outline: none;
  border-color: rgba(255,185,12,.85);
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.srmy-icon{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,185,12,.18);
  border: 1px solid rgba(255,185,12,.35);
  flex: 0 0 38px;
}
.srmy-contact-item span:last-child{ line-height: 1.35; }

@media (min-width: 900px){
  .srmy-contact-grid{ grid-template-columns: 1fr 1fr; }
  .srmy-card{ padding: 18px 18px 16px; }
}

/* --- Yhtenäisyys Muistoja-sivun kanssa: kortti + taustat --- */
body{ background-color: transparent !important; }
body.site:before{ background: #fff0 none no-repeat scroll center top !important; }
.wb_sbg{ background: transparent !important; }

/* Muistoja-tyylinen kortti (käytetään Yhteystiedot + Yhdistyksestä) */
.srmy-event{
  border: 1px solid rgba(255,255,255,.18);
  border-left: 6px solid rgba(255,185,12,.65);
  border-radius: 12px;
  padding: 18px 18px 14px;
  margin: 0 0 22px;
  background: rgba(0,0,0,.08);
}
.srmy-event__head{
  text-align:center;
  margin: 0 0 12px;
}
.srmy-event__title{
margin: 0 0 6px;
  font-weight: 700;
  color: var(--srmy-accent);
}

/* Typografia lähemmäs Muistoja-sivua */
.srmy-event, .srmy-event p, .srmy-event li{
  font-size: 16px;
  line-height: 1.55;
}

/* Yhdistyksestä: kuvat nätisti ja linjaan vaikka builder tekee niistä erilliset elementit */
.srmy-aboutbox .wb_element_picture{
  display: inline-block;
  width: calc(33.333% - 8px);
  margin: 6px 10px 0 0;
  vertical-align: top;
}
.srmy-aboutbox .wb_element_picture:nth-of-type(3n){
  margin-right: 0;
}
@media (max-width: 900px){
  .srmy-aboutbox .wb_element_picture{
    width: calc(50% - 6px);
    margin-right: 10px;
  }
  .srmy-aboutbox .wb_element_picture:nth-of-type(2n){
    margin-right: 0;
  }
}
@media (max-width: 560px){
  .srmy-aboutbox .wb_element_picture{
    width: 100%;
    margin-right: 0;
  }
}


/* --- Yhteystiedot: poista sinertävä tausta (page-bundle asetti #d9e1f2) --- */
#a1919a00caef18f258ade57c6aa41084>.wb_content,
#a1919a00caee07f7f0f6e7fda6a35807>.wb_content,
#a1919a00caee04b1708447e9ec05ecfd>.wb_content{
  background: transparent !important;
}


/* Yhdistyksestä: hieman pienemmät kuvat, rauhallisempi kokonaisuus */
.srmy-about-gallery img{
  height: 140px;
}
