﻿@font-face {
    font-family: 'Parisienne';
    src: url('https://fonts.googleapis.com/css2?family=Parisienne&display=swap');
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #fafafa;
    color: #333;
    overflow-x: hidden;
}

.script-font {
    font-family: 'Dancing Script', cursive;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.highlight-day {
    background-color: #D8B4A0;
    color: white;
    font-weight: bold;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 1px;
    background-color: #D8B4A0;
    top: 0;
    bottom: 0;
    left: 20px;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    left: 10px;
    border-radius: 50%;
    background-color: #D8B4A0;
    border: 3px solid white;
    z-index: 1;
}

.fade-in {
    animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.slide-up {
    animation: slideUp 1s ease-in-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.heartbeat {
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.1);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.1);
    }

    70% {
        transform: scale(1);
    }
}

/* Gallery desktop styles - vertical images */
.gallery-item-vertical {
    height: 450px;
    width: 100%;
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    /* Fixed dimensions to ensure consistency */
    aspect-ratio: 2/3;
}

    .gallery-item-vertical:hover {
        transform: scale(1.03);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    }

    .gallery-item-vertical img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .gallery-item-vertical:hover img {
        transform: scale(1.05);
    }

/* Gallery mobile styles - horizontal scroll */
.scroll-gallery {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

    .scroll-gallery::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

.gallery-card {
    flex: 0 0 auto;
    width: 75vw;
    max-width: 250px;
    height: 350px;
    /* Fixed dimensions for mobile */
    aspect-ratio: 2/3;
    transition: all 0.3s ease;
}

    .gallery-card:hover {
        transform: scale(1.03);
    }

    .gallery-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0.5rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    }

/* Lightbox styles */
.lightbox-content {
    animation: fadeIn 0.3s ease-in-out;
}

/* Ensure lightbox is on top of everything */
#lightbox {
    z-index: 9999;
}

    /* Add touch swipe support for mobile */
    #lightbox.touch-enabled {
        touch-action: pan-y;
    }

/* Album style pagination indicators */
.gallery-pagination {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.gallery-pagination-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    margin: 0 4px;
    transition: background-color 0.3s ease;
}

    .gallery-pagination-dot.active {
        background-color: #F43F5E; /* rose-500 */
    }

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.container {
    width: 100%;
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
}

/* Better section spacing for scrolling with fixed header */
section {
    scroll-margin-top: 80px; /* This provides a fallback for browsers that support scroll-margin-top */
    padding-top: 1rem; /* Add a little extra padding at the top of each section */
}

@media (max-width: 768px) {
    section {
        scroll-margin-top: 70px; /* Slightly smaller offset for mobile */
    }
}

/* Enhance transition for mobile menu links */
#mobile-menu a {
    transition: all 0.3s ease;
}

/* Ensure proper z-index layering */
header {
    z-index: 50;
}

/* If the JavaScript solution doesn't work for some reason, this is a pure CSS fallback */
:target {
    scroll-margin-top: 80px;
}

@media (max-width: 768px) {
    :target {
        scroll-margin-top: 70px;
    }
}