/* Spectra puslapių pagalbinės klasės (Spectra: Advanced → Additional CSS class) */
.spectra-page { padding-bottom: 4rem; }
.spectra-page > .wp-block-spectra-container { margin-top: 5rem; }
.spectra-page > .wp-block-spectra-container:first-child { margin-top: 3rem; }
.spectra-page > .stb-hero:first-child { margin-top: 0; }
.spectra-page > .stb-section.wp-block-spectra-container { width: 100% !important; max-width: 1140px !important; margin-left: auto !important; margin-right: auto !important; padding: 0 1rem !important; }
.spectra-page .wp-block-spectra-container .wp-block-spectra-container { padding: 0; }
.spectra-page .wp-block-spectra-content { margin: 0; }
.spectra-page .wp-block-image { margin: 0; }
.spectra-page .wp-block-image img { width: 100%; display: block; }
.spectra-page h1 { font-size: 1.875rem; }
.spectra-page h2 { font-size: 1.5rem; }

/* Paveikslėliai */
.stb-imgwrap { position: relative; padding: 0 !important; }
.stb-cover img { max-height: 400px; object-fit: cover; }
.stb-contain img { max-height: 400px; object-fit: contain; }
.stb-thumb img { aspect-ratio: 1 / 1; object-fit: cover; }
.stb-inline-img img { width: 200px !important; }
.stb-labels { z-index: 2; position: absolute !important; top: 1rem; right: 1rem; width: auto !important; padding: 0 !important; align-items: flex-end !important; }
.stb-labels .stb-eco { width: 60px !important; }
.stb-labels .stb-byg { width: 110px !important; }

/* Hero */
.stb-hero { position: relative; padding: 0 !important; }
.stb-hero:after { content: ""; position: absolute; inset: 0; background: #00000080; z-index: 1; }
.stb-hero-img img { height: 500px; object-fit: cover; }
.stb-hero-text { position: absolute !important; z-index: 2; inset: 0; padding: 4rem 5% 0 !important; text-align: center; justify-content: center !important; align-items: center !important; }
.stb-hero-text h1, .stb-hero-text p { color: #fff; text-shadow: 0 1px 3px #000; }
.stb-hero-text h1 { font-size: 2.25rem; }

/* Produktų kortelės */
.stb-card { position: relative; padding: 0 !important; }
.stb-card .stb-card-img img { height: 250px; object-fit: cover; }
.stb-card .stb-card-title { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; color: #2b2928; padding: .8rem; transition: all .3s; }
.stb-card:hover .stb-card-title { background: #2b2928; color: #fff; }

/* Kodėl mes */
.stb-why { align-self: stretch !important; border: 1px solid #e4e4e4; padding: 2rem 1rem !important; text-align: center; }
.stb-icon img { width: 45px; height: 45px; object-fit: cover; margin: 0 auto 1rem; }
.stb-why-title { color: #2b2928; font-size: 1.2rem; }

/* Spalvų gama */
.stb-swatch-title { font-size: 1rem; }
.stb-price { font-size: .875rem; }

/* Mygtukas kaip senajame dizaine */
.spectra-page .wp-block-spectra-button.simple-btn, .spectra-page .simple-btn .wp-block-spectra-button { border-radius: 0 !important; background-color: #2b2928 !important; color: #fff !important; padding: .5rem 1.5rem !important; font-size: .9rem; }
.spectra-page .wp-block-spectra-button.simple-btn:hover { background-color: #434241 !important; }

/* Contact Form 7 tarpai */
.spectra-page .wpcf7 form p { margin-bottom: 1rem; }
.spectra-page .wpcf7 input:not([type=submit]), .spectra-page .wpcf7 textarea { width: 100%; }

/* Kontaktų nuotrauka pagrindiniame per visą formos aukštį */
@media (min-width: 783px) {
  .stb-section > .wp-block-spectra-container:has(> .stb-cover:only-child) { align-self: stretch !important; }
  .stb-section > .wp-block-spectra-container > .stb-cover:only-child, .stb-section > .wp-block-spectra-container > .stb-cover:only-child img { height: 100%; max-height: none; }
}

/* Paveikslėliai natūralaus dydžio (FSC, schemos) */
.stb-contain img { width: auto !important; max-width: 100%; margin: 0 auto; }

/* Spintų galerija: 3 mažos + 1 didelė */
.stb-gal-small { flex: 1 1 0; }
.stb-gal-small img { height: 100%; aspect-ratio: auto; object-fit: cover; }
.stb-gal-big, .stb-gal-big a { height: 100%; }
.stb-gal-big img { height: 100%; max-height: 420px; object-fit: cover; }

/* Kontaktų sąrašas su ikonėlėmis */
.spectra-page .spec-list { list-style: none; padding: 0; }
.spectra-page .spec-list li { padding: .4rem 0; }

/* Telefonas */
@media (max-width: 782px) {
  .spectra-page > .wp-block-spectra-container { margin-top: 3rem; }
  .stb-hero-img img { height: 380px; }
  .stb-hero-text h1 { font-size: 1.5rem; }
  .stb-cover img { max-height: 300px; }
  .stb-gal-big img { max-height: 300px; }
}

/* Antraštė: Spectra Global Styles taisyklė ":root .hidden" slėpė meniu kompiuteryje */
@media (min-width: 980px) {
  :root header .main-navi.lg\:flex { display: flex; }
  :root header .open-navi.lg\:hidden { display: none; }
}

/* Spintų galerija: mažos nuotraukos užpildo visą didžiosios aukštį */
.stb-gal-small, .stb-gal-small a { display: block; min-height: 0; }
.stb-gal-small a { height: 100%; }
.stb-gal-small img { height: 100% !important; max-height: none; }
.wp-block-spectra-container:has(> .stb-gal-small) { align-self: stretch !important; }
