.folder-item {
  display: inline-flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  width: 19%;
  margin-right: 1.25%;
  margin-bottom: 10px;
  padding: 15px 15px;
  background-color: #FFF;
  border: 1px solid #DDD;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color ease-in-out .1s;
}
.folder-item.ondragover {
  background-color: #F0F0F0;
}
.folder-item .icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 15px;
  background-image: url('/image/menu-directory.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
.folder-item .name {
  flex: 1;
  color: #3e3e3e;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.folder-item.selected {
  background-color: rgba(52, 152, 219, 0.2);
}

.folder-row {
  display: inline-flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  width: 100%;
  padding: 15px 15px;
  border-bottom: 1px solid #EEE;
}
.folder-row.selected {
  background-color: rgba(52, 152, 219, 0.2);
}
.folder-row .icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-right: 15px;
  background-image: url(/image/file-type-folder.png);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
.folder-row .name {
  flex: 1;
  color: #2e2e2e;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.folder-row .attr {
  flex-shrink: 0;
  width: 120px;
  color: #2e2e2e;
  font-size: 12px;
  text-align: left;
}

.album-item {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  height: auto;
  margin-bottom: 10px;
  cursor: pointer;
  overflow: hidden;
}
.album-item .folder {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  height: auto;
  padding: 10px;
  border-radius: 15px;
  background-color: #F0F0F0;
}
.album-item .folder .image {
  display: inline-block;
  width: 48%;
  padding-top: 48%;
  margin-right: 4%;
  margin-bottom: 4%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.album-item .folder .image:nth-child(2n) {
  margin-right: 0;
}
.album-item .folder .image:nth-child(n+3) {
  margin-bottom: 0;
}
.album-item .folder .image:nth-child(n+5) {
  display: none;
}
.album-item .name {
  margin-top: 10px;
  color: #2e2e2e;
  font-size: 14px;
  text-align: center;
}
.album-item.selected {
  background-color: rgba(52, 152, 219, 0.2);
}

.album-row {
  display: inline-flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  width: 100%;
  padding: 15px 15px;
  border-bottom: 1px solid #EEE;
}
.album-row.selected {
  background-color: rgba(52, 152, 219, 0.2);
}
.album-row .icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-right: 15px;
  background-image: url(/image/file-type-album.png);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
.album-row .name {
  flex: 1;
  color: #2e2e2e;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.album-row .attr {
  flex-shrink: 0;
  width: 120px;
  color: #2e2e2e;
  font-size: 12px;
  text-align: left;
}

.file-item {
  display: inline-flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  width: 19%;
  margin-right: 1.25%;
  margin-bottom: 20px;
  background-color: #FFF;
  border: 1px solid #DDD;
  border-radius: 5px;
  cursor: pointer;
  overflow: hidden;
}
.file-item.selected {
  background-color: rgba(52, 152, 219, 0.2);
}
.file-item .thumbnail {
  display: inline-block;
  width: 100%;
  padding-top: 80%;
  background-image: url('/image/menu-album.png');
  background-size: auto 75px;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
}
.file-item .thumbnail.yes {
  background-size: contain;
}
.file-item .thumbnail.s {
  background-size: auto 50%;
}
.file-item.masonry .thumbnail {
  background-size: contain;
}
.file-item .detail {
  display: inline-flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  padding: 12px 15px;
}
.file-item .icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 15px;
  background-image: url('/image/menu-album.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
.file-item .name {
  flex: 1;
  color: #3e3e3e;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-item .attr {
  display: none;
}
.file-item .remove {
  display: inline-block;
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  background-color: #FFF;
  background-image: url('/image/icon-exit.png');
  background-size: auto 12px;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 3px;
  cursor: pointer;
}

.file-row-header {
  display: inline-flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  width: 100%;
  padding: 10px 15px;
  padding-right: 30px;
  border-bottom: 1px solid #EEE;
}
.file-row-header .name {
  flex: 1;
  padding-left: 33px;
  color: #2e2e2e;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-row-header .attr {
  flex-shrink: 0;
  width: 120px;
  color: #2e2e2e;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
}

.file-row {
  display: inline-flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  width: 100%;
  padding: 15px 15px;
  border-bottom: 1px solid #EEE;
}
.file-row.selected {
  background-color: rgba(52, 152, 219, 0.2);
}
.file-row .icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-right: 15px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
.file-row .name {
  flex: 1;
  color: #2e2e2e;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-row .attr {
  flex-shrink: 0;
  width: 120px;
  color: #2e2e2e;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.right-click-menu {

}




/* Smartphones (portrait) */
@media only screen and (max-width: 480px) {
  body {
    min-width: 0;
  }
  .folder-item {
    width: 100%;
    margin-right: 0;
  }
  .file-item {
    width: 48%;
    margin-right: 4%;
  }
  .file-item:nth-child(2n) {
    margin-right: 0;
  }

  .album-item {
    width: 48%;
    margin-right: 4%;
  }
  .album-item:nth-child(2n) {
    margin-right: 0;
  }
}

/* Smartphones (Landscape) / Tablet (portrait) */
@media only screen and (min-width: 481px) and (max-width: 800px) {
}

/* Tablet (Landscape) */
@media only screen and (min-width: 801px) and (max-width: 1200px) {
}

/* Laptop */
@media only screen and (min-width: 1201px) and (max-width: 1600px) {
  .folder-item,
  .album-item,
  .file-item {
    width: 19%;
    margin-right: 1.25%;
  }
  .folder-item:nth-child(5n),
  .album-item:nth-child(5n),
  .file-item:nth-child(5n) {
    margin-right: 0;
  }
}

/* Desktop */
@media only screen and (min-width: 1601px) {
  .folder-item,
  .album-item,
  .file-item {
    width: 15.5%;
    margin-right: 1.4%;
  }
  .folder-item:nth-child(6n),
  .album-item:nth-child(6n),
  .file-item:nth-child(6n) {
    margin-right: 0;
  }
}