/*
Theme Name: Jem - Suits
Theme URI: 
Author: 
Author URI: 
Description: 
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jem-suits
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: 2px !important;
	text-underline-offset: .25em;
}

a:hover {
  text-decoration: underline 2px solid var(--wp--preset--color--action-dark);
}

/* Focus styles */
/* Keep focus outline only when keyboard users navigate */
button:focus-visible,
a:focus-visible {
  outline: -webkit-focus-ring-color auto 1px;
}

/* Remove outline for mouse clicks */
button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

/* :where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
} */

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}

/* NEW */
.wp-block-button a.wp-block-button__link {
  transition: all .25s ease;
}

.wp-block-button a.wp-block-button__link:hover {
  text-decoration: none;
}

.wp-block-button .wp-block-button__link:hover,
.wp-block-button.is-style-fill .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background-color: color-mix(var(--wp--preset--color--base-200), #000 20%);
  border: 1px solid color-mix(var(--wp--preset--color--base-200), #000 20%);
  color: var(--wp--preset--color--brand-primary);
}

.wp-block-button.is-style-button-brand-primary .wp-block-button__link:hover,
.wp-block-button.is-style-button-brand-primary-outline .wp-block-button__link:hover {
	background-color: color-mix(var(--wp--preset--color--brand-primary), #FFF 15%);
  color: var(--wp--preset--color--base-0);
}

.wp-block-button.is-style-button-action .wp-block-button__link:hover,
.wp-block-button.is-style-button-action-outline .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--action-light);
  color: var(--wp--preset--color--base-0);
}

.gform_button[type="submit"] {
  background-color: var(--wp--preset--color--action-dark);
  border: 1px solid var(--wp--preset--color--action-dark);
  color: var(--wp--preset--color--base-0);
  font-family: var(--wp--preset--font-family--antonio);
  font-size: var(--wp--preset--font-size--body);
  padding-top: 0.75rem;
  padding-right: 1.5em;
  padding-bottom: 0.75rem;
  padding-left: 1.5em;
  text-transform: uppercase;
}

.gform_button[type="submit"]:hover {
  background-color: var(--wp--preset--color--action-light);
  border: 1px solid var(--wp--preset--color--action-light);
  color: var(--wp--preset--color--base-0);
}

.wp-block-jem-toolkit-phone-number .wp-element-button,
.wp-block-jem-toolkit-phone-number .wp-block-button__link  {
  background-color: var(--wp--preset--color--action-dark) !important;
  border: 1px solid var(--wp--preset--color--action-dark);
  color: var(--wp--preset--color--base-0);
  font-weight: 400;
}

.wp-block-jem-toolkit-phone-number .wp-element-button:hover,
.wp-block-jem-toolkit-phone-number .wp-block-button__link:hover  {
  background-color: var(--wp--preset--color--action-light) !important;
  border: 1px solid var(--wp--preset--color--action-light);
}


/* Header */

header #mega-menu-wrap-primary.mega-menu-wrap .mega-menu-toggle {
  background-color: rgba(121, 111, 99, 1);
  border-radius: 0;
  color: #FFF;
}

@media only screen and (max-width: 1000px) {
  header #mega-menu-wrap-primary {
    order: 1;
  }
  header #mega-menu-wrap-primary button.mega-close {
    transform: translateX(-100%);
  }
  header #mega-menu-wrap-primary .mega-menu-toggle + #mega-menu-primary {
    padding-top: 80px; /* match height of close button */
  }
  header #mega-menu-wrap-primary .mega-menu-toggle + #mega-menu-primary::before {
    content: '';
    display: block;
    position: absolute;
    top: 20px;
    left: 14px;
    width: 50%;
    height: 40px;
    background: url('/wp-content/themes/jem-suits/assets/images/logomark-icon.png') no-repeat left center / contain;
  }
  header #mega-menu-wrap-primary .mega-menu-toggle ~ button.mega-close {
    top: 10px;
  }
  header #mega-menu-wrap-primary .mega-menu-toggle ~ button.mega-close:before {
    height: 60px;
  }
  
  header #mega-menu-wrap-primary #mega-menu-primary li.mega-menu-item-has-children > a.mega-menu-link > span.mega-indicator {
    width: 18px;
  }
  header .wp-block-jem-toolkit-phone-number {
    order: 0;
  }
  header #mega-menu-wrap-primary.mega-menu-wrap .mega-menu-toggle,
  header .wp-block-button.wp-block-jem-toolkit-phone-number a {
    height: 46px;
    width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25em;
    box-sizing: border-box;
  }  
}

