:root{
  --light-bg: #ece8df;
  --dark-bg: #3b1212;
  --heading-color: #3b1212;
  --main-font: "Tinos", serif;
}

*, a{
  font-family: var(--main-font);
  color: #333;
  margin: 0;
  padding: 0;
}

body{
  background-color: #785a3f;
  background-image: url(images/page-bg.jpg);
  background-blend-mode: multiply;
  backdrop-filter: blur(3px);
}
main{
  background-image: url(images/bg.jpg);
  background-color: var(--light-bg);
  background-repeat: repeat;
  max-width: 1400px;
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
}
section {
    margin: 50px auto;
    padding: 20px;
}
header {
    padding: 20px 20px 0 20px;
}
header .top {
    width: 95%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    padding: 0 30px;
}
header .mustname {
    background-image: url(images/rkm-logo.png);
    background-repeat: no-repeat;
    padding: 15px 15px 15px 120px;
    background-size: contain;
}
.mustname>h1 {
    font-weight: bold;
    color: var(--heading-color);
}
hr {
    margin: 10px auto;
    color: #ad8445;
}
h2 {
  font-size: 24px;
  font-weight: bold;
  color: var(--heading-color);
}
h3 {
    font-weight: bold;
    font-size: 22px;
    color: #5f2710;
}
p {
    font-size: 20px;
    letter-spacing: -0.4px;
    font-weight: 500;
    line-height: 30px;
    color: #000;
}
.justify p{text-align: justify;}
.social i {
    font-size: 25px;
    margin: 0 3px;
}
.social i.bi-facebook:hover {
    color: #1555b5;
}
.social i.bi-youtube:hover {
    color: #a00;
}

.pic>img {
    border-radius: 10px;
    border: 1px solid #a39580;
    max-width: 100%;
}
a.link-button {
    background-color: #5c311a;
    color: #fff;
    text-decoration: none;
    padding: 5px 25px;
    border-radius: 5px;
    font-size: 18px;
}
a.link-button:hover {
    background-color: #8d3607;
}
div#navbarNav {
    justify-content: center;
    margin: 7px auto 0 auto;
    border-top: 1px solid #a39580;
    border-bottom: 1px solid #a39580;
}
a.nav-link, .dropdown-item {
    font-size: 20px;
    font-weight: 500;
    color: #000!important;
}
.dropdown-item:focus, .dropdown-item:hover {
    background-color: var(--light-bg);
}
.dropdown-item.active, .dropdown-item:active {
    background-color: var(--dark-bg);
    color: var(--light-bg)!important;
}
.carousel-item{
  min-height: 500px;
  aspect-ratio: 2/1;
}

.frame-top {
    position: absolute;
    z-index: 1;
    top: 0;
}
.frame-bottom {
    position: absolute;
    z-index: 1;
    bottom: 0;
}
.content-area{
  margin: 30px auto;
  width: 90%;
}
.genesis .details>p{
    width:90%;
    text-align: justify; 
}
.visuddhananda{position: relative;}
.visuddhananda>img{
    mix-blend-mode: multiply;
}
.visuddhananda .info {
    position: absolute;
    width: 52%;
    top: 20%;
    right: 0;
}

.updates {
    width: 80%;
    background-color: #fff;
    margin: 50px auto 20px auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px #645745;
    position: relative;
}
.updates .daily>p {
    font-size: 17px;
    margin: 0;
}

.updates .recent .news {
    border-bottom: 1px dashed #ad8445;
    display: flex;
    padding: 8px;
    align-items: center;
    margin: 5px auto;
}
.updates .recent .news>img {
    margin: 0 auto;
    border-radius: 6px;
    width: 90%;
    max-width: 140px;
}
.updates .recent .news h5 {
    font-weight: bold;
    margin-left: 12px;
    font-size: 17px;
}
.news a {
    font-weight: normal;
    text-decoration: none;
    border: 1px solid #ddd;
    padding: 0 9px 3px;
    line-height: 16px;
    margin: 10px 0 0 0;
    display: inline-block;
}
.news a:hover {
    background-color: #fdeba6;
    color: #000;
}

