@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Playfair+Display:wght@600&display=swap');

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

body {
    background-color: #000;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.album-container {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.album-container::-webkit-scrollbar {
    display: none;
}

.photo-card {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
}

/* --- TRANG BÌA --- */
.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15vh 0 8vh 0;
    text-align: center;
}

.main-title {
    color: #f1d56e;
}

.script-font {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(3.5rem, 15vw, 5rem);
    line-height: 0.9;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.6);
}

.footer-info {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: flex-end;
    color: #f1d56e;
    font-family: 'Playfair Display', serif;
}

.couple-name span {
    display: block;
    font-size: 0.7rem;
    font-style: italic;
    margin-bottom: 5px;
    color: #fff;
    text-transform: uppercase;
}

.couple-name h2 {
    font-size: clamp(1rem, 4vw, 1.3rem);
    letter-spacing: 1px;
}

.date p {
    font-size: clamp(0.9rem, 3.5vw, 1.1rem);
    letter-spacing: 2px;
    border-top: 1px solid rgba(241, 213, 110, 0.5);
    padding-top: 10px;
}

/* --- CÁC TRANG TRẮNG CHUNG --- */
.page-white {
    background-color: #fff;
    color: #333;
}

.page-white .content-wrapper {
    justify-content: center;
    padding: 20px;
}

/* Trang Gia Đình */
.quote {
    font-size: 0.8rem;
    font-style: italic;
    margin-bottom: 20px;
}

.family-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.family-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.85rem;
}

.side-title {
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.avatar-frame {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 10px 0;
    border: 2px solid #f1d56e;
}

.avatar-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.label {
    background: #fdf2e9;
    padding: 2px 10px;
    font-size: 0.6rem;
    border-radius: 10px;
}

.name-script-gold {
    font-family: 'Great Vibes', cursive;
    font-size: 2.2rem;
    color: #d4a373;
    margin-top: 5px;
}

/* Trang Thiệp Mời */
.invitation-detail .invitation-box {
    padding: 30px 15px;
    border: 1px solid #eee;
    border-radius: 5px;
}

.logo-font {
    font-family: 'Great Vibes', cursive;
    font-size: 5rem;
    color: #333;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    display: inline-block;
    padding: 0 20px;
}

.trantrong {
    letter-spacing: 3px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.guest-font {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: #333;
    margin-bottom: 15px;
}

.desc {
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.5;
    padding: 0 20px;
    margin-bottom: 20px;
}

.location-title {
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.address-box p {
    font-size: 0.75rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

.date-display {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 10px 0;
    color: #a32a2a;
}

.lunar-text {
    font-size: 0.7rem;
    font-style: italic;
    color: #666;
}

/* Trang Album - Thiết kế mới */
.album-page {
    padding: 40px 15px !important;
    justify-content: flex-start !important;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
    gap: 12px;
    width: 100%;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

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

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

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Biến tấu kích thước cho đẹp */
.photo-item.tall {
    grid-row: span 2;
}

.photo-item.wide {
    grid-column: span 2;
}

/* Hiệu ứng nhẹ khi chạm/hover */
.photo-item:active img {
    transform: scale(1.05);
}

.wish-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #d4a373;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(212, 163, 115, 0.3);
    transition: all 0.3s ease;
}

.wish-button:active {
    transform: scale(0.95);
    background-color: #bc8a5f;
}

/* Nút Google Maps */
.maps-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #a32a2a;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(163, 42, 42, 0.3);
    transition: transform 0.2s ease;
}

.maps-button:active {
    transform: scale(0.95);
}