.wp-block-parent-theme-shutter-card {
  display: flex;
}

.shutter-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--40);
  flex: 1;
  padding: var(--wp--preset--spacing--50);
  overflow: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}
.shutter-card[aria-expanded=false] {
  cursor: pointer;
}
.shutter-card__id {
  font-size: var(--wp--preset--font-size--20);
  font-weight: 400;
}
.shutter-card__title {
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
}
.shutter-card .shutter-card__title {
  color: inherit;
}
.shutter-card__subtitle {
  font-size: var(--wp--preset--font-size--10);
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
  transition: opacity 0.3s ease, visibility 0s 0.3s, max-height 0.3s ease;
}
.shutter-card__description {
  font-size: var(--wp--preset--font-size--20);
  line-height: 1.5rem;
  margin: 0;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease 0.2s, visibility 0s, max-height 0.4s ease;
}
.shutter-card__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  margin-block-start: auto;
  padding: 0;
  border-radius: 50%;
  border: 2px solid currentColor;
  color: inherit;
  background-color: transparent;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}
.shutter-card__toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.shutter-card__toggle .icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.shutter-card[aria-expanded=false] :is(.shutter-card__subtitle, .shutter-card__description) {
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, visibility 0s 0.3s, max-height 0.4s ease;
}

@container shutter-cards (min-width: 992px) {
  .shutter-card[aria-expanded=false] :is(.shutter-card__subtitle, .shutter-card__description) {
    max-height: none;
    overflow: visible;
  }
}
.shutter-card[aria-expanded=false] .shutter-card__toggle {
  transform: rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
  .wp-block-parent-theme-shutter-card,
  .shutter-card,
  .shutter-card__subtitle,
  .shutter-card__description,
  .shutter-card__toggle {
    transition: none;
  }
}