body {
    font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-size: 1em;
}

a {
    color:#b96a24;
}

a:visited {
    color: #8a6e47;
}

#title{
    font-weight: 800;
  padding: 10px 10px 0 42px;
  font-size: 2em;
}

#links {
    display: flex;
    flex-wrap: wrap;
}

#links .dir {
	height: 35px;
    background-size: 26px auto;
    /*padding-left: 29px;
    margin: 10px 40px;*/
    padding: 2%;
  flex-grow: 1;
  flex-basis: 16%;
  align-content: center;
  background-position: left;
}

#links .dir.accueil {
    background: none;
    background-image: url("../icons/accueil.png");
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: left;
}

#links .dir a {
    padding-left: 11px;
    box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

#links .file {
    width: unset;
    display: unset;
    margin: 0;
  /*width: 11vh;
  height: 152px;*/
  height: 40vh;
  flex-grow: 1;
}

#links .file:last-child {
    flex-grow: 0;
}

#links .file:last-of-type, #links .file:nth-last-of-type(2), #links .file:nth-last-of-type(3) {
    flex-grow: 0;
}

#links .file img {
  /*border: 1px solid #ddd;
  border-radius: 4px;
  padding: 5px;
  max-width: 100%;
  max-height: 100%;*/
  max-height: 100%;
  min-height: 100%;
  min-width: 100%;
  object-fit: cover;
  vertical-align: bottom;
}

/* Pour terminal en mode portrait */
@media (max-aspect-ratio: 1/1) {
  #links .file {
    height: 13vh;
  }
}

/* Pour petit écran */
@media (max-height: 480px) {
  #links .file {
    height: 80vh;
  }
}

/* Pour petit écran portrait */
@media (max-aspect-ratio: 1/1) and (max-width: 480px) {
    a {
        font-size: 2.5em;
    }
  #links {
    flex-direction: row;
  }

  #links .file {
    height: auto;
    width: 100%;
  }

  #links .file img {
    width: 100%;
    max-height: 75vh;
    min-width: 0;
  }
}

@media (max-aspect-ratio: 1/1) and (max-width: 1000px) {
    #links .dir {
        flex-basis: 38%;
        padding: 5%;
    }
    #links .dir a {
        font-size: 1.9em;
    }
}
/*
.dir a:before {
	content: url("../icons/picture-folder.png");
	background-size: 20px 20px;
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 5px;
}
*/

/*****  VISIONNEUSE *******/
body .ui-dialog {
  /*  height: 80% !important;
  width: 80% !important;
  top: 10% !important;
  left: 10% !important;*/
}

body .ui-widget-content {
    background: none;
    background-color: #f5f3e5;
}

body .ui-dialog-titlebar {
    background: none;
    background-color: #f5f3e5;
    border: none;
}

body .blueimp-gallery {
    box-shadow: none;
  background-color: inherit;
}
