.btn {
  color: black;
}

#divPartial {
  padding-bottom: 5vh;
}

.gallery-item {
  margin-bottom: 30px !important;
}

@media (min-width: 350px) {
  .part-left {
    width: 100%;
  }

  .part-right {
    width: 100%;
  }

  .text-sm-center {
    width: 95%;
  }

  .summary {
    font-size: 16px !important;
    max-width: 100%;
    height: 12vh;
  }

  .gallery {
    /* width: 100vw; */
    justify-content: center;
  }

  .gal-grid {
    margin-top: 1vh !important;
    margin-bottom: 0 !important;
    width: 90% !important;
  }


  .gallery-item {
    width: calc(var(--width-340)+1) !important;
  }

  .card {
    margin-top: 10vh;
  }

  .card-body {
    height: 45vh;
  }
}

@media (min-width: 410px) {
  .part-left {
    width: 100%;
  }

  .part-right {
    width: 100%;
  }

  .text-sm-center {
    width: 95%;
  }

  .summary {
    font-size: 16px !important;
    max-width: 100%;
    height: 12vh;
  }

  .gallery {
    /* width: 100vw; */
    justify-content: center;
  }

  /* .gal-grid {
    width: 100% !important;
  } */

  .gallery-item {
    width: calc(var(--width-340)+1) !important;
  }

  .card {
    margin-top: 10vh;
  }

  .card-body {
    height: 45vh;
  }
}

@media (min-width: 576px) {
  .part-left {
    width: 40%;
  }

  .part-right {
    width: 60%;
  }

  .text-sm-center {
    width: 90vw;
  }

  .summary {
    max-width: 28vw;
    height: 8vh;
  }

  /* .gal-grid {
    width: 55vw !important;
  } */

  .gallery-item {
    width: calc(var(--width-576)+1);
  }

  .card {
    margin-top: 10vh;
  }

  .card-body {
    height: 24vh;
  }
}

@media (min-width: 740px) {

  .card-body {
    height: 35vh;
  }

  .part-left {
    width: 45%;
  }

  .part-right {
    width: 55%;
  }

  .text-sm-center {
    width: 95vw;
  }

  .summary {
    max-width: 28vw;
    height: 8vh;
  }

  /* .gal-grid {
    width: 55vw !important;
  } */

  .gallery-item {
    width: calc(var(--width-740)+1) !important;
  }

  .card {
    margin-top: 10vh;
  }

  @media (min-width: 740px) {

    /* iPad Mini (6th generation)*/
    .part-left {
      width: 65%;
    }

    .part-right {
      width: 35%;
    }

    /* .gal-grid {
      width: 25vw !important;
    } */
  }

  @media (min-height: 1200px) {

    /* iPad Pro 11   */
    .welcome {
      height: 32vh;
    }
  }
}

@media (min-width: 992px) {
  .part-left {
    width: 40%;
  }

  .part-right {
    width: 60%;
  }

  .text-sm-center {
    width: 90vw;
  }

  .summary {
    max-width: 28vw;
    height: 8vh;
  }

  /* .gal-grid {
    width: 60vw !important;
  } */

  .gallery-item {
    width: calc(var(--width-992)+1) !important;
  }

  .card {
    margin-top: 10vh;
  }

  .card-body {
    height: 24vh;
  }

  @media (min-width: 744px) {

    /* iPad Mini IPadOS*/
    .card-body {
      height: 38vh;
    }
  }

}

@media (min-width: 1200px) {
  .card-body {
    height: 34vh;
  }

  @media (min-height: 800px) {

    /*Galaxy Tab S9+ : 1280x800 */
    .card-body {
      height: 37vh;
    }
  }
}

@media (min-width: 1440px) {
  .part-left {
    width: 35%;
  }

  .part-right {
    width: 65%;
  }

  .text-sm-center {
    width: 70vw;
  }

  .summary {
    max-width: 22vw;
  }

  /* .gal-grid {
    width: 45vw !important;
  } */

  .gallery-item {
    width: calc(var(--width-992)+1) !important;
  }

  .card {
    margin-top: 15vh;
  }

  .card-body {
    height: 35vh;
  }
}

@media (min-width: 1900px) {
  .part-left {
    width: 25%;
  }

  .part-right {
    width: 75%;
  }

  .text-sm-center {
    width: 80vw;
  }

  .summary {
    max-width: 18vw;
  }

  /* .gal-grid {
    width: 45vw !important;
  } */

  .gallery-item {
    width: calc(var(--width-992)+1) !important;
  }

  .card {
    margin-top: 15vh;
  }

  .card-body {
    height: 34vh;
  }
}


div.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.gallery-item {
  margin: 1px 5px;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
}


div.gallery-a {
  margin: 5px;
  background-repeat: no-repeat !important;
  background-position-x: center !important;
  background-position: center;

  height: var(--height-340);
  width: var(--width-340);
  background-size: auto var(--height-340) !important;

  @media (min-width: 410px) {
    height: var(--height-410);
    width: var(--width-410);
    background-size: auto var(--height-410) !important;
  }

  @media (min-width: 576px) {
    height: var(--height-576);
    width: var(--width-576);
    background-size: auto var(--height-576) !important;
  }

  @media (min-width: 740px) {
    height: var(--height-740);
    width: var(--width-740);
    background-size: auto var(--height-740) !important;
  }

  @media (min-width: 768px) {
    height: var(--height-768);
    width: var(--width-768);
    background-size: auto var(--height-768) !important;
  }

  @media (min-width: 992px) {
    height: var(--height-992);
    width: var(--width-992);
    background-size: auto var(--height-992) !important;
  }
}

