html {
    scroll-padding-top: 125px; /* Adjust this value as needed */
}

body {
    font-family: 'Raleway', sans-serif;
    margin: 0;
    padding: 0;
}

/* Layout helpers */
.row {
    display: flex;
}

.column {
    flex: 50%;
}

/* Main content wrapper */
.content {
    margin-left: 15%;
    margin-right: 15%;
    margin-top: 8%;
    margin-bottom: 5%;
}

/* Entry label (if you ever use it) */
.entry-label {
    font-size: 1.25vw;
    font-weight: normal;
    color: #999;
    letter-spacing: 0.1em;
    margin-bottom: 1em;
}

/* Intro text under the header */
.intro {
    margin-left: 0;
    margin-right: 0;
    margin-top: 2%;
    margin-bottom: 3%;
    font-size: 1.1vw;
    line-height: 1.6;
    text-align: justify;
}

/* Links */
a {
    text-decoration: none;
    color: #000;
}

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

a:active {
    color: #797979;
}

a:link img,
a:visited img {
    border-style: none;
}

a img {
    color: white;
}

a.infotext {
    font-size: 1.5vw;
    font-weight: normal;
    font-style: normal;
}

/* Headings */
h1.text {
    display: inline;
    font-size: 1.5vw;
    font-weight: normal;
    font-style: normal;
}

h1.sub {
    margin-top: -2.5%;
    margin-left: 1%;
    font-size: 1.75vw;
    font-weight: normal;
    font-style: normal;
}

h2 {
    font-size: 1.75vw;
    font-weight: normal;
    font-style: normal;
}

h2.header {
    position: relative;
    top: 50%;
    margin-left: 1%;
    font-size: inherit;
    font-weight: normal;
    font-style: normal;
}

h2.sub {
    margin-top: -2.5%;
    margin-left: 1%;
    font-size: 1.75vw;
    font-weight: normal;
    font-style: normal;
}

/* Title overlay on thumbnails */
h3.item {
    position: absolute;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.10);
    font-family: 'Raleway', sans-serif;
    font-size: 2.25vw;
}

a.item {
    text-decoration: none;
    color: #feffff;
}

/* Artwork / item containers (desktop) */
article.item,
div.item {
    position: relative;
    margin-top: 2%;
    margin-bottom: 2px;
    text-align: center;
    overflow: hidden;
}

/* Bio text block */
div.biotext {
    padding-left: 15%;
    padding-right: 15%;
    padding-bottom: 5%;
    margin-top: -4%;
    text-align: justify;
    font-size: 1.4vw;
}

/* Contact block */
div.contact {
    font-size: 1.5vw;
}

/* Credits in header / elsewhere */
div.credits {
    position: absolute;
    right: 4.5%;
    font-size: 1.5vw;
}

/* Header bar (fixed) */
div.header {
    position: fixed;
    top: 0%;
    width: 100%;
    margin-right: 15%;
    margin-left: 14.75%;
    color: #000;
    background-color: rgba(254, 255, 255, 0.9020945);
    font-family: 'Raleway', sans-serif;
    font-size: 2.8vw;
    z-index: 900; /* keep header above content */
}

/* Misc content blocks */
div.infotext {
    padding: 18%;
    text-align: justify;
    font-size: 1.5vw;
}

div.photo {
    display: block;
    width: 100%;
    max-width: 800px;
    margin: 2% auto;
}

div.spacer {
    margin-bottom: 14%;
}

div.section {
    margin-top: 4%;
    margin-left: 1%;
    font-size: 2.25vw;
}

div.statement {
    margin-top: 10%;
    text-align: justify;
    font-size: 1.6vw;
}

div.sub,
div.sub1 {
    font-size: 1vw;
    color: #a6a6a6;
}

div.sub1 {
    margin-top: -3%;
}

div.text {
    margin: 0 4% 0 1%;
    text-align: justify;
    font-size: 1.5vw;
}

div.video {
    margin-top: 4%;
    margin-bottom: 2px;
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    text-align: center;
}

/* Images */
img.art,
img.item {
    max-width: 100%;
    text-align: right;
}

img.catalog {
    max-width: 100%;
    height: auto;
    margin-right: 0.5%;
    box-sizing: border-box;
}

