.responsive-table {
    display: grid;
    width: 850px;
    grid-template-columns: repeat(5, 1fr);
    gap: 50px;
    margin: auto;
    padding-top: 100px;
    padding-bottom: 100px;
}

.blank-div {
    width: 130px;
    height: 160px;
    /* background-color: #e0e0e0; */
}

.greyscale {
    filter: grayscale(100%); /* Apply grayscale effect */
    opacity: 0.4;
}

.greyscale:hover {
    filter: unset;
    opacity: unset;
}

body {
    width: 1200px;
    margin: 0 auto !important;
    background-color: hsl(0, 0%, 100%);
    font-family: menlo, monaco, sans-serif;
    color: #999;
    font-size: 1rem;
    height: auto;
}

body.slideshow {
    overflow: hidden;
}

body[data-language="en"] .zh {
    display: none;
}

body[data-language="zh"] .en {
    display: none;
}
body:not([data-area="drawing"]) .area.drawing {
    display: none;
}
body:not([data-area="painting"]) .area.painting {
    display: none;
}
body:not([data-area="stilllife"]) .area.stilllife {
    display: none;
}
body:not([data-area="allaprima"]) .area.allaprima {
    display: none;
}
body:not([data-area="biography"]) .area.biography {
    display: none;
}
body:not([data-area="events"]) .area.events {
    display: none;
}
body:not([data-area="contact"]) .area.contact {
    display: none;
}

#picture-info {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 0;
    text-align: center;
    overflow-y: auto !important;
}

.carousel,
.overlay {
    display: none;
}

.slideshow .carousel,
.slideshow .overlay {
    display: unset;
}

.carousel-control-prev,
.carousel-control-next {
    height: 50% !important;
    top: 25% !important;
}

.carousel.pointer-event {
    touch-action: pan-y pinch-zoom !important;
}

.fl {
    float: left;
    padding-right: 0.5%;
    font-size: 3em;
    line-height: 90%;
    padding-top: 0;
}

#main_page {
    background-color: hsl(0, 0%, 100%);
    overflow: hidden;
    color: #888;
}

body.slideshow #main_page {
    overflow: hidden;
}

hr {
    background-color: hsl(40, 0%, 70%);
    width: 100%;
    height: 1px;
    border: 0;
}

a.plain,
a.plain:link,
a.plain:visited,
a.plain:hover,
a.plain:active {
    color: unset !important;
    text-decoration: none !important;
}

A:link {
    text-decoration: none;
}
A:visited {
    text-decoration: none;
}
A:hover {
    text-decoration: none;
}
A:active {
    text-decoration: none;
}

A:link IMG {
    border: transparent;
}
A:visited IMG {
    border: transparent;
}
A:hover IMG {
    border: transparent;
}
A:active IMG {
    border: transparent;
}

.MenuItem {
    font-size: 1.2em;
    width: 8em;
}
A.MenuItem:link {
    color: hsl(40, 0%, 60%);
    text-decoration: none;
}
A.MenuItem:visited {
    color: hsl(40, 0%, 60%);
    text-decoration: none;
}
A.MenuItem:hover {
    color: hsl(40, 0%, 0%);
    text-decoration: none;
}
A.MenuItem:active {
    color: hsl(40, 0%, 0%);
    text-decoration: none;
}

.langItem {
    font-size: 1em;
}
A.langItem:link {
    color: #bbbbbb;
    text-decoration: none;
}
A.langItem:visited {
    color: #bbbbbb;
    text-decoration: none;
}
A.langItem:hover {
    color: #ffffff;
    text-decoration: none;
}
A.langItem:active {
    color: #bbbbbb;
    text-decoration: none;
}

table.tn {
    /*    background-color:hsl(40,0%,90%); */
    margin-top: 4em;
    margin-bottom: 8em;
}

/* tr.tn {background-color:hsl(40,0%,98%)} */

td.tn {
    /* width:137px;
height:167px; */
    padding: 20px;
    text-align: center;
    /* border:1px solid #ddd */
}
/* td.tn IMG {border:1px solid #bbbbbb} */

a.tn:link IMG {
    border: 2px transparent;
}
a.tn:visited IMG {
    border: 2px transparent;
}

.image {
    border: transparent;
    text-decoration: none;
}
a.image:link IMG {
    border: transparent;
}
a.image:visited IMG {
    border: transparent;
}
a.image:hover IMG {
    border: transparent;
}
a.image:active IMG {
    border: transparent;
}

.message {
    font-size: 1.2em;
}
.message {
    border: 0px solid transparent;
}

.pf {
    font-size: 1.2em;
}
.pf {
    border: 0px solid;
}

.pf IMG {
    border: 1px solid #aaaaaa;
}

.arrow {
    position: fixed;
    color: #888;
    font-size: 3em;
    z-index: 100;
}
.arrow:link {
    color: #777777;
    text-decoration: none;
}
.arrow:visited {
    color: #777777;
    text-decoration: none;
}
.arrow:hover {
    color: #ddd;
    text-decoration: none;
}
.arrow:active {
    color: #fff;
    text-decoration: none;
}

.close {
    position: fixed;
    padding: 1.6em !important;
    right: 2%;
    top: 2%;
    z-index: 999 !important;
}

