.link, .link a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9;

    opacity: 0;
}
.ry-btn {
	text-transform:uppercase 
}
input[type="submit"] {
	margin-inline:auto
}

#ry-pg-body.memorial-pg {
	padding-top:0;
	background:#f0e8e9
}

.memorial-pg  .banner-wrapper {
	height:600px;
	overflow:hidden;
	min-height:fit-content;
}

.memorial-pg  .banner-wrapper .banner-title {
	position:absolute;
	top:50%;
	left:50%;
	transform:translate(-50%, -50%)
}
.memorial-pg .banner-wrapper img {
	height:100%;
	widows:100%;
	object-fit:cover;
	object-position:bottom !important;

}
.memorial-pg  .banner-wrapper .banner-title .logo-wrapper img {
	max-width:116px;
	margin-inline:auto;

}

#ry-pg-body.memorial-pg  .banner-wrapper .banner-title .ry-container{
	max-width:640px;
	width:90%
}

#ry-pg-body.memorial-pg  .banner-wrapper .banner-title .ry-container * {
	text-align:center;
	color:#fff;
	line-height:1.4
}

#ry-pg-body.memorial-pg  .banner-wrapper .banner-title .ry-container .ry-btn {
	margin-inline:auto;
	margin-block:30px
}
#ry-pg-body.memorial-pg .banner-wrapper .banner-title .ry-container h1 {
	font-size: clamp(2.8125rem, 2.462rem + 1.4379vw, 4.1875rem);
	line-height:1.1
}
button.ry-btn.ry-btn-primary.load-toggle {
    margin-top:40px ;
    margin-inline:auto;
    background:#652770 !important
}

.load-more-wrapper {
    display:flex;
    width:100%;
    
}
@media(max-width:1080px) {
	.memorial-pg .banner-wrapper {
		margin-top:60px
	}
}

/* --- SEARCH SECTION ---*/
.memorial-pg .ry-content {
    padding-top:80px
}
#ry-pg-body.memorial-pg .ry-container {
	max-width:1600px;
	width:90%
}

.search-wrapper > div{
    display:flex;
    gap:20px;
    margin-bottom:40px;
    width:100%;
    justify-content:center
}

.search-box{
    position:relative;
    width:100%;
    max-width:350px;
}

.search-input{
    width:100%;
    height:56px;
    border:1px solid #d9cfcf;
    border-radius:50px;
    padding:0 70px 0 24px;
    background:#fff;
    font-size:15px;
    color:#555;
    outline:none;
    font-size:16px 
}

.search-input::placeholder{
color:#919191 !important;
}

.search-btn{
    position:absolute;
    right:6px;
    top:50%;
    transform:translateY(-50%);
    width:44px;
    height:44px;
    border:none;
    border-radius:50%;
    background:#6f1f2a;
    color:#fff;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:16px;
}


@media(max-width:767px) {
    .search-wrapper > div{
        flex-direction:column;
        align-items:center;
        gap:10PX
    }
}

.memorial-wrapper{
    margin-top:60px;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:3.5vw;
    width:100%;
}

.memorial-wrapper .ry-each{
    background:#fff;
    overflow:hidden;
    padding:40px 30px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    height:100%;
    width:100%;
}

.memorial-wrapper .ry-each:nth-child(3n-1){
    margin-top:-50px;
}
.memorial-wrapper .top{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    margin-bottom:20px;
    width:100%;
}

.memorial-wrapper .top img{
    width:80px;
    height:80px;
    object-fit:cover;
}

.memorial-wrapper .top .name{
    display:flex;
    align-items:center;
    gap:15px;
    width:fit-content;
}

.memorial-wrapper .top .name p{
    color:#6f1f2a;
    font-weight:400 !important;
    font-size:clamp(1.5625rem,1.4828rem + 0.3268vw,1.875rem) !important;
    white-space:nowrap;
}

.memorial-wrapper .date{
    width:fit-content;
}

.memorial-wrapper .date p{
    font-size:clamp(1.25rem,1.1863rem + 0.2614vw,1.5rem);
    color:#652770;
    font-family:"Slabo 27px";
    text-align:end !important;
    line-height:1.1;
}

.memorial-wrapper .message{
    padding-inline:30px;
    width:100%;
}

.memorial-wrapper .message p{
    margin:0;
    text-align:center !important;
}

.memorial-wrapper .bottom{
    padding:20px 0 0;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    flex-wrap:wrap;
}

.memorial-wrapper .bottom *{
    font-size:20px;
    line-height:35px;
    color:#7a313c;
    font-weight:bold;
    text-align:center !important;
    width:fit-content;
}

@media (max-width:1280px){

    .memorial-wrapper{
        grid-template-columns:repeat(2,1fr);
    }

}

@media (max-width:991px){

    .memorial-wrapper .message{
        padding-inline:0;
    }

    .memorial-wrapper .top{
        flex-direction:column;
    }

    .memorial-wrapper .top .name{
        flex-direction:column;
        gap:5px;
    }

    .memorial-wrapper .ry-each{
        padding-inline:10px;
    }

}

@media (max-width:767px){

    .memorial-wrapper{
        grid-template-columns:1fr;
        margin-top:0;
    }


    .memorial-wrapper .ry-each{
        padding-inline:30px;
    }

    .memorial-pg .ry-content{
        padding-top:40px;
    }

}

