/* =========================================================
   ROHAN & NIKITA
   PREMIUM ENGAGEMENT INVITATION
   MAIN STYLESHEET
   ========================================================= */


/* =========================================================
   1. ROOT VARIABLES
   ========================================================= */

:root {

    --brown-dark: #3d160d;

    --brown: #5b2415;

    --brown-light: #7b3824;

    --cream: #f8f1e6;

    --cream-dark: #eee2d0;

    --gold: #c69a45;

    --gold-light: #e0bd72;

    --white: #ffffff;

    --text: #3b2a24;

    --text-light: #78665d;

    --border: rgba(91, 36, 21, 0.16);

    --shadow:
        0 20px 60px rgba(61, 22, 13, 0.12);

    --shadow-heavy:
        0 30px 80px rgba(40, 15, 8, 0.20);

    --serif:
        "Cormorant Garamond",
        Georgia,
        serif;

    --sans:
        "DM Sans",
        Arial,
        sans-serif;

    --script:
        "Great Vibes",
        cursive;

}


/* =========================================================
   2. RESET
   ========================================================= */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}


html {

    scroll-behavior: smooth;

}


body {

    min-height: 100vh;

    background: var(--cream);

    color: var(--text);

    font-family: var(--sans);

    line-height: 1.6;

    overflow-x: hidden;

}


body,
button,
a {

    -webkit-tap-highlight-color: transparent;

}


img {

    display: block;

    max-width: 100%;

}


button,
input,
textarea,
select {

    font: inherit;

}


button {

    cursor: pointer;

}


a {

    color: inherit;

    text-decoration: none;

}


.hidden {

    display: none !important;

}


/* =========================================================
   3. BACKGROUND DECORATION
   ========================================================= */

.background-decoration {

    position: fixed;

    inset: 0;

    pointer-events: none;

    overflow: hidden;

    z-index: -10;

}


.bg-circle {

    position: absolute;

    border-radius: 50%;

    filter: blur(2px);

    opacity: 0.28;

}


.bg-circle-one {

    width: 420px;

    height: 420px;

    top: -180px;

    right: -150px;

    background:
        radial-gradient(
            circle,
            rgba(198, 154, 69, 0.25),
            transparent 70%
        );

}


.bg-circle-two {

    width: 500px;

    height: 500px;

    bottom: -240px;

    left: -200px;

    background:
        radial-gradient(
            circle,
            rgba(123, 56, 36, 0.14),
            transparent 70%
        );

}


.bg-flower {

    position: absolute;

    color: var(--gold);

    opacity: 0.18;

    font-size: 28px;

}


.flower-one {

    top: 18%;

    left: 5%;

}


.flower-two {

    bottom: 22%;

    right: 6%;

}


/* =========================================================
   4. TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3 {

    font-family: var(--serif);

    font-weight: 600;

}


p {

    font-family: var(--sans);

}


/* =========================================================
   5. SECTION BASE
   ========================================================= */

.section {

    position: relative;

    padding: 110px 7%;

}


.section-heading {

    max-width: 760px;

    margin: 0 auto 50px;

    text-align: center;

}


.section-kicker {

    display: block;

    margin-bottom: 12px;

    color: var(--gold);

    font-family: var(--sans);

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 0.28em;

    text-transform: uppercase;

}


.section-heading h2 {

    color: var(--brown);

    font-size: clamp(42px, 6vw, 68px);

    line-height: 0.95;

}


.heading-line {

    margin-top: 22px;

    color: var(--gold);

    font-size: 18px;

    letter-spacing: 0.4em;

}


.section-intro {

    max-width: 680px;

    margin: 0 auto 55px;

    color: var(--text-light);

    text-align: center;

    font-size: 16px;

    line-height: 1.9;

}


/* =========================================================
   6. OPENING SCREEN
   ========================================================= */

.opening-screen {

    position: fixed;

    inset: 0;

    z-index: 1000;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 24px;

    background:
        linear-gradient(
            145deg,
            #321109,
            #5b2415 50%,
            #35120a
        );

    transition:
        opacity 0.9s ease,
        visibility 0.9s ease;

}


.opening-screen::before {

    content: "";

    position: absolute;

    inset: 18px;

    border:
        1px solid rgba(224, 189, 114, 0.35);

    pointer-events: none;

}


.opening-card {

    position: relative;

    width: min(650px, 100%);

    padding: 70px 45px;

    text-align: center;

    color: var(--cream);

}


