#kv-archive .kv-flow-card:hover {
  transform: translateZ(0) scale(1);
}

.kv-expand-button {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  color: #fff;
  background: rgba(10, 10, 10, 0.5);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(7px);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.kv-expand-button:hover,
.kv-expand-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(8, 8, 8, 0.78);
}

.kv-expand-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.kv-expand-icon {
  position: relative;
  display: block;
  width: 17px;
  height: 17px;
}

.kv-expand-icon i {
  position: absolute;
  width: 6px;
  height: 6px;
  border-color: currentColor;
  border-style: solid;
}

.kv-expand-icon i:nth-child(1) {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
}

.kv-expand-icon i:nth-child(2) {
  top: 0;
  right: 0;
  border-width: 2px 2px 0 0;
}

.kv-expand-icon i:nth-child(3) {
  right: 0;
  bottom: 0;
  border-width: 0 2px 2px 0;
}

.kv-expand-icon i:nth-child(4) {
  bottom: 0;
  left: 0;
  border-width: 0 0 2px 2px;
}

.kv-lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 56px);
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0.24s ease;
  z-index: 2147483646;
}

.kv-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.kv-lightbox__figure {
  margin: 0;
  max-width: 94vw;
  max-height: 90vh;
  display: grid;
  place-items: center;
}

.kv-lightbox__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 94vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.kv-lightbox__close {
  position: fixed;
  top: clamp(16px, 3vw, 34px);
  right: clamp(16px, 3vw, 34px);
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #fff;
  background: rgba(10, 10, 10, 0.62);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font: 300 28px/1 Arial, sans-serif;
}

@media (max-width: 700px) {
  .kv-expand-button {
    right: 8px;
    bottom: 8px;
    width: 30px;
    height: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kv-lightbox {
    transition: none;
  }
}
