:root {
    --primary-color: #000;
    --secondary-color: #fff;
    --text-color: #000;
    --light-text: #666;
    --overlay-bg: rgba(255, 255, 255, 0.9);
    --overlay-shadow: rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--secondary-color);
    orphans: 2;
    widows: 2;
}

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

/* Header */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.date {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-left: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--light-text);
}

/* Main Content */
main {
    margin-top: 68px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-text {
    max-width: 600px;
    text-align: left;
    background: var(--overlay-bg);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 8px 32px var(--overlay-shadow);
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.hero-text .date-hero {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-text h2 {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.hero-text p {
    margin-bottom: 1.2rem;
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
    orphans: 2;
    widows: 2;
}

.signature {
    font-style: italic;
    font-weight: 500;
    margin-top: 2rem !important;
}

.credit {
    font-size: 0.85rem;
    color: var(--light-text) !important;
    margin-top: 1.5rem !important;
}

.credit a {
    color: var(--primary-color);
    text-decoration: none;
}

.credit a:hover {
    text-decoration: underline;
}

/* Gallery access button */
.gallery-access {
    margin-top: 2rem;
}

.gallery-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.gallery-button:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.auth-notice {
    font-size: 0.85rem;
    color: var(--light-text);
    font-style: italic;
}

/* Galleries Page */
.galleries {
    padding: 2rem 0 4rem;
}

.galleries-header {
    text-align: center;
    margin-bottom: 3rem;
}

.galleries-header h2 {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.galleries-header p {
    color: var(--light-text);
    font-size: 1.1rem;
    orphans: 2;
    widows: 2;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.back-link:hover {
    color: var(--light-text);
}

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

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-card:hover {
    transform: scale(1.02);
}

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

.gallery-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(60%);
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-card-overlay {
    transform: translateY(0);
}

.gallery-card h3 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.gallery-card p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.gallery-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

/* Gallery Pages */
.gallery-header {
    padding: 2rem 0;
    text-align: center;
    background: var(--secondary-color);
    margin-top: 68px;
}

.gallery-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.gallery-header p {
    color: var(--light-text);
}

.gallery-content {
    padding: 2rem 0;
}

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

.photo-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-item:hover img {
    transform: scale(1.05);
}

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

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 95%;
    max-height: 95%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-weight: 300;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 1001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 300;
    transition: all 0.3s ease;
    z-index: 1001;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-download {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 300;
    transition: all 0.3s ease;
    z-index: 1001;
}

.lightbox-download:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Gallery Navigation Message */
.gallery-nav-message {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
}

.nav-message-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    max-width: 500px;
    min-width: 450px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.nav-message-content h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.nav-message-content p {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.nav-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.nav-continue, .nav-stay {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.nav-continue {
    background-color: var(--primary-color);
    color: white;
}

.nav-continue:hover {
    background-color: #333;
}

.nav-stay {
    background-color: #f0f0f0;
    color: var(--text-color);
}

.nav-stay:hover {
    background-color: #e0e0e0;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
}

/* Authentication Modal Styles */
#auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-modal {
    background: white;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.auth-content {
    padding: 2rem;
    text-align: center;
}

.auth-content h2 {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.auth-content p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

#auth-form {
    text-align: left;
}

.auth-field {
    margin-bottom: 1rem;
}

.auth-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-field input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease;
}

.auth-field input:focus {
    outline: none;
    border-color: var(--primary-color);
}

#auth-form button {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
}

#auth-form button:hover {
    background-color: #333;
}

.auth-error {
    background-color: #fee;
    color: #c33;
    padding: 0.75rem;
    border-radius: 4px;
    border: 1px solid #fcc;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.auth-hint {
    margin-top: 1rem;
    color: var(--light-text);
    font-size: 0.85rem;
}

.back-to-home {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.back-to-home:hover {
    color: var(--light-text);
}

/* Galleries Page Styles */
.galleries-marquee {
    position: relative;
    height: 100vh;
    background-image: url('photos/1-getting-ready/20060826-wedding001jpg_293813105_o.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-top: 68px;
}

.marquee-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.marquee-title {
    font-size: 3rem;
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.marquee-subtitle {
    font-size: 1.2rem;
    color: var(--light-text);
    max-width: 600px;
    line-height: 1.6;
}

.gallery-selection {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
}

.gallery-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 400px;
    margin: 0 auto;
}

.gallery-link {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-link:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 1);
}

.gallery-link a {
    display: block;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    text-align: center;
}

.gallery-link h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.gallery-link p {
    color: var(--light-text);
    font-size: 0.9rem;
    opacity: 0.7;
    font-weight: 300;
    orphans: 2;
    widows: 2;
}

.gallery-link.active {
    border: 2px solid var(--primary-color);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-text {
        padding: 2rem;
        margin: 1rem;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-text h2 {
        font-size: 1.4rem;
    }
    
    .nav-links {
        flex-direction: row;
        gap: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .photo-grid {
        grid-template-columns: 1fr;
    }
    
    .lightbox-nav {
        display: none;
    }
    
    .galleries-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-text {
        padding: 1.5rem;
        margin: 0.5rem;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-text h2 {
        font-size: 1.2rem;
    }
    
    .gallery-button {
        width: 100%;
        padding: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
    }
}

/* Photo grid for galleries pages - larger photos */
@media (min-width: 769px) {
    .photo-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
    
    .photo-item {
        aspect-ratio: 3/2;
    }
}

@media (min-width: 1200px) {
    .photo-grid {
        grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    }
}
