/*
 Theme Name:   Avada Child
 Theme URI:    https://norwalkseasonalia.com
 Description:  Avada Child Theme for Norwalk Seasonal Services
 Author:       LLT Group
 Template:     Avada
 Version:      1.0.0
 Text Domain:  avada-child
*/

/* ── Blog Listing: square featured images ──
   Uses padding-bottom trick instead of aspect-ratio because
   FlexSlider (Avada's slider library) sets height via JS,
   which overrides CSS aspect-ratio. Padding-based height
   is unaffected by JS height manipulation. */

   .fusion-post-grid .fusion-post-slideshow {
    position: relative !important;
    padding-bottom: 100% !important;
    height: 0 !important;
    overflow: hidden !important;
}

.fusion-post-grid .fusion-post-slideshow .slides,
.fusion-post-grid .fusion-post-slideshow .slides li {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.fusion-post-grid .fusion-post-slideshow .fusion-image-wrapper {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.fusion-post-grid .fusion-post-slideshow .fusion-image-wrapper img,
.fusion-post-grid .fusion-post-slideshow .fusion-image-wrapper a img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
    max-width: none !important;
    max-height: none !important;
}

/* ── Text Block: white headings utility class ── */
.nss-white-headings h1,
.nss-white-headings h2 {
    color: #ffffff !important;
}

/* ── Text Block: white links utility class ── */
.nss-white-links a {
    color: #ffffff !important;
}

/* ── Text Block: li bottom margin utility class ── */
.nss-green-boxes li {
    margin-bottom: 15px;
    font-size: 22px;
    line-height: 1.7;
}

.nss-green-boxes h2 {
    font-size: 45px !important;
}

/* ── URW DIN Bold: single post targeted elements ── */
.nss-din-bold strong,
body.single-post .fusion-meta-tb,
body.single-post .nss-white-links {
    font-family: 'URWDIN-Bold', sans-serif !important;
}

/* ── Social Links: custom icon horizontal spacing ── */
.nss-social-spacing.fusion-social-links .fusion-social-networks.boxed-icons .fusion-social-networks-wrapper {
    margin: -5px -8px;
}
.nss-social-spacing.fusion-social-links .fusion-social-networks.boxed-icons .fusion-social-networks-wrapper .fusion-social-network-icon {
    margin: 5px 8px;
}

/* ── Single Post: fix Content element column margin and Library Template container padding ── */
body.single-post .fusion-content-layout-column {
    /* margin-left: 0 !important; */
    /* margin-right: 0 !important; */
}

body.single-post .fusion-content-layout-column .fusion-fullwidth {
    --awb-padding-left: 0px;
    --awb-padding-right: 0px;
}

/* ── Single Post: reduce top padding on main content area ── */
body.single-post #main {
    padding-top: 80px !important;
}

@media only screen and (max-width: 1024px) {
    body.single-post #main {
        padding-top: 60px !important;
    }
}

@media only screen and (max-width: 640px) {
    body.single-post #main {
        padding-top: 40px !important;
    }
}
