:root {
    --primary: #2c1a4d;
    --secondary: #9b7bb5;
    --accent: #d4a5d4;
    --light: #f8f9fa;
    --dark: #1a1a1a;
}

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

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Lora', serif;
    color: var(--dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.login-box {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.login-box h1 {
    color: var(--primary);
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-align: center;
}

.countdown {
    margin: 3rem 0;
}

.countdown-item {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.countdown-item span {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    font-family: 'Playfair Display', serif;
}

.countdown-item small {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.content-section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
    font-size: 2.5rem;
}

.section-content {
    text-align: center;
}

.section-content.text-left {
    text-align: left;
}

/* Lists in centered content sections: remove bullets, keep content readable */
.section-content ul,
.section-content ol {
    list-style-position: inside;
    padding-left: 0;
}

.section-content ul.list-unstyled,
.section-content ul.list-unstyled li {
    list-style: none;
    padding-left: 0;
}

.section-content ul li,
.section-content ol li {
    margin-bottom: 0.5rem;
}

/* Registry - Amazon card */
.amazon-registry-card {
    background: linear-gradient(135deg, #FF9900 0%, #232F3E 100%);
    border-radius: 15px;
    padding: 2rem;
    color: white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.amazon-registry-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.2);
}

.amazon-registry-inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.amazon-registry-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.amazon-registry-text {
    flex: 1;
    text-align: left;
}

.amazon-registry-text h4 {
    color: white;
    margin: 0;
}

.amazon-registry-text p {
    color: rgba(255,255,255,0.9) !important;
}

.amazon-registry-arrow {
    font-size: 2rem;
    flex-shrink: 0;
}

/* Registry - Experience claim badges */
.experience-card {
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.experience-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.experience-card.experience-claimed {
    opacity: 0.75;
}

.claim-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.75rem;
    z-index: 1;
}

.navbar-dark {
    background-color: var(--primary) !important;
}

.btn-primary {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

.photo-gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s;
}

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

/* Photo masonry (Pinterest-style, preserves natural aspect ratios) */
.photo-masonry {
    column-count: 3;
    column-gap: 1rem;
}

@media (max-width: 992px) {
    .photo-masonry { column-count: 2; }
}

@media (max-width: 576px) {
    .photo-masonry { column-count: 1; }
}

.photo-masonry-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    position: relative;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.photo-masonry-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.photo-masonry-item img {
    width: 100%;
    height: auto;
    display: block;
}

.photo-masonry-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    padding: 1rem 0.75rem 0.5rem;
    font-size: 0.9rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.photo-masonry-item:hover .photo-masonry-caption {
    opacity: 1;
}

/* Photo carousel (legacy - kept for easy revert if masonry is not preferred) */
.photo-carousel-item {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    aspect-ratio: 4 / 3;
    background: #f0f0f0;
}

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

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

.photo-carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    padding: 1rem 0.75rem 0.5rem;
    font-size: 0.9rem;
    text-align: center;
}

#photo-carousel-bs .carousel-control-prev,
#photo-carousel-bs .carousel-control-next {
    width: 5%;
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
}

#photo-carousel-bs .carousel-indicators {
    bottom: -40px;
}

#photo-carousel-bs .carousel-indicators button {
    background-color: var(--primary);
}

#photo-carousel-bs .carousel-inner {
    padding: 0.5rem;
}

/* Wedding party cards */
.wedding-party-side-title {
    text-align: center;
    color: var(--primary);
    margin: 2rem 0 1.5rem;
    font-family: 'Playfair Display', serif;
}

.wedding-party-card {
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.wedding-party-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.wedding-party-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.wedding-party-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
}

.wedding-party-role {
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 600;
}

.wedding-party-bio {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

.rsvp-deadline-notice {
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    display: inline-block;
}

@media (max-width: 1024px) and (min-width: 769px) {
    .hero-section h1 {
        font-size: 4rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .countdown-item {
        padding: 1rem 0.5rem;
    }
    
    .countdown-item span {
        font-size: 2rem;
    }
    
    .countdown-item small {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .countdown-item {
        padding: 0.75rem 0.25rem;
    }
    
    .countdown-item span {
        font-size: 1.6rem;
    }
    
    .countdown-item small {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 400px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .countdown-item {
        padding: 0.5rem 0.15rem;
    }
    
    .countdown-item span {
        font-size: 1.25rem;
    }
    
    .countdown-item small {
        font-size: 0.6rem;
    }
}