/* Core Blocks */

.wp-block-media-text>.wp-block-media-text__content {
	padding-left: 0;
	padding-right: 0;
}



/* Home Page */

.home-about {
  position: relative;
  box-sizing: border-box;
}

.home-about::before,
.home-about::after {
  content: '';
  display: block;
  position: absolute;
  left: 50%;
  width: 100vw;
  height: 20px;
}

.home-about::before {
  top: 0;
  transform: translate(-50%, -100%);
  background: url('/wp-content/themes/jem-suits/assets/images/tear-top.svg') repeat-x bottom center / auto 100%;
}

.home-about::after {
  bottom: 0;
  transform: translate(-50%, 100%);
  background: url('/wp-content/themes/jem-suits/assets/images/tear-bottom.svg') repeat-x bottom center / auto 100%;
  z-index: 2;
}

/* Hide the link text visually but keep it accessible */
p.icon-only a {
  position: relative;
  display: inline-block;
  color: inherit; /* ensure no text color leak */
  text-decoration: none;
}

p.icon-only a {
  /* Use the accessible hiding pattern */
  font-size: 0; /* hides text visually */
}

/* Restore font size for screen readers */
p.icon-only a::before {
  content: attr(title);
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(100%);
  white-space: nowrap;
}

/* Add the visible arrow */
p.icon-only a::after {
  content: '';
  display: inline-block;
  background-color: var(--wp--preset--color--action-dark); /* or use a background-image: url("arrow.svg"); */
  width: 1.875rem;
  height: 1.875rem;
  -webkit-mask-image: url('/wp-content/themes/jem-suits/assets/images/arrow-right-solid-full.svg');
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: bottom left;
  -webkit-mask-size: contain;
  mask-image: url('/wp-content/themes/jem-suits/assets/images/arrow-right-solid-full.svg');
  mask-repeat: no-repeat;
  mask-position: bottom left;
  mask-size: contain;
}

p.icon-only a:hover::after {
  animation-name: bounceRight; /* Reference the keyframes */
  animation-duration: 1s; /* Duration of one animation cycle */
  animation-timing-function: ease-in-out; /* Smooth acceleration/deceleration */
  animation-iteration-count: once; /* Repeat indefinitely */
}

@keyframes bounceRight {
  0% {
    transform: translateX(0); /* Start at original position */
  }
  20% {
    transform: translateX(30px); /* Move right */
  }
  40% {
    transform: translateX(-2px); /* Bounce back slightly */
  }
  60% {
    transform: translateX(10px); /* Move right again */
  }
  80% {
    transform: translateX(-1px); /* Bounce back even less */
  }
  100% {
    transform: translateX(0); /* Return to original position */
  }
}

figure.image-offset-backdrop {
    position: relative;
    padding-top: var(--wp--preset--spacing--50);
    padding-left: var(--wp--preset--spacing--50);
}

figure.image-offset-backdrop img {
    position: relative;
    box-shadow: 30px 30px 30px rgba(84,75,64, 0.08);
}

figure.image-offset-backdrop::before {
    content: '';
    position: absolute;
    width: calc(100% - var(--wp--preset--spacing--50));
    height: calc(100% - var(--wp--preset--spacing--50));
    top: 0;
    left: 0;
    background:
        linear-gradient(
            15deg,
            #232221 0%,
            #B2936D 47%,
            rgba(84,75,64, 0.96)
        );
}

.jem-testimonial {
  box-sizing: border-box;
	background-color: var(--wp--preset--color--base-0);
	color:  var(--wp--preset--color--base-900);
	padding: var(--wp--preset--spacing--50);
	position: relative;
  height: 100%;
}

.jem-testimonial::before {
	content: '';
	display: block;
	height: 5.5rem;
	width: auto;
	max-width: 80%;
	left: 50%;
	transform: translateX(-50%);
	position: relative;
	background: url('/wp-content/themes/jem-suits/assets/images/logomark-icon.png') no-repeat center center / contain;
}