.opening-top-line,
.opening-bottom-line {

    width: 110px;

    height: 1px;

    margin: 0 auto 30px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--gold-light),
            transparent
        );

}


.opening-bottom-line {

    margin: 35px auto 0;

}


.ganesha-symbol {

    color: var(--gold-light);

    font-family: var(--serif);

    font-size: 52px;

    line-height: 1;

    margin-bottom: 20px;

}


.sanskrit-line {

    max-width: 520px;

    margin: 0 auto 18px;

    color: rgba(255, 255, 255, 0.82);

    font-family: var(--serif);

    font-size: 15px;

    line-height: 1.8;

}


.opening-blessing {

    color: var(--gold-light);

    font-size: 11px;

    letter-spacing: 0.16em;

    text-transform: uppercase;

}


.opening-names {

    margin: 34px 0 20px;

}


.opening-names h1 {

    color: var(--white);

    font-size: clamp(58px, 11vw, 92px);

    font-weight: 500;

    line-height: 0.85;

}


.opening-weds {

    margin: 13px 0;

    color: var(--gold-light);

    font-family: var(--script);

    font-size: 48px;

    line-height: 1;

}


.opening-divider {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 15px;

    margin: 28px auto;

}


.opening-divider span {

    width: 75px;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--gold)
        );

}


.opening-divider span:last-child {

    background:
        linear-gradient(
            90deg,
            var(--gold),
            transparent
        );

}


.opening-divider i {

    color: var(--gold-light);

    font-style: normal;

}


.opening-event {

    color: var(--gold-light);

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 0.3em;

}


.opening-tagline {

    margin-top: 10px;

    color: rgba(255, 255, 255, 0.72);

    font-family: var(--serif);

    font-size: 19px;

    font-style: italic;

}


.opening-date {

    margin-top: 18px;

    color: var(--white);

    font-family: var(--serif);

    font-size: 20px;

}


.open-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 18px;

    margin-top: 34px;

    padding: 15px 26px;

    border: 1px solid var(--gold);

    background: transparent;

    color: var(--white);

    font-size: 12px;

    font-weight: 600;

    letter-spacing: 0.12em;

    text-transform: uppercase;

    transition: all 0.3s ease;

}


.open-button strong {

    color: var(--gold-light);

    font-size: 18px;

    font-weight: 400;

}


.open-button:hover {

    background: var(--gold);

    color: var(--brown-dark);

    transform: translateY(-2px);

}


/* =========================================================
   7. MAIN WEBSITE
   CONTINUOUS TEMPLE / FORT PITCHER BACKGROUND
   ========================================================= */

/*
   IMPORTANT:

   The temple image is intentionally applied to the ENTIRE
   #main-content instead of using ::before with a limited
   height.

   This creates ONE continuous background for the complete
   invitation page.

   The image stays fixed while the content sections scroll
   above it, giving the impression of one single steady
   architectural background.
*/

#main-content {

    position: relative;

    min-height: 100vh;

    overflow: hidden;

    background-color: var(--cream);

    background-image:
        linear-gradient(
            rgba(248, 241, 230, 0.73),
            rgba(248, 241, 230, 0.73)
        ),
        url("./assets/images/temple-pitcher.png");

    background-repeat: no-repeat;

    background-position:
        center center;

    background-size:
        cover;

    background-attachment:
        fixed;

}


/*
   Very soft gold atmospheric glow over the entire page.
   This is NOT a separate temple layer.
*/

#main-content::before {

    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    z-index: 0;

    background:
        radial-gradient(
            ellipse at center top,
            rgba(198, 154, 69, 0.10) 0%,
            rgba(198, 154, 69, 0.045) 28%,
            transparent 65%
        );

}


/*
   A subtle overall cream veil keeps text readable while
   allowing the same temple image to remain visible
   throughout the complete page.
*/

#main-content::after {

    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    z-index: 1;

    background:
        linear-gradient(
            180deg,
            rgba(248, 241, 230, 0.08),
            rgba(248, 241, 230, 0.08)
        );

}


/*
   All direct children stay above the continuous
   background layers.
*/

#main-content > * {

    position: relative;

    z-index: 2;

}


/* =========================================================
   8. MAIN HERO
   ========================================================= */

.hero {

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 120px 7% 90px;

    background:
        rgba(248, 241, 230, 0.22);

    text-align: center;

}


