/*
Theme Name: Scotland Art - Charles Randak
Author: Gemini AI
Version: 1.1
*/

.main-art-img {
    background-color: #ffffff; /* This is the "White Band" */
    padding: 12px;             /* Slightly thicker padding makes the band more obvious */
    border: 1px solid rgba(0,0,0,0.05);
}

/* Mobile Styles (Phones smaller than 768px) */
@media (max-width: 767px) {
    p {
        font-size: 0.45rem;      /* Slightly smaller than default 1rem */
        margin-bottom: 0.75rem; /* Tighter spacing between paragraphs */
        line-height: 1.5;       /* 1.5 is usually better for readability than 'normal' */
    }
}

/* Highlights text in Brand Blue */
::selection {
    background: #8dcae1; /* Brand Blue */
    color: #ffffff;      /* White text */
}

/* For Firefox compatibility */
::-moz-selection {
    background: #8dcae1;
    color: #ffffff;
}

/* Container for the previous/next area */
.nav-prev, .nav-next {
    padding: 10px 0;
}

/* Styling the actual links */
.nav-prev a, 
.nav-next a {
    text-decoration: none !important;
    color: #bfad7a !important; /* Brand Gold */
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Hover State */
.nav-prev a:hover, 
.nav-next a:hover {
    color: #8dcae1 !important; /* Brand Blue */
    transform: translateX(-5px); /* Subtle slide effect for 'Previous' */
}

/* Slide 'Next' link the opposite way on hover */
.nav-next a:hover {
    transform: translateX(5px);
}

/* Optional: Add a thin border to make them feel like 'Soft' buttons */
.nav-prev a, .nav-next a {
    border: 1px solid transparent;
    padding: 5px 10px;
}

.nav-prev a:hover, .nav-next a:hover {
    border-color: #8dcae1;
}

/* 1. GLOBAL & TYPOGRAPHY */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

body { 
    font-family: 'Open Sans', sans-serif; 
    color: #333333; 
    background-color: #333333; /* Dark page background */
}

@media (min-width: 992px) {
    /* This targets the inner div holding the image */
    .col-lg-8 > div {
        position: -webkit-sticky;
        position: sticky;
        top: 40px; /* Adjust this to sit nicely below your nav shadow */
    }
}

h2, h3, .text-gold { 
    font-weight: 600; 
    color: #bfad7a !important; 
    letter-spacing: 1px;
}

.bg-blue { background-color: #8dcae1 !important; }
.text-white { color: #ffffff !important; }
.lead strong { font-weight: 700 !important; }

/* 2. THE 12% SYSTEM (Consolidated) */
.black-border {
    margin-left: 12%;
    margin-right: 12%;
   
    background-color: #f8f9fa; /* Light grey interior */
    position: relative;
}

/* Fix for logged-in admin bar gap */
body.admin-bar .black-border { margin-top: 0 !important; }

.single article.black-border {
    border-top: none !important; /* This ensures the shadow from the nav falls onto the content cleanly */
}

@media (max-width: 991px) {
    .black-border { margin-left: 0; margin-right: 0; border: none; }
}

/* The Master Frame */

.site-wrapper {
    margin-left: 12%;
    margin-right: 12%;
    border-left: 1px solid #333333;
    border-right: 1px solid #333333;
    /* Updated Background */
    background-color: rgba(141, 202, 225, 0.08) !important; 
    min-height: 100vh;
}

.main-art-img {
    background-color: #ffffff; /* The "mount" color */
    padding: 10px;             /* This creates the white border space */
    border: 1px solid rgba(0,0,0,0.05); /* Very thin outer edge */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important; /* Soft shadow */
    transition: transform 0.3s ease;
}

.lightbox-trigger {
   
    padding: 15px; /* Slightly thicker border for the big featured image */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.art-overlay-label {
    /* Adjust position if needed so it stays inside or clears the 10px border */
    bottom: 20px;
    right: 20px;
    z-index: 5;
}

/* Optional: Slight lift effect when hovering over the art */
a:hover .main-art-img {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* Reduce the width of the frame container */
.art-frame {
    max-width: 85%; /* Adjust this percentage to your liking (e.g., 80% or 75%) */
    margin-left: auto;
    margin-right: auto;
}

/* Ensure the image fills the now-smaller container */
.main-art-img {
    width: 100% !important;
}

/* Ensure the text block matches the image width and stays centered */
.art-text-block {
    max-width: 85%; /* Use the same % you chose for your .art-frame */
    margin-left: auto;
    margin-right: auto;
    padding-left: 0 !important;  /* Reset previous paddings to ensure flush alignment */
    padding-right: 0 !important;
    text-align: center;         /* Optional: keeps the text centered under the art */
}

/* Styling the Artist Photo with a white border/mount */
.art-frame img {
    background-color: #ffffff; /* The white border color */
    padding: 10px;             /* The thickness of the white border */
    border: 1px solid rgba(0,0,0,0.05); /* Subtle outer edge */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Matches the paintings */
    display: block;
    margin: 0 auto;            /* Keeps the image centered in the div */
}


/* Remove margins/borders from individual elements so they fill the wrapper */
.black-border {
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-left: none !important;
    border-right: none !important;
}

/* Ensure blue bars stretch the full width of the wrapper */
header.bg-blue, 
footer.bg-blue {
    width: 100%;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: normal;
}

@media (max-width: 991px) {
    .site-wrapper { 
        margin-left: 0; 
        margin-right: 0; 
        border: none; 
    }
}


/* 3. HEADER & NAVIGATION */
header.black-border { border-bottom: none !important; }

nav.navbar.black-border {
    border-top: none !important;      /* Removes the top line */
    border-bottom: none !important;   /* Removes the bottom line */
    margin-top: 0;                    /* Resets the overlap margin */
    padding: 10px 0 !important;
    
    /* Subtle Shadow: Offset-x Offset-y Blur Spread Color */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    
    /* Ensures the shadow sits on top of the content below */
    position: relative;
    z-index: 10; 
}

.navbar-nav .nav-link {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 10px 20px !important;
    color: #333 !important;
    transition: 0.3s;
}

.navbar-nav .nav-link:hover { color: #bfad7a !important; }

/* 4. GALLERY & ART DISPLAYS */
.art-frame {
    width: 85%;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.main-art-img {
    width: 100% !important; 
    height: auto !important;
    display: block;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.art-frame:hover .main-art-img { transform: scale(1.03); }

/* Inquire/Gallery Button */
.btn-gallery {
    background-color: #8dcae1;
    color: white !important;
    border: 2px solid white;
    border-radius: 0 !important;
    padding: 12px 24px;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.btn-gallery:hover {
    background-color: #bfad7a;
    border-color: #bfad7a;
}

/* 5. SINGLE PAINTING PAGE SPECIFICS */
.single article.black-border { border-top: none !important; }

main { display: block; margin-top: 0; }

@media (min-width: 992px) {
    .sticky-top {
        position: sticky;
        top: 20px;
        z-index: 10;
    }
}

/* 6. ARTIST BIO SECTION */
#artist-bio .artist-content p {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

/* 7. FOOTER */
footer.black-border { border-top: 1px solid #333333 !important; }

.footer-link {
    color: #ffffff !important;
    text-decoration: none;
    transition: 0.3s;
}

.footer-link:hover { color: #bfad7a !important; }

hr.bg-white {
    background-color: #ffffff !important;
    height: 1px;
    border: none;
    opacity: 0.3;
}

/* Lightbox UI */
.art-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85%;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

/* --- Front Page Gallery Styling --- */

/* The Link/Title Hover Effect */
.painting-title-link {
    text-decoration: none;
    color: #bfad7a; /* Brand Gold */
    transition: color 0.3s ease;
}

.art-post-row:hover .painting-title-link {
    color: #8dcae1; /* Shifts to Blue on row hover */
}

/* View Details Overlay Logic */
.art-frame a .art-overlay-label {
    position: absolute;
    bottom: -60px; /* Start hidden below the image */
    left: 0;
    width: 100%;
    background: rgba(141, 202, 225, 0.9); /* Brand Blue */
    color: white;
    padding: 12px 0;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    transition: all 0.4s ease-in-out;
    z-index: 2;
}

.art-frame:hover .art-overlay-label {
    bottom: 0; /* Slide up on hover */
}

/* Art Post Rows - Breathing Room */
.art-post-row {
    background-color: #f8f9fa;
    transition: background-color 0.4s ease;
}

.art-post-row:hover {
    background-color: #ffffff; /* Subtle highlight */
}

/* Ensure the text descriptions are readable */
.painting-description {
    max-width: 850px;
    margin: 0 auto;
    line-height: 1.8;
    color: #444;
    font-size:11px;
}

/* --- Framing Cards --- */
.frame-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.frame-card:hover {
    transform: translateY(-5px);
    border-color: #bfad7a;
    background: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.btn-gallery.w-100 {
    display: block;
    width: 100%;
    text-align: center;
}

/* Lightbox Container */
.art-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    cursor: zoom-out;
}

/* Lightbox Image */
.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    box-shadow: 0 0 25px rgba(0,0,0,0.5);
    border: 3px solid white;
}

/* Close Button */
.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-lightbox:hover {
    color: #bfad7a; /* Brand Gold */
}

/* Only make the sidebar sticky on individual painting pages */
.single .sticky-top {
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
    z-index: 10;
}

/* Ensure the artist image on the home page stays put */
#artist-bio .art-frame {
    position: static !important;
}

#artist-bio .main-art-img {
    position: static !important;
    transform: none !important; /* Optional: stops it from shifting at all */
}

/* 1. Hide the default Bootstrap icon */
.navbar-toggler-icon {
    display: none;
}

/* 2. Style the custom hamburger bars */
.hamburger-icon {
    width: 30px;
    height: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-icon span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #bfad7a; /* Brand Gold */
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* 3. Animation: Transform to 'X' when NOT collapsed */
.navbar-toggler:not(.collapsed) .hamburger-icon span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.navbar-toggler:not(.collapsed) .hamburger-icon span:nth-child(2) {
    opacity: 0; /* Hide middle bar */
}

.navbar-toggler:not(.collapsed) .hamburger-icon span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* Remove the default Bootstrap border/outline on click */
.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

/* Pricing Table Customization */
.table.border {
    background-color: rgba(141, 202, 225, 0.08) !important; /* Brand blue at 8% opacity */
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 4px;
    overflow: hidden;
}

/* Ensure the cells themselves don't have a solid white background override */
.table.border td, 
.table.border th {
    background-color: transparent !important;
    border-color: rgba(0, 0, 0, 0.05) !important; /* Very subtle cell lines */
}

/* Make the header row slightly more distinct */
.table.border thead th {
    background-color: rgba(141, 202, 225, 0.15) !important; /* Slightly darker blue for header */
    color: #333;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}
/* Contact Section Hover Effects */
.contact-link {
    display: inline-block;
    padding: 5px 10px;
   
}

.contact-link:hover {
    color: #bfad7a !important; /* Switch text to gold on hover */
    background: rgba(255, 255, 255, 0.5); /* Subtle white highlight */
}

/* Styling the frame option cards specifically */
.frame-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.frame-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(141, 202, 225, 0.2); /* Soft blue shadow on hover */
    border-color: #bfad7a; /* Gold border on hover */
}

.frame-card img {
    border-radius: 2px;
}