.ccb-group-animation {
  opacity: 1;
}

.ccb-group-animation-children {
  opacity: 1;
}

.ccb-group-animation-children > .ccb-animate-item {
  opacity: 1;
  transform: none;
  filter: none;
}

.ccb-motion-ready .ccb-group-animation-children > .ccb-animate-item {
  will-change: opacity, transform, filter;
  transition:
    opacity 0.7s ease,
    transform 0.7s ease,
    filter 0.7s ease;
  transition-delay: var(--ccb-animate-delay, 0ms);
}

.ccb-motion-ready .ccb-group-animation-children > .ccb-animate-item--fade,
.ccb-motion-ready .ccb-group-animation-children > .ccb-animate-item--fade-up {
  opacity: 0;
}

.ccb-motion-ready .ccb-group-animation-children > .ccb-animate-item--fade-down {
  opacity: 0;
  transform: translate3d(0, -24px, 0);
}

.ccb-motion-ready .ccb-group-animation-children > .ccb-animate-item--fade-left {
  opacity: 0;
  transform: translate3d(24px, 0, 0);
}

.ccb-motion-ready .ccb-group-animation-children > .ccb-animate-item--fade-right {
  opacity: 0;
  transform: translate3d(-24px, 0, 0);
}

.ccb-motion-ready .ccb-group-animation-children > .ccb-animate-item--zoom-in {
  opacity: 0;
  transform: scale(0.94);
  transform-origin: center center;
}

.ccb-motion-ready .ccb-group-animation-children > .ccb-animate-item--zoom-out {
  opacity: 0;
  transform: scale(1.06);
  transform-origin: center center;
}

.ccb-motion-ready .ccb-group-animation-children > .ccb-animate-item--blur-in {
  opacity: 0;
  filter: blur(10px);
}

.ccb-motion-ready .ccb-group-animation-children > .ccb-animate-item.ccb-is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

.ccb-clickable-group {
  --ccb-hover-bg: transparent;
  --ccb-border: currentColor;
  --ccb-glint: rgba(255, 255, 255, 0.08);
  --ccb-hover-text: currentColor;
  --ccb-hover-icon-bg: currentColor;
  --ccb-hover-icon: white;
  --ccb-fade-opacity: 0.65;
  --ccb-lift-shadow: 0 18px 36px rgba(0, 0, 0, 0.14);
  --ccb-lift-border: rgba(0, 0, 0, 0.14);

  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.3s ease,
    color 0.3s ease,
    background-color 0.3s ease,
    opacity 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.ccb-clickable-group,
.ccb-clickable-group::after,
.ccb-clickable-group__overlay {
  border-radius: inherit;
}

.ccb-clickable-group::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: var(--ccb-glint);
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    background-color 0.3s ease;
  pointer-events: none;
}

.ccb-clickable-group::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  border: 3px solid var(--ccb-border);
  transform: scale(1.12);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    border-color 0.3s ease;
  pointer-events: none;
}

.ccb-clickable-group > * {
  position: relative;
  z-index: 2;
}

.ccb-clickable-group__overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 20 !important;
  display: block !important;
  text-decoration: none !important;
}

.ccb-clickable-group.has-primary-background-color {
  --ccb-border: var(--wp--preset--color--gray);
  --ccb-hover-text: var(--wp--preset--color--primary);
  --ccb-hover-icon-bg: var(--wp--preset--color--primary);
  --ccb-hover-icon: white;
}

.ccb-clickable-group.has-accent-background-color {
  --ccb-border: var(--wp--preset--color--primary);
  --ccb-hover-text: var(--wp--preset--color--accent);
  --ccb-hover-icon-bg: var(--wp--preset--color--accent);
  --ccb-hover-icon: white;
}

.ccb-clickable-group.has-gray-background-color {
  --ccb-border: var(--wp--preset--color--gray);
  --ccb-glint: rgba(255, 255, 255, 0.06);
  --ccb-hover-text: var(--wp--preset--color--gray);
  --ccb-hover-icon-bg: var(--wp--preset--color--gray);
  --ccb-hover-icon: white;
}

.ccb-clickable-group.has-white-background-color {
  --ccb-border: var(--wp--preset--color--primary);
  --ccb-hover-text: var(--wp--preset--color--primary);
  --ccb-hover-icon-bg: var(--wp--preset--color--primary);
  --ccb-hover-icon: white;
  --ccb-glint: rgba(0, 0, 0, 0.05);
}

.ccb-clickable-group--cedar:hover {
  transform: scale(1.01) translateY(-2px);
  background-color: var(--ccb-hover-bg) !important;
}

.ccb-clickable-group--cedar:hover::before {
  opacity: 0;
  transform: scale(0.5);
}

