.marketing_content {
  margin: 20px auto;
  padding: 25px;
  container-type: inline-size;
  container-name: marketing;
  width: 100%;
  box-sizing: border-box;
  max-width: 1000px !important;
  position: relative;
}

.section {
  margin-bottom: 45px;
}

.brand_feature {
  display: flex;
  align-items: stretch;
  gap: 25px;
}

.brand_feature.left_feature {
  flex-direction: row;
}

.brand_feature.right_feature {
  flex-direction: row-reverse;
}

.feature_block {
  position: relative;
  width: 50%;
  overflow: hidden;
  height:100%;
}

.feature_block a {
  text-decoration: none !important;
  color: inherit !important;;
}

.feature_block a:hover,
.feature_block a:focus,
.feature_block a:active,
.feature_block a:visited {
  text-decoration: none !important;;
  color: inherit !important;;
}

.feature_block_logo {
  position: absolute;
  width: 75px;
  top: 1.5rem;
  left: 1.5rem;
}

.feature_image {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(2, 1fr);
}

.feature_image img {
  width: 100%;
  display: block;
}

.feature_image img:first-child {
  grid-column: span 2;
}

.feature_block_content {
  margin-top: 0.5rem;
  background-color: var(--feature-bg);
  color: var(--copy);
  padding: 40px 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-grow: 1;
}

.feature_block_content h2 {
  font-weight: bolder;
  margin-bottom: 1.5rem;
}

.feature_block_content p {
  line-height: 1.75;
  margin-bottom: 2rem;
}

.feature_block_content span {
  border: 1px solid var(--copy);
  padding: 10px 25px;
  text-align: center;
}

.brand_block {
  width: 50%;
  flex-grow: 1;
  min-height: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}

.brand_block h2 {
  font-weight: bolder;
  width: 100%;
  line-height: 2rem;
}

.brand_block_top {
  width: 100%;
  outline: 1px solid var(--copy);
  background-color: var(--bgcolor);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 20px;
}

.brand_block_top > div:first-child {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2em;
  box-sizing: border-box;
}

.brand_block_top > div:last-child {
  flex-shrink: 0;
  height: 100%;
  width: 75px;
  overflow: hidden;
}

.brand_block_top img {
  height: 100%;
  width: 100%;
  display: block;
  object-fit: cover;
}

.brand_block_product {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.brand_block_product_card {
  outline: 1px solid var(--copy);
  background-color: var(--bgcolor);
  padding: 25px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brand_block_product_card > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
height: 100%;
}

.brand_block_product_card div p:nth-of-type(2) {
  font-weight: bolder;
  margin-top: auto;
}

.brand_block_product_card img {
  width: 100%;
  margin-bottom: 3rem;
}

.brand_block_top span {
  display: block;
  margin-top: 1em;
  font-weight: bolder;
}

#marketing_content a.brand_block_top > div:first-of-type {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  height: 100%;
  box-sizing: border-box;
}

.category_callout {
  background-color: var(--bgcolor);
  color: var(--color);
  text-align: center;
  padding: 20px;
  font-weight: bolder;
}

.category_callout a {
  text-decoration: none;
  color: var(--color);
}

.category_callout_product_card {
  margin-top: 25px;
  display: grid;
  gap: 25px;
  grid-template-columns: repeat(4, 1fr);
}

.category_callout_product_card img {
  display: block;
  width: 100%;
  height: 400px;
  border: 1px solid #BABABA;
  object-fit: cover;
}

.product_row h2 {
  font-size: 2.25em;
  font-weight: bolder;
  margin-bottom: .75em;
}

.product_row_card_container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 25px;
  width: 95%;
  margin: 25px auto;
}

.product_row_card {
  border: 1px solid #BABABA;
  padding: 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product_row_card span {
  display: block;
  margin-top: 25px;
  font-weight: bolder;
}

.product_row_card img {
  display: block;
  width: 100%;
  margin-bottom: 3em;
}

.lifestyle_text_container {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}

.lifestyle_text_container a {
  object-fit: cover;
  overflow: hidden;
  text-decoration: none;
  display: grid;
  grid-template-rows: 1fr auto;
}

.lifestyle_text_container img {
  display: block;
  width: 100%;
  height: 130%;
  object-fit: cover;
}

.lifestyle_text_container p {
  text-align: center;
  margin: 0;
  padding: 25px;
  background-color: var(--bgcolor);
  color: var(--color);
  font-weight: bold;
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ht-visit-us a {
  display: grid;
  grid-template-columns: 0.75fr 0.75fr 1fr 0.75fr 0.75fr;
  gap: 5px;
  text-decoration: none;
}

.ht-visit-us div {
  background-color: var(--bgcolor);
  color: var(--color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}

.ht-visit-us div h2 {
  font-weight: bolder;
}

#categorypage {
    width: 100% !important;
    padding: 0 !important;
}

.sub_cat_full_width, .sub_cat_full_width img {
  width: 100%;
  max-height: 500px;
  min-height: 150px;
  object-fit: cover;
  z-index: 0;
  position: relative;
}

.sub_cat_full_width {
  position: relative;
  margin-bottom: -10rem;
}

.sub_category_block {
  background-color: #ffffff;
  max-width: 1000px;
  width: 100%;
  height: auto;
  border: 1px solid #BABABA;
  z-index: 5;
  box-sizing: border-box;
  padding: 25px;
  position: relative;
  z-index: 5;
}

.sub_category_block h2 {
  font-weight: bolder;
  font-size: 2.5rem;
  line-height: 3rem;
  margin-bottom: 20px;
}

.sub_category_block a {
  color: #2E6399;
  font-weight: bolder;
  line-height: 2rem;
  display: block;
  width: 100%;
  text-align: left;
}

.sub_category_block_table {
  display: grid;
  gap: 20px;
}

.sub_category_block_table p {
  text-align: center;
}

.sub_category_table_4 {
  grid-template-columns: repeat(4, 1fr);
}

.sub_category_table_3 {
  grid-template-columns: repeat(3, 1fr);
}
.sub_category_table_2 {
  grid-template-columns: repeat(2, 1fr);
}

@container marketing (min-width: 900px) {
    .marketing_content {
        min-width: 1000px;
    }
}

@container marketing (max-width: 600px) {
  .marketing_content {
    width: 100%;
    z-index: 1 !important;
    position: relative;
  }

  .marketing_content p {
     font-size: 0.875rem !important;
  }

  .lifestyle_text_container p {
    padding: 10px !important;
  }

  .brand_feature,
  .brand_feature.right,
  .brand_feature.left {
    flex-direction: column !important;
  }

  .feature_block,
  .brand_block {
    width: 100%;
  }

  .brand_block_product, .category_callout_product_card, .product_row_card_container, .lifestyle_text_container,  .ht-visit-us a {
    grid-template-columns: repeat(2, 1fr);
  }
  .ht-visit-us div {
    grid-column: span 2;
    box-sizing: border-box;
    padding: 15px 0;
  }

  .ht-visit-us img {
    width: 100%;
  }

  .sub_category_table_3, .sub_category_table_4{
  grid-template-columns: repeat(2, 1fr);
  }
}