.jem-testimonial figcaption h3 {
	font-family: var(--wp--preset--font-family--antonio);
	font-size: var(--wp--preset--font-size--heading-m);
}

.jem-testimonial figcaption + blockquote {
	border-top: 1px solid rgba(167, 173, 189, 0.30);
	padding-top: 1rem;
}

.jem-testimonial .jem-testimonial__name {
	font-family: var(--wp--preset--font-family--antonio);
	font-size: var(--wp--preset--font-size--body-l);
}

.swiper-slide .jem-testimonial blockquote {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jem-map-location-list {
  list-style-type: none;
  padding-left: 0px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.jem-map-location-list li {
  padding-left: 1.35em;
  position: relative;
  font-family: var(--wp--preset--font-family--antonio);
  font-size: var(--wp--preset--font-size--body-l);
}

.jem-map-location-list li::before {
  content: '';
  width: 1em;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--wp--preset--color--action-dark);
  /* background: url('/wp-content/themes/jem-suits/assets/images/circle-check-regular-full.svg') no-repeat center center / contain; */
  mask: url('/wp-content/themes/jem-suits/assets/images/circle-check-regular-full.svg') no-repeat center center / contain;
  -webkit-mask: url('/wp-content/themes/jem-suits/assets/images/circle-check-regular-full.svg') no-repeat center center / contain;
}

footer {
  margin-block-start: 0px !important;
}

@media (min-width: 792px) {
  footer .footer-logo {
    margin-block-start: 2rem !important;
  }
}


/* Nav */
/* .wp-block-navigation-submenu {
  border: none !important;
  background-color: inherit !important;
  color: inherit !important;
} */

.wp-block-navigation-link {
  font-size: 1rem;
  line-height: 1.5;
}

a.wp-block-navigation-item__content {
  padding: 0.5rem;
}

.tabular-num {
  font-variant-numeric: tabular-nums;
  /* fallback */
  font-feature-settings: "tnum";
}


/* Hide submenu items on mobile menu */
.wp-block-navigation-item.open-on-hover-click .wp-block-navigation-submenu__toggle[aria-expanded="false"] ~ ul.wp-block-navigation__submenu-container {
    visibility: hidden;
}

/* Accordion Block */
.faq__title {
  font-family: var(--wp--preset--font-family--antonio);
  font-size: var(--wp--preset--font-size--heading-s);
  letter-spacing: -0.0525rem;
  line-height: 1.6;
}

.faq .jem-accordion__toggle {
  width: 1.6875rem;
  height: 1.6875rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq .jem-accordion__toggle::before {
  color: var(--wp--preset--color--action-dark);
  font-size: 4rem;
}

.faq .faq__content {
  font-size: 1rem;
}


/* Swiper */
.jem-swiper .swiper > * {
  box-sizing: border-box;
}

.jem-swiper .swiper {
  display: grid;
  row-gap: 2rem;
  column-gap: 0.5rem;
  grid-template-columns: 1fr 48px auto 48px 1fr; /* middle values accomodates pagination dots/arrows */
  grid-template-rows: 1fr 48px;
}

.jem-swiper .swiper-wrapper {
  grid-column: 1 / span 5;
  grid-row: 1 / span 1;
}

.jem-swiper .swiper-horizontal>.swiper-pagination-bullets, 
.jem-swiper .swiper-pagination-bullets.swiper-pagination-horizontal, 
.jem-swiper .swiper-pagination-custom, .swiper-pagination-fraction,
.jem-swiper .swiper-button-prev,
.jem-swiper .swiper-button-next {
  box-sizing: border-box;
  margin: 0;
  top: 0;
  bottom: 0;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wp--preset--color--action-dark);
}

.jem-swiper .swiper-horizontal>.swiper-pagination-bullets, 
.jem-swiper .swiper-pagination-bullets.swiper-pagination-horizontal, 
.jem-swiper .swiper-pagination-custom, .swiper-pagination-fraction {
  grid-column: 3 / span 1;
  grid-row: 2 / span 1;
}

.jem-swiper .swiper-pagination {
  position: relative;
  width: min-content;
}

.swiper-pagination-bullet,
.swiper-pagination-bullet-active {
  background: var(--wp--preset--color--action-dark);
}

.jem-swiper .swiper-button-prev {
  grid-column: 2 / span 1;
  grid-row: 2 / span 1;
}

.jem-swiper .swiper-button-next {
  grid-column: 4 / span 1;
  grid-row: 2 / span 1;
}

.jem-swiper {
  container: swiper / inline-size;
}

@container swiper (min-width: 760px) {
  .swiper-slide {
    opacity: 0.5;
    transition: opacity .25s;
  }
  .swiper-slide-active + .swiper-slide {
    opacity: 1;
  }
}


/* Contact Page */

.map-full {
  height: 450px;
}

.map-full iframe {
  width: 100%;
}


/* Basic Text Styling */
.entry-content > h2:not(:first-child) {
  margin-block-start: 2.5rem;
}

.entry-content > h3:not(:first-child) {
  margin-block-start: 2rem;
}


/* Toggle Button */
#mega-menu-wrap-primary .mega-menu-toggle .mega-toggle-block-1 .mega-toggle-animated-box {
  width: 30px;
}

