html {
    color: #232323;
    font-size: 1em;
    line-height: 1.4;
}

::-moz-selection {
    background: #d5d5d5;
    text-shadow: none;
}

::selection {
    background: #d5d5d5;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}


body {
    font: 16px/26px Helvetica, Helvetica Neue, Arial;
}

.wrapper {
    width: 90%;
    margin: 0 5%;
}

/* ===================
    ALL: Morsa Theme
   =================== */

.header-container {
    border-bottom: 2px solid #000000;
}

.footer-container,
.main aside {
    border-top: 2px solid #000000;
}

.header-container,
.main aside {
    background: #333333;
}


.footer-container {
    background: #333333;
}

.title {
    color: #fefefe;
}

/* ==============
    MOBILE: Menu
   ============== */

nav ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

nav a {
    display: block;
    margin-bottom: 10px;
    padding: 15px 0;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    color: white;
    background: #121212;
}

nav a:hover {
    color: white;
	background: #222222;
}

nav a:hover {
    text-decoration: none;
	color: #979797;
}

/* ==============
    MOBILE: Main
   ============== */

.main {
    padding: 1em 0;
}

.main article h1 {
    font-size: 1.8em;
}

.footer-container footer {
    color: white;
    padding: 0.6em;
}

/* ===============
    ALL: IE Fixes
   =============== */

.ie7 .title {
    padding-top: 20px;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

.main header img{
	float: left;
	padding-right: 12px;
	margin-top:0.4em;	
}

p.titleDesc {
	color:#fefefe;
	font-size: 1em;
}

#artiste  img{	
	padding-top: 15px;
	padding-right: 15px;	
}

.floatTitle  h1{
	color: #ffffff;
    text-shadow: 0.5px 0.5px 1px #212121, -0.5px -0.5px 3px #999999;
	margin-top: 0.6em;
	margin-bottom:0;
}

#Intro {
	font-family: Georgia, serif;
	font-size:0.9em;
}
#Intro  p{
	margin-top:0em;
	margin-bottom:0em;
}

.Italic {
	font-style:italic;
}

#headR  {
	margin-bottom:1.6em;
	padding-bottom:1em;
	border-bottom: 1px solid #d8d8d8;
}

#headR h1 {
	margin-top:0.4em;
	margin-bottom:0.4em;
}

.main article {
	background-color:#f2f2f2;
	padding:0.4em;			
}

.artwokContainer h2{
	margin-top:0.4em;
	margin-bottom:0;	
}

.artwokContainer p{
	margin-top:0;
	margin-bottom:0.4em;
	font-family: Georgia, serif;
}

.floatTitle p {
    margin-bottom: 0.6em;
	margin-top:0;
}

#footR h3{
	margin-top:0em;
	margin-bottom:0.3em;
}

#footR h4{
	margin-top:0.4em;
	margin-bottom:0;
}

#footR p {
	font-family:Georgia, serif;
	font-size:0.9em;
	line-height:1.3em;
	margin :0em;
	margin-top:0.2em;
}
.wrapper p.Italic {
	font-size:0.8em;
}
/* ==========================================================================
   Media Queries
   ========================================================================== */

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

/* ====================
    INTERMEDIATE: Menu
   ==================== */

    nav a {
        float: left;
        margin: 0% 1.7%;
        padding: 15px 3%;
        margin-bottom: 0;
		font-size: 0.9em;		
    }

    nav li:first-child a {
        margin-left: 0;
    }

    nav li:last-child a {
        margin-right: 0;
    }
	
/* ========================
    INTERMEDIATE: IE Fixes
   ======================== */

    nav ul li {
        display: inline;
    }

    .oldie nav a {
        margin: 0 0.7%;
    }
}

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

/* ====================
    WIDE: CSS3 Effects
   ==================== */

    .header-container,
    .main aside {
        -webkit-box-shadow: 0 5px 10px #aaa;
           -moz-box-shadow: 0 5px 10px #aaa;
                box-shadow: 0 5px 10px #aaa;
    }
	
