/* =========================================
   STEVE FAIRHURST GALLERY
   COMPLETE STYLE SHEET
   ========================================= */

* {
    box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
	font-family: Arial, Helvetica, sans-serif !important;
	color: #666;
}

body {
    color: #666;
    background:
        linear-gradient(
            rgba(255,255,255,0.75),
            rgba(255,255,255,0.75)
        ),
url("../../painting_website copy/images/background.jpg") center center / cover fixed;
    line-height: 1.6;
}


/* =========================================
   HEADER
   ========================================= */

header {
    background: rgba(255,255,255,0.97);
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    max-width: 1100px;
    width: 100%;
    margin: auto;
    padding: 18px 24px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
	font-family: Arial, Helvetica, sans-serif !important;
	font-size: 20px;
	letter-spacing: 1px;
	line-height: normal;
}

.nav .logo strong {
    color: #B5B5B5;
}

nav a {
    margin-left: 22px;
    text-decoration: none;
    color: #333;
    font-size: 15px;
}

nav a:hover {
    color: #758b86;
}


/* =========================================
   HERO
   ========================================= */

.hero {
    min-height: 72vh;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 70px 20px;

    background:
        linear-gradient(
            rgba(255,255,255,.58),
            rgba(255,255,255,.72)
        ),
url("../../painting_website copy/images/chiltern.jpg") center/cover;
}

.hero-inner {
    max-width: 760px;
    width: 100%;

    background: rgba(250,249,246,.86);

    padding: 42px;
}

h1,
h2,
h3 {
    font-family: Arial, Helvetica, sans-serif !important;
    font-weight: normal;
}

h1 {
    font-size: clamp(40px, 6vw, 68px);
    margin: 0 0 12px;
}

h2 {
	font-size: 18px;
	margin-top: 0;
}

.hero p {
    font-size: 19px;
}


/* =========================================
   GENERAL BUTTON
   ========================================= */

.button {
    display: inline-block;

    margin-top: 18px;

    padding: 12px 24px;

    color: white;

    text-decoration: none;

    border-radius: 2px;

    background-color: #B5B5B5;
}

.button:hover {
    background: #666;
}


/* =========================================
   GENERAL PAGE
   ========================================= */

.page {
    max-width: 1100px;
    width: 100%;

    margin: auto;

    padding: 70px 24px;
}


/* =========================================
   GALLERY
   ========================================= */

.gallery {
    width: 100%;
    max-width: 1500px;

    margin: 0 auto;

    padding: 20px 15px 60px;
}


/* =========================================
   INTRODUCTION
   ========================================= */

.gallery .intro {
    width: 100%;
    max-width: 900px;

    margin: 0 auto 45px;

    text-align: center;
}

.gallery .intro p {
    font-family: Arial, Helvetica, sans-serif;

    font-size: 18px;

    color: #666;

    margin: 0;
}


/* =========================================
   SECTION HEADINGS
   ========================================= */

.gallery-section {
    width: 100%;

    text-align: center;

    margin: 50px 0 30px;
}

.gallery-section h2 {
    font-family: Arial, Helvetica, sans-serif;

    font-size: 30px;

    font-weight: normal;

    color: #444;

    margin: 0;
}


/* =========================================
   THREE COLUMN GALLERY
   ========================================= */

.gallery-grid {
    width: 100%;
    max-width: 100%;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    column-gap: 18px;

    row-gap: 60px;

    align-items: start;
}


/* =========================================
   PAINTING CARD
   ========================================= */

.card {
    width: 100%;
    min-width: 0;
    max-width: 100%;

    background: white;

    padding: 5px;

    text-align: center;

    box-shadow:
        0 2px 12px rgba(0,0,0,.08);

    overflow: visible;
}


/* =========================================
   PAINTING IMAGE AREA
   ========================================= */

.painting-image {
    width: 100%;
    max-width: 100%;

    height: 560px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: white;

    overflow: visible;

    position: relative;
}


/* =========================================
   ACTUAL PAINTING
   ========================================= */

.painting-image img {
    display: block;

    width: 100%;
    max-width: 100%;

    height: 100%;

    object-fit: contain;

    object-position: center;

    cursor: zoom-in;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


/* =========================================
   ENLARGE ON ROLL-OVER
   ========================================= */

.painting-image:hover img {
    transform: scale(1.08);

    position: relative;

    z-index: 20;

    box-shadow:
        0 8px 25px rgba(0,0,0,.25);
}


/* =========================================
   CARD TEXT
   ========================================= */

.card-content {
    width: 100%;
    max-width: 100%;

    padding: 15px 5px 5px;
}

.card-content h3 {
    font-family: Arial, Helvetica, sans-serif;

    margin: 0 0 8px;

    font-size: 20px;

    font-weight: normal;

    color: #333;
}

.card-content p {
    font-family: Arial, Helvetica, sans-serif;

    margin: 5px 0;

    font-size: 14px;

    color: #666;
}

.card-content .price {
    font-weight: bold;

    color: #444;
}

.price1 {
    font-weight: bold;

    color: #555 !important;
}

.red {
    color: #FC001C;

    font-weight: bold;
}


/* =========================================
   BUY OPTIONS
   ========================================= */

.buy-options {
    display: flex;

    justify-content: center;

    align-items: center;

    gap: 7px;

    flex-wrap: wrap;

    margin-top: 12px;

    max-width: 100%;
}

.buy-options .button {
    font-family: Arial, Helvetica, sans-serif;

    padding: 7px 12px;

    margin-top: 0;

    font-size: 13px;

    border: none;

    cursor: pointer;

    color: white;

    background: #B5B5B5;

    max-width: 100%;
}

.buy-options .button:hover {
    background: #666;
}


/* =========================================
   IMAGE VIEWER
   ========================================= */

.image-viewer {
    display: none;

    position: fixed;

    z-index: 5000;

    left: 0;
    top: 0;

    width: 100%;
    max-width: 100%;

    height: 100%;

    background: rgba(0,0,0,0.92);

    align-items: center;

    justify-content: center;

    padding: 30px;
}

.image-viewer img {
    max-width: 94%;

    max-height: 92vh;

    width: auto;

    height: auto;

    object-fit: contain;
}

.image-viewer .close {
    position: absolute;

    top: 20px;

    right: 30px;

    color: white;

    font-size: 45px;

    cursor: pointer;

    line-height: 1;
}


/* =========================================
   BASKET BUTTON
   ========================================= */

#basketButton {
    position: fixed;

    top: 85px;

    right: 25px;

    z-index: 2000;

    background: #333;

    color: white;

    padding: 10px 16px;

    border-radius: 5px;

    cursor: pointer;

    font-size: 14px;

    max-width: calc(100vw - 20px);
}


