/*
Theme Name: cavaliers
Theme URI: http://www.laurelcrowncavaliers.com/
Description: lcc - Updated for Static PHP Migration
Version: 2026 Final Fix
Author: lcc
*/

/* --- Global Reset & Base Styles --- */
* {
    box-sizing: border-box;
}

body {
    font-family: verdana, sans-serif;
    color: #E3B965;
    font-size: 95%;
    line-height: 115%;
    background-color: #1A1A1A;
    text-align: center;
    margin: 0;
    padding: 0;
}

/* --- Layout Container --- */
#wrapper {
    width: 786px;
    margin: 20px auto;
    border: 3px solid #CC9900;
    text-align: left;
    background: #000000;
    overflow: hidden;
}

#bd {
    display: flex;
    width: 100%;
    background: #000000;
    flex-direction: row-reverse; 
}

#yui-main {
    flex: 1; 
    min-width: 0;
    padding: 20px;
    background: #000000;
}

#secondary {
    width: 220px; 
    background-color: #1A1A1A;
    background-image: url('http://laurelcrowncavaliers.com/images/laurel-bg.jpg');
    background-repeat: repeat;
    border-right: 1px solid #CC9900;
    padding: 10px;
}

/* --- Header & Typography --- */
#hd {
    text-align: center;
    padding-top: 24px;
    border-bottom: 2px solid #CC9900;
}

#hd h1 {
    font-size: 290%;
    margin: 0;
}

#hd h1 a {
    text-decoration: none;
    color: #CFAC02;
}

h1, h3 { font-family: georgia, serif; }
h2 { font-family: Arial, sans-serif; font-size: 150%; }

a, a:link {
    color: #CC9B14;
    text-decoration: underline;
}

a:hover {
    color: #85857E;
    text-decoration: none;
}

p { font-size: 80%; margin-bottom: 1em; }

/* --- Top Nav & Sidebar Menu --- */
.yui-nav, #menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.yui-nav li {
    display: inline-block;
    margin: 0 10px;
}

.yui-nav li a, #menu ul li a {
    text-decoration: none;
    color: #FFFFFF;
}

#menu ul li {
    border-bottom: 1px solid #FFFFFF;
}

#menu ul li a {
    display: block;
    padding: 10px 15px;
    font-size: 85%;
}

.yui-nav li a:hover, #menu ul li a:hover {
    color: #E3B965;
    background: #525452;
}

/* --- Content Elements --- */
.item {
    padding: 10px;
    background-color: #000000;
    border: 1px solid #CC9900;
    margin-bottom: 1em;
}

.itemhead h3 {
    color: #FFFFFF;
    font-family: 'Great Vibes', cursive;
    font-size: 34px;
    font-weight: normal;
}

/* --- Memorial Page Styling --- */
.memorial-entry {
    background: #0a0a0a;
    border: 1px solid #333;
    padding: 20px;
    margin-bottom: 30px;
    overflow: hidden; 
    border-radius: 5px;
}

.memorial-entry h4 {
    color: #CC9900;
    font-family: 'Great Vibes', cursive;
    font-size: 28px;
    margin-top: 0;
    border-bottom: 1px solid #222;
    padding-bottom: 5px;
}

.memorial-main-img {
    border: 2px solid #CC9900;
    margin-bottom: 15px;
    width: 100%;
    height: auto;
}

.memorial-thumb {
    border: 1px solid #444;
    padding: 3px;
    background: #111;
}

/* --- Gallery Grid --- */
.photo-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; 
    justify-content: center;
    padding: 20px 0;
}

.photo-gallery .thumbnail {
    border: 2px solid #CC9900;
    padding: 4px;
    background-color: #1A1A1A;
    width: 140px; 
    height: 110px; 
    overflow: hidden;
    display: block;
}

.photo-gallery .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Lightbox / Luminous Styling --- */
.lum-lightbox { z-index: 99999 !important; }
.lum-backdrop { background: rgba(0, 0, 0, 0.9) !important; z-index: 99998 !important; }

.lum-next, .lum-previous {
    position: fixed !important;
    top: 50% !important;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 100000 !important;
}

.lum-next { right: 20px; }
.lum-previous { left: 20px; }

.lum-next::after, .lum-previous::after {
    color: #CC9900 !important;
    font-size: 60px !important;
    font-weight: bold;
}

.lum-next::after { content: '\203A'; }
.lum-previous::after { content: '\2039'; }

/* Close Button "X" Shape */
.lum-close-button {
    display: block !important;
    visibility: visible !important;
    position: fixed !important;
    top: 30px !important;
    right: 30px !important;
    width: 50px !important;
    height: 50px !important;
    z-index: 100002 !important;
    cursor: pointer !important;
    background: transparent !important;
    border: none !important;
}

.lum-close-button::before, 
.lum-close-button::after {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 35px !important;
    height: 5px !important;
    background-color: #CC9900 !important;
}

.lum-close-button::before { transform: translate(-50%, -50%) rotate(45deg) !important; }
.lum-close-button::after { transform: translate(-50%, -50%) rotate(-45deg) !important; }

.lum-close-button:hover::before, .lum-close-button:hover::after { background-color: #FFFFFF; }

/* --- Footer --- */
#ft {
    text-align: center;
    padding: 20px 10px;
    color: #FFFFCC;
    clear: both;
    background: #000000;
    border-top: 2px solid #CC9900;
}

#ft a { color: #FFFFCC; }

/* --- Mobile Fixes --- */
@media screen and (max-width: 786px) {
    #wrapper { width: 100% !important; border: none; margin: 0; }
    #bd { flex-direction: column !important; }
    #yui-main, #secondary { width: 100% !important; float: none !important; border: none !important; }
    table[width="730"], table { width: 100% !important; }
    td { display: block; width: 100% !important; text-align: center; }
    img { max-width: 100% !important; height: auto !important; }
    #hd h1 img { width: 90% !important; }
    .yui-nav li { display: block; margin: 5px 0; border-bottom: 1px solid #333; }
    .photo-gallery .thumbnail { width: 45%; height: 100px; }
}