/* =========================================================
   CRAFTSBYHAMILTON
   EDITORIAL POPUP
   ========================================================= */

.cbh-editorial-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 30px;

  visibility: hidden;
  opacity: 0;

  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.cbh-editorial-popup.is-visible {
  visibility: visible;
  opacity: 1;
}

.cbh-editorial-popup__overlay {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.72);

  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.cbh-editorial-popup__card {
  position: relative;
  z-index: 2;

  width: min(1050px, 100%);

  display: grid;
  grid-template-columns: 48% 52%;

  background: #ffffff;

  box-shadow:
    0 30px 100px rgba(0, 0, 0, 0.35);

  transform: translateY(30px);

  transition: transform 0.4s ease;

  overflow: hidden;
}

.cbh-editorial-popup.is-visible
.cbh-editorial-popup__card {
  transform: translateY(0);
}

/* =========================================================
   CLOSE
   ========================================================= */

.cbh-editorial-popup__close {
  position: absolute;
  top: 15px;
  right: 18px;

  z-index: 5;

  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;

  background: #ffffff;

  color: #111111;

  font-size: 30px;
  font-weight: 300;

  line-height: 1;

  cursor: pointer;

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);

  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.cbh-editorial-popup__close:hover {
  background: #ff0000;
  color: #ffffff;
}

/* =========================================================
   IMAGE
   ========================================================= */

.cbh-editorial-popup__image {
  min-height: 580px;

  overflow: hidden;
}

.cbh-editorial-popup__image img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  transition: transform 0.8s ease;
}

.cbh-editorial-popup__card:hover
.cbh-editorial-popup__image img {
  transform: scale(1.03);
}

/* =========================================================
   CONTENT
   ========================================================= */

.cbh-editorial-popup__content {
  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 70px 65px;

  background: #ffffff;
}

.cbh-editorial-popup__eyebrow {
  margin: 0 0 20px;

  color: #ff0000;

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 0.18em;

  text-transform: uppercase;
}

.cbh-editorial-popup__content h2 {
  margin: 0 0 30px;

  color: #111111;

  font-size: clamp(2.8rem, 5vw, 5rem);

  line-height: 0.92;

  letter-spacing: -0.055em;
}

.cbh-editorial-popup__intro {
  max-width: 460px;

  margin: 0 0 18px;

  color: #111111;

  font-size: 18px;

  line-height: 1.55;
}

.cbh-editorial-popup__intro strong,
.cbh-editorial-popup__description strong {
  font-weight: 700;
}

.cbh-editorial-popup__description {
  max-width: 460px;

  margin: 0 0 35px;

  color: #666666;

  font-size: 15px;

  line-height: 1.75;
}

/* =========================================================
   BUTTON
   ========================================================= */

.cbh-editorial-popup__button {
  width: fit-content;

  display: inline-flex;
  align-items: center;
  gap: 20px;

  padding: 15px 0;

  border-bottom: 1px solid #111111;

  color: #111111;

  font-size: 12px;
  font-weight: 700;

  letter-spacing: 0.12em;

  text-decoration: none;

  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    gap 0.25s ease;
}

.cbh-editorial-popup__button span {
  font-size: 18px;
  line-height: 1;
}

.cbh-editorial-popup__button:hover {
  gap: 28px;

  color: #ff0000;

  border-color: #ff0000;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 800px) {

  .cbh-editorial-popup {
    padding: 18px;
  }

  .cbh-editorial-popup__card {
    max-height: 92vh;

    overflow-y: auto;

    grid-template-columns: 1fr;
  }

  .cbh-editorial-popup__image {
    min-height: 260px;

    height: 42vh;
    max-height: 360px;
  }

  .cbh-editorial-popup__content {
    padding: 40px 28px 45px;
  }

  .cbh-editorial-popup__content h2 {
    font-size: 3rem;

    margin-bottom: 24px;
  }

  .cbh-editorial-popup__intro {
    font-size: 16px;
  }

}

@media (max-width: 480px) {

  .cbh-editorial-popup {
    padding: 12px;
  }

  .cbh-editorial-popup__image {
    height: 230px;
    min-height: 230px;
  }

  .cbh-editorial-popup__content {
    padding: 32px 22px 38px;
  }

  .cbh-editorial-popup__content h2 {
    font-size: 2.5rem;
  }

  .cbh-editorial-popup__close {
    width: 36px;
    height: 36px;

    font-size: 25px;
  }

}