/* =========================================
   BASKET PANEL
   ========================================= */

#basketPanel {
    display: none;

    position: fixed;

    top: 0;

    right: 0;

    width: 380px;

    max-width: 92vw;

    height: 100vh;

    background: white;

    z-index: 3000;

    box-shadow:
        -4px 0 15px rgba(0,0,0,0.25);

    padding: 25px;

    overflow-y: auto;

    overflow-x: hidden;
}

.basket-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    border-bottom: 1px solid #ddd;

    padding-bottom: 10px;
}

.basket-header h2 {
    margin: 0;

    font-size: 25px;
}

.basket-close {
    font-size: 30px;

    cursor: pointer;
}

.basket-item {
    border-bottom: 1px solid #ddd;

    padding: 15px 0;
}

.quantity-controls {
    margin-top: 8px;
}

.quantity-controls button {
    padding: 4px 9px;

    margin-right: 4px;

    cursor: pointer;
}

.basket-total {
    margin-top: 20px;

    border-top: 2px solid #ddd;

    padding-top: 15px;
}

.basket-total p {
    margin: 6px 0;
}

.basket-total h3 {
    font-size: 20px;
}

.empty-basket {
    padding: 20px 0;

    color: #777;
}


/* =========================================
   PAYPAL WIDTH PROTECTION
   ========================================= */

iframe {
    max-width: 100%;
}

.paypal-buttons,
.paypal-buttons iframe {
    max-width: 100% !important;
}


/* =========================================
   FOOTER
   ========================================= */

footer {
    background: #666;

    color: white;

    text-align: center;

    padding: 35px 20px;

    max-width: 100%;
}

footer a {
    color: white;
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 900px) {

    .nav {
        padding: 15px 18px;
    }

    .logo {
        font-size: 38px;
    }

    .gallery {
        padding-left: 10px;
        padding-right: 10px;
    }

    .gallery-grid {
        column-gap: 12px;

        row-gap: 45px;
    }

    .painting-image {
        height: 450px;
    }

}


/* =========================================
   PHONE
   ========================================= */

@media (max-width: 700px) {

    .nav {
        display: block;

        text-align: center;

        width: 100%;
        max-width: 100%;
    }

    .logo {
        font-size: 34px;
    }

    nav {
        max-width: 100%;
    }

    nav a {
        display: inline-block;

        margin: 8px 7px 0;

        font-size: 14px;
    }

    .hero {
        max-width: 100%;
        overflow: hidden;
    }

    .hero-inner {
        padding: 28px 20px;
    }

    .page {
        padding: 50px 18px;
    }

    .gallery {
        width: 100%;
        max-width: 100%;

        padding: 15px 10px 50px;

        overflow: hidden;
    }

    .gallery-grid {
        width: 100%;
        max-width: 100%;

        grid-template-columns: 1fr;

        gap: 45px;
    }

    .painting-image {
        width: 100%;
        max-width: 100%;

        height: 500px;
    }

    .gallery-section {
        margin: 40px 0 25px;
    }

    .gallery-section h2 {
        font-size: 26px;
    }

    #basketButton {
        top: 120px;

        right: 10px;

        z-index: 2000;

        padding: 9px 13px;

        font-size: 13px;

        max-width: calc(100vw - 20px);
    }

    #basketPanel {
        width: 100vw;

        max-width: 100vw;

        right: 0;

        padding: 20px;

        overflow-x: hidden;
    }

    .buy-options {
        width: 100%;
        max-width: 100%;

        overflow: hidden;
    }

    iframe {
        max-width: 100% !important;
    }

    .paypal-buttons,
    .paypal-buttons iframe {
        width: 100% !important;
        max-width: 100% !important;
    }
}


/* =========================================
   SMALL PHONES
   ========================================= */

@media (max-width: 400px) {

    .painting-image {
        height: 430px;
    }

    .card {
        padding: 4px;
    }

    .logo {
        font-size: 30px;
    }

    nav a {
        margin-left: 5px;
        margin-right: 5px;
    }

}


/* =========================================
   SEO PAGE TITLE
   ========================================= */
.seo-page-title {
    max-width: 1100px;
    margin: 28px auto 8px;
    padding: 0 24px;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 20px;
    line-height: 1.25;
    font-weight: normal;
    color: #555;
}
@media (max-width: 700px) {
    .seo-page-title {
        margin-top: 20px;
        padding: 0 16px;
        font-size: 14px;
    }
}
