/*** Spinner Start ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .8s ease-out, visibility 0s linear .0s;
    visibility: visible;
    opacity: 1;
}
/*** Spinner End ***/

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
    z-index: 99;
}

/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn-square {
    width: 32px;
    height: 32px;
}

.btn-sm-square {
    width: 34px;
    height: 34px;
}

.btn-md-square {
    width: 44px;
    height: 44px;
}

.btn-lg-square {
    width: 56px;
    height: 56px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn-primary-outline-0 {
    color: var(--bs-white) !important;
    border: 1px solid var(--bs-primary);
}

.btn-light-outline-0 {
    color: var(--bs-primary) !important;
    border: 1px solid var(--bs-light);
}

.btn-primary-outline-0:hover {
    background: var(--bs-secondary) !important;
    color: var(--bs-white) !important;
    border: 1px solid var(--bs-primary);
}

.btn-light-outline-0:hover {
    background: var(--bs-primary) !important;
    color: var(--bs-white) !important;
    border: 1px solid var(--bs-secondary);
}

.img-border {
    border-color: var(--bs-secondary);
    border-style: double;
}

.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
    font-family: 'Great Vibes', cursive;
    font-weight: 700;
}

/*** Navbar Start ***/
.sticky-top {
    transition: 0.5s;
    background: var(--bs-white);
}

.navbar .navbar-nav .nav-link {
    padding: 10px 15px;
    font-family: 'Petit Formal Script', cursive;
    font-weight: 600;
    font-size: 16px;
    transition: .5s;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active,
.sticky-top.bg-white .navbar .navbar-nav .nav-link:hover,
.sticky-top.bg-white .navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary);
}

@media (min-width: 1200px) {
    .navbar .navbar-collapse .border-top {
        border-top: none !important;
    }
}
/*** Navbar End ***/

/*** Carousel Start ***/
.carousel-item {
    position: relative;
    min-height: 100vh;
}

.carousel-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.75);
    transition: filter 0.5s ease;
    border-radius: 0 0 30% 30% / 30% 30% 0 0;
}

.carousel-item:hover img {
    filter: brightness(1);
}

.carousel-item .carousel-caption {
    width: 90% !important;
    max-width: none !important;
    right: 50% !important;
    top: auto !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translate(-50%, 0) !important;
    text-align: center !important;
    background: rgba(0,0,0,0.35) !important;
    padding: 1.5rem !important;
    border-radius: 15px !important;
}
.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.carousel-caption h4 {
    font-weight: 600;
    letter-spacing: 0.2em;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Mobile styles for caption */
@media (max-width: 768px) {
    .carousel-item .carousel-caption {
        width: 90%;
        max-width: none;
        right: 50%;
        top: auto;
        bottom: 20px;
        left: 50%;
        transform: translate(-50%, 0);
        text-align: center;
        background: rgba(0, 0, 0, 0.35);
        padding: 1.5rem;
        border-radius: 15px;
    }

    .carousel-caption h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .carousel-caption h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
}

/* Transparent & repositioned on mobile */
@media (max-width: 768px) {
    .carousel-caption {
        background: transparent !important;
        bottom: 10% !important;
        right: 50% !important;
        left: auto !important;
        transform: translateX(50%);
        padding: 1rem !important;
        border-radius: 15px !important;
        max-width: 90% !important;
        text-align: center !important;
    }

    .carousel-caption h1 {
        font-size: 2rem !important;
    }

    .carousel-caption h4 {
        font-size: 1rem !important;
    }
}

/*** Couple Info Image Start ***/
#couple-info img.img-border {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 50% / 60%;
    box-shadow: 0 0 15px rgba(246, 122, 140, 0.46);
    max-height: 350px;
    margin: 0 auto;
    display: block;
    transition: transform 0.3s ease;
}

#couple-info img.img-border:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    #couple-info img.img-border {
        max-height: 250px;
        border-radius: 40% / 50%;
    }
}
/*** Couple Info Image End ***/

/*** Wedding Story Start ***/
.story .story-timeline,
.story .story-timeline .row {
    position: relative;
}

.story .story-timeline::before,
.story .story-timeline::after {
    position: absolute;
    content: "";
    width: 15px;
    height: 15px;
    background: var(--bs-secondary);
    border-radius: 10px;
    left: 50%;
    top: -7px;
    transform: translateX(-50%);
}

.story .story-timeline::after {
    top: auto;
    bottom: -7px;
}

.story .story-timeline .row::after {
    position: absolute;
    content: "\f004";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 30px;
    color: var(--bs-secondary);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
    .story .story-timeline::before,
    .story .story-timeline::after,
    .story .story-timeline .row::after {
        display: none;
    }
}

.story .story-timeline .row {
    box-shadow: 0 12px 50px rgba(246, 122, 140, 0.2);
    border-radius: 20px;
    overflow: hidden;
}

.story .story-timeline .row .bg-secondary {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-secondary));
    color: #fff;
    padding: 2rem 3rem;
}
/*** Wedding Story End ***/

/*** Gallery Start ***/
.gallery .gallery-img {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(246, 122, 140, 0.2);
    transition: all 0.3s ease;
    background: white;
}

.gallery .gallery-img:hover {
    box-shadow: 0 20px 40px rgba(246, 122, 140, 0.4);
    transform: translateY(-10px);
}

.gallery .gallery-img img {
    transition: 0.5s;
}

.gallery .gallery-img:hover img {
    transform: scale(1.1);
}

.gallery .gallery-item {
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 20px;
    overflow: hidden;
}

.gallery .gallery-item .gallery-overlay {
    height: 100px;
    overflow: hidden;
    background: linear-gradient(180deg, transparent, rgba(246, 122, 140, 0.3));
    backdrop-filter: blur(4px);
    padding: 1rem;
}

.gallery .gallery-img .search-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: 0.5s;
    opacity: 
		
		
.wedding-timeline {
    background: #4b2e5b; /* deep purple, match your color scheme */
}

.timeline {
    position: relative;
    padding-left: 50px;
    padding-right: 50px;
}

.timeline-line {
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #f895b4, #c55175);
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    border-radius: 2px;
    z-index: 1;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: flex-start;
    z-index: 2;
}

.timeline-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f895b4, #c55175);
    box-shadow: 0 0 10px rgba(197, 81, 117, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.timeline-content {
    background: #fff;
    padding: 1.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(246, 122, 140, 0.25);
    flex-grow: 1;
}

.timeline-content h3 {
    font-family: 'Playfair Display', serif;
}

.timeline-item:hover .timeline-icon {
    background: linear-gradient(135deg, #ca5387, #9c0760);
    box-shadow: 0 0 20px rgba(156, 7, 96, 0.8);
    cursor: default;
}

/* Responsive (mobile) */
@media (max-width: 768px) {
    .timeline {
        padding-left: 15px;
        padding-right: 15px;
        padding-top: 2rem;
    }
    .timeline-line {
        left: 20px;
        transform: none;
        height: 100%;
    }
    .timeline-item {
        flex-direction: row;
        margin-bottom: 2rem;
    }
    .timeline-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .timeline-content {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }
}