.grid{        
        overflow: auto;
        display: grid;
        grid-gap: 2px;
        width: 100%;
        height: 100%;
        position: fixed;
        z-index: var(--z-grid);
        top:0;
        left:0;
        background-color:var(--c-background);
        color: var(--c-grid-txt);
       }


/*****************/
/*  GRID BOXES  */  
/*****************/

.gridbox {
        grid-template-columns:0.3fr 4fr 4fr 3fr 0.3fr; /*Fr is a fractional unit and 1fr is for 1 part of the available space*/
        grid-template-rows: 50px 50px fit-content(200px) auto fit-content(100px) 50px;
        grid-template-areas: 
            ' head        head        head        head        head '
            'borderl      title       title       title2      borderr'
            'borderl      middle      middle      square      borderr'
            'borderl      middle      middle      work        borderr'
            'borderl      artistsfoot artistsfoot artistsfoot borderr'
            'foot         foot        foot        foot        foot';
       }

.gridbox2 { /* tentoonstellingen */
        grid-template-columns: 50px 300px 300px 1fr;
        grid-template-rows: 50px 50px 1fr  1fr 50px;
        grid-template-areas: 
            'head     head        head        head'
            'prev     title       title       next'
            'tekst    txt         txt         txt2'
            'art      txt         txt         txt2'
            'foot     foot        foot        foot';
       }       


    .sjabloon{
        background-color:white; border: solid black 2px; box-sizing: border-box;     /* border on inside of box */
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;}

    .box { /* algemeen voor alle gridelementen */
        box-sizing: border-box;     /* border on inside of box */
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }

    img.box{width: 100%;padding:10px;}


  /*****************/
  /*  GRID AREAS  */  
  /*****************/


    .HEAD {
        grid-area: head;
        background-color: var(--c-head-bg);
        color:var(--c-head-txt);
        z-index: 20000;
        border-bottom: solid var(--c-head-border) 1px;  
        padding-top:5px;
        overflow:hidden;   
        font-weight: normal;   
    }

    .TITLE {
        grid-area: title;
        background-color: var(--c-title-bg);
        color: var(--c-title-txt);
        padding: 15px 0px 5px 25px;
        font-size:20px;
        line-height: 25px;
        border-bottom: solid 2px var(--c-title-border);
        z-index: 10000;
        font-weight: normal;
    }

    .TITLE a {color:var(--c-title-txt);}

.borderl{
    grid-area: borderl;
    width:20px;
}
.borderr{
    grid-area: borderr;
    width:20px;
}

    .emptyone{grid-area: emptyone; background-color:red}
    .emptytwo{grid-area: emptytwo; background-color:pink}
    .emptythree{grid-area: emptythree; background-color:blue}

    .MIDDLE {
        grid-area: middle;
        background-color:var(--c-middle-bg);
        overflow:auto;
        padding: 25px 60px 30px 40px;
        text-align: justify;
        overflow:auto;

    }
    .SQUARE {
        grid-area: square;
        background-color: var(--c-square-bg);
        border: var(--c-square-border);
        padding: 10px;
        padding-left:25px
    }

    .TXT{
        grid-area: txt;
        overflow-y:scroll;
        padding:15px 40px 10px 50px;  
        background-color:white;  
            }
           
    .TXT2{
        grid-area: txt2;
        background-color:black;
        color:white;
        overflow-y:scroll;
        padding-left: 20px;
        font-size:10px}  


   /* NAVIGATION */ 
        .PREV{
            grid-area: prev;
            padding-left:10px;
            text-align: center;
            color:var(--c-prev-txt);
            background-color:var(--c-prev-bg);
        }    

        .NEXT{
            grid-area: next;
            padding-left: 10px;
            color:var(--c--next-txt);
            background-color: var(--c-next-bg);
        }

        .ART{grid-area: art;
            color:var(--c--art-txt);
            background-color: var(--c-art-bg);}

        .TEKST{grid-area: tekst; }


    .WORK{
        grid-area: work;
        background-color: var(--c-work-bg);
        overflow:auto;

    }

    .ARTISTSFOOT {
        grid-area: artistsfoot;
        background-color: var(--c-artistsfoot-bg);
        padding: 10px;
        font-family: var(--f-fam-artistsfoot);
        border-top:solid 1px black;
    }
    .ARTISTFOOT a{color:var(--c-artistfoot-txt)}

    .FOOT {
        grid-area: foot;
        background-color:var(--c-foot-bg);
        color:var(--c-foot-txt);
        padding: 10px;
        border-top: solid 2px red;
    }
    .FOOT a{color:var(--c-foot-txt);}

         

    ::-webkit-scrollbar {
        width: 0.5em;
        height: 0.5em;
      }
      
      ::-webkit-scrollbar-thumb {
        background-color: rgba(255,255,255,.1);
        border-radius: 3px;
      }


    
   .rotate{ transform: rotate(-90deg);
     /* Safari */
    -webkit-transform: rotate(-90deg);
      /* Firefox */
    -moz-transform: rotate(-90deg);
    transform-origin: /*horizontale verschuiving*/ 35px 
                      /*verticale verschuiving*/   20px;
                      
}
    
    .klikaan, .klikuit{ justify-content: center; font-size:15px; display:flex; vertical-align: middle}
    .klikuit a{color:white; text-decoration: none}
    .klikuit a:hover{text-decoration: none}
    .klikaan{background-color:var(--c-klikaan-bg); color:var(--c-klikaan-txt);}
    .klikuit{background-color:var(--c-klikuit-bg); color:var(--c-klikuit-txt); }
    
    .DESCRIPTION{grid-area: description;}

    .ROOM{grid-area: room;}





  
/*****************/
/***** PHONE ****/
/*****************/

@media only screen and (max-width: 600px) {
	

   
   .gridbox {

        grid-template-columns: 25% 25% 25% 25%;
        grid-template-rows: 50px 50px auto  fit-content(100%) ;
        grid-template-areas: 
            'head        head     head     head'
            'title       title    title    title'
            'middle      middle   middle   middle'
            'foot        foot     foot     foot'
         ;
       }

    .gridbox2 {
        grid-template-columns: 50% 50%;
        grid-template-rows: 50px 80px 20px 1fr 20px  50px;
        grid-template-areas: 
            'head     head      '
            'title    title  '
            'txt      txt   '
            'tekst    art  '
            'foot     foot';
       }   


    
       .HEAD {
        border-bottom: solid var(--c-head-border) 0.5px;  
      
    }
    
    .TITLE {

        font-size:15px;
    }   
       
    .SQUARE{display:none}

    .ARTISTSFOOT{display:none}

    .TXT2{display:none}

    .MIDDLE{
        padding: 25px 40px 30px 40px;
    }

    .rotate{ transform: rotate(0deg);
        /* Safari */
       -webkit-transform: rotate(0deg);
         /* Firefox */
       -moz-transform: rotate(0deg);}
}