* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.page3 {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}


.gallery-section {
    width: 50%;
    height: 100vh;

    background-image: url("bg7.jpeg");
    background-size: cover;
    background-position: center;

    padding: 15px 25px;

    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}


.gallery-section h1 {
    font-family: 'Great Vibes', cursive;
    color: #873d4c;

    font-size: clamp(32px, 4vw, 55px);
    font-weight: normal;
    text-align: center;

    line-height: 1.1;
    margin-bottom: 15px;
}


.photo-grid {
    width: 100%;
    flex: 1;
    min-height: 0;

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));

    gap: 12px;
}


.photo {
    background: white;
    padding: 5px;

    border: 2px solid #a46a6c;

    box-shadow: 0 3px 8px rgba(0,0,0,0.2);

    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

.photo img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;
}


.reasons-section {
    width: 50%;
    height: 100vh;

    background-image: url("bg3.jpeg");
    background-size: cover;
    background-position: center;

    padding: 20px 35px;

    color: white;
    overflow: hidden;
}


/* HEADING */

.reasons-section h1 {
    font-family: 'Great Vibes', cursive;

    font-size: clamp(48px, 5vw, 72px);
    font-weight: normal;

    text-align: center;
    margin-bottom: 25px;

    color: #fff0e9;
}


.love-text {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 17px;
}

.love-text p {
    font-family: 'Cormorant Garamond', serif;

    font-size: clamp(25px, 2.7vw, 38px);
    font-weight: 700;

    letter-spacing: 3px;
    color: #fff0e9;

    text-align: center;
    white-space: nowrap;
}


@media (max-height: 650px) {

    .gallery-section {
        padding: 10px 18px;
    }

    .gallery-section h1 {
        font-size: 34px;
        margin-bottom: 8px;
    }

    .photo-grid {
        gap: 8px;
    }

    .reasons-section {
        padding: 12px 25px;
    }

    .reasons-section h1 {
        font-size: 38px;
        margin-bottom: 8px;
    }

    .reasons-section li {
        font-size: 17px;
        line-height: 1.4;
    }
}
.next-button {
    position: fixed !important;
    right: 25px !important;
    bottom: 20px !important;

    font-family: 'Great Vibes', cursive;
    font-size: 32px;

    color: white;
    text-decoration: none;

    text-shadow: 2px 2px 5px #650b20;

    z-index: 9999;
    transition: 0.3s ease;
}

.next-button:hover {
    color: #ffb6c9;
    transform: scale(1.1);
}