/* Stylesheet for all pages of photogar.com */
/*Written with Atom text editor by GN  16 apr 2020 */


  /*The following block applies to all the site
  ATTENTION PAGE BACKGROUND COLOR IS SET IN COOKIES FILE !!!!! */

  @font-face {
      font-family: 'chopinscriptmedium';
      src: url('chopinscript-webfont.woff2') format('woff2'),
           url('chopinscript-webfont.woff') format('woff');
      font-weight: normal;
      font-style: normal;
  }

  @font-face {
      font-family: 'English-157-BT';
      src: url('English-157-BT-webfont.woff2') format('woff2'),
           url('English-157-BT-webfont.woff') format('woff');
    /*       url('chopinscript-webfont.woff') format('woff');*/
      font-weight: normal;
      font-style: normal;
    }

@font-face {
    font-family: 'nunito_sanslight';
    src: url('nunitosans-light-webfont.woff2') format('woff2'),
         url('nunitosans-light-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

    body {
    display: block;
    font-family: "Calibri light", Arial, Garimond, Cambria, sans-serif;
    color: black;/*
    background-color: #b0b0b0; This week 26 sep 2022 Ihave resumed work,
    commenced 9 months ago, on a redesigned website.
    Though background color is cited here, the last reference to bg color
    is in the cookies file and thus bg color is set there in which bg color
    is changed to white. It is important to remember that the final citation
    bgc as a page is loaded comes from the cookie file.
    */
    background-color: #fbf6f2;
    line-height: 120%;
    font-size: 12pt;
    margin-left: auto;
    margin-right: auto;
    padding: 0px;
    width: 95%;
    }

    @media only screen and (min-width:768px) {
      body {
        margin-top: 0px;
      display: block;
      font-family: 'Times New Roman',"Pinyon Script",'nunito_sanslight', /* blocked chopinscript to remove it from page heading - Panique a Bord -"chopinscriptmedium",*/
      "Calibri light", Arial, Garimond, Cambria, sans-serif;
      color: black;/*
        background-color: #b0b0b0;
        I had a mistake here because bgc was set to black! hence problems
         finding a résolutionin in the cookie file*/
        background-color: #fbf6f2;
  /*    background-color:white !important;*/
      line-height: 150%;
      font-size: 14pt;
      margin-left: 0;
      margin-right: auto;
      padding: 0px;
      max-width: 100%;

      }
    }

/* class main - to make space for fixed menu bar at top of screen
by pushing rest of page content away from top of screen*/

  .main{
    position:relative;
    top:50px;
    width:100%;
    margin-left:2%;
    margin-right:2%;
}


@media only screen and (min-width:768px) {
    .main{
      position:relative;
      top:130px;
      width:75%;
      margin-left:15%;
    }
  }
/*main2 - Makes space at top of gallery page for slider  */

    .main2{
      position:relative;
      top:500px;
      width:100%;
      margin-left:0%;
    }
    /* zed fixes navbar at top of screen and lets other screen content slide under
    navbar when page is scrolled
    zed contains the top line of text as well as the menu bar.
    Its background colour give the colour to all elements at the top of the page
    except for the flag and the li elements */

    #zed {
    z-index:3;
    position:fixed;
    top:0px;
    background-color: #f3ece4;/* top line of page  */
  width:100vw;
  height:50px;
  }


@media only screen and (min-width:768px){
    #zed {
    z-index:3;
/*  position:fixed; use position fixed to maintain header always visible -
rest of page slides under header when scrolling down*/
position:relative;
    top:0px;
    background-color: #f3ece4;/* top line of page PAGE TOP BACKGROUND COLOUR */
width:100vw; /*when width was 100% top bar didn't extend to right side of screen was about 90%
but changing it to 100vw fixed that; don't know why 100% didn't suffice  */
height:100px;
}
}
/*

p {
  font-weight: normal;
} */

    .center {  /* used for centring content on all mobile pages  */
      margin: 0 auto;
      width: 100%;
      display: block;
      margin-left: auto;
      margin-right: auto;

        }
      /* reduce width on larger screens */
    @media only screen and (min-width:768px) {
      .center {   /*used for centring content on all pages  */

        margin: 0 auto;
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
      }
    }

    #p100 {
      line-height:100%;
    }

    #p150 {
      line-height:150%;
    }