.hero-inner {

    width: min(900px, 100%);

}


.hero-symbol {

    color: var(--gold);

    font-family: var(--serif);

    font-size: 50px;

    margin-bottom: 20px;

}


.eyebrow {

    color: var(--gold);

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 0.3em;

    text-transform: uppercase;

}


.hero-name {

    color: var(--brown);

    font-size: clamp(70px, 13vw, 145px);

    font-weight: 500;

    line-height: 0.78;

}


.hero-and {

    margin: 20px 0;

    color: var(--gold);

    font-family: var(--script);

    font-size: clamp(48px, 7vw, 76px);

    line-height: 1;

}


.hero-description {

    max-width: 500px;

    margin: 35px auto 0;

    color: var(--text-light);

    font-family: var(--serif);

    font-size: 22px;

    font-style: italic;

}


.gold-divider {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 16px;

    margin: 30px auto;

}


.gold-divider span {

    width: 90px;

    height: 1px;

    background: var(--gold);

    opacity: 0.55;

}


.gold-divider i {

    color: var(--gold);

    font-style: normal;

}


.hero-date {

    color: var(--brown);

    font-family: var(--serif);

    font-size: 24px;

}


.hero-event {

    margin-top: 6px;

    color: var(--gold);

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 0.28em;

}


.scroll-down {

    display: inline-flex;

    flex-direction: column;

    align-items: center;

    gap: 7px;

    margin-top: 55px;

    color: var(--text-light);

    font-size: 10px;

    letter-spacing: 0.18em;

    text-transform: uppercase;

}


.scroll-down i {

    color: var(--gold);

    font-size: 20px;

    font-style: normal;

    animation: bounce 1.8s infinite;

}


@keyframes bounce {

    0%,
    100% {

        transform: translateY(0);

    }

    50% {

        transform: translateY(7px);

    }

}


/* =========================================================
   9. PHOTO INTRO
   ========================================================= */

.photo-intro {

    padding-top: 40px;

    padding-bottom: 90px;

    background:
        rgba(248, 241, 230, 0.25);

}


.section-photo-frame {

    position: relative;

    width: min(430px, 82%);

    margin: 0 auto;

    padding: 12px;

    background:
        rgba(255, 255, 255, 0.88);

    box-shadow: var(--shadow);

}


.section-photo-frame img {

    width: 100%;

    height: 320px;

    min-height: 0;

    object-fit: cover;

}


.photo-frame-corner {

    position: absolute;

    inset: 22px;

    border:
        1px solid rgba(255, 255, 255, 0.7);

    pointer-events: none;

}


/* =========================================================
   10. FAMILIES
   ========================================================= */

.families {

    background:
        rgba(255, 255, 255, 0.30);

}


.families-grid {

    display: grid;

    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    width: min(1000px, 100%);

    margin: 0 auto;

}


.family-card {

    padding: 35px;

    text-align: center;

}


.family-symbol {

    display: block;

    margin-bottom: 18px;

    color: var(--gold);

    font-size: 25px;

}


.family-relation {

    margin-bottom: 12px;

    color: var(--gold);

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 0.25em;

    text-transform: uppercase;

}


.family-card h3 {

    color: var(--brown);

    font-size: clamp(21px, 3vw, 29px);

    line-height: 1.35;

}


.family-divider {

    color: var(--gold);

    font-family: var(--script);

    font-size: 55px;

}


/* =========================================================
   11. COUNTDOWN
   ========================================================= */

.countdown-section {

    background:
        linear-gradient(
            145deg,
            rgba(58, 20, 11, 0.94),
            rgba(91, 36, 21, 0.94)
        );

    color: var(--white);

}


.section-heading.light h2 {

    color: var(--white);

}


.countdown {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: clamp(12px, 3vw, 35px);

}


.countdown-item {

    min-width: 100px;

    text-align: center;

}


.countdown-item strong {

    display: block;

    color: var(--gold-light);

    font-family: var(--serif);

    font-size: clamp(42px, 6vw, 70px);

    font-weight: 500;

    line-height: 1;

}


.countdown-item span {

    display: block;

    margin-top: 10px;

    color: rgba(255, 255, 255, 0.65);

    font-size: 10px;

    letter-spacing: 0.15em;

    text-transform: uppercase;

}


.countdown-separator {

    color: var(--gold);

    font-family: var(--serif);

    font-size: 45px;

    transform: translateY(-8px);

}