A.close:link {
    color: hsl(0, 0%, 75%);
    text-decoration: none;
}
A.close:visited {
    color: hsl(0, 0%, 75%);
    text-decoration: none;
}
A.close:hover {
    color: hsl(0, 0%, 100%);
    text-decoration: none;
}
A.close:active {
    color: hsl(0, 0%, 100%);
    text-decoration: none;
}

img.close:link {
    opacity: 0.8;
    /* -webkit-filter:brightness(85%);
			     filter:brightness(85%);
			    -moz-filter:brightness(65%)*/
}
img.close:visited {
    opacity: 0.8;
    /*-webkit-filter:brightness(75%);
			    filter:brightness(75%);
			    -moz-filter:brightness(65%) */
}
img.close:hover {
    opacity: 0.9;
    z-index: 20;
    /*  -webkit-filter:brightness(100%);*/
    /*			    filter:brightness(100%);
			    -moz-filter:brightness(75%)*/
}
img.close:active {
    opacity: 0.8;
    /*-webkit-filter:brightness(75%);
			    filter:brightness(75%);
			    -moz-filter:brightness(65%)*/
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.info-box {
    margin: 0 auto;
    font-size: 1.2rem;
    color: hsl(0, 0%, 65%);
    width:100%;
}

#picture_frame {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    z-index: 500;
}

.carousel-item {
    transition: transform 1s ease, opacity 0.5s ease-out !important;
}

#picture-image {
    background: url("graphics/loading.gif") center center no-repeat;
}

input[type="submit"] {
    background-color: #fff;
    color: #777;
}
input[type="submit"]:hover {
    background-color: #999;
    color: #eee;
}
input[type="submit"]:active {
    background-color: #666;
    color: #fff;
}

.area,
.name {
    padding-bottom: 0;
}

.name {
    color: #666;
}

.area {
    color: #888;
    font-size: 1.5em;
}

.bio table tbody td span {
    font-size: 1rem;
    color: #888;
}

.hidden {
    display: none !important;
}

.carousel-item .container.image {
    margin-top: 7em;
}

.info.details {
    height: 6em;
    padding-left: 1em;
    margin: 0 auto;
    text-align: center;
}
.info .medium,
.info .dimensions {
    display: inline-block;
}
.medium-dimemsions div:nth-of-type(3) {
    margin-left: 0.45em;
}

.info.details div:not(.title) {
    font-size: 1rem;
}

#awards {
    width: 90%;
    margin: auto;
    padding-top: 2em;
}

.dropdown-item {
    color: #666 !important;
}
.dropdown-item:active {
    color: #fff !important;
}

.events.page {
    width: 60%;
}

.dropdown-item.menu {
    display: block;
}

@media (max-width: 1199px) {
    body {
        width: unset;
    }

    /* .menu {
        font-size: 1.2rem !important;
    } */

    .bio {
        padding-top: 0;
    }
    /* .bio div,
    .bio table tbody tr td span {
        font-size: 1.5rem;
    } */
    .bio .image_container {
        float: none;
        width: 100%;
        margin: auto;
        padding: 1em 0;
    }

    .bio img {
        width: 100%;
    }

    .bio .text {
        float: none;
        margin: auto;
        padding-bottom: 1em;
        padding-left: 0;
    }

    #awards {
        width: 100%;
    }

    .events.page {
        width: 80%;
    }
}

@media (min-width: 1200px) {
    .responsive-table {
        display: grid;
        width: 850px;
        grid-template-columns: repeat(5, 1fr);
        gap: 50px;
    }
}

@media (min-width: 700px) and (max-width: 1199px) {
    .responsive-table {
        display: grid;
        width: 670px;
        grid-template-columns: repeat(4, 1fr);
        gap: 50px;
    }    
}

@media (min-width: 540px) and (max-width: 699px) {
    .responsive-table {
        display: grid;
        width: 490px;
        grid-template-columns: repeat(3, 1fr);
        gap: 50px;
    }    
}

@media (min-width: 360px) and (max-width: 539px) {
    a.tn IMG {
        max-width: 100px;
        height: auto;
    }

    .blank-div {
        width: 100px;
        height: 123px;
        /* background-color: #e0e0e0; */
    }

    .responsive-table {
        display: grid;
        width: 360px;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding-top: 0;
        padding-bottom: 0;
    }
}

@media (max-width: 359px) {
    h1 {
        font-size: 1.2em !important;
    }

    a.tn IMG {
        max-width: 80px;
        height: auto;
    }

    .blank-div {
        width: 80px;
        height: 98px;
        /* background-color: #e0e0e0; */
    }

    .responsive-table {
        display: grid;
        /* width: 235px; */
        width: 260px;
        grid-template-columns: repeat(3, 1fr);
        /* column-gap: 35px;
        row-gap: 45px; */
        column-gap: 10px;
        row-gap: 15px;
        padding-top: 0;
        padding-bottom: 0;
    }
}

.max-width {
    max-width:600px;
    height:auto;
}

.max-height {
    max-height:600px;
    width:auto;
}

@media (max-width:799px) {
    .max-width, .max-height {
        max-height:unset;
        width:unset;
        max-width:100%;
        height:auto;
    }
}