/*This block is for home pages    */

        /* beginning of animation style settings */
        .diapo1 {
          width: 95vw; height: auto; padding-bottom: 5px; overflow:visible; position: relative;
          animation-delay: 0s;
          }
        @media only screen and (min-width:768px) {
          .diapo1 {
            width: 100%; height: auto; padding-bottom: 5px; overflow:visible; position: relative;
            animation-delay: 0s;
            }
        }


        .diapo1 img{ position: absolute;
        left: 0%;
        animation:diapo1 18s infinite; opacity: 0; width: 100%;
          height: 48vw; /*border: 0.2rem solid transparent;
          padding-bottom: 0px;
          padding-top: 0px;*/
        }

        /* size of the onscreen photo is governed by diapo1 img and also the container diapowidth.
        It seems if diapowidth is too large it can cause text to spread across whole page, over riding
        page width set with body width      */

        @media only screen and (min-width:768px) {
        .diapo1 img{ position: absolute;
          left: 0%;
          animation:diapo1 18s infinite; opacity: 1; width: 100%;  /* Important to remember this is where initial image
          width is set*/
      /*    transition-timing-function: ease-in-out;*/
            height: auto; border: 0.2rem solid black;
            padding-bottom: 0px;
            padding-top: 0px;
            overflow:hidden;
        }
      }

      /*trans is an experiment to making diapo container relative to see if this will allow image translation  */


.wrap {
  width: 100%;
  height: 50vh;
  position: relative;
  left:0px;
  overflow: visible;}


        @keyframes diapo1 {
        0% {transform:scale(1,1)}
          0% {opacity:1;}
  /*    10% {transform: scale(1, 1);}*/
          10% {transform: scale(1,1);}
    /*   18% {transform: scale(1.5,1.5);}
       23% {transform: scale(1.7,1.7);}*/
        20% {transform: scale(1.4,1.4);}

30.778%{transform:scale(1.4,1.4); }
         30.778%{opacity:1;}
    /*      20% {transform: translate(100px,100px);}*/
33.333%{transform:scale(1.4,1.4); }
         33.333%{opacity:0;}

96.667% {opacity:0;}
100%{opacity:1;}


        }
/*
        .diapo1 img:nth-child(6){animation-delay:0s;}
        .diapo1 img:nth-child(5){animation-delay:3s;}
        .diapo1 img:nth-child(4){animation-delay:6s;}*/
        .diapo1 img:nth-child(3){animation-delay:0s;}
        .diapo1 img:nth-child(2){animation-delay:6s;}
        .diapo1 img:nth-child(1){animation-delay:12s;}

        /*diapowidth is the container for the slideshow and governs size of images displayed   */

        .diapowidth {
         display:block;


          width:90vw;
          height:48vw;
          padding-left:1vw;
          margin-left:auto;
          margin-right:auto;
          overflow: visible;
         }
        @media only screen and (min-width:768px) {
          .diapowidth {
            position:relative;
           top:25px;
           display:block;
           left:0px;
            width:100%;
            height:65vh;
          /*  padding-left: 0%;
            margin-left:auto;
            margin-right:auto;*/
            overflow:visible;
        /*   z-index:-1;*/
      /*      background-color: yellow;*/
           }
        }

        /* End of animation styling */

       /*psmlformats last update*/

            #psml {
            /*formats last update text  */
            font-family: courier;
            font-size: 10pt;

            }

            @media only screen and (min-width:768px) {
            #psml {
            /*formats last update text  */
            font-family: courier;
            font-size: 12pt;

            }
            }

