/*
Theme Name: Regent Palace Hotel
Description: A custom WordPress theme for the Regent Palace Hotel historical reference website. Features a classical design with burgundy and gold color scheme, perfect for showcasing the hotel\"s rich history from 1915-2006.
Author: Leigh Smith
Version: 1.0
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #2F2F2F;
    background-color: #FAFAFA;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #8B1538;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Header */
.header {
    background: linear-gradient(135deg, #8B1538 0%, #A91B47 100%);
    color: #F5F5DC;
    padding: 0.1rem 0; /* Minimal padding for a very shallow header */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex; /* Use flexbox for header content */
    flex-direction: column; /* Stack logo/tagline and nav vertically */
    align-items: center;
}

.header .top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 20px; /* Maintain horizontal padding */
}

.logo {
    text-align: center;
    margin-bottom: 0.2rem; /* Space between logo and nav */
}

.logo h1 {
    color: #F5F5DC;
    font-size: 1.4rem; /* Even smaller logo text */
    margin-bottom: 0;
}

.tagline {
    font-size: 0.6rem;
    font-style: italic;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Navigation Menu Styles - Classic Look (Breakout) */
.navigation {
    width: 100%; /* Ensure navigation takes full width */
    background-color: rgba(0,0,0,0.1); /* Slight background for the menu bar */
    padding: 0.2rem 0; /* Padding for the menu bar itself */
}

.nav-menu {
    display: flex; /* Ensure horizontal display */
    list-style: none;
    margin: 0; /* Remove default margin */
    padding: 0; /* Remove default padding */
    justify-content: center; /* Center menu items */
    flex-wrap: nowrap; /* Prevent wrapping to keep it horizontal */
    overflow-x: auto; /* Allow horizontal scrolling if too many items */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.nav-menu li {
    margin: 0 0.3rem; /* Reduced margin between menu items */
    flex-shrink: 0; /* Prevent items from shrinking */
}

.nav-menu a {
    color: #FFFFFF !important; /* Pure white text, important to override other styles */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem; /* Slightly smaller font size for menu items */
    padding: 0.2rem 0.6rem; /* Adjusted padding for breakout look */
    border: 1px solid rgba(255,255,255,0.3); /* Subtle border for breakout effect */
    border-radius: 3px;
    transition: all 0.3s ease;
    font-family: 'Georgia', serif;
    letter-spacing: 0.05em;
    display: block; /* Make the whole padding area clickable */
    white-space: nowrap; /* Prevent text from wrapping within menu item */
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
    background-color: rgba(255,255,255,0.15);
    color: #D4AF37 !important; /* Gold on hover, important to override other styles */
    box-shadow: inset 0 0 0 1px #D4AF37;
}

.mobile-menu-toggle {
    display: none;
}

/* Main Content */
.main-content {
    padding-top: 100px; /* Increased padding to clear fixed header */
}

/* Hero Section */
.hero-section {
    position: relative;
}

.hero-image {
    position: relative;
    height: 60vh;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none; /* Ensure no purple overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    color: #F5F5DC;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #D4AF37;
    font-weight: 300;
}

.intro-content {
    padding: 4rem 0;
}

.intro-content h3 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2rem;
}

/* Content Sections */
.content-section {
    padding: 4rem 0;
}

.alt-bg {
    background-color: #F8F8F8;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #8B1538;
}

/* Stories Section */
.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.story-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.story-card h3 {
    color: #8B1538;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Gallery Section */
.gallery-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid #D4AF37;
}

.tab-button {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-family: 'Georgia', serif;
    color: #8B1538;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-button.active {
    border-bottom-color: #D4AF37;
    font-weight: bold;
}

.gallery-content {
    position: relative;
}

.gallery-tab {
    display: none;
}

.gallery-tab.active {
    display: block;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.image-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.image-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 400px;
}

.image-item p {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: #8B1538;
}

/* Footer */
.footer {
    background: #2F2F2F;
    color: #F5F5DC;
    padding: 3rem 0 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
}



/* Simple, reliable lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
}

.lightbox-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #F5F5DC;
    background: rgba(0, 0, 0, 0.8);
    padding: 12px 24px;
    border-radius: 6px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    max-width: 80%;
    z-index: 10001;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #F5F5DC;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10002;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.close:hover {
    color: #D4AF37;
    background: rgba(0, 0, 0, 0.9);
}

/* Mobile responsive */
@media screen and (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 80%;
    }
    
    .close {
        top: 10px;
        right: 15px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
    
    .lightbox-caption {
        bottom: 15px;
        font-size: 1rem;
        padding: 8px 16px;
        max-width: 90%;
    }
}

/* Ensure images are clickable */
.image-item img {
    cursor: pointer !important;
    transition: transform 0.2s ease;
}

.image-item img:hover {
    transform: scale(1.02);
}

