/* RESET RULES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
:root {
  --black: #1a1a1a;
  --white: #fff;
  /*--gray: #ccc;*/
  --gray: #151515;
  --darkgreen: #18846C;
  --lightbrown: antiquewhite;
  --darkblack: rgba(0,0,0,0.8);
  --minRangeValue: 240px; /*was 280px but 240px fits iphone SE*/
  --phcolor: #65a41d;
}


button {
  cursor: pointer;
  background: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ol,
ul {
  list-style: none;
}

a {
  color: inherit;
}

/*body {
  margin: 5rem 0;
  color: var(--black);
  font: 1rem/1.3 sans-serif;
}*/

.gallery {
  padding: 0 2rem;
}

.container {
  max-width: 100rem; /*was 103*/
  margin: 0 auto;
}

.d-none {
  display: none;
}


/* TOOLBAR
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toolbar .search-wrapper {
  position: relative;
}


    .toolbar input[type="search"] {
        font-size: 1.6rem;
        /*border: none;*/
        /*border-bottom: 1px solid;*/
        border-style: solid;
        padding-bottom: .3rem;
        padding-top: .3rem;
        border-width: .2rem;
        border-color: var(--gray);
        
    }
    .toolbar ::-moz-placeholder {
        color: var(--phcolor);
    }

    .toolbar :-ms-input-placeholder {
        color: var(--phcolor);
    }

    .toolbar ::placeholder {
        color: var(--phcolor);
    }

.toolbar .counter {
  position: absolute;
  left: 0;
  top: calc(90% + .5rem);
  font-size: 1.6rem;
  color: var(--gray);
}

.toolbar .searchinfo {
    font-size: 1.6rem;
    margin-bottom: .3rem
}

.view-options {
  display: flex;
  align-items: center;
  visibility:visible;
}

.view-options li:not(:last-child) {
  margin-right: 1.2rem;
}

.view-options button {
  padding: .2rem;
  border: .3rem solid transparent;
}

.view-options .active button {
  border-color: var(--darkgreen);
}


/* IMAGE LIST
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.image-list {
  margin: 3rem 0;
}

.image-list li {
  background: var(--lightbrown);
  color: var(--darkblack);
}

.image-list p {
    /*font-weight: bold;*/
    font-size: 1.6rem;
}

.image-list p:first-child {
  font-weight: bold;
  font-size: 1.6rem;
}

.image-list p:last-child {
  margin-top: 0.5rem;
}


/* GRID VIEW
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.grid-view {
  display: grid;
  grid-gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(var(--minRangeValue), 1fr));
}

.grid-view figcaption {
  padding: 1rem;
}


/* LIST VIEW
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.list-view li + li {
  margin-top: 1.5rem;
}

.list-view figure {
  display: grid;
  grid-gap: 1.5rem;
  grid-template-columns: 15rem 1fr;
  align-items: center;
}


/* FOOTER (rule for this in mystyle3.css)
–––––––––––––––––––––––––––––––––––––––––––––––––– */
/*footer {
  font-size: 1rem;
  padding: 0 1.5rem;
  text-align: right;
}

footer span {
  color: #e31b23;
}*/

/* MQ
–––––––––––––––––––––––––––––––––––––––––––––––––– */
@media screen and (max-width: 900px) {
  .toolbar input[type="range"] {
    display: none;
  }
}

@media screen and (max-width: 700px) {
    .view-options {
        visibility: hidden;
    }

  .grid-view li {
    text-align: left;
    /*padding: 0.5rem;*/
    padding: 0.5rem 0;
  }
  
  .grid-view figcaption {
    padding: 0.5rem 0 0;
  }
    .image-list p {
        font-size: 2rem;
    }

        .image-list p:first-child {
            font-weight: bold;
            font-size: 2rem;
        }
}



/*Iphone 12 390*/
@media screen and (max-width: 390px) {
    .view-options {
        visibility:hidden;
    }
        .image-list p {
        font-size: 1.6rem;
    }

        .image-list p:first-child {
            font-weight: bold;
            font-size: 1.6rem;
        }
    .toolbar input[type="search"] {
        font-size: 1.6rem;
    }

    .toolbar .counter {
        font-size: 1.6rem;
    }

    .toolbar .searchinfo {
        font-size: 1.6rem;
        margin-bottom: .3rem
    }
}

/*Iphone 11*/
@media screen and (min-width : 391px) and (max-width: 414px) {
    .view-options {
        visibility: hidden;
    }

    .image-list p {
        font-size: 1.8rem;
    }

        .image-list p:first-child {
            font-weight: bold;
            font-size: 1.8rem;
        }

    .toolbar input[type="search"] {
        font-size: 1.8rem;
    }

    .toolbar .counter {
        font-size: 1.8rem;
    }

    .toolbar .searchinfo {
        font-size: 1.8rem;
        margin-bottom: .3rem
    }
}


    /*For Ipad air or something similar in portrait*/
    @media only screen and (min-width : 768px) and (max-width : 1024px) and (orientation : portrait) {
        .image-list p {
            font-size: 2.6rem;
        }
        .image-list p:first-child {
            font-weight: bold;
            font-size: 2.6rem;
        }
        .toolbar input[type="search"] {
            font-size: 2.6rem;
        }
        .toolbar .counter {
            font-size: 2.6rem;
        }
        .toolbar .searchinfo {
            font-size: 2.6rem;
            margin-bottom: .3rem
        }
    }