/**
 * @file
 * Logo tile.
 */

.logo-tile {
  display: flex;
  overflow: hidden;
  text-decoration: none;
  background-color: var(--imtm-color-white);
}

.logo-tile:hover {
  text-decoration: none;
}

.logo-tile__logo {
  font-weight: 700;
  color: #555557;
  text-align: center;
  transition: transform 0.5s ease;
}

.logo-tile__logo img {
  max-width: 100%;
  height: auto;
}

.logo-tile:hover .logo-tile__logo {
  transform: scale(1.125);
}

.logo-tile__title {
  font-size: 1rem;
  line-height: 1.25rem;
  color: var(--imtm-color-text-light);
}

/* Row: logo left, title right (front page). */
.logo-tile--row {
  align-items: center;
  height: 100px;
}

.logo-tile--row .logo-tile__logo {
  flex-shrink: 0;
  width: 215px;
  font-size: 1.25rem;
}

.logo-tile--row .logo-tile__title {
  flex-grow: 1;
  padding: 1rem;
  margin-left: 1rem;
}

/* Card: logo above acronym and title (research projects listing). */
.logo-tile--card {
  flex-direction: column;
  min-height: 241px;
  box-shadow: var(--imtm-shadow-tile);
}

.logo-tile--card .logo-tile__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 128px;
  font-size: 1.5rem;
}

.logo-tile__text {
  margin: 0 1.75rem 1.75rem;
}

.logo-tile__acronym {
  font-weight: 700;
  color: #555557;
}

/* Logo only (research infrastructures). */
.logo-tile--logo {
  align-items: center;
  justify-content: center;
  height: 110px;
}

.logo-tile--logo .logo-tile__logo {
  transition-duration: 0.25s;
}

.logo-tile--logo:hover .logo-tile__logo {
  transform: scale(1.1);
}

.logo-tile--raised {
  box-shadow: var(--imtm-shadow-sm);
}