div.desc {
  padding: 4px 10px;
  margin-left: 5px;
  margin-right: 5px;
  text-align: center;
  color: #fff;
  font-size: 18px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  border: 1px solid #ffffffb3;
  width: var(--width-340);

  @media (min-width: 410px) {
    width: var(--width-410);
  }

  @media (min-width: 576px) {
    width: var(--width-576);
  }

  @media (min-width: 740px) {
    width: var(--width-740);
  }

  @media (min-width: 768px) {
    width: var(--width-768);
  }

  @media (min-width: 992px) {
    width: var(--width-992);
  }
}
.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: calc(var(--width-340) - 18vw);

  @media (min-width: 410px) {
    width: calc(var(--width-410) - 18vw);
  }  
  @media (min-width: 576px) {
    width: calc(var(--width-576) - 18vw);
  }

  @media (min-width: 740px) {
    width: calc(var(--width-740) - 9vw);
  }

  @media (min-width: 768px) {
    width: calc(var(--width-768) - 9vw);
  }

  @media (min-width: 992px) {
    width: calc(var(--width-992) - 7vw);
  }
  @media (min-width: 1200px) {
    width: 180px;
  }  
}

div.gallery-a-portrait {
  margin: 5px;
  background-repeat: no-repeat !important;
  background-position-x: center !important;

  height: var(--height-340-portrait);
  width: var(--width-340-portrait);
  background-size: auto var(--height-340-portrait) !important;

  @media (min-width: 410px) {
    height: var(--height-410-portrait);
    width: var(--width-410-portrait);
    background-size: auto var(--height-410-portrait) !important;
  }

  @media (min-width: 576px) {
    height: var(--height-576-portrait);
    width: var(--width-576-portrait);
    background-size: auto var(--height-576-portrait) !important;
  }

  @media (min-width: 740px) {
    height: var(--height-740-portrait);
    width: var(--width-740-portrait);
    background-size: auto var(--height-740-portrait) !important;
  }

  @media (min-width: 768px) {
    height: var(--height-768-portrait);
    width: var(--width-768-portrait);
    background-size: auto var(--height-768-portrait) !important;
  }

  @media (min-width: 992px) {
    height: var(--height-992-portrait);
    width: var(--width-992-portrait);
    background-size: auto var(--height-992-portrait) !important;
  }
}

div.desc-portrait {
  padding: 4px 10px;
  margin-left: 5px;
  margin-right: 5px;
  text-align: center;
  color: #fff;
  font-size: 18px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  border: 1px solid #ffffffb3;
  width: var(--width-340-portrait);

  @media (min-width: 410px) {
    width: var(--width-410-portrait);
  }

  @media (min-width: 576px) {
    width: var(--width-576-portrait);
  }

  @media (min-width: 740px) {
    width: var(--width-740-portrait);
  }

  @media (min-width: 768px) {
    width: var(--width-768-portrait);
  }

  @media (min-width: 992px) {
    width: var(--width-992-portrait);
  }
}

.truncate-portrait {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: calc(var(--width-340-portrait) - 18vw);

  @media (min-width: 410px) {
    width: calc(var(--width-410-portrait) - 18vw);
  }  
  @media (min-width: 576px) {
    width: calc(var(--width-576-portrait) - 18vw);
  }

  @media (min-width: 740px) {
    width: calc(var(--width-740-portrait) - 9vw);
  }

  @media (min-width: 768px) {
    width: calc(var(--width-768-portrait) - 9vw);
  }

  @media (min-width: 992px) {
    width: calc(var(--width-992-portrait) - 7vw);
  }

  @media (min-width: 1400px) {
    width: 280px;
  }
}

.h3-title {
  color: #fff;
  margin-left: 10vw;
}

.h4-title {
  color: #fff;
  margin-top: 10vh;
}

.card {
  border-width: 2px;
  width: 98%;
  justify-self: center !important;
}

.card-header {
  background-color: var(--tsc-header-bg) !important;
  border-radius: 0 !important;
}


.summary {
  color: var(--bs-card-color);
  border: 0;
  font-size: 18px;
}

.btn-desc-rename {
  margin-left: 2px;
  font-size: 15px;
  float: right;
  /* color: var(--tsc-header-bg) !important; */
}

.btn-desc-delete {
  margin-left: 7px;
  font-size: 15px;
  float: right;
  /* color: var(--tsc-header-bg) !important; */
}

label {
  font-size: 15px;
}

.btn-file,
.btn-submit {
  text-align: center;
  margin: auto;
  width: 120px;
  background-color: var(--tsc-bg-color) !important;
  color: black !important;
}

.btn-submit>button {
  background-color: var(--tsc-header-bg) !important;
}

.btn-cancel {
  float: right;
  margin-right: 2px;
  color: black;
  border: 1px solid var(--tsc-header-bg) !important;
  border-radius: 0 !important;
}


.validation-summary-errors {
  font-size: 16px;
}


input::file-selector-button {
  font-size: 16px !important;
  border: none;
  color: var(--bs-dropdown-link-color) !important;
  text-decoration: none;
}

input::file-selector-button:hover {
  background-color: var(--tsc-bg-color);
}

::file-selector-button {
  font: 16px !important;
}

.custom-file-input::-webkit-file-upload-button {
  visibility: hidden;
}

.custom-file-input::before {
  content: 'Select some files';
  display: inline-block;
  color: var(--bs-dropdown-link-color) !important;
  border: none;
  padding: 5px 0px;
  width: 140px;
  outline: none;
  white-space: nowrap;
  -webkit-user-select: none;
  cursor: pointer;
  font-size: 16px !important;
}

textarea {
  resize: none;
}

#newname {
  background-color: #fff;
}

h3 {
  margin-bottom: 30px;
}