.countdown-expired {

    text-align: center;

    color: var(--gold-light);

    font-family: var(--serif);

    font-size: 28px;

}


/* =========================================================
   12. EVENTS
   ========================================================= */

.events {

    background:
        rgba(248, 241, 230, 0.28);

}


.events-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(260px, 1fr));

    gap: 25px;

    width: min(1050px, 100%);

    margin: 0 auto;

}


.event-card {

    position: relative;

    padding: 38px 30px;

    border: 1px solid var(--border);

    background:
        rgba(255, 255, 255, 0.82);

    text-align: center;

    cursor: pointer;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;

}


.event-card::before {

    content: "";

    position: absolute;

    top: 14px;

    left: 14px;

    width: 25px;

    height: 25px;

    border-top: 1px solid var(--gold);

    border-left: 1px solid var(--gold);

}


.event-card::after {

    content: "";

    position: absolute;

    right: 14px;

    bottom: 14px;

    width: 25px;

    height: 25px;

    border-right: 1px solid var(--gold);

    border-bottom: 1px solid var(--gold);

}


.event-card:hover {

    transform: translateY(-7px);

    border-color:
        rgba(198, 154, 69, 0.45);

    box-shadow: var(--shadow);

}


.event-card h3 {

    color: var(--brown);

    font-size: 31px;

}


.event-date {

    margin-top: 20px;

    color: var(--text);

    font-family: var(--serif);

    font-size: 20px;

}


.event-time {

    margin-top: 4px;

    color: var(--gold);

    font-size: 13px;

    font-weight: 600;

    letter-spacing: 0.12em;

}


.event-action {

    margin-top: 25px;

    color: var(--text-light);

    font-size: 11px;

    letter-spacing: 0.1em;

    text-transform: uppercase;

}


/* =========================================================
   13. STORY / OUR MEMORIES
   TEMPORARILY HIDDEN
   ========================================================= */

.story {

    display: none !important;

}


.story-grid {

    display: grid;

    grid-template-columns:
        minmax(300px, 0.9fr)
        minmax(300px, 1fr);

    gap: 75px;

    align-items: center;

    width: min(1100px, 100%);

    margin: 0 auto;

}


.story-image-wrap {

    position: relative;

}


.story-image-wrap::before {

    content: "";

    position: absolute;

    width: 100%;

    height: 100%;

    top: 18px;

    left: 18px;

    border: 1px solid var(--gold);

    z-index: 0;

}


.story-image-wrap img {

    position: relative;

    z-index: 1;

    width: 100%;

    height: 560px;

    object-fit: cover;

}


.story-text {

    padding: 20px 0;

}


.story-quote {

    color: var(--brown);

    font-family: var(--serif);

    font-size: clamp(30px, 4vw, 43px);

    font-style: italic;

    line-height: 1.15;

}


.story-line {

    width: 65px;

    height: 1px;

    margin: 25px 0;

    background: var(--gold);

}


#story-text-content {

    color: var(--text-light);

    font-size: 16px;

    line-height: 2;

}


/* =========================================================
   14. GALLERY
   ========================================================= */

.gallery {

    background:
        rgba(248, 241, 230, 0.30);

}


.gallery-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 12px;

    width: min(1100px, 100%);

    margin: 0 auto;

}


.gallery-item {

    position: relative;

    overflow: hidden;

    aspect-ratio: 1 / 1;

    background: var(--cream-dark);

    cursor: pointer;

}


.gallery-item img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform 0.6s ease;

}


.gallery-overlay {

    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(61, 22, 13, 0.45);

    color: var(--white);

    font-size: 28px;

    opacity: 0;

    transition: opacity 0.35s ease;

}


.gallery-item:hover img {

    transform: scale(1.07);

}


.gallery-item:hover .gallery-overlay {

    opacity: 1;

}


/* =========================================================
   15. RSVP
   ========================================================= */

.rsvp {

    background:
        rgba(255, 255, 255, 0.30);

}


.rsvp-card {

    position: relative;

    width: min(850px, 100%);

    margin: 0 auto;

    padding: 75px 40px;

    background:
        linear-gradient(
            145deg,
            rgba(248, 239, 226, 0.94),
            rgba(238, 224, 204, 0.94)
        );

    text-align: center;

    box-shadow: var(--shadow);

}


