/*
Theme Name: Sandbox World Clean
Description: Lightweight Astra child theme for Sandbox World.
Author: Sandbox World
Template: astra
Version: 1.0.9
Text Domain: sandbox-world-clean
*/
:root{--sw-max:1280px;--sw-section:34px;--sw-border:#bdbdbd;--sw-radius:12px}
.sw-wrap{width:min(calc(100% - 32px),var(--sw-max));margin:0 auto}
.sw-section{margin:0 0 var(--sw-section);padding-bottom:var(--sw-section);border-bottom:0}
.sw-section:last-child{border-bottom:0}
.sw-title{margin:0 0 12px}
.sw-category-description{margin:0 0 28px;font-size:1.05rem;line-height:1.5}

/* Desktop category: large feature left, three horizontal stories right. */
.sw-grid{display:grid!important;grid-template-columns:minmax(0,40%) minmax(0,60%)!important;column-gap:28px!important;align-items:start!important;width:100%!important}
.sw-featured{display:block!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important}
.sw-featured-image{display:block!important;width:100%!important;margin:0!important}
.sw-featured-image img{display:block!important;width:100%!important;height:auto!important;aspect-ratio:16/9!important;object-fit:cover!important;border-radius:var(--sw-radius)!important}
.sw-featured-content h2{font-size:2rem;line-height:1.2;margin:12px 0 0}
.sw-excerpt{margin:7px 0 0;line-height:1.5;font-size:.95rem}

/* Right column: exactly three compact horizontal cards. */
.sw-supporting-list{display:flex!important;flex-direction:column!important;gap:0!important;min-width:0!important}
.sw-supporting-card{display:grid!important;grid-template-columns:220px minmax(0,1fr)!important;column-gap:20px!important;align-items:start!important;width:100%!important;min-width:0!important;margin:0 0 14px!important;padding:0 0 14px!important;border:0!important;border-bottom:1px dashed #d6d6d6!important;box-sizing:border-box!important}
.sw-supporting-card:last-child{margin-bottom:0!important}
.sw-supporting-image{display:block!important;width:220px!important;height:124px!important;margin:0!important}
.sw-supporting-image img{display:block!important;width:220px!important;height:124px!important;aspect-ratio:16/9!important;object-fit:cover!important;border-radius:var(--sw-radius)!important}
.sw-supporting-content{min-width:0!important}
.sw-supporting-content h3{font-size:1.25rem;line-height:1.2;margin:0}
.sw-supporting-content .sw-excerpt{font-size:.92rem;line-height:1.45;margin-top:5px}

.sw-widget{margin:22px 0 0}
.sw-section-nav{display:flex;justify-content:space-between;gap:20px;margin:18px 0 0;padding-top:14px;border-top:0}
.sw-section-nav a{text-decoration:none}
.sw-pagination{display:flex;justify-content:space-between;gap:20px;margin:30px 0}

.sw-mobile{display:none}
@media(max-width:1100px) and (min-width:768px){
 .sw-grid{grid-template-columns:minmax(0,40%) minmax(0,60%)!important;column-gap:20px!important}
 .sw-supporting-card{grid-template-columns:150px minmax(0,1fr)!important;column-gap:14px!important}
 .sw-supporting-image,.sw-supporting-image img{width:150px!important;height:84px!important}
 .sw-supporting-content h3{font-size:1.1rem}
 .sw-supporting-content .sw-excerpt{font-size:.85rem}
}
@media(max-width:767px){
 .sw-desktop{display:none!important}
 .sw-mobile{display:block!important}
 .sw-mobile-post{padding-bottom:24px;margin-bottom:24px;border-bottom:1px dashed var(--sw-border)}
 .sw-mobile-post:last-child{margin-bottom:0}
}
@media(min-width:768px){.sw-mobile{display:none!important}}


/* UNIVERSAL MORE-[CATEGORY] ARCHIVES
   Applies to Entertainment, Food & Life, Odd & Curious, and every
   other category using the More link. */
.sw-archive-wrap{width:min(calc(100% - 32px),1280px);margin:0 auto;padding:24px 0 40px}
.sw-archive-header{margin-bottom:28px}
.sw-archive-header h1{margin:0 0 10px}
.sw-archive-description{font-size:1.05rem;line-height:1.5}
.sw-archive-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:34px 28px}
.sw-archive-card{min-width:0}
.sw-archive-image{display:block}
.sw-archive-image img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:12px}
.sw-archive-content h2{font-size:1.45rem;line-height:1.22;margin:12px 0 0}
.sw-archive-excerpt{font-size:.96rem;line-height:1.5;margin-top:6px}
.sw-archive-excerpt p{margin:0}
@media(max-width:900px) and (min-width:768px){
 .sw-archive-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 22px}
}
@media(max-width:767px){
 .sw-archive-wrap{width:calc(100% - 24px);padding-top:18px}
 .sw-archive-grid{grid-template-columns:1fr;gap:26px}
 .sw-archive-content h2{font-size:1.3rem}
}