/* Logo in the left gutter */
img.logo {
    width: 7%;
    text-align: center;
    position: fixed;
    left: 6%;
    top: 3%;
}

/* Captions */
.image-caption {
    text-align: center;
    font-size: 1vw;
    color: #777;
    margin-top: 1em;
    font-style: italic;
}

.italic-title {
    font-style: italic;
}

/* Menu in header */
p.menu {
    position: absolute;
    top: 13%;
    right: 31.25%;
    font-size: 1.75vw;
}

/* Copyright text */
p.copyright {
    padding-top: 8%;
    font-size: 1vw;
}

p.copyright2 {
    font-size: 0.6vw;
    color: #a6a6a6;
}

/* Spans */
span.credits,
span.info {
    position: absolute;
    right: 20.5%;
    margin-top: -10px;
    font-size: 1.5vw;
}

span.info2 {
    position: relative;
    font-size: 1.5vw;
    left: 675px;
    top: -15px;
}

/* Spacer at bottom if needed */
.bottom-spacer {
    height: 30vh;
}

/* --- Overlay descriptions on all screen sizes --- */

/* Description as a bottom overlay – hidden by default */
.item-description {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 0.6em 0.9em;
    font-size: 1vw;
    line-height: 1.4;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
}

/* Fade the description in when hovering the piece */
article.item:hover .item-description,
div.item:hover .item-description {
    opacity: 1;
}

/* Modal overlay */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

/* Modal content */
.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 5px;
    width: 80%;
    max-width: 600px;
    position: relative;
    z-index: 1001;
}

/* Close button */
.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close-button:hover {
    color: black;
}

/* Videos */
video {
    width: 100%;
    height: auto;
    max-width: 800px;
    display: block;
    margin: 0 auto;
}

/* ========== MOBILE OVERRIDES ========== */
@media screen and (max-width: 768px) {
    body {
        font-family: 'Raleway', sans-serif;
        font-size: 16px;
    }

    /* Header shrinks and spans full width */
   div.header {
    position: fixed;
    top: 0%;
    width: 100%;
    margin-right: 1%;
    margin-left: 0%;
    color: #000;
    background-color: rgba(254, 255, 255, 0.9020945);
    font-family: 'Raleway', sans-serif;
    font-size: 4.75vw;
    z-index: 900; /* same idea on mobile */
}

    h1.sub {
        margin-top: -3.5%;
        margin-left: 1%;
        font-size: 3.25vw;
        font-weight: normal;
        font-style: normal;
    }

    h3.item {
        font-size: 3.75vw;
    }

    h2 {
        font-size: 3.75vw;
    }

    p.menu {
        position: absolute;
        top: 16%;
        right: 5%;
        font-size: 3.25vw;
    }

    .image-caption {
        text-align: center;
        font-size: 2.75vw;
        color: #777;
        margin-top: 1em;
        font-style: italic;
    }

    /* Tight margins on mobile as requested */
    .content {
        margin-left: 1%;
        margin-right: 1%;
        margin-top: 6rem;
        margin-bottom: 5%;
    }

    div.contact {
        font-size: 3.25vw;
    }

    div.sub {
        font-size: 2.75vw;
        color: #a6a6a6;
    }

    div.biotext {
        padding-left: 1%;
        padding-right: 1%;
        padding-bottom: 5%;
        margin-top: -4%;
        text-align: justify;
        font-size: 3.25vw;
    }

    div.statement {
        margin-top: 10%;
        text-align: justify;
        font-size: 3.25vw;
    }

    div.text {
        margin: 0 4% 0 1%;
        text-align: justify;
        font-size: 3.25vw;
    }

    p.copyright {
        padding-top: 8%;
        font-size: 2.75vw;
    }

    p.copyright2 {
        font-size: 2.25vw;
        color: #a6a6a6;
    }

    /* Hide logo on small screens */
    img.logo {
        display: none;
    }

    /* Stack columns */
    .row {
        display: block;
    }

    .column {
        width: 100%;
    }

    .item {
        margin-bottom: 5.25vw;
    }

    .modal-content {
        font-size: 4.25vw;
    }

    /* Increase readability of overlay text on small screens */
    .item-description {
        font-size: 2.75vw;
    }

    /* Intro text font size for mobile */
    .intro {
        font-size: 3vw;
        margin-left: 1%;
        margin-right: 1%;
    }
}