.dl-list {
  display: -ms-grid;
  display: grid;
  width: 80%;
  margin: auto;
  -ms-grid-columns: 1fr 1fr;
  grid-template-columns: 1fr 1fr;
  -ms-grid-rows: repeat(4, auto);
  grid-template-rows: repeat(4, auto);
  justify-items: center;
}

.download-list-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin-left: 200px;
  margin-right: 200px;
}

.download-item {
  flex: 0 1 calc(50% - 40px); /* Two items per row */
  box-sizing: border-box;
  margin: 20px;
  padding-bottom: 40px;
  text-align: center;
  overflow: hidden;
}

.title-container {
  line-height: 1.5em;
}

.dl-list-small {
  display: -ms-grid;
  display: grid;
  width: 80%;
  margin: auto;
  -ms-grid-columns: 1fr 1fr 1fr 1fr;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  -ms-grid-rows: repeat(3, auto);
  grid-template-rows: repeat(3, auto);
  justify-items: center;
}

h3 {
  text-align: center;
}

#confirmation-desc {
  text-align: center;
  margin-top: 2%;
}

#pdf-modal {
  position: fixed;
  height: 100%;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
}

.modal-background {
  background: rgba(0,0,0,0.6);
  width: 100%;
  height: 100%;
  position: absolute;
}

.modal-container {
  position: relative;
  max-width: 90%;
  left: 5%;
  padding: 25px 0;
  background: white;
  height: 90%;
  top: 5%;
  border-radius: 5px;
}

#pdf-modal-close {
  position: absolute;
  right: 5px;
  top: 3px;
  cursor: pointer;
}

#pdf-modal-src {
  display: block;
  height: 100%;
  margin: 0 auto;
}

embed#pdf-modal-src {
  width: 100%;
}

.item-container a,
.item-container-small a {
  display: table;
  width: auto; /*IE*/
  width: max-content;
  height: auto; /*IE*/
  height: max-content;
  vertical-align: middle;
  text-align: center;
  position: relative;
    margin: auto auto 20px;
}

.setsumei h3:not(:last-of-type) {
    margin-bottom: 0;
}

.setsumei h3 {
    margin-top: 0;
}

.unsold {
    font-size: 0.75em;
    color: grey;
}

.item-container span,
.item-container-small span {
  display: none;
}

.item-container a:hover span,
.item-container-small a:hover span {
  width: 100%;
  height: 100%;
  line-height: 360px;
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  text-align: center;
  background: rgba(67, 81, 96, 0.7);
}

.item-container span b {
  font-size: 1.5em;
  font-weight: normal;
  padding: 8px 12px;
  border-radius: 5px;
  background: #1e90ff;
  color: #fff;
  font-family: sans-serif;
}

.item-container-small span b {
  font-size: 1.2em;
  font-weight: normal;
  padding: 8px 12px;
  border-radius: 5px;
  background: #1e90ff;
  color: #fff;
  font-family: sans-serif;
}

.item-container a:hover span b:hover,
.item-container-small a:hover span b:hover {
  background: #104981;
}

.item-container img,
.item-container-small img {
  background: #e7e7e7;
  border: none;
  vertical-align: bottom;
  max-height: 424px;
}

.i1 {
  -ms-grid-row: 1;
  grid-row: 1;
  -ms-grid-column: 2;
  grid-column: 2;
}

.i2 {
  -ms-grid-row: 2;
  grid-row: 2;
  -ms-grid-column: 1;
  grid-column: 1;
}

.i3 {
  -ms-grid-row: 1;
  grid-row: 1;
  -ms-grid-column: 1;
  grid-column: 1;
}

.i4 {
  -ms-grid-row: 3;
  grid-row: 3;
  -ms-grid-column: 2;
  grid-column: 2;
}

.i5 {
  -ms-grid-row: 2;
  grid-row: 2;
  -ms-grid-column: 2;
  grid-column: 2;
}

.i6 {
  -ms-grid-row: 3;
  grid-row: 3;
  -ms-grid-column: 1;
  grid-column: 1;
}

.i7 {
  -ms-grid-row: 4;
  grid-row: 4;
  -ms-grid-column: 1;
  grid-column: 1;
}

.i8 {
  -ms-grid-row: 4;
  grid-row: 4;
  -ms-grid-column: 2;
  grid-column: 2;
}

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

.catalog-title {
  margin-bottom: 25px;
  display: inline-block;
  align-self: flex-end;
}

.phone {
  display: none;
}

.link-list {
  display: block;
  margin: auto;
  width: max-content;
}

.link-list li {
  margin-bottom: 5px;
}

.link-list ul li a {
  /* text-decoration: none; */
  color: #555555;
}

.link-list ul li a:hover {
  text-decoration: underline;
  color: black;
  cursor: pointer;
}

@media screen and (max-width: 800px) {
  .phone {
    display: block;
    width: auto; /*IE*/
    width: max-content;
    margin-left: auto;
    margin-right: auto;
  }

  .phone a {
    text-decoration: none;
    color: #555555;
    margin-top: 10px;
    padding: 20px;
    border: 0.5px solid lightgray;
    border-radius: 5px;
  }
}

.link-list ul {
  list-style: none;
  padding: unset;
}

.link-list ul li i {
  color: #f00000;
}

@media screen and (max-width: 1080px) {
  .dl-list,
  .dl-list-small {
    display: block;
  }

  .dl-list-small a {
    left: 0%;
  }

  .download-item {
    flex: 0 1 100%;
    margin: 10px 0;
  }

  .download-list-container {
    margin-left: 0;
    margin-right: 0;
  }

}

@media (hover: none) {
  .phone {
    display: block;
    width: auto; /*IE*/
    width: max-content;
    margin-left: auto;
    margin-right: auto;
  }

  .phone a {
    text-decoration: none;
    color: #555555;
    margin-top: 10px;
    padding: 20px;
    border: 0.5px solid lightgray;
    border-radius: 5px;
  }
}
