/* Base modal overlay */
.modal2 {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal2.show-modal2 {
  display: flex;
  opacity: 1;
}

/* Base modal container */
.modal2__container {
  background: #000;
  color: #fff;
  border: 2px solid #444;
  border-radius: 8px;
  position: relative;
  transition: transform 0.3s ease;
  transform: scale(0.95);
  overflow: hidden;
}

.modal2.show-modal2 .modal2__container {
  transform: scale(1);
}

/* Close button */
.modal2__close {
  position: absolute;
  top: 15px;
  right: 15px;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;

  background: rgba(0, 0, 0, 0.4);       /* semi-transparent dark base */
  backdrop-filter: blur(2px);           /* blur behind */
  -webkit-backdrop-filter: blur(2px);   /* Safari support */

  border: 2px solid #ffd700;            /* gold border */
  border-radius: 50%;                   /* round button */

  color: #fff;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;

  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.modal2__close:hover {
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.7);
  border-color: #ffea80; /* brighter gold on hover */
}

/* 🔹 Variant 1: Fullscreen modal */
.modal2--fullscreen .modal2__container {
  width: 90%;
  height: 90%;
  overflow-y: auto; /* scroll when content overflows */
  padding: 20px;
}

/* 🔹 Variant 2: Square modal */
.modal2--square .modal2__container {
  width: 600px;
  height: 600px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
