.bt-popup {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.bt-popup__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(0, 0, 0, 0.82);
  cursor: pointer;
  padding: 0;
}

.bt-popup__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 920px;
  max-height: calc(100vh - 48px);
  background: #111;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.bt-popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 20px;
  line-height: 44px;
  text-align: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease;
}

.bt-popup__close:hover {
  background: #fed600;
}

.bt-popup__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: min(520px, calc(100vh - 120px));
  min-height: 320px;
}

.bt-popup__side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  background: #111;
}

.bt-popup__card {
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
}

.bt-popup__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.bt-popup__card--main img {
  object-fit: cover;
}

.bt-popup__card--half img {
  object-fit: cover;
  object-position: center top;
}

.bt-popup__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 18px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
  color: #fff;
  font-family: "Roboto Slab", serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.bt-popup__label:hover {
  color: #fed600;
}

@media only screen and (max-width: 768px) {
  .bt-popup {
    padding: 16px;
    align-items: center;
  }

  .bt-popup__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }

  .bt-popup__card--main {
    height: 240px;
  }

  .bt-popup__side {
    grid-template-rows: 180px 180px;
  }

  .bt-popup__close {
    top: 10px;
    right: 10px;
  }
}