.ccb-clickable-group--cedar:hover::after {
  opacity: 1;
  transform: scale(0.95);
}

.ccb-clickable-group--cedar:hover,
.ccb-clickable-group--cedar:hover p,
.ccb-clickable-group--cedar:hover h1,
.ccb-clickable-group--cedar:hover h2,
.ccb-clickable-group--cedar:hover h3,
.ccb-clickable-group--cedar:hover h4,
.ccb-clickable-group--cedar:hover h5,
.ccb-clickable-group--cedar:hover h6,
.ccb-clickable-group--cedar:hover a:not(.ccb-clickable-group__overlay) {
  color: var(--ccb-hover-text) !important;
}

.ccb-clickable-group--cedar:hover .icon-container {
  background-color: var(--ccb-hover-icon-bg) !important;
  color: var(--ccb-hover-icon) !important;
}

.ccb-clickable-group--cedar:hover .icon-container svg,
.ccb-clickable-group--cedar:hover .icon-container svg path {
  fill: currentColor !important;
}

.ccb-clickable-group--fade::before,
.ccb-clickable-group--fade::after {
  display: none;
}

.ccb-clickable-group--fade:hover {
  opacity: var(--ccb-fade-opacity);
}

.ccb-clickable-group--lift::before {
  opacity: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
}

.ccb-clickable-group--lift::after {
  opacity: 1;
  transform: scale(1);
  border-width: 1px;
  border-color: transparent;
}

.ccb-clickable-group--lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--ccb-lift-shadow);
}

.ccb-clickable-group--lift:hover::before {
  opacity: 1;
}

.ccb-clickable-group--lift:hover::after {
  border-color: var(--ccb-lift-border);
}

@media (prefers-reduced-motion: reduce) {
  .ccb-clickable-group,
  .ccb-clickable-group::before,
  .ccb-clickable-group::after,
  .ccb-group-animation-children > .ccb-animate-item {
    transition: none;
  }
}

.cedar-media-credits {
  --cedar-media-credits-columns: 2;
  display: grid;
  gap: 1rem;
}

.cedar-media-credits__item {
  display: grid;
  align-items: start;
  gap: 1rem;
}

.cedar-media-credits__thumb {
  width: 96px;
}

.cedar-media-credits__image,
.cedar-media-credits__thumb-placeholder {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.06);
}

.cedar-media-credits__text {
  min-width: 0;
  line-height: 1.6;
}

.cedar-media-credits__text > *:first-child {
  margin-top: 0;
}

.cedar-media-credits__text > *:last-child {
  margin-bottom: 0;
}

.cedar-media-credits__text a,
.cedar-media-credits__text a:hover,
.cedar-media-credits__text a:focus {
  text-decoration: none;
}

.cedar-media-credits--list .cedar-media-credits__item {
  grid-template-columns: 96px minmax(0, 1fr);
}

.cedar-media-credits--compact {
  gap: 0.75rem;
}

.cedar-media-credits--compact .cedar-media-credits__item {
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 0.75rem;
}

.cedar-media-credits--compact .cedar-media-credits__thumb {
  width: 72px;
}

.cedar-media-credits--compact .cedar-media-credits__text {
  font-size: 0.95rem;
  line-height: 1.5;
}

.cedar-media-credits--grid {
  grid-template-columns: repeat(var(--cedar-media-credits-columns), minmax(0, 1fr));
  gap: 1.25rem;
}

.cedar-media-credits--grid .cedar-media-credits__item {
  grid-template-columns: 1fr;
  gap: 0.875rem;
  padding: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.875rem;
  background: rgba(255, 255, 255, 0.7);
}

.cedar-media-credits--grid .cedar-media-credits__thumb {
  width: 100%;
}

.cedar-media-credits--grid .cedar-media-credits__image,
.cedar-media-credits--grid .cedar-media-credits__thumb-placeholder {
  aspect-ratio: 4 / 3;
}

.cedar-media-credits--empty {
  display: block;
}

.cedar-media-credits__empty {
  margin: 0;
  padding: 1rem 1.25rem;
  border: 1px dashed rgba(0, 0, 0, 0.15);
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.02);
}

@media (max-width: 960px) {
  .cedar-media-credits--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cedar-media-credits--list .cedar-media-credits__item,
  .cedar-media-credits--compact .cedar-media-credits__item {
    grid-template-columns: 1fr;
  }

  .cedar-media-credits--list .cedar-media-credits__thumb,
  .cedar-media-credits--compact .cedar-media-credits__thumb {
    width: 100%;
    max-width: 120px;
  }

  .cedar-media-credits--grid {
    grid-template-columns: 1fr;
  }
}