/* RESPONSIVE HEADER - FINAL */
.sw-mobile-header{display:none}
@media(max-width:1100px){
 .sw-mobile-header{
  display:block;
  width:100%;
  background:#fff;
  border-bottom:1px solid #e5e5e5;
  position:relative;
  z-index:9999;
 }
 .sw-mobile-header-inner{
  min-height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:10px 18px;
  box-sizing:border-box;
 }
 .sw-mobile-logo{
  display:flex;
  align-items:center;
  min-width:0;
  max-width:78%;
  text-decoration:none;
 }
 .sw-mobile-logo-image{
  display:block!important;
  width:auto!important;
  max-width:100%!important;
  height:auto!important;
  max-height:58px!important;
  object-fit:contain!important;
 }
 .sw-mobile-logo>span{
  font-size:1.4rem;
  font-weight:600;
 }
 .sw-menu-toggle{
  flex:0 0 46px;
  width:46px;
  height:46px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  padding:9px;
  border:1px solid #d8d8d8;
  border-radius:6px;
  background:#fff;
  cursor:pointer;
  box-sizing:border-box;
 }
 .sw-menu-toggle span{
  display:block;
  width:100%;
  height:2px;
  background:#222;
 }
 .sw-mobile-menu{
  display:none;
  padding:0 18px 14px;
  background:#fff;
 }
 .sw-mobile-menu.is-open{display:block}
 .sw-mobile-nav,
 .sw-mobile-nav ul{
  list-style:none;
  margin:0;
  padding:0;
 }
 .sw-mobile-nav li{border-top:1px solid #eee}
 .sw-mobile-nav a{
  display:block;
  padding:12px 0;
  text-decoration:none;
  font-size:1rem;
 }
 .sw-mobile-excerpt{
  margin:7px 0 0;
  font-size:.94rem;
  line-height:1.5;
 }
 .sw-mobile-excerpt p{margin:0}
}
@media(min-width:1101px){
 .sw-mobile-header{display:none!important}
}


/* =========================================================
   SANDBOX WORLD 1.1.9
   EXACT BOXED HOMEPAGE FORMAT
   Large featured card LEFT + three boxed cards RIGHT.
   Everything outside this homepage desktop format is preserved.
   ========================================================= */

@font-face {
  font-family: 'Sandbox World Bungee Shade';
  src: url('assets/fonts/BungeeShade-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Desktop Astra site-title/logo: use the actual supplied Bungee font. */
.site-title,
.site-title a,
.ast-site-title-wrap .site-title,
.ast-site-title-wrap .site-title a,
.ast-builder-branding .site-title,
.ast-builder-branding .site-title a,
.ast-header-site-title,
.ast-header-site-title a {
  font-family: 'Sandbox World Bungee Shade', 'Bungee Shade', sans-serif !important;
  font-weight: 400 !important;
  font-style: normal !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
}

/* Mobile fallback logo text, when no custom image logo exists. */
.sw-mobile-logo > span {
  font-family: 'Sandbox World Bungee Shade', 'Bungee Shade', sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
}

/* The homepage section itself. */
@media (min-width: 768px) {

  .sw-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 58%) minmax(0, 42%) !important;
    column-gap: 22px !important;
    align-items: stretch !important;
    width: 100% !important;
  }

  /* LARGE FEATURED CARD ON THE LEFT */
  .sw-featured {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #fff !important;
    box-sizing: border-box !important;
  }

  .sw-featured-image {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .sw-featured-image img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
    border-radius: 0 !important;
  }

  .sw-featured-content {
    padding: 17px 20px 20px !important;
    box-sizing: border-box !important;
  }

  .sw-featured-content h2 {
    font-size: 2rem !important;
    line-height: 1.08 !important;
    margin: 0 !important;
  }

  .sw-featured-content .sw-excerpt {
    margin-top: 10px !important;
    line-height: 1.5 !important;
  }

  /* RIGHT COLUMN: THREE COMPLETE BOXED CARDS */
  .sw-supporting-list {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    min-width: 0 !important;
  }

  .sw-supporting-card {
    display: grid !important;
    grid-template-columns: 150px minmax(0, 1fr) !important;
    column-gap: 0 !important;
    align-items: stretch !important;
    width: 100% !important;
    height: 150px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #fff !important;
    box-sizing: border-box !important;
  }

  .sw-supporting-image {
    display: block !important;
    width: 150px !important;
    height: 148px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .sw-supporting-image img {
    display: block !important;
    width: 150px !important;
    height: 148px !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
    border-radius: 0 !important;
  }

  .sw-supporting-content {
    min-width: 0 !important;
    padding: 13px 15px !important;
    box-sizing: border-box !important;
  }

  .sw-supporting-content h3 {
    font-size: 1.2rem !important;
    line-height: 1.12 !important;
    margin: 0 !important;
  }

  .sw-supporting-content .sw-excerpt {
    font-size: .92rem !important;
    line-height: 1.42 !important;
    margin-top: 7px !important;
  }

  .sw-section-nav {
    margin-top: 16px !important;
    padding-top: 14px !important;
  }
}

/* Tablet: retain the same left-feature/right-stack concept. */
@media (min-width: 768px) and (max-width: 1100px) {
  .sw-grid {
    grid-template-columns: minmax(0, 55%) minmax(0, 45%) !important;
    column-gap: 16px !important;
  }

  .sw-supporting-card {
    grid-template-columns: 105px minmax(0, 1fr) !important;
    height: 112px !important;
  }

  .sw-supporting-image,
  .sw-supporting-image img {
    width: 105px !important;
    height: 110px !important;
  }

  .sw-supporting-content {
    padding: 10px 11px !important;
  }

  .sw-supporting-content h3 {
    font-size: 1rem !important;
  }

  .sw-supporting-content .sw-excerpt {
    font-size: .8rem !important;
  }

  .sw-featured-content {
    padding: 13px 15px 16px !important;
  }

  .sw-featured-content h2 {
    font-size: 1.55rem !important;
  }
}


/* Sandbox World 1.1.10
   Hide the featured image on single posts only.
   Homepage/category featured and supporting images are unchanged.
*/
body.single-post .post-thumb,
body.single-post .post-featured-image,
body.single-post .post-featured-image img,
body.single-post .post-thumb img,
body.single-post .wp-post-image {
    display: none !important;
}


/* Sandbox World 1.0
   Add breathing room below images inside single-post content.
   This does not affect the homepage card images.
*/
body.single-post .entry-content .wp-block-image {
    margin-bottom: 28px !important;
}

body.single-post .entry-content .wp-block-image + p {
    margin-top: 0 !important;
}


/* =========================================================
   SANDBOX WORLD CATEGORY GRID
   Four boxed posts: image + heading + excerpt.
   ========================================================= */
.sw-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    margin: 28px 0;
}

.sw-category-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    background: #fff;
    box-sizing: border-box;
}

