body {
    color: #454545;
    font-family: 'Roboto', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    font-size: 1.6em;
    font-weight: 300;
    letter-spacing: .01em;
    line-height: 1.6;
    margin: 8px;
    overflow-y: scroll;
    min-height: 80vh;
}

main {
    min-height: 80vh;
}

nav.top {
    width: 100%;
    height: 50px;
    padding: 0px 16px;
    margin-top: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background-color: white;
    display: flex;
    justify-content: space-between;
}

button {
    font-family: inherit;
}

.button-red-outline, a.button-red-outline {
    color: #DD0000;
    border-color: #DD0000;
    background-color: white;
    text-decoration: none;
    font-size: 0.9em;
}

.button-red-outline:hover, .button-red-outline:active, .button-red-outline:focus {
    background-color: #DD0000;
    border-color: #DD0000;
    color: white;
    text-decoration: none;
}

.square {
    border-radius: 0px;
}

nav.top img.logo.large {
    height: 46px;
    width: 240px;
}

nav.dates {
    padding-left: 20px;
    padding-right: 20px;
}

a.tab, a.tab:link, a.tab:active {
    padding: 10px 20px;
    display: block;
    font-size: 1.1em;
    height: 100%;
    color: #A0A0A0;
}

a.tab:hover, a.tab:active, a.tab.active {
    background-color: #F0F0F0;
    text-decoration: none;
    color: #606060;
}

article {
    clear: both;
}

