.fg-blog-top-area {
  margin-bottom: 40px;
}

.fg-blog-divider {
  border-top: 1px solid rgba(246, 243, 241, 0.2);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.fg-featured-section {
  padding: 40px 0;
}

.fg-blog-grid-section {
  padding: 120px 0 160px;
}

.fg-blog-grid-title {
  margin: 0 0 64px;
  color: #f6f3f1;

  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.56px;
}

.fg-blog-grid-wrapper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 64px;
}

.fg-blog-grid-wrapper .generate-columns {
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  float: none !important;
}

body.blog .inside-article,
body.archive.category .inside-article {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

body.blog .inside-article .post-image,
body.archive.category .inside-article .post-image {
  order: 1;
  margin: 0;
}

body.blog .fg-blog-grid-wrapper .inside-article .post-image > a,
body.archive.category .fg-blog-grid-wrapper .inside-article .post-image > a {
  display: block;
  height: 300px;
  overflow: hidden;
}

body.blog .fg-blog-grid-wrapper .inside-article .post-image img,
body.archive.category .fg-blog-grid-wrapper .inside-article .post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.fg-blog-grid-wrapper article.post:hover .inside-article .post-image img,
.fg-blog-grid-wrapper
  article.post:focus-within
  .inside-article
  .post-image
  img {
  transform: scale(1.05);
}

body.blog .inside-article .entry-header,
body.archive.category .inside-article .entry-header {
  order: 2;
  margin: 0;
}

body.blog .inside-article .entry-header .entry-title,
body.archive.category .inside-article .entry-header .entry-title {
  margin: 0;
}

body.blog
  .fg-blog-grid-wrapper
  article.post
  .inside-article
  .entry-header
  h2.entry-title,
body.archive.category
  .fg-blog-grid-wrapper
  article.post
  .inside-article
  .entry-header
  h2.entry-title {
  margin: 0 !important;
  color: #f6f3f1 !important;
  font-size: 20px !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 24px !important;
}

body.blog
  .fg-blog-grid-wrapper
  article.post
  .inside-article
  .entry-header
  h2.entry-title
  a,
body.archive.category
  .fg-blog-grid-wrapper
  article.post
  .inside-article
  .entry-header
  h2.entry-title
  a {
  color: #f6f3f1;

  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  text-decoration: none;
}

body.blog
  .fg-blog-grid-wrapper
  article.post
  .inside-article
  .entry-header
  h2.entry-title
  a:hover,
body.archive.category
  .fg-blog-grid-wrapper
  article.post
  .inside-article
  .entry-header
  h2.entry-title
  a:hover {
  color: #f6f3f1;
}

body.blog .inside-article .entry-summary,
body.archive.category .inside-article .entry-summary {
  order: 3;
  margin: 0;
}

body.blog .inside-article .entry-summary > p,
body.archive.category .inside-article .entry-summary > p {
  margin: 0;
  overflow: hidden;
  color: rgba(246, 243, 241, 0.6);
  text-overflow: ellipsis;

  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

body.blog .inside-article .entry-summary .read-more-container,
body.archive.category .inside-article .entry-summary .read-more-container {
  display: none;
}

.fg-blog-card-meta {
  order: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 0;
}

.fg-blog-card-meta > * {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fg-blog-card-meta > * + *::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d9d9d9;
  opacity: 0.2;
  margin-right: 8px;
}

.fg-blog-card-meta a {
  display: inline;
  color: rgba(246, 243, 241, 0.6);

  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 20px;
  text-decoration: none;
}

.fg-blog-card-meta a:hover {
  color: #f6f3f1;
  text-decoration: underline;
}

.fg-blog-card-readmore {
  order: 5;
  margin: 0;
}

.fg-blog-card-readmore .read-more.button {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  padding-bottom: 4px;
  margin: 0;
  color: #f6f3f1;

  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%;
  text-transform: capitalize;
  border-bottom: 2px solid var(--accent);
  transition: transform 0.25s ease;
}

.fg-blog-grid-wrapper
  article.post:hover
  .fg-blog-card-readmore
  .read-more.button,
.fg-blog-grid-wrapper
  article.post:focus-within
  .fg-blog-card-readmore
  .read-more.button {
  transform: translateX(8px);
}

.fg-blog-card-readmore .read-more.button:hover,
.fg-blog-card-readmore .read-more.button:focus {
  background: none;
  border: 0;
  border-bottom: 2px solid var(--accent);
  color: #f6f3f1;
}

.fg-featured-section__title {
  margin: 0 0 64px;
  color: #f6f3f1;

  font-size: 32px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.64px;
}

.fg-featured-slider-controls {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.fg-featured-slider-arrow {
  position: absolute;
  top: 50%;
  width: 103px;
  height: 103px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.fg-featured-section[data-slider-ready="1"] .fg-featured-slider-arrow:not(:disabled) {
  display: flex;
}

.fg-featured-slider-arrow--prev {
  left: 0;
}

.fg-featured-slider-arrow--next {
  right: 0;
}

.fg-featured-slider-arrow svg {
  width: 100%;
  height: 100%;
  display: block;
}

.fg-featured-slider-arrow--prev svg {
  transform: rotate(180deg);
}

.rtl .fg-featured-slider-arrow--prev svg,
[dir="rtl"] .fg-featured-slider-arrow--prev svg {
  transform: none;
}

.rtl .fg-featured-slider-arrow--next svg,
[dir="rtl"] .fg-featured-slider-arrow--next svg {
  transform: rotate(180deg);
}

body.blog.rtl .fg-featured-slider-arrow--prev svg,
body.archive.category.rtl .fg-featured-slider-arrow--prev svg,
body.archive.tag.rtl .fg-featured-slider-arrow--prev svg,
body.single-post.rtl .fg-featured-slider-arrow--prev svg,
html[dir="rtl"] body.blog .fg-featured-slider-arrow--prev svg,
html[dir="rtl"] body.archive.category .fg-featured-slider-arrow--prev svg,
html[dir="rtl"] body.archive.tag .fg-featured-slider-arrow--prev svg,
html[dir="rtl"] body.single-post .fg-featured-slider-arrow--prev svg {
  transform: rotate(180deg);
}

body.blog.rtl .fg-featured-slider-arrow--next svg,
body.archive.category.rtl .fg-featured-slider-arrow--next svg,
body.archive.tag.rtl .fg-featured-slider-arrow--next svg,
body.single-post.rtl .fg-featured-slider-arrow--next svg,
html[dir="rtl"] body.blog .fg-featured-slider-arrow--next svg,
html[dir="rtl"] body.archive.category .fg-featured-slider-arrow--next svg,
html[dir="rtl"] body.archive.tag .fg-featured-slider-arrow--next svg,
html[dir="rtl"] body.single-post .fg-featured-slider-arrow--next svg {
  transform: none;
}

.fg-featured-slider-arrow:hover,
.fg-featured-slider-arrow:focus-visible {
  background: transparent;
  border: 0;
  box-shadow: none;
  outline: none;
  transform: translateY(-50%) scale(1.03);
}

.fg-featured-slider-arrow:focus,
.fg-featured-slider-arrow:active {
  background: transparent;
  border: 0;
  box-shadow: none;
  outline: none;
}

.fg-featured-slider-arrow:disabled {
  display: none;
}

.fg-featured-section.is-slider-static .fg-featured-slider-controls {
  opacity: 1;
}

.fg-featured-slider-wrap {
  position: relative;
  margin-right: 0;
  margin-left: 0;
  padding-left: 0;
  padding-right: 0;
}

.fg-featured-section {
  width: 100%;
  padding: 80px 0;
}

.rtl .fg-featured-slider-wrap {
  margin-right: 0;
  margin-left: 0;
  padding-right: 0;
  padding-left: 0;
}

body.blog #page,
body.blog #content,
body.blog #primary,
body.blog #main,
body.blog .fg-featured-section .generate-columns-container,
body.archive.category #page,
body.archive.category #content,
body.archive.category #primary,
body.archive.category #main,
body.archive.category .fg-featured-section .generate-columns-container,
body.archive.tag #page,
body.archive.tag #content,
body.archive.tag #primary,
body.archive.tag #main,
body.archive.tag .fg-featured-section .generate-columns-container {
  overflow-x: visible;
}

.fg-featured-slider {
  overflow-x: visible;
  overflow-y: visible;
  padding-bottom: 6px;
}

.fg-featured-slider-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(100%, 480px);
  gap: 16px;
  width: max-content;
  transform: translate3d(0, 0, 0);
  transition: transform 0.45s ease;
  will-change: transform;
}

.fg-featured-slider::-webkit-scrollbar {
  display: none;
}

.fg-featured-card {
  min-width: 0;
  width: min(100%, 480px);
  overflow: hidden;
}

.fg-featured-card__link,
.fg-blog-grid__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.fg-featured-card__image,
.fg-blog-grid__image {
  position: relative;
  overflow: hidden;
  background: #171717;
  border: 1px solid rgba(246, 243, 241, 0.18);
}

.fg-featured-card__image {
  aspect-ratio: 16 / 10;
}

.fg-featured-card__link {
  width: min(100%, 480px);
  height: 360px;
  max-width: 100%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.6) 100%),
    var(--fg-featured-image) lightgray 50% / cover no-repeat;
  transition: transform 0.35s ease;
}

.fg-featured-card__link:hover,
.fg-featured-card__link:focus,
.fg-featured-card__link:active {
  text-decoration: none;
}

.fg-featured-card:hover .fg-featured-card__link,
.fg-featured-card:focus-within .fg-featured-card__link {
  transform: scale(1.02);
}

.fg-featured-card__title {
  margin: 0;
  color: #f6f3f1;

  font-size: 30px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.6px;
}

.fg-featured-card__excerpt {
  margin: 0;
  color: rgba(246, 243, 241, 0.8);

  font-size: 20px;
  font-style: normal;
  font-weight: 300;
  line-height: 150%;
}

.fg-blog-grid__image {
  aspect-ratio: 16 / 11;
}

.fg-featured-card__image img,
.fg-blog-grid__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fg-featured-card__content,
.fg-blog-grid__content {
  padding-top: 12px;
}

.fg-featured-card__content h3,
.fg-blog-grid__content h3 {
  margin: 0;
  color: #f6f3f1;

  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.44px;
}

.fg-featured-card__content p,
.fg-blog-grid__content p {
  margin: 8px 0 0;
  color: rgba(246, 243, 241, 0.7);

  font-size: 15px;
  font-weight: 300;
  line-height: 1.5;
}

.fg-blog-grid {
  padding: 40px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 16px;
}

.fg-blog-pagination {
  padding: 0 0 48px;
}

.fg-blog-pagination .page-numbers {
  list-style: none;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

.fg-blog-pagination .page-numbers a,
.fg-blog-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(246, 243, 241, 0.2);
  color: #f6f3f1;
  text-decoration: none;

  font-size: 14px;
  font-weight: 300;
}

.fg-blog-pagination .page-numbers .current {
  border-color: #f6f3f1;
  color: #171717;
  background: #f6f3f1;
}

body.single-post .inside-article .fg-related-posts-section {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 96px;
  padding-left: 64px;
  padding-right: 64px;
}

body.single-post
  .inside-article
  .fg-related-posts-section
  .fg-featured-slider-track {
  grid-template-columns: none;
}

body.single-post .inside-article .fg-related-posts-section .fg-featured-card {
  width: 100%;
  max-width: none;
}

body.single-post .inside-article .fg-related-posts-section .fg-featured-card {
  overflow: visible;
}

body.single-post .inside-article .fg-related-posts-section .inside-article {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

body.single-post .inside-article .fg-related-posts-section .post-image {
  order: 1;
}

body.single-post .inside-article .fg-related-posts-section .entry-header {
  order: 2;
  position: static;
  inset: auto;
}

body.single-post .inside-article .fg-related-posts-section .entry-summary {
  order: 3;
}

body.single-post .inside-article .fg-related-posts-section .fg-blog-card-meta {
  order: 4;
}

body.single-post
  .inside-article
  .fg-related-posts-section
  .fg-blog-card-readmore {
  order: 5;
}

body.single-post .inside-article .fg-related-posts-section .post-image {
  margin: 0;
}

body.single-post .inside-article .fg-related-posts-section .post-image > a {
  display: block;
  height: 300px;
  overflow: hidden;
}

body.single-post .inside-article .fg-related-posts-section .post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

body.single-post
  .inside-article
  .fg-related-posts-section
  article.post:hover
  .post-image
  img,
body.single-post
  .inside-article
  .fg-related-posts-section
  article.post:focus-within
  .post-image
  img {
  transform: scale(1.05);
}

body.single-post .inside-article .fg-related-posts-section .entry-header,
body.single-post .inside-article .fg-related-posts-section .entry-title,
body.single-post .inside-article .fg-related-posts-section .entry-title h2 {
  margin: 0;
}

body.single-post .inside-article .fg-related-posts-section .entry-title,
body.single-post .inside-article .fg-related-posts-section .entry-title a {
  color: #f6f3f1;

  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  text-decoration: none;
}

body.single-post .inside-article .fg-related-posts-section .entry-summary {
  margin: 0;
}

body.single-post .inside-article .fg-related-posts-section .entry-summary > p {
  margin: 0;
  overflow: hidden;
  color: rgba(246, 243, 241, 0.6);
  text-overflow: ellipsis;

  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

@media (min-width: 769px) {
  body.single-post
    .inside-article
    .fg-related-posts-section
    .fg-featured-slider-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-columns: auto;
    width: 100%;
  }

  body.single-post
    .inside-article
    .fg-related-posts-section
    .fg-featured-slider-controls {
    display: none;
  }
}

@media (max-width: 1024px) {
  .fg-blog-grid-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fg-featured-slider-track {
    grid-auto-columns: min(100%, 480px);
  }

  .fg-featured-slider-arrow {
    width: 84px;
    height: 84px;
  }

  .fg-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  body.single-post .inside-article .fg-related-posts-section {
    margin-top: 64px;
    padding-left: 20px;
    padding-right: 20px;
  }

  body.single-post .inside-article .fg-related-posts-section .post-image > a {
    height: 240px;
  }

  body.single-post .inside-article .fg-related-posts-section .entry-title,
  body.single-post .inside-article .fg-related-posts-section .entry-title a {
    font-size: 16px;
  }

  body.single-post
    .inside-article
    .fg-related-posts-section
    .entry-summary
    > p {
    font-size: 14px;
  }

  body.single-post
    .inside-article
    .fg-related-posts-section
    .fg-featured-slider-track {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
  }

  body.blog .fg-blog-grid-wrapper .inside-article .post-image > a,
  body.archive.category .fg-blog-grid-wrapper .inside-article .post-image > a {
    height: 240px;
  }

  body.blog
    .fg-blog-grid-wrapper
    article.post
    .inside-article
    .entry-header
    h2.entry-title,
  body.archive.category
    .fg-blog-grid-wrapper
    article.post
    .inside-article
    .entry-header
    h2.entry-title,
  body.blog
    .fg-blog-grid-wrapper
    article.post
    .inside-article
    .entry-header
    h2.entry-title
    a,
  body.archive.category
    .fg-blog-grid-wrapper
    article.post
    .inside-article
    .entry-header
    h2.entry-title
    a {
    font-size: 16px;
  }

  body.blog .inside-article .entry-summary > p,
  body.archive.category .inside-article .entry-summary > p,
  .fg-blog-card-meta a {
    font-size: 14px;
  }

  .fg-blog-grid-wrapper {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 64px;
  }

  .fg-blog-grid-title {
    margin: 0 0 64px;
    font-size: 24px;
    letter-spacing: -0.48px;
  }

  .fg-blog-grid-section {
    padding: 88px 0 104px;
  }

  .fg-featured-section__title {
    margin-bottom: 48px;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
    letter-spacing: -0.64px;
  }

  .fg-featured-section {
    padding: 64px 0 80px;
  }

  .fg-featured-slider-arrow {
    width: 64px;
    height: 64px;
  }

  .fg-featured-slider-track {
    grid-auto-columns: min(100%, 480px);
  }

  .fg-featured-card__link {
    height: 360px;
    padding: 30px;
  }

  .fg-featured-card__title {
    font-size: 20px;
  }

  .fg-featured-card__excerpt {
    font-size: 16px;
  }

  .fg-blog-grid {
    padding: 32px 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .fg-featured-slider-controls {
    display: none;
  }

  .fg-featured-slider {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 20px;
    padding-bottom: 0;
    scroll-padding-left: 20px;
  }

  .fg-featured-slider::-webkit-scrollbar {
    display: none;
  }

  .fg-featured-slider-track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    transform: none !important;
    transition: none;
    gap: 16px;
    padding: 0;
  }

  .fg-featured-card {
    flex: 0 0 auto;
    max-width: 80vw;
    scroll-snap-align: start;
  }

  /* Related-posts slider on articles: wider cards so ~90% of the first card
     shows with the next one peeking, matching the product gallery swipe. */
  .fg-related-posts-section .fg-featured-card {
    flex: 0 0 90vw;
    max-width: 90vw;
  }
}