.sw-category-card-image {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

.sw-category-card-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0;
}

.sw-category-card-content {
    padding: 14px 15px 17px;
}

.sw-category-card-title {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.18;
}

.sw-category-card-title a {
    text-decoration: none;
}

.sw-category-card-excerpt {
    margin-top: 8px;
    font-size: .92rem;
    line-height: 1.48;
}

.sw-category-card-excerpt p {
    margin: 0;
}

.sw-category-grid-empty {
    margin: 20px 0;
}

@media (max-width: 900px) and (min-width: 601px) {
    .sw-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 600px) {
    .sw-category-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .sw-category-card-content {
        padding: 14px 15px 17px;
    }

    .sw-category-card-title {
        font-size: 1.15rem;
    }
}


/* =========================================================
   SANDBOX WORLD CATEGORY GRID V2
   Compact four-column layout for widget areas.
   ========================================================= */
.sw-category-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
    margin: 20px 0 !important;
    align-items: start !important;
}

.sw-category-card {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-sizing: border-box !important;
}

.sw-category-card-image {
    display: block !important;
    width: 100% !important;
    height: 120px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.sw-category-card-image img {
    display: block !important;
    width: 100% !important;
    height: 120px !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.sw-category-card-content {
    display: block !important;
    padding: 10px 11px 12px !important;
}

.sw-category-card-title {
    margin: 0 0 6px !important;
    padding: 0 !important;
    font-size: 17px !important;
    line-height: 1.15 !important;
}

.sw-category-card-title a {
    text-decoration: none !important;
}

.sw-category-card-excerpt {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
}

.sw-category-card-excerpt p {
    margin: 0 !important;
}

/* Tablet */
@media (max-width: 900px) {
    .sw-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }

    .sw-category-card-image,
    .sw-category-card-image img {
        height: 135px !important;
    }
}

/* Phone */
@media (max-width: 600px) {
    .sw-category-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .sw-category-card-image,
    .sw-category-card-image img {
        height: 190px !important;
    }
}

.sw-category-grid-empty {
    margin: 20px 0;
}


/* Category grid widget hard override */
.widget .sw-category-grid,
.sidebar .sw-category-grid,
.widget-area .sw-category-grid {
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:16px !important;
    width:100% !important;
}
.widget .sw-category-card,
.sidebar .sw-category-card,
.widget-area .sw-category-card {
    display:block !important;
    width:auto !important;
    max-width:none !important;
}
.widget .sw-category-card-image,
.sidebar .sw-category-card-image,
.widget-area .sw-category-card-image {
    display:block !important;
    width:100% !important;
    height:110px !important;
    overflow:hidden !important;
}
.widget .sw-category-card-image img,
.sidebar .sw-category-card-image img,
.widget-area .sw-category-card-image img {
    display:block !important;
    width:100% !important;
    height:110px !important;
    max-width:none !important;
    object-fit:cover !important;
}
@media (max-width:900px) {
    .widget .sw-category-grid,
    .sidebar .sw-category-grid,
    .widget-area .sw-category-grid {
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    }
}
@media (max-width:600px) {
    .widget .sw-category-grid,
    .sidebar .sw-category-grid,
    .widget-area .sw-category-grid {
        grid-template-columns:1fr !important;
    }
}


/* =========================================================
   SANDBOX WORLD FINAL TABLET/MOBILE HEADER + CATEGORY GRID
   Version 1.0.4
   ========================================================= */

/* At tablet/mobile widths the custom Sandbox World header is
   the ONLY header. Hide Astra's header so two headers cannot
   appear at once. */
@media (max-width:1100px) {
  body #masthead,
  body .site-header,
  body .ast-header-break-point #masthead,
  body .ast-header-break-point .site-header {
    display:none !important;
    visibility:hidden !important;
    height:0 !important;
    min-height:0 !important;
    margin:0 !important;
    padding:0 !important;
  }

  body .sw-mobile-header {
    display:block !important;
    visibility:visible !important;
    height:auto !important;
    min-height:0 !important;
  }
}

/* Compact four-card category row. Keep four across on tablet
   landscape as well as desktop. */
.sw-category-grid,
.widget .sw-category-grid,
.sidebar .sw-category-grid,
.widget-area .sw-category-grid {
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:12px !important;
  width:100% !important;
  margin:18px 0 !important;
  align-items:start !important;
}

.sw-category-card,
.widget .sw-category-card,
.sidebar .sw-category-card,
.widget-area .sw-category-card {
  display:block !important;
  width:auto !important;
  max-width:none !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  overflow:hidden !important;
  border:1px solid #d9d9d9 !important;
  border-radius:10px !important;
  background:#fff !important;
  box-sizing:border-box !important;
}

.sw-category-card-image,
.widget .sw-category-card-image,
.sidebar .sw-category-card-image,
.widget-area .sw-category-card-image {
  display:block !important;
  width:100% !important;
  height:92px !important;
  margin:0 !important;
  padding:0 !important;
  overflow:hidden !important;
}

.sw-category-card-image img,
.widget .sw-category-card-image img,
.sidebar .sw-category-card-image img,
.widget-area .sw-category-card-image img {
  display:block !important;
  width:100% !important;
  max-width:none !important;
  height:92px !important;
  margin:0 !important;
  padding:0 !important;
  object-fit:cover !important;
}

.sw-category-card-content,
.widget .sw-category-card-content,
.sidebar .sw-category-card-content,
.widget-area .sw-category-card-content {
  padding:8px 9px 10px !important;
}

.sw-category-card-title,
.widget .sw-category-card-title,
.sidebar .sw-category-card-title,
.widget-area .sw-category-card-title {
  margin:0 0 5px !important;
  padding:0 !important;
  font-size:15px !important;
  line-height:1.15 !important;
}

.sw-category-card-excerpt,
.widget .sw-category-card-excerpt,
.sidebar .sw-category-card-excerpt,
.widget-area .sw-category-card-excerpt {
  margin:0 !important;
  padding:0 !important;
  font-size:12px !important;
  line-height:1.3 !important;
}

.sw-category-card-excerpt p { margin:0 !important; }

/* Only narrow phones stack. Tablets remain four across. */
@media (max-width:600px) {
  .sw-category-grid,
  .widget .sw-category-grid,
  .sidebar .sw-category-grid,
  .widget-area .sw-category-grid {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
  }
  .sw-category-card-image,
  .widget .sw-category-card-image,
  .sidebar .sw-category-card-image,
  .widget-area .sw-category-card-image,
  .sw-category-card-image img,
  .widget .sw-category-card-image img,
  .sidebar .sw-category-card-image img,
  .widget-area .sw-category-card-image img {
    height:100px !important;
  }
}

@media (max-width:400px) {
  .sw-category-grid,
  .widget .sw-category-grid,
  .sidebar .sw-category-grid,
  .widget-area .sw-category-grid {
    grid-template-columns:1fr !important;
  }
}


/* Sandbox World: isolated single post/page after-content widget */
.sw-single-after-content {
    width: 100%;
    margin: 28px 0;
}
.sw-single-after-content-widget {
    width: 100%;
    box-sizing: border-box;
}


/* Sandbox World Clean 1.0.7: four latest category cards above the existing homepage sections. */
.home .sw-wrap > .sw-home-top-categories {
    display: block !important;
    clear: both !important;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 38px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}
.home .sw-wrap > .sw-home-top-categories > .sw-home-top-categories-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 22px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: stretch !important;
}
.home .sw-home-top-category-card {
    display: flex !important;
    flex-direction: column !important;
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    overflow: hidden !important;
    border: 1px solid #e2ded8 !important;
    border-radius: 11px !important;
    background: #fff !important;
    box-sizing: border-box !important;
}
.home .sw-home-top-category-image {
    display: block !important;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    overflow: hidden !important;
    background: #f3f1ed !important;
}
.home .sw-home-top-category-image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
.home .sw-home-top-category-content { padding: 13px 15px 16px !important; }
.home .sw-home-top-category-heading {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 7px !important;
    margin: 0 0 8px !important;
    color: #b5121b !important;
    font-size: .82rem !important;
    font-weight: 700 !important;
}
.home .sw-home-top-category-heading a {
    color: #b5121b !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}
.home .sw-home-top-category-card h2 {
    margin: 0 !important;
    font-size: 1.2rem !important;
    line-height: 1.2 !important;
}
.home .sw-home-top-category-card h2 a { color: inherit !important; text-decoration: none !important; }
.home .sw-home-top-category-excerpt {
    margin-top: 8px !important;
    color: #555 !important;
    font-size: .88rem !important;
    line-height: 1.45 !important;
}
@media (max-width: 900px) {
    .home .sw-wrap > .sw-home-top-categories > .sw-home-top-categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }
}
@media (max-width: 560px) {
    .home .sw-wrap > .sw-home-top-categories { margin-bottom: 26px !important; }
    .home .sw-wrap > .sw-home-top-categories > .sw-home-top-categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 11px !important;
    }
    .home .sw-home-top-category-content { padding: 10px 11px 12px !important; }
    .home .sw-home-top-category-card h2 { font-size: 1rem !important; }
}


