:root {
  --sidebar-width: 31rem;
  --layout-gap: 4rem;
  --wp--style--block-gap: clamp(3.5rem, 2.737rem + 1.404vw, 4rem);
}

@media (min-width: 1300px) {
  :root {
    --sidebar-width: 34rem;
    --layout-gap: 6rem;
  }
}
* + .licences {
  margin-top: var(--wp--preset--spacing--normal);
}
.licences .licence {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 1.5rem;
  margin: 0 0 2rem 0;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.125);
  border: 1px solid #B89F6B;
  transition: background 0.35s ease-in-out;
  position: relative;
}
.licences .licence:before {
  content: "";
  display: block;
  background: linear-gradient(125deg, #2B2A31 5%, #4F554A 95%);
  position: absolute;
  inset: 1px;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.35s ease-in-out;
}
.licences .licence > * {
  position: relative;
  z-index: 3;
}
.licences .licence:hover, .licences .licence:active, .licences .licence:focus {
  background: rgba(0, 0, 0, 0.25);
}
.licences .licence:hover:before, .licences .licence:active:before, .licences .licence:focus:before {
  opacity: 0.35;
}
.licences .licence:hover .link rect, .licences .licence:active .link rect, .licences .licence:focus .link rect {
  stroke: #fff;
}
.licences h2 {
  font-size: var(--wp--preset--font-size--font-26);
  margin: 0;
}
.licences .feat {
  line-height: 0;
}
.licences img {
  width: 100%;
  height: auto;
}
.licences .label {
  display: block;
  font-size: var(--wp--preset--font-size--font-16);
  margin: 0 0 0.3ch 0;
  color: #C7CDC2;
}
.licences em {
  font-family: var(--wp--preset--font-family--secondary);
  font-style: normal;
  font-weight: 600;
  color: #fff;
}
.licences .link {
  width: 34px;
  height: 34px;
  position: absolute;
  top: 1.7rem;
  right: 2rem;
}
.licences .link rect {
  transition: stroke 0.35s ease-in-out;
}
@media (min-width: 600px) {
  .licences .licence {
    flex-direction: row;
  }
  .licences .licence .ln,
  .licences .licence .oc,
  .licences .licence .grant,
  .licences .licence .exp {
    width: calc(50% - 1rem);
  }
}
@media (min-width: 782px) {
  .licences .licence .ln,
  .licences .licence .oc,
  .licences .licence .grant,
  .licences .licence .exp {
    width: calc(25% - 1.2rem);
  }
}
@media (max-width: 1023px) {
  .licences .licence .feat img {
    aspect-ratio: 1/0.45;
    object-fit: cover;
  }
}
@media (min-width: 1024px) {
  .licences .licence .feat {
    width: 300px;
    position: absolute;
    left: 20px;
    top: 50%;
    clip-path: inset(50%);
    opacity: 0;
    transform: translateY(-50%);
    transition: all 0.35s ease;
  }
  .licences .licence img {
    aspect-ratio: 1/0.725;
    object-fit: cover;
  }
  .licences .licence .title {
    width: 100%;
  }
  .licences .licence:hover {
    z-index: 5;
  }
  .licences .licence:hover .feat {
    clip-path: inset(0);
    opacity: 1;
    z-index: 7;
  }
}
@media (min-width: 1450px) {
  .licences .licence {
    gap: 0;
    padding: 3rem 8rem 3rem 2rem;
  }
  .licences .licence > div {
    padding-right: 1rem;
  }
  .licences .licence .title {
    width: 25%;
  }
  .licences .licence .ln {
    width: 18%;
  }
  .licences .licence .oc {
    width: 26%;
  }
  .licences .licence .grant,
  .licences .licence .exp {
    width: 15.5%;
  }
  .licences .licence .link {
    width: 40px;
    height: 40px;
    padding-right: 0;
    top: 3.3rem;
  }
}
