:root {
  --border: #e5e5e5;
  --brand: #222;
  --brand-contrast: #fff;
  --radius: 12px;
}


/* =========================
   General
   ========================= */

ol {
  padding-left: 1rem;
}

li {
  padding-left: .5rem;
  font-size: .9rem;
}

.container {
  margin: 0;
  padding: 0;
}


/* =========================
   Research list
   ========================= */

.research-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: .45rem;

  width: 100%;
  max-width: none;

  margin: .5rem 0 1.5rem;
  padding: 0;
}

.research-item {
  width: 100%;

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

  gap: .8rem;
  padding: .5rem .7rem;

  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
}

.research-item h3 {
  margin: 0;

  color: #000;
  font-size: .85rem;
  font-weight: bold;
  line-height: 1.35;
}

.actions {
  flex: 0 0 auto;
}


/* =========================
   Detail button
   ========================= */

.actions .btn {
  padding: .3rem .6rem;

  border: 1px solid #ccc;
  border-radius: 5px;

  background: #f5f5f5;
  color: #000;

  font-size: .75rem;
  cursor: pointer;
}

.actions .btn:hover {
  background: #b31b1b;
  border-color: #b31b1b;
  color: #fff;
}

.actions .btn:focus {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.btn.secondary {
  background: #fff;
  color: var(--brand);
}


/* =========================
   Modal overlay
   ========================= */

.modal {
  position: fixed;
  inset: 0;

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

  padding: 20px;

  background: rgba(0, 0, 0, .85);

  z-index: 9999;
}

.modal.open {
  display: flex;
}


/* =========================
   Modal panel
   ========================= */

.modal__panel {
  width: 1200px;
  max-width: calc(100vw - 40px);

  background: #fff;
  color: #111;

  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);

  overflow: hidden;
}


/* =========================
   Modal header
   ========================= */

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: .8rem 1rem;

  border-bottom: 1px solid var(--border);
}

.modal__title {
  margin: 0;
  font-size: 1.05rem;
}

.modal__close {
  padding: .2rem .4rem;

  border: none;
  background: transparent;

  font-size: 28px;
  line-height: 1;

  cursor: pointer;
}


/* =========================
   Modal content
   ========================= */

.modal__body {
  display: grid;

  /*
    Video sabit 500 px.
    Panel genişledikçe kalan alan metne gider.
  */
  grid-template-columns: 500px minmax(0, 1fr);

  gap: 25px;
  padding: 18px 30px 22px 18px;

  box-sizing: border-box;
}


/* =========================
   Modal video
   ========================= */

.modal__video {
  width: 500px;
  min-width: 0;
}

.modal__video video {
  display: block;

  width: 500px;
  max-width: 100%;
  height: auto;

  border: 1px solid #ccc;
  border-radius: 8px;
}


/* =========================
   Modal text
   ========================= */

.modal__text {
  min-width: 0;

  padding-right: 10px;

  font-size: .9rem;
  line-height: 1.6;
  text-align: justify;

  overflow-wrap: break-word;
  box-sizing: border-box;
}

.modal-description {
  display: block;

  margin-top: .1rem;

  font-size: .9rem;
  font-style: normal;
}

.modal-publications-title {
  display: block;

  margin-top: .5rem;

  font-size: .9rem;
  font-weight: bold;
}

.modal-publications {
  margin-top: .2rem;
}

.modal-publications li {
  margin-top: .1rem;

  font-size: .8rem;
  font-style: normal;
  line-height: 1.45;
}


/* =========================
   Go to Top
   ========================= */

#goTopBtn {
  position: fixed;
  right: 20px;
  bottom: 20px;

  display: none;

  padding: 10px 15px;

  background: #333;
  color: #fff;

  border-radius: 5px;

  font-size: 14px;
  text-decoration: none;

  z-index: 9999;
}

#goTopBtn:hover {
  color: #fff;
  text-decoration: none;
}


/* =========================
   Smaller screens
   ========================= */

@media (max-width: 780px) {

  .modal__body {
    grid-template-columns: 1fr;
  }

  .modal__video {
    width: 100%;
  }

  .modal__video video {
    width: 100%;
  }
}