/* Kate Kolody Editorial List */

.kk-editorial-list,
.kk-editorial-list * {
  box-sizing: border-box;
}

.kk-editorial-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: transparent;
  color: inherit;
}

.kk-editorial-list-layout {
  display: flex;
  align-items: flex-start;
  width: 100%;
  gap: 64px;
}

.kk-editorial-list-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 12px;
}

.kk-editorial-list-link {
  --kk-editorial-list-duration: 420ms;

  position: relative;
  display: inline-flex;
  align-items: baseline;
  width: fit-content;
  max-width: 100%;
  gap: 14px;
  color: inherit;
  text-decoration: none !important;
  cursor: pointer;
  line-height: 1;
  text-align: center;
  transition: color 180ms ease;
}

div.kk-editorial-list-link {
  cursor: default;
}

.kk-editorial-list-link:hover,
.kk-editorial-list-link:focus-visible {
  text-decoration: none !important;
  outline: none;
}

.kk-editorial-list-title,
.kk-editorial-list-subtitle {
  display: inline-block;
  color: #121212;
  line-height: inherit;
  transition: color 180ms ease;
}

.kk-editorial-list-subtitle {
  flex: 0 0 auto;
}

.kk-editorial-list-link::before,
.kk-editorial-list-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  pointer-events: none;
}

.kk-editorial-list-link::before {
  opacity: 0;
  transform: scaleX(1);
  transform-origin: left center;
}

.kk-editorial-list-link::after {
  opacity: 1;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--kk-editorial-list-duration) cubic-bezier(.22,.61,.36,1);
}

.kk-editorial-list-link:hover::after,
.kk-editorial-list-link:focus-visible::after {
  transform: scaleX(1);
}

/* Static image panel */
.kk-editorial-list-preview {
  position: relative;
  flex: 0 0 auto;
  width: 320px;
  height: 220px;
  overflow: hidden;
  background: transparent;
}

.kk-editorial-list-preview-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% var(--kk-editorial-img-y, 50%);
  opacity: 0;
  transition: opacity 260ms ease;
  pointer-events: none;
}

.kk-editorial-list-preview-img.is-active {
  opacity: 1;
}

@media (max-width: 767px) {
  .kk-editorial-list-layout {
    flex-direction: column;
  }

  .kk-editorial-list-link {
    max-width: 100%;
    flex-wrap: wrap;
    row-gap: 0.1em;
  }

  .kk-editorial-list-preview {
    width: 100%;
  }
}


/* v1.0.2: only active hover image is visible */
.kk-editorial-list-preview {
  --kk-editorial-img-opacity: 1;
}

.kk-editorial-list-preview-img {
  opacity: 0 !important;
  z-index: 1;
}

.kk-editorial-list-preview-img.is-active {
  opacity: var(--kk-editorial-img-opacity, 1) !important;
  z-index: 2;
}


/* v1.0.3: hover image switching fallback-safe */
.kk-editorial-list-preview-img {
  opacity: 0 !important;
  z-index: 1;
}

.kk-editorial-list-preview-img.is-active {
  opacity: var(--kk-editorial-img-opacity, 1) !important;
  z-index: 2;
}


/* v1.0.4: sticky image panel + responsive mobile layout */
.kk-editorial-list-layout {
  align-items: flex-start;
}

.kk-editorial-list--sticky .kk-editorial-list-preview {
  position: sticky;
  top: var(--kk-editorial-sticky-top, 120px);
  transform: translateY(var(--kk-editorial-sticky-shift, 0px));
  align-self: flex-start;
}

.kk-editorial-list--static .kk-editorial-list-preview {
  transform: translateY(var(--kk-editorial-sticky-shift, 0px));
}

@media (max-width: 1024px) {
  .kk-editorial-list-layout {
    gap: 32px;
  }
}

@media (max-width: 767px) {
  .kk-editorial-list-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
  }

  .kk-editorial-list-inner {
    width: 100%;
    max-width: 100%;
  }

  .kk-editorial-list-link {
    width: 100%;
    max-width: 100%;
    justify-content: space-between;
    text-align: left;
    flex-wrap: nowrap;
    gap: 12px;
  }

  .kk-editorial-list-title {
    min-width: 0;
  }

  .kk-editorial-list-subtitle {
    flex: 0 0 auto;
  }

  .kk-editorial-list-preview {
    order: -1;
    width: 100% !important;
    max-width: 100% !important;
    height: clamp(180px, 52vw, 340px) !important;
  }

  .kk-editorial-list--sticky .kk-editorial-list-preview {
    position: sticky;
    top: var(--kk-editorial-sticky-top, 88px);
    transform: translateY(var(--kk-editorial-sticky-shift, 0px));
    z-index: 5;
  }
}

@media (max-width: 480px) {
  .kk-editorial-list-link {
    align-items: baseline;
  }

  .kk-editorial-list-preview {
    height: clamp(160px, 58vw, 280px) !important;
  }
}
