.case-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}

.case-popup.is-open {
  display: block;
}

.case-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.case-popup__content {
  position: relative;
  max-width: 1000px;
  margin: 10vh auto;
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
}

.case-popup__close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  color: #666;
}

.case-popup__description {
  background: #f6f7fa;
  border-radius: 0.75rem;
  padding: 1.75rem;
  line-height: 1.6;
  font-size: 1.15rem;
  position: relative;
  color: #0f2862;
}

.case-popup__description-title {
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  width: 70%;
  font-weight: 700;

}

.case-popup__description-text h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
}

.case-popup__description-text h3:first-child {
  margin-top: 0;
}

.case-popup__description-text p {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.case-popup__description-text p:last-child {
  margin: 0;
}

.case-popup__logo {
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
  max-width: 7rem;
  max-height: 3.5rem;
  display: block;
}

.case-popup__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 480px) {
  .case-popup__logo { display: none; }
  .case-popup__description-title { width: 100%; }
}

.case__image img {
  aspect-ratio: 1;
  overflow: hidden;
}

@media (max-width: 600px) {
  .case__caption.title.title-md  {font-size: 1.25rem;}
}

.case__action {
  cursor: pointer;
}

.hidden_button {
  display: none;
}