#mega-menu-wrap-primary .mega-menu-toggle .mega-toggle-block-1 .mega-toggle-animated-inner, 
#mega-menu-wrap-primary .mega-menu-toggle .mega-toggle-block-1 .mega-toggle-animated-inner::before, 
#mega-menu-wrap-primary .mega-menu-toggle .mega-toggle-block-1 .mega-toggle-animated-inner::after {
  width: 30px;
  height: 3px;
  border-radius: 0px;
}

/* === Gravity Forms Bottom Border Style === */
body .gform_wrapper input[type="text"],
body .gform_wrapper input[type="email"],
body .gform_wrapper input[type="url"],
body .gform_wrapper input[type="tel"],
body .gform_wrapper input[type="number"],
body .gform_wrapper input[type="password"],
body .gform_wrapper textarea,
body .gform_wrapper select {
  background-color: transparent;
  border: none;
  border-bottom: 1px solid #84817e;
  border-radius: 0;
  color: currentColor;
  padding: 8px 4px;
  width: 100%;
  box-shadow: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

/* Focus + Hover states for accessibility */
body .gform_wrapper input:focus,
body .gform_wrapper textarea:focus,
body .gform_wrapper select:focus {
  outline: none;
  border-bottom-color: var(--wp--preset--color--action-dark);
  background-color: rgba(0, 0, 0, 0.15);
}

/* Placeholder styling */
body .gform_wrapper ::placeholder {
  color: #555;
}

/* Remove default select arrows if you want a cleaner look */
body .gform_wrapper select {
  appearance: none;
  -webkit-appearance: none;
  background-image: none;
}

/* Optional: Adjust labels for a more minimal layout */
body .gform_wrapper .gfield_label {
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}

/* Form - Sidebar */
form.sidebar .gform_footer input.button {
  width: 100% !important;
}

/* Footer */

/* Home Hero Block */
.wp-block-jem-suits-home-hero {
    position: relative;
    overflow: hidden;
}

.wp-block-jem-suits-home-hero .background-image {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.wp-block-jem-suits-home-hero .background-image img {
    object-fit: cover;
    object-position: top center;
    width: 100%;
    height: 100%;
}

.wp-block-jem-suits-home-hero .content {
    box-sizing: border-box;
    position: relative;
    left: 50%;
    display: block;
    width: calc(var(--wp--style--global--wide-size) / 2);
    max-width: 50%;
    height: 100%;
    padding-left: 48px;
    padding-right: var(--wp--style--root--padding-right);
}

.wp-block-jem-suits-home-hero .content__inner {
    position: relative;
    max-width: 100%;
}

.wp-block-jem-suits-home-hero .content__inner * {
    margin: 0;
    box-sizing: border-box;
}

.wp-block-jem-suits-home-hero .content__inner figure {
    position: relative;
    margin: 0;
    max-width: 100%;
    width: auto;
    height: auto;
}

.wp-block-jem-suits-home-hero .content__inner figure img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
}

.wp-block-jem-suits-home-hero .content__inner .subheading {
    background-color: var(--wp--preset--color--action-dark);
    color: var(--wp--preset--color--base-900);
    max-width: 100%;
    width: auto;
    height: auto;
    margin-block-start: 0px;
    padding-top: 1.5em;
}

.wp-block-jem-suits-home-hero .space--top,
.wp-block-jem-suits-home-hero .space--bottom {
    position: relative;
    display: block;
    height: 80px;
    width: 100%;
    background-color: var(--wp--preset--color--action-dark);
}

.wp-block-jem-suits-home-hero .space--right,
.wp-block-jem-suits-home-hero .space--left {
    position: absolute;
    top: 0;
    display: block;
    height: 100%;
    background-color: var(--wp--preset--color--action-dark);
}

.wp-block-jem-suits-home-hero .space--right {
    left: 100%;
    width: 100vw;
}

.wp-block-jem-suits-home-hero .space--left {
    left: 0;
    width: 48px; /* match padding-left of .content */
    transform: translateX(-100%);
}

.wp-block-jem-suits-home-hero .tear--left {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 100%;
    background: url('/wp-content/themes/jem-suits/assets/images/tear-edge-left-gold.svg') repeat-y right center / 100% auto;
    transform: translateX(-100%);
}

@media screen and (max-width: 760px) {
    .wp-block-jem-suits-home-hero {
        padding-top: 100vw;
        background-color: #000;
    }
    .wp-block-jem-suits-home-hero .background-image {
        width: 200%;
        height: auto;
    }
    .wp-block-jem-suits-home-hero .content {
        left: 0;
        width: 100%;
        max-width: 100%;
        padding-left: var(--wp--style--root--padding-left);
        padding-right: var(--wp--style--root--padding-right);
    }   
    .wp-block-jem-suits-home-hero .tear--left {
        display: none;
    }
    .wp-block-jem-suits-home-hero .tear--top {
        position: absolute;
        top: 0;
        left: 0;
        width: 100vw;
        height: 20px;
        transform: translateY(-100%);
        background-color: var(--wp--preset--color--action-dark);
        -webkit-mask-image: url('/wp-content/themes/jem-suits/assets/images/tear-top.svg');
        -webkit-mask-repeat: repeat-x;
        -webkit-mask-position: bottom left;
        -webkit-mask-size: contain;
        mask-image: url('/wp-content/themes/jem-suits/assets/images/tear-top.svg');
        mask-repeat: repeat-x;
        mask-position: bottom left;
        mask-size: contain;
    }
}

.gform_heading .gform_required_legend {
  font-size: 0.875rem;
}

.gfield_required {
  color: inherit !important;
}

.gform_required_legend .gfield_required_asterisk {
  display: inline-block;
  padding: 0 0.25em;
  transform: scale(1.75) translateY(.15rem);
}

.gfield_label .gfield_required_asterisk {
  display: inline-block;
  padding-left: 0.25em;
  transform: scale(1.75);
}

.jem_faq + .jem_faq {
    border-top: 1px solid var(--wp--preset--color--base-900);
    padding-top: var(--wp--style--block-gap);
}

/* .wp-block-query > ul.is-layout-flow > li:not(:first-of-type) {
    border-top: 1px solid var(--wp--preset--color--base-900);
    padding-top: var(--wp--style--block-gap);
    margin-top: var(--wp--style--block-gap);
} */

.geo-practice-areas > ul {
  list-style-type: none;
  padding-left: 0px;
  margin-block-start: 0px;
}

.geo-practice-areas > ul > li h3 {
    margin-block-start: 0px;
}

.geo-practice-areas > ul > li h3 a {
    text-decoration: none;
}

.geo-practice-areas > ul > li h3 a:hover {
    text-decoration: underline 2px solid var(--wp--preset--color--action-dark);
}

.geo-practice-areas > ul > li hr {
    border-top: 1px solid var(--wp--preset--color--base-900);
    margin-top: var(--wp--preset--spacing--40);
    margin-bottom: var(--wp--preset--spacing--40);
}

.geo-practice-areas > ul > li > a {
  font-family: var(--wp--preset--font-family--antonio);
  font-size: var(--wp--preset--font-size--x-large);
}

.geo-practice-areas > ul > li > ul {
  list-style-type: none;
  padding-left: 0px;
  margin-block-start: 1rem;
}

.geo-practice-areas > ul > li > ul > li a {
  font-family: var(--wp--preset--font-family--raleway);
}

/* Add the visible arrow */
a.wp-block-post-excerpt__more-link::after {
  content: '';
  display: inline-block;
  background-color: var(--wp--preset--color--base-900);
  width: 1em;
  height: 1em;
  position: relative;
  top: 0.15em;
  left: 0.2em;
  -webkit-mask-image: url('/wp-content/themes/jem-suits/assets/images/arrow-right-solid-full.svg');
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: bottom left;
  -webkit-mask-size: contain;
  mask-image: url('/wp-content/themes/jem-suits/assets/images/arrow-right-solid-full.svg');
  mask-repeat: no-repeat;
  mask-position: bottom left;
  mask-size: contain;
}

a.wp-block-post-excerpt__more-link:hover::after {
  animation-name: bounceRight; /* Reference the keyframes */
  animation-duration: 1s; /* Duration of one animation cycle */
  animation-timing-function: ease-in-out; /* Smooth acceleration/deceleration */
  animation-iteration-count: once; /* Repeat indefinitely */
}

.wp-block-jem-suits-post-card {
  box-sizing: border-box;
  background-color: var(--wp--preset--color--brand-primary);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: relative;
  width: 100%;
  height: 100%;
  padding: 40% var(--wp--preset--spacing--xl) var(--wp--preset--spacing--xl);
  color: var(--wp--preset--color--base-0);
}

.wp-block-jem-suits-post-card__featured-image {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  aspect-ratio: 16/9;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 90%);
  mask-image: linear-gradient(to bottom, black, transparent 90%);
  mask-position: center center;
  mask-size: contain;
  mask-repeat: no-repeat;
}