/* Sandbox World Clean 1.0.8: make the top category row visible on the latest-posts homepage.
   The row is independent of the desktop/mobile story-feed visibility switches. */
body.home .sw-wrap > .sw-home-top-categories,
body.blog .sw-wrap > .sw-home-top-categories,
body.front-page .sw-wrap > .sw-home-top-categories {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    clear: both !important;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 36px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}
body.home .sw-wrap > .sw-home-top-categories .sw-home-top-categories-grid,
body.blog .sw-wrap > .sw-home-top-categories .sw-home-top-categories-grid,
body.front-page .sw-wrap > .sw-home-top-categories .sw-home-top-categories-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.home .sw-home-top-category-card,
body.blog .sw-home-top-category-card,
body.front-page .sw-home-top-category-card {
    display: flex !important;
    flex-direction: column !important;
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    overflow: hidden !important;
    border: 1px solid #e2ded8 !important;
    border-radius: 11px !important;
    background: #fff !important;
}
body.home .sw-home-top-category-image,
body.blog .sw-home-top-category-image,
body.front-page .sw-home-top-category-image {
    display: block !important;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    overflow: hidden !important;
    background: #f3f1ed !important;
}
body.home .sw-home-top-category-image img,
body.blog .sw-home-top-category-image img,
body.front-page .sw-home-top-category-image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
body.home .sw-home-top-category-content,
body.blog .sw-home-top-category-content,
body.front-page .sw-home-top-category-content { padding: 12px 14px 15px !important; }
body.home .sw-home-top-category-heading,
body.blog .sw-home-top-category-heading,
body.front-page .sw-home-top-category-heading {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 0 8px !important;
    color: #b5121b !important;
    font-size: .8rem !important;
    font-weight: 700 !important;
}
body.home .sw-home-top-category-heading a,
body.blog .sw-home-top-category-heading a,
body.front-page .sw-home-top-category-heading a {
    color: #b5121b !important;
    white-space: nowrap !important;
    text-decoration: none !important;
}
body.home .sw-home-top-category-card h2,
body.blog .sw-home-top-category-card h2,
body.front-page .sw-home-top-category-card h2 {
    margin: 0 !important;
    font-size: 1.12rem !important;
    line-height: 1.2 !important;
}
body.home .sw-home-top-category-card h2 a,
body.blog .sw-home-top-category-card h2 a,
body.front-page .sw-home-top-category-card h2 a {
    color: inherit !important;
    text-decoration: none !important;
}
body.home .sw-home-top-category-excerpt,
body.blog .sw-home-top-category-excerpt,
body.front-page .sw-home-top-category-excerpt {
    margin-top: 7px !important;
    color: #555 !important;
    font-size: .86rem !important;
    line-height: 1.4 !important;
}
/* Keep four across on desktop; use two across on narrow screens. */
@media (max-width: 767px) {
    body.home .sw-wrap > .sw-home-top-categories .sw-home-top-categories-grid,
    body.blog .sw-wrap > .sw-home-top-categories .sw-home-top-categories-grid,
    body.front-page .sw-wrap > .sw-home-top-categories .sw-home-top-categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
    body.home .sw-home-top-category-card h2,
    body.blog .sw-home-top-category-card h2,
    body.front-page .sw-home-top-category-card h2 { font-size: .98rem !important; }
}

/* Sandbox World: force rounded corners on editorial photography.
   Explicitly target theme image components because several older rules
   assign square corners with !important. The stylesheet version is bumped
   in functions.php so browsers and optimization plugins fetch this file. */
body .sw-featured-image img,
body .sw-supporting-image img,
body .sw-category-card-image img,
body .sw-home-top-category-image img,
body .sw-archive-image img,
body .entry-content img:not(.custom-logo):not(.avatar):not([class*="logo"]):not([class*="icon"]),
body .wp-block-image img:not(.custom-logo):not(.avatar):not([class*="logo"]):not([class*="icon"]) {
    border-radius: 10px !important;
}
body img:not(.custom-logo):not(.avatar):not(.sw-mobile-logo-image):not([class*="logo"]):not([class*="icon"]) {
    border-radius: 10px !important;
}