
body {
	margin-left: 40px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	font-family: Arial, Helvetica, sans-serif;
}

h1 {
  text-align: center;
  color: #fff;
}

.accordion {
  width: 530px;
  height: 398px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 0 0;
}

.tab {
  position: relative;
  flex: 1;
  height: inherit;
  background: #000;
  color: #fff;
  cursor: pointer;
  transition: flex 0.5s ease;
}

.tab img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.caption {
  position: absolute;
  z-index: 2;
  padding: 20px;
  white-space: nowrap;
  bottom: 0px;
  opacity: 0;
}

.caption h2 {
  margin-bottom: 2px;
  text-overflow: clip;
  font-size: 20px;
  text-transform: uppercase;
}

.caption p {
  margin: 0;
  font-size: 0.8rem;
}

.tab:hover img {
  opacity: 0.5;
}

.tab:hover {
  flex: 4;
}

.tab:hover .caption {
  transition: all 0.5s ease;
  opacity: 1;
}