.rsvp-card::before {

    content: "";

    position: absolute;

    inset: 14px;

    border:
        1px solid rgba(198, 154, 69, 0.4);

    pointer-events: none;

}


.rsvp-symbol {

    position: relative;

    color: var(--gold);

    font-size: 28px;

    margin-bottom: 20px;

}


.rsvp-card h2 {

    position: relative;

    margin: 12px 0 20px;

    color: var(--brown);

    font-size: clamp(42px, 6vw, 65px);

    line-height: 0.95;

}


.rsvp-card > p:not(.hashtag) {

    position: relative;

    max-width: 570px;

    margin: 0 auto;

    color: var(--text-light);

}


.rsvp-buttons {

    position: relative;

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 30px;

}


.button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 180px;

    padding: 14px 22px;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 0.12em;

    text-transform: uppercase;

    transition: all 0.3s ease;

}


.button-dark {

    background: var(--brown);

    color: var(--white);

}


.button-dark:hover {

    background: var(--brown-dark);

    transform: translateY(-2px);

}


.button-outline {

    border: 1px solid var(--brown);

    color: var(--brown);

}


.button-outline:hover {

    background: var(--brown);

    color: var(--white);

    transform: translateY(-2px);

}


.hashtag {

    position: relative;

    margin-top: 35px !important;

    color: var(--gold) !important;

    font-family: var(--serif);

    font-size: 20px;

}


/* =========================================================
   16. GUEST INFORMATION
   ========================================================= */

.guest-info {

    background:
        rgba(248, 241, 230, 0.30);

}


.info-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

    width: min(1050px, 100%);

    margin: 0 auto;

}


.info-card {

    padding: 35px 28px;

    border: 1px solid var(--border);

    background:
        rgba(255, 255, 255, 0.78);

    text-align: center;

}


.info-card > span {

    display: block;

    color: var(--gold);

    font-size: 24px;

    margin-bottom: 15px;

}


.info-card h3 {

    color: var(--brown);

    font-size: 26px;

}


.info-card p {

    margin-top: 12px;

    color: var(--text-light);

    font-size: 14px;

    line-height: 1.8;

}


/* =========================================================
   17. FOOTER
   ========================================================= */

.footer {

    padding: 80px 7% 55px;

    background: var(--brown-dark);

    color: var(--white);

    text-align: center;

}


.footer-symbol {

    color: var(--gold-light);

    font-size: 38px;

}


.footer-small {

    margin-top: 15px;

    color: rgba(255, 255, 255, 0.6);

    font-size: 10px;

    letter-spacing: 0.2em;

    text-transform: uppercase;

}


.footer h2 {

    margin-top: 15px;

    color: var(--white);

    font-family: var(--script);

    font-size: clamp(52px, 8vw, 80px);

    font-weight: 400;

}


.footer h2 small {

    color: var(--gold-light);

    font-family: var(--serif);

    font-size: 30px;

}


.footer-date {

    margin-top: 5px;

    color: var(--gold-light);

    font-family: var(--serif);

    font-size: 20px;

}


.footer-divider {

    margin: 28px 0;

    color: var(--gold);

}


.footer-made {

    color: rgba(255, 255, 255, 0.4);

    font-size: 10px;

    letter-spacing: 0.15em;

    text-transform: uppercase;

}


/* =========================================================
   18. MUSIC BUTTON
   ========================================================= */

.music-toggle {

    position: fixed;

    right: 22px;

    bottom: 22px;

    z-index: 500;

    width: 50px;

    height: 50px;

    border: 1px solid var(--gold);

    border-radius: 50%;

    background: var(--brown);

    color: var(--gold-light);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.18);

    transition: all 0.3s ease;

}


.music-toggle:hover {

    transform: scale(1.07);

}


.music-note {

    display: inline-block;

    font-size: 20px;

}


.music-toggle.playing .music-note {

    animation: musicPulse 1.2s infinite;

}


@keyframes musicPulse {

    0%,
    100% {

        transform:
            rotate(0deg)
            scale(1);

    }

    50% {

        transform:
            rotate(12deg)
            scale(1.15);

    }

}


/* =========================================================
   19. EVENT MODAL
   ========================================================= */

.modal {

    position: fixed;

    inset: 0;

    z-index: 2000;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background:
        rgba(25, 8, 4, 0.72);

    backdrop-filter: blur(8px);

    opacity: 0;

    visibility: hidden;

    transition: all 0.3s ease;

}