@media (max-width:480px){

    .memorial-wrapper .ry-each{
        padding-inline:20px;
    }

}

/*--- POP UP ---*/

.memorial-popup   .modal-dialog {
max-width: 1280px;
width:90%;
left:50%;
	top:50%;
transform:translate(-50%, -50%) !important;
-webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
background:#fff;
border-radius:20px;
overflow:hidden;
height:90%;
	overflow-x:hidden;
	overflow-y:auto
}

.memorial-popup .modal-content {
display:flex;
height:fit-content;
-webkit-box-shadow: unset;
box-shadow: unset;
border-radius:0;
justify-content:end;
border:unset;
}

.memorial-popup .modal-header {
padding: 15px 30px 15px 0!important;
border-bottom: none;
min-height:unset;
padding:30px 

}
.memorial-popup .modal-header  * {
font-size:40px;
color:#6f1f2a;
opacity:1
}

.memorial-wrapper .memorial-popup .image-wrapper {
display:flex;
gap:20px;
margin-block:20px
}
.memorial-wrapper .memorial-popup .top > div:first-child p {
font-size:40px;
color: #6f1f2a;
font-weight: 600 !important;
}

.memorial-wrapper .memorial-popup .top > div:last-child p {
font-size: clamp(1.5625rem, 1.3873rem + 0.719vw, 2.25rem);
color: #652770;
font-weight: 400;
text-align: center;
}

#ry-pg-body.memorial-pg  .memorial-popup .ry-container {
max-width:960px;
width:90%;
padding-bottom:4vw;
display:flex;
flex-direction:column;
 overflow-x:hidden;
 overflow-y:auto
}

#ry-pg-body.memorial-pg  .memorial-popup .mid p {
text-align:center
}

.memorial-wrapper .memorial-popup .bottom * {
font-size: 30px;

}
.modal {
	overflow:hidden;
	height:100VH
}
@media (max-width: 991px) {
	 .memorial-wrapper .memorial-popup .top {
        flex-direction: row;
    }
}
@media (max-width: 500px) {
    .memorial-wrapper .memorial-popup .top {
        flex-direction: column;
    }
}
@media (max-width: 480px) {
    .modal {
        margin-block:0px;
    }
 .memorial-wrapper .memorial-popup .image-wrapper {
    gap: 10px;
    margin-block: 10px;
}
 #ry-pg-body.memorial-pg .memorial-popup .ry-container {
  padding-bottom:30px
 }
 .memorial-popup .modal-dialog {
  left:51%
 }
	.memorial-popup   .modal-dialog {
		height:95%
	}

}

/*--- FORM ---*/

#create-memorial-form .modal-dialog{
    max-width:1080px;
    width:95%;
	margin-inline:auto
}

#create-memorial-form .modal-dialog .title {
    margin-bottom:20px
}
#create-memorial-form .modal-dialog .title img{
max-width:110PX;
    margin-inline:auto
}

#create-memorial-form .modal-body{
     padding-block:50px
}

#create-memorial-form .modal-body .input-group {
    display:flex;
    gap:20px
}

#create-memorial-form .modal-body form {
    max-width:900px;
    width:100%;
    margin-inline:auto
}
#create-memorial-form .modal-body .input-group input,
#create-memorial-form  .ry-form textarea,
#create-memorial-form  .ry-form input[type="text"]{
    background-color: #ffffff;
border: 1px solid #bfbfbf !important;

}

#create-memorial-form  .ry-form input[type="file"] {
	height:60PX;
	margin:0
}

#create-memorial-form .modal-body .input-group input::placeholder,
#create-memorial-form  .ry-form textarea::placeholder,
#create-memorial-form  .ry-form input[type="text"]::placeholder{
    color: #666666 !important;
}
#create-memorial-form  .images-input {
	margin-block:12px
}

#create-memorial-form  .images-input .ry-btn {
background-color: #652770 !important;
    padding-inline:40px;
    margin-top:5px
}

#create-memorial-form.modal {
        overflow: auto;
        height: 100%;
}
#create-memorial-form .modal-header {
padding: 15px 30px 15px 0!important;
border-bottom: none;
min-height:unset;
padding:30px !important

}
#create-memorial-form .modal-header  button.close {
font-size:40px !important;
color:#6f1f2a !important;
opacity:1
}
#create-memorial-form .name-display {
    display:flex;
    gap:10px;
    justify-content:space-between;
    margin-block:10px
}

#create-memorial-form .name-display > div {
    width:fit-content
}
#create-memorial-form .name-display > div p,
#create-memorial-form   .images-input p {
    color:#000
}

#create-memorial-form   .images-input p span {
color:#333
}
#create-memorial-form .name-display input[type="radio"] {
    width: 20px;
    height: 20px;
    background-color: #ffffff;
    border: 1px solid #bfbfbf;
    border-radius:unset;
}

#create-memorial-form  .ry-form label {
    font-weight:400 !important
}

@media(max-width:767px) {
    #create-memorial-form .modal-body .input-group,
    #create-memorial-form .name-display{
    display:flex;
        flex-direction:column;
    gap:0px;
		align-items:center
}
}