.wp-block-jem-suits-post-card__featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.wp-block-jem-suits-post-card__overlay {
  display: none;
}

.wp-block-jem-suits-post-card__title {
  position: relative;
}

.wp-block-jem-suits-post-card__excerpt {
  position: relative;
}

.wp-block-jem-suits-post-card__button {
  background-color: var(--wp--preset--color--action-dark);
  color: var(--wp--preset--color--base-0);
  display: block;
  margin: var(--wp--preset--spacing--xl) 0px var(--wp--preset--spacing--m) 0px;
  padding: var(--wp--preset--spacing--s) var(--wp--preset--spacing--xl);
  text-decoration: none;
}

.wp-block-jem-suits-post-card__button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* when hover is supported */
@media (hover: hover) {
  .wp-block-jem-suits-post-card {
    align-items: center;
    justify-content: center;
    padding: var(--wp--preset--spacing--xl);
  }
  .wp-block-jem-suits-post-card * {
    transition: all .5s ease;
  }
  .wp-block-jem-suits-post-card__featured-image {
    width: 100%;
    height: 100%;
    aspect-ratio: unset;
  }
  .wp-block-jem-suits-post-card__overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    display: block;
  }
  .wp-block-jem-suits-post-card__title {
    opacity: 1;
    position: absolute;
    left: 0;
    bottom: 0;
    padding: var(--wp--preset--spacing--xl);
    transition: opacity .25s ease;
  }
  .wp-block-jem-suits-post-card__excerpt {
    text-align: center;
    opacity: 0;
  }
  .wp-block-jem-suits-post-card__button {
    margin: var(--wp--preset--spacing--xl) auto var(--wp--preset--spacing--m);
    padding: var(--wp--preset--spacing--s) var(--wp--preset--spacing--xl);
    text-decoration: none;
    cursor: pointer;
    z-index: 1;
    opacity: 0;
  }
  .wp-block-jem-suits-post-card:hover .wp-block-jem-suits-post-card__overlay {
    opacity: 1;
  }
  .wp-block-jem-suits-post-card:hover .wp-block-jem-suits-post-card__title {
    opacity: 0;
  }
  .wp-block-jem-suits-post-card:hover .wp-block-jem-suits-post-card__excerpt {
    opacity: 1;
  }
  .wp-block-jem-suits-post-card:hover .wp-block-jem-suits-post-card__button {
    opacity: 1;
  }
}