/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
    width: 100%;
    margin: 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .header-container {
        padding: 15px 20px;
    }
}

header h1 {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #e07a5f;
}

/* Sticky Purchase Link */
.purchase-link {
    position: fixed;
    right: 20px;
    top: 85%;
    transform: translateY(-50%);
    z-index: 100;
    background-color: #e07a5f;
    color: #fff;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.3s;
}

.purchase-link:hover {
    background-color: #d4694e;
    transform: translateY(-50%) scale(1.05);
}

@media (max-width: 600px) {
    .purchase-link {
        right: 10px;
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* Sections */
section {
    padding: 40px 30px;
    text-align: center;
}

h2 {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 20px;
    color: #3d405b;
}

h3 {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 15px;
    color: #3d405b;
}

/* Header Text Section */
.heading {
    background-color: #f4f1de;
    padding: 40px 10px;
}

.heading h2 {
    font-size: 48px;
    margin-bottom: 5px;
}

.heading p {
    font-size: 18px;
    color: #666;
}

/* Rotating Gallery */
.gallery-container {
    position: relative;
    max-width: 650px;
    margin: 20px auto;
    overflow: hidden;
}

.gallery-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.gallery-slide {
    min-width: 100%;
    box-sizing: border-box;
}

.gallery-slide img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.gallery-prev, .gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
}

.gallery-prev {
    left: 10px;
}

.gallery-next {
    right: 10px;
}

.gallery-prev:hover, .gallery-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* About Section */
#about {
    padding: 60px 40px;
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    overflow: hidden;
}

.headshot {
    float: left;
    width: 250px;
    height: auto;
    margin-right: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#about p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 16px;
}

#about a {
    color: black;
    text-decoration: none;
    transition: filter 0.3s ease, color 0.3s ease;
}

#about a:hover {
    color: #e07a5f;
}

@media (max-width: 600px) {
    .headshot {
        float: none;
        display: block;
        margin: 0 auto 20px;
    }

    .about-content {
        text-align: center;
    }
}

/* Work Section */
#work p, #rustoncards p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
}

.work-section {
    margin-bottom: 40px;
}

.gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.art-piece {
    width: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: block;
}

.thumbnail-container {
    width: 200px;
    height: 200px;
    overflow: hidden;
    cursor: pointer;
}

.lightbox-trigger {
    cursor: pointer;
    display: block;
    width: 100%;
}

.lightbox-trigger img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    object-position: top;
    transition: transform 0.3s;
}

.lightbox-trigger img:hover {
    transform: scale(1.05);
}

.caption {
    font-size: 14px;
    color: #666;
    margin: 8px 0 0 0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    width: 100%;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-image {
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
}

.lightbox-caption {
    color: white;
    font-size: 16px;
    margin-top: 15px;
    max-width: 90%;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

.lightbox-close:hover {
    color: #e07a5f;
}

/* Contact Section */
#contact p {
    font-size: 16px;
    margin: 10px 0;
}

/* Footer */
footer {
    padding: 20px;
    background-color: #3d405b;
    color: #fff;
    text-align: center;
    font-size: 14px;
}
