/* ==========================================================   PLACEBOES MODAL   Research Foundation Website========================================================== */

/* ==========================================================   BACKDROP========================================================== */

.modal-backdrop.show {
  opacity: .72;
}

/* ==========================================================   DIALOG ANIMATION========================================================== */

.modal.fade .modal-dialog {
  opacity: 0;
  transform: translateY(20px) scale(.97);
  transition: opacity .28s ease, transform .28s ease;
}

.modal.show .modal-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ==========================================================   MODAL CONTENT========================================================== */

.placeboes-modal .modal-content {
  border: none;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(0,0,0,.22);
}

/* ==========================================================   HEADER========================================================== */

.placeboes-modal .modal-header {
  border-bottom: 1px solid rgba(0,0,0,.06);
  padding: 22px 28px;
  background: #ffffff;
}

.placeboes-modal .modal-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: #156082;
  margin: 0;
}

/* ==========================================================   CLOSE BUTTON========================================================== */

.placeboes-modal .close {
  font-size: 2rem;
  font-weight: 300;
  color: #555;
  opacity: .45;
  transition: opacity .2s ease, transform .2s ease;
}

.placeboes-modal .close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

/* ==========================================================   BODY========================================================== */

.placeboes-modal .modal-body {
  padding: 28px;
}

/* ==========================================================   VIDEO========================================================== */

.placeboes-modal iframe, .placeboes-modal video {
  width: 100%;
  border: none;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  background: #000;
}

/* ==========================================================   BUTTON ROW========================================================== */

.placeboes-modal .modal-buttons {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

/* ==========================================================   BUTTONS========================================================== */

.placeboes-modal .btn {
  border-radius: 12px;
  padding: 10px 24px;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.placeboes-modal .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(21,96,130,.20);
}

.placeboes-modal .btn:active {
  transform: translateY(0);
}

/* ==========================================================   FOOTER========================================================== */

.placeboes-modal .modal-footer {
  border-top: 1px solid rgba(0,0,0,.05);
  background: #ffffff;
  justify-content: center;
  padding: 18px 28px;
}

.placeboes-modal .modal-footer small {
  color: #8a8a8a;
  font-size: .85rem;
}

/* ==========================================================   SCROLLBAR========================================================== */

.placeboes-modal ::-webkit-scrollbar {
  width: 8px;
}

.placeboes-modal ::-webkit-scrollbar-thumb {
  background: rgba(21,96,130,.35);
  border-radius: 20px;
}

/* ==========================================================   RESPONSIVE========================================================== */

@media (max-width:768px) {
  .placeboes-modal .modal-dialog {
    margin: 20px;
  }
}

@media (max-width:768px) {
  .placeboes-modal .modal-title {
    font-size: 1.8rem;
  }
}

@media (max-width:768px) {
  .placeboes-modal .modal-buttons {
    flex-direction: column;
  }
}

@media (max-width:768px) {
  .placeboes-modal .btn {
    width: 100%;
  }
}

/* ==========================================================   MODAL BUTTON ANIMATIONS========================================================== */

.placeboes-modal .btn {
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}

.placeboes-modal .btn:hover, .placeboes-modal .btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(21,96,130,.20);
  outline: none;
}

.placeboes-modal .btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(21,96,130,.16);
}

/* Icons */

.placeboes-modal .btn i, .placeboes-modal .btn svg {
  display: inline-block;
  transition: transform .18s ease;
}

.placeboes-modal .btn:hover i, .placeboes-modal .btn:hover svg, .placeboes-modal .btn:focus-visible i, .placeboes-modal .btn:focus-visible svg {
  transform: translateX(3px);
}

.placeboes-modal .btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient( 120deg, transparent, rgba(255,255,255,.30), transparent );
  transition: left .55s ease;
}

.placeboes-modal .btn:hover::before {
  left: 150%;
}

/* ==========================================================   VIDEO BUTTON HOVER — KEEP AFTER REVEAL RULES========================================================== */

.placeboes-animations-ready .placeboes-reveal.is-visible.placeboes-video-button:hover, .placeboes-animations-ready .placeboes-reveal.is-visible.placeboes-video-button:focus-visible {
  transform: translateY(-2px);
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
  outline: none;
}

.placeboes-animations-ready .placeboes-reveal.is-visible.placeboes-video-button:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.placeboes-animations-ready .placeboes-reveal.is-visible.placeboes-video-button:hover i, .placeboes-animations-ready .placeboes-reveal.is-visible.placeboes-video-button:focus-visible i, .placeboes-animations-ready .placeboes-reveal.is-visible.placeboes-video-button:hover svg, .placeboes-animations-ready .placeboes-reveal.is-visible.placeboes-video-button:focus-visible svg {
  transform: translateX(2px);
}

