* {
    box-sizing: border-box;
}

html {
    font-size: clamp(12px, 2.5vw, 20px);
}

body {
    margin: 0;
    font-family: Georgia, serif;
    color: #29251f;
    background: #f8f5ef;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 8%;
    border-bottom: 0.05rem solid #ded7cb;
}

.logo {
    font-size: 1.6rem;
    color: #29251f;
    text-decoration: none;
}

.logo-img {
    width: 9rem;
    height: 9rem;
    object-fit: cover;
    border-radius: 50%;
}

nav {
    display: flex;
    gap: 24px;
}

nav a {
    color: #51483d;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 32px 24px;
}

.hero {
    padding: 100px 0;
    max-width: 700px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: normal;
    line-height: 1.1;
}

.hero-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}


.eyebrow {
    margin: 0;
    letter-spacing: 3px;
    font-size: 0.8rem;
}

.button {
    display: inline-block;
    padding: 14px 22px;
    background: #51483d;
    color: white;
    text-decoration: none;
}

.site-footer {
    padding: 24px;
    text-align: center;
    border-top: 1px solid #ded7cb;
}

@media (max-width: 600px) {
    .site-header {
        flex-direction: column;
        gap: 18px;
    }

    nav {
        gap: 16px;
    }

    .hero {
        padding: 60px 0;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,
            minmax(240px, 1fr));
    gap: 24px;
}

.art-card {
    background: white;
    overflow: hidden;
    border-radius: 8px;
}

.art-card img {
    width: 100%;
    height: 280px;
    /* object-fit: cover; */
    object-fit: contain;
    display: block;
}

.art-card-content {
    padding: 18px;
}

.art-card h2 {
    font-size: 1.3rem;
    font-weight: normal;
}
.art-card a {
    text-decoration: none;
}

.art-card p {
    line-height: 1.6;
    color: #655e55;
    text-align: center;
}

.biography {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.biography img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.5rem auto;
}

.biography table {
    width: 100%;
    border-collapse: collapse;
}

.biography p {
    margin-bottom: 1rem;
}

.artwork-detail {
    max-width: 1000px;
    margin: 0rem auto;
    padding: 0.5rem;
    
}

.artwork-detail>a {
    display: inline-block;
    margin-bottom: 24px;
    padding: 0.65rem 1.2rem;

    background: #51483d;
    color: #ffffff;
    text-decoration: none;
    font-weight: normal;

    border: 1px solid #51483d;
    border-radius: 4px;

    transition: background-color 0.2s ease,
                color 0.2s ease;
}

.artwork-detail>a:hover {
    background: #f8f5ef;
    color: #51483d;
}
.artwork-detail > a:focus-visible {
    outline: 2px solid #51483d;
    outline-offset: 3px;
}

.artwork-detail h1 {
    margin: 0 0 24px;
    color: #222222;
    font-size: clamp(2rem, 4vw, 3rem);
}

.artwork-detail img {
    display: block;
    width: 100%;
    max-height: 75vh;
    object-fit: contain;
    background: #f5f5f5;
    border-radius: 12px;
    margin-bottom: 24px;
}

.artwork-detail p {
    max-width: 750px;
    margin: 0;
    color: #444444;
    font-size: 1.1rem;
    line-height: 1.8;
}

@media (max-width: 800px) {
    .art-gallery {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .art-card img {
        height: 220px;
    }

    .artwork-detail {
        margin: 10px auto;
        padding: 16px;
    }
}
/* Artwork image carousel */

.art-carousel {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.art-carousel-image {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.art-carousel-image .carousel-image {
    position: absolute;
    display: block;
    width: 65%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.8);
    transition:
        transform 0.4s ease,
        opacity 0.4s ease;
    pointer-events: none;
}

/* Focused image */
.art-carousel-image .carousel-image.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    z-index: 3;
    pointer-events: auto;
}

/* Previous image */
.art-carousel-image .carousel-image.prev-image {
    opacity: 0.35;
    transform: translateX(-65%) scale(0.8);
    z-index: 2;
}

/* Next image */
.art-carousel-image .carousel-image.next-image {
    opacity: 0.35;
    transform: translateX(65%) scale(0.8);
    z-index: 2;
}


/* Arrow buttons */

.art-carousel .carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.65);
    color: white;
}

.carousel-button:hover {
    background: #51483d;
}

.carousel-button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

.art-carousel .carousel-button.prev {
    left: 12%;
}

.art-carousel .carousel-button.next {
    right: 12%;
}

/* Image counter */

.carousel-counter {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(41, 37, 31, 0.8);
    color: #ffffff;
    font-size: 0.8rem;
}

@media (max-width: 600px) {
    .art-carousel-image {
        height: 320px;
    }

    .art-carousel-image .carousel-image {
        width: 75%;
    }

    .art-carousel-image .carousel-image.prev-image {
        transform: translateX(-55%) scale(0.75);
    }

    .art-carousel-image .carousel-image.next-image {
        transform: translateX(55%) scale(0.75);
    }

    .art-carousel .carousel-button.prev {
        left: 3%;
    }

    .art-carousel .carousel-button.next {
        right: 3%;
    }
}


.contact-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 25px;
}

.artist-contact h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.artist-contact > p {
    line-height: 1.8;
    margin-bottom: 35px;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.contact-item h2 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.contact-item p,
.contact-item a {
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.contact-item a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.contact-button img {
    width: 1rem;
    height: 1rem;
    object-fit: contain;
    display: block;
}