/*Need to review img formatting  - ideally should apply to entire site  */
img {
  display: block;
  visibility: visible;
  width: 100%;
  height: auto;
  margin-left: 0%;
  margin-right: auto;

}
@media only screen and (min-width:768px) {

  img {
    display: inline-block;
    overflow: hidden;
/* testing oct 17
    width: 100%;
    height: auto;
    */
/*
    width: 50%;
    height: auto;
    margin-left: 10%;
    margin-right: auto; */

}
}




@media only screen and (min-width:768px) {

  img {
    display:inline-block;
  /*  width:30%;*/
  overflow:hidden;
  }
}


/*Following black applies to galleries - is derived from old  gallery php file */

          .row {
          display: flex;
          flex-wrap: wrap;
          padding: 0 4px;
          }

          /* Create three equal columns that sit next to each other */
          .column {
          flex: 32%;
          max-width: 33%;
          padding: 0 4px;
          }

          .column img {
          margin-top: 8px;
          vertical-align: middle;
          width: 100%;
          }

          /* Responsive layout - makes a two column-layout instead of four columns */
          @media screen and (max-width: 800px) {
          .column {
            flex: 50%;
            max-width: 50%;
          }
          }

          /* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
          @media screen and (max-width: 600px) {
          .column {
            flex: 90%;
            max-width: 90%;
          }
          }

/*Following block from style 6 for tarif pages
see also #pquoteaa for apropos page at end of this file*/

          #pd {
            line-height: 100%;
          }

          #pd2 {
            line-height: 150%;
          }

          .horiz {
            width: 90%;
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            align-content: space-around;
          }

          @media only screen and (min-width:768px){
            .horiz {
              width: 66vw;
              display: flex;
              flex-direction: row;
              flex-wrap: wrap;
              justify-content: space-between;
              align-items: center;
              align-content: space-around;
            }
          }
/* unit is one of the 3 boxes used to hold one of the three sets of tarif data   */
          .unit {
            border: solid black 1px;
            width: 90vw;
            padding: 1vw;
            border-radius: 4px;
            background-color: #f9f9ea;
            }

          @media only screen and (min-width:768px) {
          .unit {
            border: solid black 1px;
            border-radius: 7px;
            background-color: #f9f9ea;
            width: 19vw;
            display: flex;
            flex-direction: column;
            padding: 1vw;
            height: auto;

          }
          }

          .spec {
           border: solid black 1px;
           width: 90vw;
           padding: 1vw;
           border-radius: 4px;

           background-color: #fc0352;
         }

         @media only screen and (min-width:768px) {
         .spec {
           border: solid black 1px;
           border-radius: 7px;
           background-color: #fc0352;
           width: 70vw;
           display: flex;
           flex-direction: column;
           padding: 1vw;
           height: auto;
          }
        }

        .specdate {
         border: solid black 1px;
         width: 90vw;
         padding: 1vw;
         border-radius: 4px;
         background-color: #b3d9ff;
       }

       @media only screen and (min-width:768px) {
       .specdate {
         border: solid black 1px;
         border-radius: 7px;
         background-color: #b3d9ff;
         width: 70vw;
         display: flex;
         flex-direction: column;
         padding: 1vw;
         height: auto;
        }
      }

          #ph {
            text-align: center;
            font-size: 13pt;
            font-weight:bold;
            font-style: italic;
          }
        @media only screen and (min-width:768px){
          #ph {
            text-align: center;
            font-size: 16pt;
            font-style: italic;
            font-weight:bold;
            }
          }


          #pindent {
            padding-left: 1vw;
            font-size: 10pt;
            line-height: 100%;
          }
          @media only screen and (min-width:768px){
            #pindent {
              padding-left: 1vw;
              font-size: 12pt;
              line-height: 100%;
            }
          }
