html {
    scroll-behavior: smooth;
    scroll-padding-top: 86px;
}

html,
body {
    padding: 0;
    height: 100%;
    background-color: #13171f !important;
}

section {
    padding-top: 50px;
}

section:first-of-type {
    padding-top: 0;
}

/* ##### NAVIGATION ##### */
.menu-items li a {
    color: #cbd3e0;
    text-decoration: none;
}

.menu-items li a:hover {
    color: #ed1c23;
    text-decoration: none;
}

#paintings-grid {
    box-sizing: border-box;
    padding-inline: 150px;
    margin: 0;
}

#paintings-grid #gallery {
    width: 100%;
    column-gap: var(--pico-grid-gap, 1rem);
    margin: 0;
    column-count: 3;
}

#gallery a {
    display: inline-block;
    width: 100%;
    break-inside: avoid;
    margin-bottom: var(--pico-grid-gap, 1rem);
}

#gallery img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    transition: opacity .25s ease;
}

#gallery img.is-loaded {
    opacity: 1;
}

.pswp__bg {
    background: rgb(19, 22.5, 30.5) !important;
    opacity: 1 !important;
    /* fully opaque */
}

/* Kill PhotoSwipe's stock caption */
.pswp__caption,
.pswp__caption .pswp__caption__center {
    display: none !important;
}

/* simple, legible caption bar */
.pswp__custom-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 16px;
    color: #fff;
    background: rgba(0, 0, 0, .55);
    font-size: 14px;
    line-height: 1.4;
    pointer-events: none;
    /* clicks pass through */
}

.hidden-caption {
    display: none
}

/* ##### PURCHASE MODAL ##### */
#pop-modal[hidden] {
    display: none !important;
}

#pop-iframe {
    flex: 1 1 auto;
    width: auto;
    height: 100%;
    border: 0;
    display: block;
}

#pop-modal {
    display: flex !important;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

#pop-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    /* backdrop transparency */
}

#pop-dialog {
    position: relative;
    /* width: min(1000px, 92vw); */
    width: 390px;
    height: min(92vh, 900px);
    background: #111;
    display: flex;
    flex-direction: column;
    z-index: 1;
    /* above backdrop */
    border-radius: 6px;
    overflow: hidden;
}

#pop-modal-close {
    position: absolute;
    background-color: #474747;
    border-radius: 2px;
    width: 18px;
    height: 18px;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.pswp {
    z-index: 2000;
}

/* ##### ABOUT ##### */

.about-text h5 {
    font-weight: 600;
}

.section-head {
    grid-column: 1 / -1;
    text-align: center;
    padding-bottom: 10px;
}

.section-head h5 {
    letter-spacing: 10px;
}

.about-wrapper {
    width: 100%;
    padding-inline: 150px;
}

.about-flex {
    display: flex;
    align-items: flex-start;
    /* top-align image & text */
    gap: 2rem;
    /* “gutter” between image and text */
}

/* Prevent grid items from forcing tracks wider */
.about-grid>* {
    min-width: 0;
}

.about-img {
    width: 300px;
    /* fixed image width */
    flex: 0 0 300px;
    /* don’t grow/shrink */
    height: auto;
    display: block;
}

/* prevents overflow from long words */
.about-text {
    min-width: 0;
}

/* ##### PAINTINGS ##### */
#gallery {
    margin-left: 150px;
    margin-right: 150px;
}

/* ##### EXHIBITIONS ##### */

.exhibitions-wrapper {
    margin-inline: 150px;
}

.exhibitions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--pico-grid-gap, 1rem);
    padding-top: 20px;
}

.exhibitions-grid>* {
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event {
    color: #a4acba;
    margin-top: -10px;
}

.location {
    font-style: italic;
    margin-top: -15px;
    color: #616770;
}

h5.year {
    line-height: 16px;
    font-weight: 700;
}

/* ##### CONTACT ##### */

.contact-container {
    margin-left: 150px;
    margin-right: 150px;
}

.contact .grid.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing, 1rem);
    align-items: start;
}

.contact form fieldset .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing, .75rem);
}

p.address {
    font-size: .75em;
}

#map {
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 300px;
    margin-top: 45px;
    overflow: hidden;
}

.marker-with-label {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.marker-label {
    margin-top: 6px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    border-radius: 6px;
    font: 600 12px/1.2 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
    pointer-events: none;
}

.contact-head {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 20px;
    font-weight: 500;
    font-size: 1.5em;
    color: #c2c8d1;

}

p.address {
    color: #a4acba;
}

img.icon {
    display: inline-block;
    height: 24px;
    width: auto;
    padding-right: 6px;
    padding-left: 6px;
}

/* ##### FOOTER ##### */
label.footer-form {
    text-transform: uppercase;
    color: #89918a;
    font-size: .75rem;
}

button.footer-form {
    height: 35px;
}

button[type=submit] {
    line-height: .8rem;
    padding-block: .4rem;
    color: #c2c8d1
}

.name-row input {
    height: 25px;

}

input.footer-email {
    height: 25px;
}

.footer-grid .nav-list {
    list-style: none !important;
    padding-left: 0;
    margin: 0;
}

.footer-grid .nav-list li {
    list-style: none;
}

.footer-grid .nav-list li::marker {
    content: "";
}

footer {
    padding-block: 3rem 2rem;
    margin-left: 150px;
    margin-right: 150px;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr 1fr 1.2fr;
}

.footer-title {
    letter-spacing: .2em;
    font-size: .9rem;
    opacity: .9;
    margin-bottom: .75rem;
    border-bottom: 1px solid var(--pico-border-color, #4a4a4a);
    color: #89918a;
}

.nav-list a {
    display: block;
    text-decoration: none;
    text-transform: uppercase;
    margin: 0;
    color: #89918a;
    font-size: .75rem;
}

.nav-list a:hover {
    color: #ed1c23;
}

.contact-list[role="list"] {
    list-style: none;
    padding-inline-start: 0;
    margin: 0;
}

.contact-list li {
    margin: .35rem 0;
    display: flex;
    align-items: flex-start;
    text-transform: uppercase;
    color: #89918a;
    font-size: .75rem;
}

.contact-list li span {
    padding-left: .4rem;
}

.contact-list li a {
    text-decoration: none;
    text-transform: uppercase;
    color: #89918a;
    font-size: .75rem;
    padding-left: .4rem;
}

.contact-list li a:hover {
    color: #ed1c23;
}

.contact-list svg {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    opacity: .8;
    margin-top: .2rem;
}

.name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}

.logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: #a4acba solid 2px;
}

.brand {
    font-size: 1.6rem;
    font-weight: 700;
}

.socials a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0;
}

.fa-brands.fa-facebook {
    font-size: 28px;
    margin-top: 10px;
}

.copyright {
    text-align: center;
    font-size: .65rem;
    opacity: .8;
    margin-top: .75rem;
}

hr {
    opacity: .2;
    margin: 2rem 0;
}

/* honeypot */
.hp {
    position: absolute;
    left: -9999px;
    height: 0;
    width: 0;
    overflow: hidden;
}