/* Obit Section */
body {
    background-color: #eaf7ff;
    margin:0;
}

.wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.first-column {
    width: 35vw;
}

.second-column {
    width: 60vw;
}

.image-section img {
    width: 100%;
    height: auto;
    border-bottom-right-radius: 100px;
    border-right: 2px solid #471E3D;
    border-bottom: 2px solid #471E3D;
}

.image-section-1 img {
    width: 100%;
    height: auto;
    border-bottom-left-radius: 100px;
    border-top-left-radius: 100px;
    border-left: 2px solid #471E3D;
    border-bottom: 2px solid #471E3D;
    border-top: 2px solid #471E3D;
}

.obit-section {
    margin-right: 2vw;
    margin-top: 2vw;
    text-align: left;
}

.obit-section-1 {
    margin-left: 2vw;
    margin-top: 2vw;
    text-align: left;
}

.scrollable {
    max-height: 40vw;
    overflow-x: hidden;
    overflow-y: auto;
    text-align: justify;
    border-bottom: 1px solid #d9d9d9;
    padding-bottom: 10px;
    border-radius: 5px;
    margin-top: 5px;
}

.scrollable p:first-child {
    margin-top: 10px;
}

.date-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 10vw;
}

.date-1 {
    padding-left: 10px;
}

h1 {
    font-size: 4rem;
    line-height: 4.5rem;
    margin: 0;
    text-align: left;
    font-family: 'Libre Baskerville', serif;
    font-weight: 500;
    color: black;
}

h2 {
    font-family: 'Libre Baskerville', serif;
    font-size: 2.4rem;
    line-height: 3rem;
    padding-bottom: .6rem;
    color: #471E3D;
    font-weight: 400;
    margin-bottom: 0;
}

h3 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1rem;
    line-height: 1rem;
    color: #878787;
}

p {
    font-size: 20px;
    margin: 16px 0;
    line-height: 26px;
}

.dasa, .papa {
    margin-bottom: 50px;
}

/* Carousel Section */
.image-carousel-section {
    width: 100vw;
    margin-bottom: 5vw;
}

.carousel-wrapper {
    overflow: hidden;
    width: 90%;
    margin: auto;
}

.carousel-wrapper * {
    box-sizing: border-box;
}

.carousel {
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.carousel__photo {
    opacity: 0;
    position: absolute;
    display: block;
    top: 0;
    max-height: 100vh;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem 4rem;
    z-index: 100;
    transition: transform .5s, opacity .5s, z-index .5s;
}

.carousel__photo.initial,
.carousel__photo.active {
    opacity: 1;
    position: relative;
    z-index: 900;
}

.carousel__photo.prev,
.carousel__photo.next {
    z-index: 800;
}

.carousel__photo.prev {
    transform: translateX(-100%);
}

.carousel__photo.next {
    transform: translateX(100%);
}

.carousel__button--prev,
.carousel__button--next {
    position: absolute;
    top: 50%;
    width: 3rem;
    height: 3rem;
    background-color: #FFF;
    transform: translateY(-50%);
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001;
    border: 1px solid black;
}

.carousel__button--prev {
    left: 0;
}

.carousel__button--next {
    right: 0;
}

.carousel__button--prev::after,
.carousel__button--next::after {
    content: " ";
    position: absolute;
    width: 10px;
    height: 10px;
    top: 50%;
    left: 54%;
    border-right: 2px solid black;
    border-bottom: 2px solid black;
    transform: translate(-50%, -50%) rotate(135deg);
}

.carousel__button--next::after {
    left: 47%;
    transform: translate(-50%, -50%) rotate(-45deg);
}

@media (max-width:1024px) {
    .wrapper {
        flex-direction: column;
    }

    .dasa {
        flex-direction: column-reverse;
    }

    .first-column {
        width: 100vw;
    }

    .second-column {
        width: 100vw;
    }

    .image-section img {
        width: 100%;
        height: auto;
        border-bottom-right-radius: 100px;
        border-right: 2px solid #471E3D;
        border-bottom: 2px solid #471E3D;
    }

    .obit-section {
        margin-left: 5vw;
        margin-right: 5vw;
        margin-top: 2vw;
        text-align: left;
    }

    .obit-section-1 {
        margin-left: 5vw;
        margin-right: 5vw;
        margin-top: 2vw;
        text-align: left;
    }

    .image-carousel-section {
        margin-top: 10vw;
    }

    h1 {
        font-size: 3rem;
        line-height: 3.8rem;
        margin-top: 5vw;
        text-align: center;
    }

    h2 {
        font-size: 2rem;
        line-height: 2.4rem;
        padding-bottom: .3rem;
    }

    h3 {
        font-size: .85rem;
        line-height: .85rem;
    }
    
    .scrollable {
        max-height: fit-content;
    }
}

@media (max-width:1024px) {
    h2 {
        font-size: 1.5rem;
    }
    .image-carousel-section {
        margin-bottom: 30vw;
    }
    .image-section img {
        border-bottom-right-radius: 50px;
    }
}