/*Following block formats top of each page - including the menu     */

                    #phead {       /*formats page top line */
                      margin-left:1%;
                      text-align: center;
                      line-height: 100%;
                      font-family: 'Times New Roman';
                       font-style: italic;
                       font-weight:bold;
                       font-size: 12pt;
                       color: black;/*
                       background-color: blue;*/
                       background-color: #f3ece4;/* top of page first line of text */
                       margin-left: 0vw;
                       width:90%;
                       height:0.5vw;

                    }

                    @media only screen and (min-width:768px) {
                    #phead {      /* formats page top line*/
                    /*  text-align: center;*/
                      line-height: 100%;
                      /*I replaced chopinscript with Times New Roman to see if that would expedite the loading of the page title and it does.
                      I now have to find out why the gallery title - Panique a Bord - remains in Chopin script  */
                        font-family: 'Times New Roman';
                  /*    font-family: 'chopinscriptmedium';*/
                /*     font-family: 'English-157-BT';*/
                    /*  font-style:italic;*/
                       font-size:30pt;
                    /*   font-weight: bold;*/
                       color: black;/*
                       background-color: blue;*/
                       background-color: #f3ece4;/* top of page first line of text */
                       width:100%;
                       margin-left: 20%;
                       z-index: 3;
                      /* margin-left: 90%;
                       width:100%; */
                    }
}

                    .menbutton {
                      padding: 1vw;
                      width: 9vw;
                      height: 7vw;
                      vertical-align: middle;
                      display: block;
                      background-color: #f3ece4;
                    }

                    .lscreen {
                      display: inline-block;
                      position: relative;
                      width: 100%;
                    }


                    @media only screen and (min-width:768px) {
                      /*Made height small so it would use less space onscreen and menu bar
                      could be closer to top of page. Even though hidden this element takes
                      up space on the page. But now (25/11/20) I think I have a better solution;
                      instead of visibility:hidden;   better to have display:none;  */
                    .menbutton {
                      /*visibility: hidden;*/
                      display:none;
                      padding: 0.5vh;
                      width: 10vh;
                      height: .1vh;
                      vertical-align: middle;
                      display: block;
                      background-color: #ffffff;
                    }
                    }

                    .menbar {
                      vertical-align: middle;
                      padding-left: 1vw;
                      padding-right:1vw;
                      width: 4.5vw;
                      height: 0.7vw;
                      margin-top: 0.3vw;
                      margin-bottom: 0.3vw;
                      background-color: black;
                    }

                    @media only screen and (min-width:768px) {

                    .menbar {
                      visibility: hidden;
                      width: 7vh;
                      height: 0.1vh;
                      margin-top: 0.3vh;
                      margin-bottom: 0.3vh;
                      background-color: black;
                    }
                    }

      /* formatting of horizontal main navigation bar*/

                    ul{
                      background-color:#f3ece4;
                      list-style-type: none;
                      margin: 0 auto;
                      border: 6vh;
                      border-color: blue;
                      padding: 0;
                      overflow: hidden;
                      text-align: center;

                    }



                    @media only screen and (min-width:768px){
                    ul{/*
                      background-color:blue;*/
                      background-color: #f3ece4;/* top of page background of menu bar */
                      list-style-type: none;
                      margin: 0 auto;
                      border: 6vh solid black;

                      padding: 0;
                      overflow: hidden;
                      text-align: center;

                    }
                    }

                    li {

                      background-color: #f3ece4;
                      width: 35vw;
                      text-align: left;
                      vertical-align: middle;
                      font-style: italic; /*
                      border: 3vh solid blue; */

                      padding-top: 0px;
                      padding-bottom: 0px;
                    }
                    /*Partial success in creating this class. [first time I have used class
                    with an image I think] Enables me to manipulate
                    flag position in dropdown menu on small screen and leaves flag in same row
                    as other elements of the navigation bar. Need to understand more about
                    relative positioning    */


                    a:link{
                      display: block;
                      border: 3vh;
                      border-color: blue;
                      color: black;
                      text-decoration: none;
                      background-color: #fbf6f2;
                      font-size: 12pt;
                    }



                    a:visited {
                      color: #f3ece4;
                      }

                      a:hover{
                        background-color: #ffffff;
                        color: #b0b0b0;
                      }

                    a:active {
                      background-color: black;
                      color: white;
                      }

                    .flagimg {
                      display:block;
                       margin-left: 10%;

                       vertical-align: middle;
                       width: 4vh;
                       height: auto;
                    }

                    /* following creates larger flag for bigger screen    */
                    @media only screen and (min-width:768px) {
                      .flagimg {
                       display:block;
                       margin-left: auto;
                       margin-right:auto;
                       vertical-align: middle;/*
                       background-color: blue;*/
                       background-color: #f3ece4;/* top of page colors flag background */
                       width: 6vh;
                       height: auto;
                       padding:0px 0px 10px;
                    }

                    }
                    /* To correct small font size in famhist for link via "here" the next few lines*/

                                      a:link {
                                        font-size: 12pt;
                                      }
                                      a:visited {
                                        font-size: 12pt;
                                      }

                                     @media only screen and (min-width:768px) {
                                       a:link {
                                         font-size: 14pt;
                                         background: #fbf6f2;
                                       }
                                       a:visited{
                                        font-size: 14pt;
                                         }
                                     }

                    /* The following block of code is not referenced in php file
                    #right {
                      position:absolute;
                      right:5%;
                      width: 6vh;
                      background-color: #b0b0b0;

                    }

                     Following brings flag in closer to the menu on large screens
                    @media only screen and (min-width:768px) {
                      #right {
                        position:absolute;
                        right:25%;
                        width: 6vh;
                        background-color: #b0b0b0;
                      }
                    }

                    */

                    /* ddcont is the class that allows dd menu to be visible on
                    small screens and hiden on large ones   */
                    .ddcont {

                      position: relative;
                    display:inline-block;
                    background-color:#f3ece4;

                    }
                    @media only screen and (min-width:768px) {

                      .ddcont {
                        pointer-events: none;
                        display: none;
                    }
                    }

                    .ddcont a {
                      color: black;
                      display: block;
                    }

                    .ddlinks{

                    display: none;
                    position: relative;
                    background-color: blue;
                    min-width: 28vw;
                    }
                    @media only screen and (min-width:768px) {
                      .ddlinks{
                      display: none;
                      position: absolute;

                      min-width: 12%;
                    }
                    }


                    @media only screen and (max-width:768px) {
                    .lscreen {
                      display: none;
                    }
                    }

                    .ddlinks a{
                      color: black;
                      display: block;
                    }

                    .ddcont a:hover {color:#ffffff; background-color: #b0b0b0;}
                    .ddcont:hover .ddlinks {display:block;}

                    @media only screen and (min-width:768px) {

                      .ddcont:hover .ddlinks {display:inline-block;}

}
                    .ddcont:hover .menbutton {background-color: #666666;}

}
                    @media only screen and (min-width:768px) {
                      .ddcont {
                        display: contents;
                      }
                    }
                    /*imgsc positions flag image on small screens  */
                      .imgsc {
                      position: absolute;
                      left: 4vw;
                      background-color: #ffffff;
                      margin: auto;
                       vertical-align: middle;
                       display: block;
                       width: 4vh;
                       height: auto;
                    }

                    @media only screen and (min-width:768px) {
                      .imgsc {
                      position: relative;
                      background-color: blue;
                       margin: auto;
                       vertical-align: middle;
                       display: block;
                       width: 4.2vh;
                       height: auto;

                    }

                      .lscreen ul{
                        background-color: #green;

                        list-style-type: none;
                        width:100%;
                        margin-left:0%;
                        border: 3vh;
                        border-color: blue;
                        padding: 0;
                        overflow: hidden;
                        text-align: center;
                      }

                    .lscreen li {
                      display:inline-block;
                      margin-left: 0%;
                      width: 10%;
                      text-align: center;
                      vertical-align: middle;
                      font-family: "Times New Roman";
                      font-style: italic;
                      font-size: 3vh;
                      /*
                      border: 3vh solid blue; */

                      padding-top: 0vh;
                      padding-bottom: 0vh;
                      background-color: #f3ece4;
                      /* This is the piece of code that colors space around logo on large screen*/

                    }

                    .lscreen a{
                      font-size: 14pt;/*
                      background-color: blue;*/
                      background-color: #f3ece4;/* top of page  - background color of text of menu items*/

                    }

                    .lscreen a:hover{/*
                        background-color: white;*/
                        background-color: #f3ece4;/* top of page backgound color of hover  */
                        color: #989898;

                    }


/*    Formatting for footer */
                   .pfoot {
                     position:relative;
                     text-align: center;
                     font-style: italic;
                     font-size: 10pt;
                   }



                    .pfoot a:link {
                       font-size: 10pt;
                     }
                    .pfoot a:visited {
                       font-size: 10pt;
                     }
                     .pfoot p {
                       font-size: 10pt;
                     }
/* Following block for Contact pages */

                  }
                  .primates{
                    display:none;
                  }
/* Following block for Ansel Adams quote in apropos page */


                  #pquoteaa{
                    width: 80%;
                    font-family: "Times New Roman";
                    font-style: italic;
                    font-size:12pt;
                    line-height: 125%;
                    font-weight:normal;
                    margin-left:10%;
                  }
                   @media only screen and (min-width:768px){
                     #pquoteaa{
                       width: 35%;
                       font-family: "Times New Roman";
                       font-style: italic;
                       font-size:13pt;
                       line-height: 125%;
                       font-weight:normal;
                       margin-left:10%;
                     }

                   }