/* ============
    WIDE: Menu
   ============ */

    .floatTitle {
        float: left;
    }

    nav {
        float: right;
        width: 48%;
		margin-top:1em;
		margin-bottom:1em;
    }	

	
/* ============
    WIDE: Main
   ============ */

    .main article {
        float: left;
        width: 90%;		
    }

}

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

/* ===============
    Maximal Width
   =============== */

    .wrapper {
        width: 1026px; /* 1140px - 10% for margins */
        margin: 0 auto;

    }
	.popup {
		max-width: 850px;
	}

	.popup img{
		max-width: 850px;
		max-height: 850px;
	}
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.hidden {
    display: none !important;
    visibility: hidden;
}

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}

#photos {
  /* Prevent vertical gaps */
  line-height: 0;   
  -webkit-column-count: 5;
  -webkit-column-gap:   3px;
  -moz-column-count:    5;
  -moz-column-gap:      3px;
  column-count:         5;
  column-gap:           3px;
    
}

#photos img {
  /* Just in case there are inline attributes */
  width: 100% !important;
  height: auto !important;
  padding-bottom:3px;
}

#moto img {
  /* Just in case there are inline attributes */
  width: 100% !important;
  height: auto !important;
  padding-top:2px;

}
@media (max-width: 1200px) {
  
#photos {
  -moz-column-count:    4;
  -webkit-column-count: 4;
  column-count:         4;
}
  
.popup {
	max-width: 850px;
}

.popup img{
	max-width: 850px;
	max-height: 850px;
}
}
@media (max-width: 1000px) {
  
#photos {
  -moz-column-count:    3;
  -webkit-column-count: 3;
  column-count:         3;
}
.popup {
	max-width: 850px;
}

.popup img{
	max-width: 800px;
	max-height: 800px;
}
}
@media (max-width: 800px) {
  #photos {
  -moz-column-count:    2;
  -webkit-column-count: 2;
  column-count:         2;
  }

  .popup {
	max-width: 650px;
  }
  .popup img{
	max-width: 600px;
	max-height: 600px;
}
}
@media (max-width: 400px) {
  #photos {
  -moz-column-count:    2;
  -webkit-column-count: 2;
  column-count:         2;
  }
    
  .popup {
	max-width: 350px;
  }
  
  .popup img{
	margin:0 auto;
	max-width: 300px;
	max-height: 500px;
  }
}
/*POPUP*/

.overlay {
  position: fixed;
  width:100%;
  height:100%;
  background: #000000;
  opacity: .80;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  transition: opacity 500ms;
  visibility: hidden;
  opacity: 0;
}

.popup {
  margin: 55px auto;
  padding: 5px;
  background: #fff;
  border-radius: 2px;
  position: relative;
  transition: all 5s ease-in-out;	
}

.popup .close {
  position: absolute;
  top: 20px;
  right: 30px;
  transition: all 200ms;
  font-size: 30px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
  background:#ffffff;
  padding:2px;
}

.popup .close:hover {
  color: #535353;
  cursor:pointer;
}

/*FLICK*/

.gallery {
  background: #ffffff;
  margin: 0 0 15px 0;
}

.gallery-cell {
  height: 150px;
}

.gallery-cell img {
  display: block;
  max-height:150px;
  margin-right:15px;
  /* dim unselected */
}

/* buttons, no circle */
.flickity-prev-next-button {
  width: 60px;
  height: 60px;
  background: transparent;
  opacity: 0.6;
}
.flickity-prev-next-button:hover {
  background: transparent;
  opacity: 1;
}
/* arrow color */
.flickity-prev-next-button .arrow {
  fill: white;
}
.flickity-prev-next-button.no-svg {
  color: white;
}
/* closer to edge */
.flickity-prev-next-button.previous { left: 0; }
.flickity-prev-next-button.next { right: 0; }
/* hide disabled button */
.flickity-prev-next-button:disabled {
  display: none;
}