.flex {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.panels {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

article.panels + nav.dates {
    padding-top: 40px;
}

.panel {
    flex: 1 1 310px;
    max-width: 390px;
    margin: 16px;
    min-height: 320px;
    max-height: 700px;
    overflow: hidden;
    position: relative;
}

.card {
    border: 1px solid rgba(0, 0, 0, 0.15);
    padding: 20px 10px;
}

.card:hover, .card.modal {
    border-color: rgba(0,0,0,0.3);
    box-shadow: 0 10px 6px -6px rgba(0,0,0,0.3);
}

.media {
    text-align: center;
}

a, a:link, a:hover, a:active {
    color: #CC0000;
}

a:hover {
    text-decoration: underline;
}

.painting.sold:after {
    display: block;
    content: '';
    height: 12px;
    width: 12px;
    background-color: #DD0000;
    border-radius: 50%;
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 100;
}

.media img {
    background-color: #F0F0F0;
    position: relative;
}

.card.painting h5 {
    margin-bottom: 0px;
}

.card:not(.modal) .media img {
    width: 268px;
    height: 268px;
    margin-top: 32px;
}

.card:not(.modal) .media img.portrait {
    width: 240px;
    height: 300px;
    margin-top: 0px;
    margin-left: 30px;
    margin-right: 30px;
}

.card:not(.modal) .media img.landscape {
    height: 235px;
    width: 300px;
    margin-top: 65px;
}

.card .caption {
    margin-top: 6px;
    text-align: left;
    font-size: 0.9em;
    color: #666666;
}

.card:not(.modal) .caption {
    width: 268px;
    margin-left: auto;
    margin-right: auto;
}

.card:not(.modal).portrait .caption {
    width: 240px;
}

.card:not(.modal).landscape .caption {
    width: 300px;
}

.card .caption a {
    color: inherit;
    text-decoration: none;
}

.card .caption p {
    margin: 0px;
}

.card:hover .caption {
    color: inherit;
}

.shade {
    display: block;
    content: '';
    position: fixed;
    background-color: rgba(0, 0, 0, 0.8);
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    z-index: 100;
}

.modal {
    position: fixed;
    z-index: 101;
    background-color: white;
}

.modal a.close {
    cursor: pointer;
    color:#999999;
    text-decoration: none;
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 3px;
    background-color: white;
    font-size: 1.1em;
}

.modal a.close:hover {
    color: #454545;
}

.card.modal {
    padding: 20px;
    overflow: hidden;
    max-height: calc(100% - 40px);
    max-width: calc(100% - 40px);
}

.card.modal.landscape {
    top: 20px;
    width: 642px;
    left: calc(50% - 321px);
    height: calc(100% - 40px);
    overflow: hidden;
}

.card.modal.portrait {
    height: 642px;
    width: 1042px;
    left: calc(50% - 521px);
    top: calc(50% - 321px);
}

.previous-painting, .next-painting {
    position: fixed;
    width: 40px;
    height: 40px;
    text-align: center;
    font-size: 2em;
    line-height: 1.3;
    font-weight: bold;
    background-color: white;
    opacity: 0.6;
    top: calc(50% - 20px);
    cursor: pointer;
    z-index: 101;
}

.previous-painting:hover, .next-painting:hover {
    opacity: 1;
}

.previous-painting.landscape {
    left: calc(50% - 381px);
}

.next-painting.landscape {
    right: calc(50% - 381px);
}

.previous-painting.portrait {
    left: calc(50% - 581px);
}

.next-painting.portrait {
    right: calc(50% - 581px);
}

.card.modal.landscape .media .caption {
    margin-left: 0px;
    margin-top: 0px;
    padding-bottom: 20px;
}

.card.modal.portrait .media .caption {
    margin-left: 30px;
    margin-top: 0px;
    padding-bottom: 20px;
    position: relative;
}

.card.modal.portrait .media .caption .sharing-buttons {
    left: 0px;
    bottom: 0px;
    right: auto;
    top: auto;
    flex-direction: row;
}

.card.modal.landscape .media .caption .sharing-buttons {
    position: relative;
    left: 0px;
    right: auto;
    margin-top: 12px;
}

.card.modal.painting .media {
    display: flex;
}

.card.modal.painting h2 {
    margin-bottom: 8px;
}

.card.modal.painting .title {
    font-size: 1.1em;
}

 .card.modal.painting .links {
     margin-top: 15px;
 }

 .card.modal.painting.landscape .links {
     margin-top: 10px;
 }

.card.modal.painting .links a {
    color: #CC0000;
}

.card.modal.painting .links p {
    margin: 8px 0px;
    font-size: 1.1em;
}

.card.modal.painting.landscape .links p {
    margin: 5px 0px;
}

.card.modal.painting .links p.original-url {
    margin-top: 20px;
}

.card.modal.painting .links a:hover, .card.modal.painting .links a:active {
    text-decoration: underline;
}

.card.modal.painting.portrait .media {
    flex-direction: row;
}

.card.modal.painting.landscape .media {
    flex-direction: column;
}

.card.modal .caption {
    color: inherit;
}

.card.modal .media img {
    width: auto;
    height: auto;
    margin-top: auto;
}

.panel.card.artist {
    max-height: 475px;
    overflow-y: auto;
}

.card.artist h3 {
    margin-bottom: 0px;
}

.card.artist img.profile {
    max-height: 125px;
    max-width: 125px;
    margin-top: 5px;
    margin-right: 10px;
}

.card.artist p {
    margin-bottom: 6px;
    font-size: 0.9em;
    opacity: 0.85;
}

.card.artist:hover p {
    opacity: 1;
}

.card.artist p.contact, .card.artist p.websites, .card.artist p.purchase {
    margin-top: 20px;
}

.card.artist.links p.contact {
    margin-top: 0px;
}

.footer {
    padding: 20px 0px;
    border-top: 1px solid #CCCCCC;
    text-align: center;
}

.footer a {
    margin-left: 8px;
    margin-right: 8px;
}

.painting-details {
    margin: 30px 20px;
}

.painting-details .flex {
    margin-bottom: 50px;
}

.painting-details .flex .img {
    max-width: 1000px;
    max-height: 1000px;
}

.painting-details .flex .img img {
    max-width: 100%;
    max-height: 100%;
}

.painting-details .flex .img {
    overflow-y: hidden;
}

.painting-details .details p {
    margin-bottom: 6px;
}

.painting-details .details p.header {
    margin-bottom: 0px;
    margin-top: 12px;
}

.painting-details .etc p {
    margin-bottom: 0px;
}

.painting-details h1 {
    margin-bottom: 10px;
}

.painting-details a.more {
    margin-top: 50px;
}

.painting-details a.artist, .painting-details a.more {
    color: inherit;
    text-decoration: none;
}

.painting-details .flex {
    flex-direction: column;
}

.painting-details .flex .details {
    padding-top: 12px;
    position: relative;
}

.marginleft {
    margin-left: 20px;
}

.padded {
    padding: 0px 40px 40px 40px;
}

.links a + a {
    margin-left: 15px;
}

.loader,
.loader:after {
  border-radius: 50%;
  width: 10em;
  height: 10em;
}
.loader {
  margin: 15% auto;
  font-size: 10px;
  position: relative;
  text-indent: -9999em;
  border-top: 1.1em solid rgba(0, 0, 0, 0.2);
  border-right: 1.1em solid rgba(0, 0, 0, 0.2);
  border-bottom: 1.1em solid rgba(0, 0, 0, 0.2);
  border-left: 1.1em solid #ffffff;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-animation: load8 1.1s infinite linear;
  animation: load8 1.1s infinite linear;
}
@-webkit-keyframes load8 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes load8 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

.droptarget {
    margin: 10px;
    padding: 200px;
    width: calc(100% - 20px);
    text-align: center;
    border: 1px solid black;
}

.droptarget-messages {
    margin: 10px;
    width: calc(100% - 20px);
    position: relative;
    border: 1px solid black;
    padding: 30px;
    text-align: center;
}

.sharing-buttons {
    font-size: 12px;
    display: flex;
    flex-direction: row;
    position: absolute;
    top: 0px;
    right: 0px;
}

.resp-sharing-button__link,
.resp-sharing-button__icon {
  display: inline-block
}

.resp-sharing-button__link {
  text-decoration: none;
  color: #fff;
  margin: 0.5em
}

.resp-sharing-button {
  border-radius: 50%;
  transition: 25ms ease-out;
  padding: 0.5em 0.75em;
}

.resp-sharing-button__icon svg {
  width: 1em;
  height: 1em;
  margin-right: 0.4em;
  vertical-align: top
}

.resp-sharing-button--small svg {
  margin: 0;
  vertical-align: middle
}

/* Non solid icons get a stroke */
.resp-sharing-button__icon {
  stroke: #fff;
  fill: none
}

/* Solid icons get a fill */
.resp-sharing-button__icon--solid,
.resp-sharing-button__icon--solidcircle {
  fill: #fff;
  stroke: none
}

.resp-sharing-button--twitter {
  background-color: #55acee
}

.resp-sharing-button--twitter:hover {
  background-color: #2795e9
}

.resp-sharing-button--pinterest {
  background-color: #bd081c
}

.resp-sharing-button--pinterest:hover {
  background-color: #8c0615
}

.resp-sharing-button--facebook {
  background-color: #3b5998
}

.resp-sharing-button--facebook:hover {
  background-color: #2d4373
}

.resp-sharing-button--tumblr {
  background-color: #35465C
}

.resp-sharing-button--tumblr:hover {
  background-color: #222d3c
}

.resp-sharing-button--reddit {
  background-color: #5f99cf
}

.resp-sharing-button--reddit:hover {
  background-color: #3a80c1
}

.resp-sharing-button--google {
  background-color: #dd4b39
}

.resp-sharing-button--google:hover {
  background-color: #c23321
}

.resp-sharing-button--linkedin {
  background-color: #0077b5
}

.resp-sharing-button--linkedin:hover {
  background-color: #046293
}

.resp-sharing-button--email {
  background-color: #777
}

.resp-sharing-button--email:hover {
  background-color: #5e5e5e
}

.resp-sharing-button--xing {
  background-color: #1a7576
}

.resp-sharing-button--xing:hover {
  background-color: #114c4c
}

.resp-sharing-button--whatsapp {
  background-color: #25D366
}

.resp-sharing-button--whatsapp:hover {
  background-color: #1da851
}

.resp-sharing-button--hackernews {
background-color: #FF6600
}
.resp-sharing-button--hackernews:hover, .resp-sharing-button--hackernews:focus {   background-color: #FB6200 }

.resp-sharing-button--vk {
  background-color: #507299
}

.resp-sharing-button--vk:hover {
  background-color: #43648c
}

.resp-sharing-button--facebook {
  background-color: #3b5998;
  border-color: #3b5998;
}

.resp-sharing-button--facebook:hover,
.resp-sharing-button--facebook:active {
  background-color: #2d4373;
  border-color: #2d4373;
}

.resp-sharing-button--twitter {
  background-color: #55acee;
  border-color: #55acee;
}

.resp-sharing-button--twitter:hover,
.resp-sharing-button--twitter:active {
  background-color: #2795e9;
  border-color: #2795e9;
}

.resp-sharing-button--email {
  background-color: #777777;
  border-color: #777777;
}

.resp-sharing-button--email:hover,
.resp-sharing-button--email:active {
  background-color: #5e5e5e;
  border-color: #5e5e5e;
}

.resp-sharing-button--pinterest {
  background-color: #bd081c;
  border-color: #bd081c;
}

.resp-sharing-button--pinterest:hover,
.resp-sharing-button--pinterest:active {
  background-color: #8c0615;
  border-color: #8c0615;
}

.big-ol {
	counter-reset: my-big-numbers;
}

.big-ol ol li {
    font-size: 2.5rem;
    font-weight: bold;
    list-style-type: none;
    margin-top: 30px;
    color: #454545;
}

.big-ol ol li:before {
	content: counter(my-big-numbers);
	counter-increment: my-big-numbers;
    color: white;
    background-color: #DD0000;
    padding: 6px 12px;
    border-radius: 50%;
    margin-right: 12px;
}

p.about-me {
    white-space: pre-line;
}

@media screen and (min-width: 1200px)
{
    .painting-details:not(.very-landscape) .flex {
        flex-direction: row;
    }

    .painting-details:not(.very-landscape) .flex .img {
        flex-basis: 57%;
    }

    .painting-details:not(.very-landscape) .flex .details {
        flex-basis: 40%;
        padding-left: 30px;
        padding-top: 0px;
    }

    .painting-details:not(.very-landscape) .flex .details h3 {
        padding-right: 20px;
    }

    .painting-details:not(.very-landscape) .flex .details .sharing-buttons {
        position: absolute;
        top: 0px;
        right: -10px;
        flex-direction: column;
    }
}

@media screen and (max-width: 1199px)
{
    .card.modal.landscape {
        width: 592px;
        left: calc(50% - 296px);
    }

    .previous-painting.landscape {
        left: calc(50% - 356px);
    }

    .next-painting.landscape {
        right: calc(50% - 356px);
    }

    .card.modal.portrait {
        height: 642px;
        width: 942px;
        left: calc(50% - 471px);
        top: calc(50% - 321px);
    }

    .previous-painting.portrait {
        left: calc(50% - 531px);
    }

    .next-painting.portrait {
        right: calc(50% - 531px);
    }
}

@media screen and (min-width: 1070px)
{
    .sharing-buttons {
        right: calc(100% - 1000px);
    }
}

@media screen and (max-width: 999px)
{
    .panel { margin: 8px; }
}

@media screen and (max-width: 650px)
{
    .panel { margin: 16px 8px; }
    .card { padding: 8px; }

    .painting-details {
        margin: 20px;
    }

    .painting-details .flex .details {
        padding-top: 10px;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    h3 {
        font-size: 2rem;
    }

    .panel.card.artist {
        max-height: initial;
    }
}


@media screen and (max-width: 600px)
{
    .sharing-buttons {
        position: relative;
        margin-bottom: 12px;
    }

    .resp-sharing-button__link:nth-of-type(1)
    {
      margin-left: 0px;
    }
}