.modal.active {

    opacity: 1;

    visibility: visible;

}


.modal-box {

    position: relative;

    width: min(520px, 100%);

    max-height: 90vh;

    overflow: auto;

    padding: 55px 40px;

    background: var(--cream);

    box-shadow: var(--shadow-heavy);

    transform: translateY(20px);

    transition: transform 0.3s ease;

}


.modal.active .modal-box {

    transform: translateY(0);

}


.modal-close {

    position: absolute;

    top: 12px;

    right: 15px;

    width: 38px;

    height: 38px;

    border: 0;

    background: transparent;

    color: var(--brown);

    font-size: 30px;

    line-height: 1;

}


.modal-box h3 {

    margin: 12px 0 25px;

    color: var(--brown);

    font-size: 38px;

}


.modal-box p {

    color: var(--text-light);

}


.modal-label {

    margin-top: 22px;

    margin-bottom: 4px;

    color: var(--gold) !important;

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 0.2em;

    text-transform: uppercase;

}


/* =========================================================
   20. LIGHTBOX
   ========================================================= */

.lightbox {

    position: fixed;

    inset: 0;

    z-index: 2500;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 35px;

    background:
        rgba(20, 6, 3, 0.94);

    opacity: 0;

    visibility: hidden;

    transition: all 0.3s ease;

}


.lightbox.active {

    opacity: 1;

    visibility: visible;

}


.lightbox img {

    max-width: min(1100px, 95vw);

    max-height: 88vh;

    object-fit: contain;

    box-shadow:
        0 20px 80px rgba(0, 0, 0, 0.5);

}


.lightbox-close {

    position: absolute;

    top: 18px;

    right: 22px;

    width: 45px;

    height: 45px;

    border:
        1px solid rgba(255, 255, 255, 0.35);

    border-radius: 50%;

    background: transparent;

    color: var(--white);

    font-size: 30px;

}


/* =========================================================
   21. SCROLL REVEAL
   ========================================================= */

.reveal {

    opacity: 0;

    transform: translateY(25px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;

}


.reveal.visible {

    opacity: 1;

    transform: translateY(0);

}


/* =========================================================
   22. ACCESSIBILITY
   ========================================================= */

button:focus-visible,
a:focus-visible,
.event-card:focus-visible {

    outline: 2px solid var(--gold);

    outline-offset: 4px;

}


/* =========================================================
   23. TABLET
   ========================================================= */

@media (max-width: 900px) {

    .section {

        padding: 90px 6%;

    }


    .story-grid {

        grid-template-columns: 1fr;

        gap: 55px;

    }


    .story-image-wrap {

        max-width: 650px;

        margin: 0 auto;

        width: 100%;

    }


    .story-text {

        max-width: 650px;

        margin: 0 auto;

    }


    .gallery-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .info-grid {

        grid-template-columns: 1fr;

        max-width: 600px;

    }


    /*
       Keep exactly the same temple treatment on tablet.
       Only reduce the overlay slightly so the artwork remains
       visible on smaller screens.
    */

    #main-content {

        background-image:
            linear-gradient(
                rgba(248, 241, 230, 0.70),
                rgba(248, 241, 230, 0.70)
            ),
            url("./assets/images/temple-pitcher.png");

        background-position:
            center center;

        background-size:
            cover;

        background-attachment:
            fixed;

    }

}