.gurap {
    background-image: url(../images/gurap.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    aspect-ratio: 14/5;
    position: relative;
}
.about-gurap {
    background-color: #fff;
    width: 25%;
    min-width: 280px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 6px #a19279;
    position: absolute;
    top: 15%;
    left: 25%;
}
.bottom-area{
    display: flex;
}
.donate, .stay {
    width: 45%;
    margin: 20px auto;
    padding: 30px 20px 30px 280px;
    border-radius: 12px;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: left center;
    background-size: auto;
}
.donate>p, .stay>p {
    color: #fff;
    font-size: 17px;
    line-height: 22px;
}
.donate {
    background-color: #46090a;
    background-image: url(images/donate.jpg);
}
.donate .link-button {
    background-color: #b55a00;
}
.stay {
    background-color: #376037;
    background-image: url(images/stay.jpg);
}
.stay .link-button {
    background-color: #429d42;
}
.donate .link-button:hover, .stay .link-button:hover {
    background-color: #fff;
    color: #000;
}


footer {
    background-color: #fff;
    padding: 20px;
    text-align: center;
}
footer address {
    font-weight: bold;
    font-size: 17px;
    margin: 0 auto;
    padding: 5px 0;
    border-top: 1px solid #edd5c6;
    border-bottom: 1px solid #edd5c6;
}
footer cite{
    font-style: normal;
}
footer a{
    text-decoration: none;
}


.inside-banner {
    position: relative;
    aspect-ratio: 5 / 2;
    overflow: hidden;
}
.active-banner {
    aspect-ratio: 5 / 2;
    background-color: #cabc9d;
    background-blend-mode: multiply;
    display: flex;
    align-items: center;
    justify-content: center;
}
.active-banner>h2 {
    color: #fff;
    font-size: 48px;
    text-shadow: 0 0 12px #333;
    border-bottom: 1px solid #fff;
}


.picarea {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 90%;
    margin: 0 auto;
}
.picarea.wrap {
    flex-wrap: wrap;
}
.half-half .picbox {
    width: 48%;
}
.three-in-one .picbox {
    width: 33%;
}
.any .picbox {
    width: auto;
}
.picbox {
    padding: 8px;
    background-color: #fff;
    border: 1px solid #ddd;
    margin: 10px 5px;
}
.picbox>img {
    width: 100%;
}
.picbox>cite {
    display: block;
    text-align: center;
    margin-top: 8px;
}
.picbox.align-left {
    width: 40%;
    float: left;
    margin: 0 20px 20px 0;
    min-width: 300px;
}

.inside p{
    font-size: 20px;
    line-height: 30px;
}


.news-blocks {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: flex-start;
    flex-direction: row;
}
.news-blocks .news {
    background-color: #fff;
    padding: 14% 20px 0 20px;
    border-radius: 12px;
    width: 32%;
    background-repeat: no-repeat;
    background-size: contain;
    box-shadow: 0 0 5px #41210f5c;
}
.news-blocks .news>p {
    font-size: 17px;
    line-height: 24px;
}

ul.donation {
    font-size: 18px;
    line-height: 32px;
    color: #000;
}

/* +++++++++++++++++++++++ Gallery Styles +++++++++++++++++++++++ */

                .portfolio-img {
                    display: flex;
                    flex-wrap: wrap;
                    margin: 20px auto;
                    justify-content: center;
                }
                .portfolio-img .block>img {
                    width: 100%;
                }
                
                .portfolio-img .block {
                    width: 300px;
                    overflow: hidden;
                    margin: 0;
                    border: 1px solid #ededed;
                    position: relative;
                    cursor: pointer;
                }
                .portfolio-img .block img {
                    filter: unset;
                    background-position: top center;
                    transition-property: filter;
                    transition-duration: 0.6s;
                    transition-timing-function: ease-in;
                }
                
                .portfolio-img .block .details {
                    position: absolute;
                    width: 100%;
                    height: 100%;
                    /*background-color: #000000cf;*/
                    color: #fff;
                    display: flex;
                    align-items: center;
                    transition-property: bottom;
                    transition-duration: 0.6s;
                    transition-timing-function: ease-in;
                    bottom: -100%;
                    flex-direction: column;
                    justify-content: center;
                }
                .portfolio-img .block:hover .details {
                    bottom: 0;      
                }
                .portfolio-img .block:hover img {
                    filter: brightness(0.25);
                }
                .portfolio-img .block .details>h3 {
                    font-size: 20px;
                    text-align: center;
                    padding: 20px;
                }
                .portfolio-img .block .details>p {
                    text-align: center;
                    width: 80%;
                    line-height: 20px;
                    margin: 0 auto;
                    font-size: 14px;
                    max-height: 200px;
                }
                .portfolio-img .block .details>p>a {
                    color: fff;
                    background-color: var(--brandgreen);
                    text-decoration: none;
                    display: block;
                    width: fit-content;
                    padding: 2px 12px;
                    border-radius: 20px;
                    margin: 6px auto;
                }
                .portfolio-img .block .details>p>a:hover {
                    background-color: var(--brandblue);
                }
                .lightbox {
                  position: fixed;
                  width: 100%;
                  height: 100%;
                  top: 24%;
                  left:0;
                  display: none;
                  background: #7f8c8d;
                  perspective: 1000;
                  z-index: 2000;
                }

                .filter {
                  position: absolute;
                  width: 100%;
                  height: 100%;
                  filter: blur(20px);
                  opacity: 0.5;
                  background-position: center;
                  background-size: cover;
                }

                .lightbox img {
                  position: absolute;
                  top: 30%;
                  left: 50%;
                  width: auto;
                  transform: translate(-50%, -36%) rotateY(0deg);
                  max-height: 90vh;
                  max-width: calc(90vw - 100px);
                  transition: 0.8s cubic-bezier(0.7, 0, 0.4, 1);
                  transform-style: preserve-3d;
                }


                /*.lightbox:hover img{
                  transform: translate(-50%, -50%) rotateY(180deg);
                }*/

                [class^="arrow"] {
                  height: 200px;
                  width: 50px;
                  background: rgba(0, 0, 0, 0.4);
                  position: absolute;
                  top: 50%;
                  transform: translateY(-36%);
                  cursor: pointer;
                }

                [class^="arrow"]:after {
                  content: '';
                  position: absolute;
                  top: 50%;
                  left: 50%;
                  transform: translate(-50%, -36%) rotate(-45deg);
                  width: 15px;
                  height: 15px;
                }

                .arrowr {
                  right: 0;
                }

                .arrowr:after {
                  border-right: 1px solid white;
                  border-bottom: 1px solid white;
                }

                .arrowl {
                  left: 0;
                }

                .arrowl:after {
                  border-left: 1px solid white;
                  border-top: 1px solid white;
                }

                .close {
                  position: absolute;
                  right: 0;
                  width: 50px;
                  height: 50px;
                  background: rgba(0, 0, 0, 0.5);
                  margin: 20px;
                  cursor: pointer;
                }

                .close:after,
                .close:before {
                  content: '';
                  position: absolute;
                  top: 50%;
                  left: 50%;
                  width: 1px;
                  height: 100%;
                  background: #f9f9f9;
                }

                .close:after {
                  transform: translate(-50%, -50%) rotate(-45deg);
                }

                .close:before {
                  transform: translate(-50%, -50%) rotate(45deg);
                }

                .title {
                  font-size: 20px;
                  color: #000;
                  z-index: 1000;
                  position: absolute;
                  bottom: 6%;
                  left: 50%;
                  transform: translateX(-50%);
                  margin: 20px 0;
                }

/* +++++++++++++++++++++++ Gallery Styles +++++++++++++++++++++++ */




/*-------------- For Mobile View ---------------*/
@media only screen and (max-width: 768px) {


    header .top {
        width: 95%;
        margin: 0 auto;
        padding: 0;
        flex-direction: column;
        position: relative;
    }
    header .mustname {
        padding: 120px 10px 10px 10px;
        background-size: 100px;
    }
    .social {
        position: absolute;
        right: 0;
    }

    .carousel-item, .active-banner, .inside-banner {
        min-height: unset; 
        aspect-ratio: 8 / 6.8;
        background-size: 170%;
        background-position: center;
    }
    .genesis .details{
        margin: 10px auto;
        text-align: center; 
    }
    .genesis .details>p{
        width:auto;
        text-align: center; 
    }
    .visuddhananda .info {
        position: unset;
        width: auto;
        text-align: center;
    }

    .updates {
        width: 100%;
        padding: 15px;
    }

    .updates .recent .news {
        flex-direction: column;
    }

    .about-gurap {
        width: 90%;
        margin: 0 auto;
        position: unset; 
        top: unset; 
        left: unset; 
    }

    .bottom-area {
        flex-direction: column;
    }
    .donate, .stay {
        width: auto;
        margin: 10px auto;
        padding: 20px;
        background-blend-mode: overlay;
    }

    .picarea {
        flex-direction: column;
    }
    .three-in-one .picbox, .half-half .picbox {
        width: auto; 
    }

}


@media only screen and (min-width: 768px) {
    .about-gurap>img{display: none;}
}