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

:root {
    --site-max-width: 1100px;
    --section-vertical-pad: 1.5rem;
    --muted-color: #6b6b6b;
    --accent: #1967d2;
}

body {
    font-family: 'Libre Bodoni', serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    background-image: url('images/2.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

h1, h2 {
    font-family: 'Dancing Script', cursive;
}

.top-header {
    background-color: #fff;
    padding: 0.4rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    color: #000;
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s;
}

.social-icon:hover {
    color: #333;
}

.cart-icon {
    margin-left: auto;
    margin-right: 1rem;
}

.cart-link {
    color: #000;
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s;
}

.cart-link:hover {
    color: #333;
}

.language-selector {
    display: flex;
    gap: 1rem;
}

.lang-link {
    color: #000;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.lang-link:hover, .lang-link.active {
    color: #333;
}

header {
    background-color: #fff;
    color: #000;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

header h1 {
    margin-bottom: 0.5rem;
}

.logo {
    position: absolute;
    left: 1rem;
    height: 160px;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

nav a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1.1rem;
}

nav a:hover {
    color: #333;
}

/* Dropdown styles */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f0f0f0;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    top: 100%;
    left: 0;
}

.dropdown-content li {
    list-style: none;
}

.dropdown-content a {
    color: #000;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #e0e0e0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

main {
    max-width: 1200px;
    margin: 5rem auto 2rem;
    padding: 0 1rem;
}

.hero {
    text-align: center;
    padding: 2rem 0;
    background-color: #ecf0f1;
    border-radius: 8px;
    margin-top: 5rem;
    margin-bottom: 2rem;
}

.hero h2 {
    margin-bottom: 1rem;
    color: #000;
    font-size: 2rem;
}

.hero p {
    margin-bottom: 2rem;
    font-size: 1rem;
}

.btn {
    display: inline-block;
    background-color: #ccc;
    color: #000;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #aaa;
}

.gallery {
    text-align: center;
}

.gallery h2 {
    margin-bottom: 2rem;
    color: #000;
}

/* Gallery grid for calcography prints */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    align-items: start;
}

.gallery-grid .artwork {
    background: #fff;
    padding: 0.5rem;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.gallery-grid img {
    width: 100%;
    height: auto;
    display: block;
}

/* Prevent easy saving / dragging of images (deterrent, not foolproof) */
img {
    -webkit-user-drag: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none; /* iOS Safari long-press menu */
}

/* Shop hero images placed under header, full-width but maintaining proportions */
.shop-hero {
    /* full-bleed container: extend to viewport edges while keeping content centered */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    margin-top: 3rem; /* move the hero down on the page */
    overflow: hidden;
}

.shop-hero img {
    width: 100vw;
    max-width: 100vw;
    height: auto; /* keep original aspect ratio */
    display: block;
}

/* Remove strict height constraint so image isn't squashed; keep natural proportions */
.shop-hero img:first-child {
    max-height: none;
}

.shop-intro {
    max-width: 1000px;
    margin: 1rem auto 2rem;
    text-align: center;
    padding: 0 1rem;
    font-size: 1.05rem;
    color: #111;
}

@media (max-width: 768px) {
    .shop-hero img:first-child {
        max-height: none;
        height: auto;
    }
    .shop-intro {
        font-size: 1rem;
    }
}

/* Center contacts and constrain map width */
.contacts-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.map-wrap {
    width: 100%;
    max-width: 900px;
    margin: 1rem auto 0;
}

.map-wrap iframe {
    width: 100%;
    height: 450px;
    border: 0;
}

#slider {
    text-align: center;
    margin: 2rem 0;
}

#slider {
    display: flex;
    justify-content: space-around;
    margin: 2rem 0;
}

.slide {
    width: 30%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* Google Maps Store Locator styles */
gmpx-store-locator {
    width: 100%;
    height: 500px;
    --gmpx-color-surface: #fff;
    --gmpx-color-on-surface: #212121;
    --gmpx-color-on-surface-variant: #757575;
    --gmpx-color-primary: #1967d2;
    --gmpx-color-outline: #e0e0e0;
    --gmpx-fixed-panel-width-row-layout: 28.5em;
    --gmpx-fixed-panel-height-column-layout: 65%;
    --gmpx-font-family-base: "Roboto", sans-serif;
    --gmpx-font-family-headings: "Roboto", sans-serif;
    --gmpx-font-size-base: 0.875rem;
    --gmpx-hours-color-open: #188038;
    --gmpx-hours-color-closed: #d50000;
    --gmpx-rating-color: #ffb300;
    --gmpx-rating-color-empty: #e0e0e0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.artwork {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.artwork:hover {
    transform: translateY(-5px);
}

.artwork img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.artwork p {
    padding: 1rem;
    font-weight: bold;
}

.about {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.about h2 {
    margin-bottom: 1rem;
    color: #000;
}

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

footer {
    text-align: center;
    padding: 1rem 0;
    background-color: #f0f0f0;
    background-image: url('images/logo-001.png');
    background-size: cover;
    background-position: center;
    color: #000;
    margin-top: 2rem;
}

/* Responsive design */
@media (max-width: 768px) {
    header {
        position: static;
        flex-direction: column;
        text-align: center;
        padding: 1rem 0;
    }

    .logo {
        position: static;
        height: 300px;
        margin-bottom: 0.5rem;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .map iframe {
        width: 100%;
        height: 400px;
        border: none;
    }
}