/* =========================================================
   24. MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .section {

        padding: 75px 20px;

    }


    /*
       ONE CONTINUOUS MOBILE BACKGROUND

       No pseudo-element with a limited height.
       No separate temple per section.
       The same image covers the complete main page.
    */

    #main-content {

        background-image:
            linear-gradient(
                rgba(248, 241, 230, 0.67),
                rgba(248, 241, 230, 0.67)
            ),
            url("./assets/images/temple-pitcher.png");

        background-repeat: no-repeat;

        background-position:
            center center;

        background-size:
            cover;

        /*
           Fixed background gives the strongest
           "single steady backdrop" effect.
        */

        background-attachment:
            fixed;

    }


    /* -----------------------------------------------------
       OPENING SCREEN
       ----------------------------------------------------- */

    .opening-screen {

        width: 100%;

        height: 100dvh;

        min-height: 100dvh;

        max-height: 100dvh;

        padding:
            max(12px, env(safe-area-inset-top))
            max(12px, env(safe-area-inset-right))
            max(12px, env(safe-area-inset-bottom))
            max(12px, env(safe-area-inset-left));

        overflow: hidden;

    }


    .opening-screen::before {

        inset: 9px;

    }


    .opening-card {

        width: 100%;

        max-width: 520px;

        max-height:
            calc(
                100dvh
                - max(24px, env(safe-area-inset-top))
                - max(24px, env(safe-area-inset-bottom))
                - 18px
            );

        padding: 24px 16px;

        display: flex;

        flex-direction: column;

        align-items: center;

        justify-content: center;

        overflow: hidden;

    }


    .opening-top-line {

        width: 80px;

        margin: 0 auto 14px;

    }


    .opening-bottom-line {

        width: 80px;

        margin: 18px auto 0;

    }


    .ganesha-symbol {

        font-size: 38px;

        margin-bottom: 10px;

        line-height: 1;

    }


    .sanskrit-line {

        width: 100%;

        max-width: 390px;

        margin: 0 auto 10px;

        font-size: 11px;

        line-height: 1.55;

    }


    .opening-blessing {

        font-size: 8px;

        line-height: 1.3;

        letter-spacing: 0.12em;

    }


    .opening-names {

        width: 100%;

        margin: 18px 0 10px;

    }


    .opening-names h1 {

        font-size: clamp(48px, 17vw, 72px);

        line-height: 0.78;

    }


    .opening-weds {

        margin: 8px 0;

        font-size: 34px;

        line-height: 0.9;

    }


    .opening-divider {

        width: 100%;

        gap: 10px;

        margin: 14px auto;

    }


    .opening-divider span {

        width: min(55px, 18vw);

    }


    .opening-event {

        font-size: 8px;

        line-height: 1.3;

        letter-spacing: 0.22em;

    }


    .opening-tagline {

        margin-top: 6px;

        font-size: 14px;

        line-height: 1.25;

    }


    .opening-date {

        margin-top: 9px;

        font-size: 16px;

        line-height: 1.2;

    }


    .open-button {

        margin-top: 17px;

        padding: 11px 18px;

        gap: 12px;

        font-size: 9px;

        line-height: 1;

    }


    .open-button strong {

        font-size: 15px;

    }


    /* -----------------------------------------------------
       VERY SHORT PHONES
       ----------------------------------------------------- */

    @media (max-height: 700px) {

        .opening-card {

            padding: 16px 14px;

        }


        .opening-top-line {

            margin-bottom: 9px;

        }


        .ganesha-symbol {

            font-size: 32px;

            margin-bottom: 7px;

        }


        .sanskrit-line {

            font-size: 10px;

            line-height: 1.4;

            margin-bottom: 7px;

        }


        .opening-blessing {

            font-size: 7px;

        }


        .opening-names {

            margin: 13px 0 7px;

        }


        .opening-names h1 {

            font-size: clamp(43px, 15vw, 64px);

        }


        .opening-weds {

            margin: 5px 0;

            font-size: 29px;

        }


        .opening-divider {

            margin: 10px auto;

        }


        .opening-event {

            font-size: 7px;

        }


        .opening-tagline {

            margin-top: 4px;

            font-size: 13px;

        }


        .opening-date {

            margin-top: 6px;

            font-size: 15px;

        }


        .open-button {

            margin-top: 12px;

            padding: 10px 16px;

            font-size: 8px;

        }


        .opening-bottom-line {

            margin-top: 12px;

        }

    }


    /* -----------------------------------------------------
       EXTRA SHORT PHONES
       ----------------------------------------------------- */

    @media (max-height: 620px) {

        .opening-card {

            padding: 10px 12px;

        }


        .opening-top-line {

            width: 65px;

            margin-bottom: 6px;

        }


        .opening-bottom-line {

            width: 65px;

            margin-top: 8px;

        }


        .ganesha-symbol {

            font-size: 27px;

            margin-bottom: 5px;

        }


        .sanskrit-line {

            font-size: 8.5px;

            line-height: 1.3;

            margin-bottom: 5px;

        }


        .opening-blessing {

            font-size: 6.5px;

        }


        .opening-names {

            margin: 9px 0 5px;

        }


        .opening-names h1 {

            font-size: clamp(38px, 13vw, 55px);

        }


        .opening-weds {

            margin: 3px 0;

            font-size: 25px;

        }


        .opening-divider {

            gap: 7px;

            margin: 7px auto;

        }


        .opening-divider span {

            width: 38px;

        }


        .opening-divider i {

            font-size: 11px;

        }


        .opening-event {

            font-size: 6px;

            letter-spacing: 0.18em;

        }


        .opening-tagline {

            margin-top: 3px;

            font-size: 11px;

        }


        .opening-date {

            margin-top: 4px;

            font-size: 13px;

        }


        .open-button {

            margin-top: 8px;

            padding: 8px 13px;

            gap: 9px;

            font-size: 7px;

        }


        .open-button strong {

            font-size: 12px;

        }

    }


    /* -----------------------------------------------------
       MAIN WEBSITE MOBILE
       ----------------------------------------------------- */

    .hero {

        min-height: 90vh;

        padding: 100px 20px 70px;

        background:
            rgba(248, 241, 230, 0.20);

    }


    .hero-name {

        font-size: clamp(62px, 20vw, 100px);

    }


    .hero-description {

        font-size: 19px;

    }


    .hero-date {

        font-size: 21px;

    }


    /* -----------------------------------------------------
       COUPLE PHOTO
       ----------------------------------------------------- */

    .photo-intro {

        padding-top: 25px;

        padding-bottom: 75px;

        background:
            rgba(248, 241, 230, 0.22);

    }


    .section-photo-frame {

        width: min(320px, 78%);

        padding: 7px;

    }


    .section-photo-frame img {

        height: 240px;

        min-height: 0;

    }


    .photo-frame-corner {

        inset: 14px;

    }


    /* -----------------------------------------------------
       FAMILIES
       ----------------------------------------------------- */

    .families {

        background:
            rgba(255, 255, 255, 0.28);

    }


    .families-grid {

        grid-template-columns: 1fr;

    }


    .family-divider {

        margin: 0 auto;

        line-height: 1;

    }


    .family-card {

        padding: 25px 10px;

    }


    /* -----------------------------------------------------
       COUNTDOWN
       ----------------------------------------------------- */

    .countdown {

        gap: 5px;

    }


    .countdown-item {

        min-width: 55px;

    }


    .countdown-item strong {

        font-size: 35px;

    }


    .countdown-item span {

        font-size: 8px;

    }


    .countdown-separator {

        font-size: 27px;

    }


    /* -----------------------------------------------------
       EVENTS
       ----------------------------------------------------- */

    .events {

        background:
            rgba(248, 241, 230, 0.25);

    }


    .event-card {

        padding: 32px 22px;

    }


    /* -----------------------------------------------------
       STORY
       ----------------------------------------------------- */

    .story-image-wrap img {

        height: 450px;

    }


    .story-image-wrap::before {

        top: 12px;

        left: 12px;

    }


    /* -----------------------------------------------------
       GALLERY
       ----------------------------------------------------- */

    .gallery {

        background:
            rgba(248, 241, 230, 0.25);

    }


    .gallery-grid {

        grid-template-columns:
            repeat(2, 1fr);

        gap: 7px;

    }


    /* -----------------------------------------------------
       RSVP
       ----------------------------------------------------- */

    .rsvp {

        background:
            rgba(255, 255, 255, 0.28);

    }


    .rsvp-card {

        padding: 60px 22px;

    }


    .rsvp-card::before {

        inset: 9px;

    }


    .rsvp-buttons {

        flex-direction: column;

        align-items: stretch;

    }


    .button {

        width: 100%;

    }


    /* -----------------------------------------------------
       GUEST INFORMATION
       ----------------------------------------------------- */

    .guest-info {

        background:
            rgba(248, 241, 230, 0.25);

    }


    /* -----------------------------------------------------
       MODAL
       ----------------------------------------------------- */

    .modal-box {

        padding: 50px 25px;

    }


    .modal-box h3 {

        font-size: 32px;

    }


    /* -----------------------------------------------------
       LIGHTBOX
       ----------------------------------------------------- */

    .lightbox {

        padding: 15px;

    }


    /* -----------------------------------------------------
       MUSIC
       ----------------------------------------------------- */

    .music-toggle {

        right: 15px;

        bottom: 15px;

        width: 46px;

        height: 46px;

    }

}


/* =========================================================
   25. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {

        scroll-behavior: auto;

    }


    *,

    *::before,

    *::after {

        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;

    }


    .reveal {

        opacity: 1;

        transform: none;

    }

}