p{
  font-weight: normal;

}

/*legnot formats four divs for documents on legal notices page  */
#legnot{
  background-color: #d9d9d9;
  border: solid 1px black;
  border-radius: 10px;
  padding: 30px;
}
/* For cookie banner*/
/*
.cookies   a:link{
     font-size: 14pt;
     background-color: #d9d9d9;

   }
*/

/* Formatting of headings: font size is 12pt in phone screens and 14pt in larger screens
- defined in body style at beginning of style sheet           */
h1 {
color: #000000;
font-family:"Calibri light", Arial, Garimond, Cambria, sans-serif;
font-size: 14pt;
font-weight: bold;
margin-top: 0px;
margin-bottom: 1px;
}


@media only screen and (min-width:768px){
h1{
  color: #000000;
  font-family: "Calibri light", Arial, Garimond, Cambria, sans-serif;
  font-size: 20pt;
  font-weight: bold;
  margin-top: 0px;
  margin-bottom: 1px;
}
}

h2 {
color: #000000;
font-family: "Calibri light", Arial, Garimond, Cambria, sans-serif;
font-size: 12pt;
font-weight: bold;
margin-top: 0px;
margin-bottom: 1px;
}


@media only screen and (min-width:768px){
h2{
  color: #000000;
  font-family: "Calibri light", Arial, Garimond, Cambria, sans-serif;
  font-size: 18pt;
  font-weight: bold;
  margin-top: 0px;
  margin-bottom: 1px;
}
}

h3 {
color: #000000;
font-family: "Calibri light", Arial, Garimond, Cambria, sans-serif;
font-size: 12pt;
font-weight: bold;
margin-top: 0px;
margin-bottom: 1px;
}


@media only screen and (min-width:768px){
h3{
  color: #000000;
  font-family: "Calibri light", Arial, Garimond, Cambria, sans-serif;
  font-size: 14pt;
  font-weight: bold;
  margin-top: 0px;
  margin-bottom: 1px;
}
}
