﻿.prewedding-wrapper {
    padding: 0;
    max-width: 100%;
    margin: 0;
    text-align: center;
    overflow-y: scroll;
    height: 100vh;
    scroll-snap-type: y mandatory;
}

.gallery-title {
    font-size: 2.6rem;
    margin: 2rem 0;
    color: #b44e6d;
}

.pw-grid {
    display: flex;
    flex-direction: column;
}

.pw-row {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr; /* Landscape wider */
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    position: relative;
    transition: opacity 1s ease;
    opacity: 0;
}

    .pw-row img {
        width: 100%;
        height: auto; /* preserve natural height */
        object-fit: contain; /* show full image */
        background: #000; /* black bars where needed */
    }

/* Arrows (desktop only) */
.pw-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: white;
    padding: 0.6rem;
    cursor: pointer;
    z-index: 1500;
    opacity: 0.8;
}

@media(max - width:768px) {
    .pw-nav {
        display: none;
    }
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* Indicators */
.pw-indicators {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1500;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    cursor: pointer;
}

    .dot.active {
        background: #b44e6d;
    }

/* Progress bar */
.pw-progress {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    height: 4px;
    background: rgba(255,255,255,0.4);
    border-radius: 2px;
    overflow: hidden;
    z-index: 1600;
}

.pw-progress-fill {
    width: 0%;
    height: 100%;
    background: white;
    transition: width 5s linear;
}

/* Autoplay button */
.pw-toggle-autoplay {
    position: fixed;
    bottom: 70px;
    right: 20px;
    background: #000;
    color: white;
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    opacity: 0.7;
    cursor: pointer;
    z-index: 1600;
}

/* Mobile full height */
@media(max - width:768px) {
    .pw-row {
        grid-template-columns: 1fr;
    }
}
/* Dynamic proportion classes */
.pw-row.landscape-left {
    grid-template-columns: 1.3fr 0.7fr;
}

.pw-row.portrait-left {
    grid-template-columns: 0.7fr 1.3fr;
}

/* Blur background */
.pw-row {
    position: relative;
}

    .pw-row::before {
        content: "";
        position: absolute;
        inset: 0;
        background-size: cover;
        background-position: center;
        filter: blur(30px) brightness(0.6);
        z-index: 0;
    }

    .pw-row img {
        position: relative;
        z-index: 1;
        width: auto;
        height: auto;
        max-width: 90vw;
        max-height: 85vh;
        object-fit: contain;
        margin: auto;
        border-radius: 16px;
        animation: zoomFade 1s ease;
    }

    /* Vertical gradient overlay */
    .pw-row::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.2));
        z-index: 0;
    }

@keyframes zoomFade {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}
/* Fullscreen intro title */
.pw-fullscreen-title {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    color: white;
    z-index: 2000;
    transition: opacity 1s ease;
}

    .pw-fullscreen-title.hide {
        opacity: 0;
        pointer-events: none;
    }

    .pw-fullscreen-title h1 {
        font-size: 3rem;
    }

/* Mini header */
.pw-miniheader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    color: white;
    z-index: 1500;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

    .pw-miniheader.show {
        opacity: 1;
        transform: translateY(0);
    }

.pw-back {
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
}

.pw-mini-title {
    font-size: 1.1rem;
    font-weight: 300;
}

/* Lazy loading */
.pw-row img {
    loading: lazy;
}