*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body{
    background-color: rgb(253, 246, 234);
    overflow-x: hidden;
    font-size: 1.6rem;
    scroll-behavior: smooth;
}


:root{
    --red: rgb(221, 0, 0);
    font-size: 62.5%;
}

.menu_button{
    display: none;
    position: fixed;
    right: 7vw;
    font-size: 2rem;
    font-weight: bolder;
}

header{
    background-color: white;
    border-bottom: 5px var(--red) solid;    
    display: flex;
    align-items: center;
    position: fixed;
    width: 100vw;
    z-index: 7777777777777;
    top: 0;
    transition: top 1s;
}

.coat_of_arms{
    width: 7%;
    margin: 5px 0px 5px 10px;
}

.coat_of_arms img{
    width: 100%;
}

.the_roman_catholic_diocese_of_daet{
    font-size: 130%;
}
.the_roman_catholic_diocese_of_daet h2{
    color: var(--red);
}

nav{
    position: fixed;
    right: 0;
}
nav ul{
    padding: 20px;
    display: flex;
    list-style: none;
    align-items: center;
    gap: 5px;
    font-size: 2rem;
}

nav ul li{
    margin: 20px;
    transition: ease .3s;
    padding: 0 5px;
}

nav ul li a{
    text-decoration: none;
    color: black;
}

nav ul li:hover{
    border-bottom: var(--red) solid 3px;
    cursor: pointer;
    transform: scale(1.1);
    font-weight: bold;
}

.about_subnav{
    position: absolute;
    top: -100vw; 
    right: 23.5rem;
    transition: ease .3s;
}

.about_subnav ul{
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 110%;
}

.about_subnav ul li{
    margin: 0;
    background-color: white;
    width: 100%;
    padding: 15px;
    font-size: 1.5rem;
    border: rgb(177, 177, 177) solid 2px;
}

.about_subnav ul li:hover{
    background-color: var(--red);
    border: white solid 2px;
    transform: scale(1);
}

.about_subnav ul li:hover a{
    color: white;
}

main{
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 15rem 10vw 0vw 10vw;
    font-size: 2rem;
}

main p{
    text-indent: 25px;
    text-align: justify;
}

footer{
    margin-top: 5vw;
    background-color: #e2e2e2;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px;
}

footer .coat_of_arms_footer{
    width: 10vw;
}

footer .coat_of_arms_footer img{
    width: 100%;
}

footer .diocese_of_daet_contact_address{
    width: min-content;
}
.diocese_of_daet_contact_address h3{
    font-size: 1.8rem;
    font-weight: lighter;
}

.diocese_of_daet_contact_address h2{
    font-size: 2.87rem;
    width: max-content;
}

.connect_with_us{
    width: 20vw;
    font-size: 1.7rem;
}

.coscamm{
    width: 20vw;
}

.coscamm img{
    width: 100%;
}

.connect_soccom{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* HOME PAGE */
.red_title{
    color: var(--red);
    font-size: 4rem;
    font-family: 'Times New Roman', Times, serif;
    margin-left: -3%;
    margin-bottom: 2vh;
    margin-top: 5vh;
}

/* Slideshow container */
.image_slider {
    width: 100vw;
    max-height: 41vw;
    position: absolute;
    top: 7vw;
    overflow: hidden;
}

/* Hide the images by default */
.mySlides {
    display: none;
}

.mySlides img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: .7s;
}

@keyframes fade {
    from {opacity: .5}
    to {opacity: 1}
}

.index_content{
    margin-top: 55vw;
}

.the_bishop{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.bishop_image{
    width: 35%;
    overflow: hidden;
    border: 5px solid white;
    box-shadow: 10px 15px 5px rgb(216, 216, 216);
}

.bishop_name_description{
    width: 75%;
}

.bishop_name_description h2{
    font-size: 3rem;
    margin-bottom: 10px;
}

.bishop_image img{
    width: 100%;
}

.the_diocese{
    display: flex;
    gap: 30px;
    align-items: center;
}

.cathedral_image{
    width: 40%;
    overflow: hidden;
    border: 5px solid white;
    box-shadow: 10px 15px 5px rgb(216, 216, 216);
}

.cathedral_image img{
    width: 120%;
    height: 100%;
    margin-left: -10%;
}

.the_diocese p{
    width: 60%;
}

/* SPECIAL MAP */
.special_map_holder{
    width: 100%;
    height: 40vw;
    padding: 20px;
}

.special_map{
    border: solid 7px white;
    box-shadow: 5px 5px 5px rgb(177, 177, 177);
    border-radius: 5px;
}

.special_map_popup{
    width: 100%;
}

.special_map_popup_image_holder{
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.special_map_popup_image_holder img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.special_map_popup p{
    width: 100%;
    text-align: center;
    text-indent: 0;
}

.special_map_popup h2{
    font-size: 110%;
    text-align: center;
}

.special_map_popup p a{
    text-decoration: none;
    color: blue;
}

/* PARISHES - INDIVIDUAL*/
.church_stuff{
    display: grid;
    grid-template-columns: 50% 50%;
    column-gap: 20px;
}

.church_images{
    width: 100%;
    padding: 15px;
    display: flex;
    justify-content: center;
    flex-direction: column;  
    gap: 15px;
}

.church_images_row{
    display: grid;
    grid-template-columns: 50% 50%;
    column-gap: 15px;
}

.church_image_holder{
    width: 100%;
    aspect-ratio: 3/2;
    border: rgb(255, 255, 255) solid 3px;
    overflow: hidden;
    box-shadow: 5px 5px 5px rgb(177, 177, 177);
} 

.church_image_holder img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.church_facebook{
    margin: 5rem 0;
}

.church_facebook a{
    padding:10px 20px; 
    background:#1877f2; 
    color:white; 
    text-decoration:none; 
    border-radius:5px;
}

.stand_alone{
    width: 50%;
    margin-left: 25%;
}

/* The Fullscreen Overlay Background */
#lightbox-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 77777; /* Sit on top of everything */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8); /* Dark background */
    text-align: center;
    align-items: center;
    justify-content: center;
}

/* The Image inside the Lightbox */
#lightbox-img {
    max-width: 88%;
    max-height: 80%;
    border: 3px solid white;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

/* Close Button */
#lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* This class will be toggled by JavaScript */
.no-scroll {
    overflow: hidden;
}

/* Pointer cursor for clickable images */
.clickable-img {
    cursor: zoom-in;
    transition: 0.3s;
}

.clickable-img:hover {
    opacity: 0.8;
}

/* THE BISHOP */
.bishops{
    border: rgb(177, 177, 177) solid 1px;
}

.bishop_info{
    width: 100%;
}

.bishop_portrait_image_holder{
    padding: 10px;
    width: 100%;
    aspect-ratio: 3/4;
}

.bishop_portrait_image_holder img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.bishop_header{
    display: grid;
    grid-template-columns: 5% 15% 40% 25% 15%;
    border-collapse: collapse;
}

.bishop_table_header .bishop_header > *{
    background-color: #d6d6d6;
}

.bishop_header > *{
    background-color: #e2e2e2;
    border: rgb(150, 150, 150) solid 1px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.bishop_header:not(.bishop_table_header .bishop_header):hover *:not(.bishop_header h3 span){
    cursor: pointer;
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.4);
    color: #373737;
}

.bishop_header h3 span{
    font-weight: lighter;
    font-size: 87%;
}

.bishop_header h3{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bishop_header:hover .bishop_portrait_image_holder img{
    opacity: 50%;
}

.more_button{
    font-size: 2rem;
}

.bishop_info_expanded{
    display: none;
    max-height: 0;
    background-color: #f7f7f7;
    padding: 10px 7rem;
}

.active{
    display: block;
    max-height: max-content;
}

.bishop_info_expanded_portrait_and_basic_info{
    display: flex;
    align-items: center;
    gap: 20px;
}

.bishop_info_expanded_portrait_image_holder{
    width: 30%;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.bishop_info_expanded_portrait_image_holder img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.bishop_info_expanded_basic_info{
    width: 70%;
}

.bishop_info_expanded_basic_info h2{
    font-size: 4rem;
}

.bishop_info_expanded_coat_of_arms_image_holder{
    width: 50%
}

.bishop_info_expanded_coat_of_arms_image_holder img{
    width: 100%;
}

.bishop_info_expanded_coat_of_arms_image_holder.herman_abcede{
    width: 100%;
    display: flex;
    margin-left: 0;
}

.wrapper { 
    position: relative; 
    display: inline-block; 
    width: 50%;
}

#coa-img { 
    display: block; 
    max-width: 100%; 
    height: auto; 
}

#highlight-canvas {
    position: absolute;
    top: 0; left: 0;
    pointer-events: none; 
}

.sidebar { 
    flex: 1; 
    max-width: 50%;
    border-left: 4px solid var(--accent); 
    padding-left: 20px; 
}

#info-title { 
    color: var(--red); 
    margin-bottom: 50px;
}

area { cursor: pointer; }

/* VICARIATES */
.vicariates{
    background-color: #e2e2e2;
    border: rgb(150, 150, 150) solid 1px;
}

.parish{
    background-color: #e2e2e2;
    display: grid;
    grid-template-columns: 20% 80%;
    border-collapse: collapse;
}

.parish > *{
    border: rgb(150, 150, 150) solid 1px;
    width: 100%;
    height: 100%;
}

.parish_image_holder{
    padding: 10px;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.parish_image_holder img{
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
}

.parish_text_redirect{
    display: grid;
    grid-template-columns: 77% 23%;
    align-items: center;
    padding: 0 20px;
}

.parish_text h3{
    font-weight: lighter;
}

.parish_redirect{
    height: 80%;
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: space-between;
}

/* CONTACT US */
.contact_us{
    display: grid;
    grid-template-columns: 50% 50%;
    grid-template-rows: auto auto;
    align-items: center;
    row-gap: 50px;
    column-gap: 20px;
}

.contact_info ul{
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 30px;
    font-size: 2rem;
}

.contact_info ul li{
    color: black;
    font-weight: bolder;
}
.contact_info ul li i{
    background-color: var(--red);
    color: white;
    padding: 10px;
    border-radius: 7px;
    margin-right: 10px;
    font-size: 2rem;
}

.contact_info ul li a{
    text-decoration: none;
    color: rgb(85, 85, 85);
    margin-left: 5vw;
    font-weight: lighter;
    font-size: 1.7rem;
    transition: ease .3s;
}

.contact_info ul li a:hover{
    color: var(--red);
    font-weight: 500;
}

.map{
    border: #ffffff solid 5px;
    border-radius: 10px;
    box-shadow: 5px 5px 5px #e2e2e2;
    height: 30vw;
}

.map iframe{
    width: 100%;
    height: 100%;
}

.contact_form form{
    background-color: #e2e2e2;
    border: rgb(177, 177, 177) solid 2px;
    border-radius: 10px;
    padding: 10px 30px;
    width: 100%;
}

.form_name{
    display: grid;
    grid-template-columns: 50% 50%;
    column-gap: 10px;
}

.form_contacts{
    display: grid;
    grid-template-columns: 60% 40%;
    column-gap: 10px;
}

.contact_form form span{
    margin: 5px 0;
}

.contact_form form input{
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: rgb(177, 177, 177) solid 2px;
    font-size: 1.4rem;
    font-family: Arial, Helvetica, sans-serif;
}

.message{
    height: 15vw;
    width: 102%;
    margin-bottom: 50px;
}

.message textarea{
    font-size: 1.4rem;
    font-family: Arial, Helvetica, sans-serif;
    padding: 10px;
    height: 100%;
    width: 100%;
    border-radius: 10px;
    border: rgb(177, 177, 177) solid 2px;
}

.contact_form form .submit_form{
    width: 27%;
    border-radius: 100vw;
    font-weight: bold;
    background-color: var(--red);
    color: white;
}

.contact_form form .submit_form:hover{
    background-color:  rgb(155, 16, 16);
}


@media (max-width: 850px){
    .coat_of_arms{
        width: 13vw;
    }

    .coat_of_arms img{
        width: 100%;
    }

    .the_roman_catholic_diocese_of_daet{
        font-size: 2.5vw;
    }

    .menu_button{
        display: block;
        font-size: 3rem;
    }

    nav{
        width: 40vw;
        top: 15.7vw;
        left: -100vw;
        background-color: white;
        transition: ease .7s;
    }

    nav ul{
        flex-direction: column;
        padding: 20px 0;
        font-size: 2rem;
        gap: 0;
    }

    nav ul li{
        margin: 0;
        padding: 30px;
        width: 100%;   
        text-align: center;   
    }

    nav ul li:hover{
        background-color: var(--red);
        color: white;
        cursor: pointer;
    }

    .about_subnav{
        top: 0rem; 
        left: -100vw;
        width: 40vw;
    }

    .about_subnav ul li{
        padding: 20px;
        margin: 0;
        background-color: white;
        width: 100%;
        font-size: 2rem;
        border: #ffffff solid 2px;
    }

    .about_subnav ul li:hover{
        background-color: var(--red);
        border: none;
        color: white;
        transform: scale(1);
    }

    main{
        margin: 18.8vw 6vw 0vw 6vw;
        font-size: 2rem;
    }

    main p{
        text-align: justify;
        text-indent: 25px;
    }

    footer{
        padding: 10px;
        justify-content: center;
        flex-direction: column;
        width: 100vw;
        gap: 3rem;
    }

    .coat_of_arms_footer{
        width: 20vw;
    }

    .diocese_of_daet_contact_address h3{
        font-size: 1.8rem;
        font-weight: lighter;
    }

    .diocese_of_daet_contact_address h2{
        font-size: 3rem;
    }

    .connect_with_us{
        width: max-content;
        font-size: 2rem;
    }

    .coscamm{
        width: 100%;
    }

    .connect_soccom{
        width: 30vw;
        flex-direction: column;
        align-items: center;
        gap: 4rem;
    }

    /* HOME PAGE */
    .red_title{
        font-size: 5rem;
        margin-left: -4%;
        margin-bottom: 2vh;
        margin-top: 7vh;
    }

    .image_slider{
        width: 100vw;
        height: max-content;
        margin-top: 7vh;
    }

    .image_slider img{
        width: 100vw;
        margin-top: -18%;
    }

    .index_content{
        margin-top: 70vw;
    }

    .the_bishop{
        flex-direction: column-reverse;
        gap: 15px;
    }

    .bishop_image{
        width: 50%;
    }

    .bishop_name_description{
        width: 100%;
    }

    .bishop_name_description h2{
        font-size: 3rem;
        text-align: center;
        margin-bottom: 20px;
    }


    .the_diocese{
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .cathedral_image{
        width: 70%;
    }

    .the_diocese p{
        width: 100%;
    }   

    /* SPECIAL MAP */
    .special_map_holder{
        height: 57vw;
        padding: 0;
    }

    /* PARISHES - INDIVIDUAL */
    .church_stuff{
        display: grid;
        grid-template-columns: 100%;
        column-gap: 0;
    }

    /* THE BISHOP */
    .bishop_table_header .bishop_header h4{
        font-size: 70%;
    }

    .bishop_header h3 span{
        font-size: 87%;
    }

    .bishop_header h3{
        font-size: 1.5rem;
        padding: 5px;
    }

    .bishop_header .bishop_name_header{
        font-size: 1.7rem;
        padding: 5px;
    }

    .more_button{
        font-size: 2rem;
    }

    .bishop_info_expanded{
        padding: 10px 5rem;
    }

    .active{
        display: block;
        max-height: max-content;
    }

    .bishop_info_expanded_portrait_and_basic_info{
        flex-direction: column;
    }

    .bishop_info_expanded_portrait_image_holder{
        width: 50%;
    }

    .bishop_info_expanded_basic_info{
        width: 100%;
    }

    .bishop_info_expanded_basic_info h2{
        font-size: 3.7rem;
        text-align: center;
    }

    .bishop_info_expanded_coat_of_arms_image_holder{
        width: 100%
    }

    .bishop_info_expanded_coat_of_arms_image_holder img{
        width: 100%;
    }

    .bishop_info_expanded_coat_of_arms_image_holder.herman_abcede{
        flex-direction: column;
    }

    .wrapper { 
        width: 100%;
    }

    .sidebar { 
        margin-top: 10px;
        max-width: 100%;
    }

    #info-title { 
        margin-bottom: 10px;
    }

    /* VICARIATES */
    .parish_image_holder{
        padding: 5px;
    }

    .parish_text h2{
        font-size: 2.3rem;
    }

    .parish_text h3{
        font-size: 1.7rem;
    }

    .parish_redirect{
        font-size: 1.7rem;
    }

    /* CONTACT US */
    .contact_us{
        grid-template-columns: 100%;
        grid-template-rows: auto auto auto auto;

    }

    .contact_info ul{
        display: grid;
        grid-template-columns: 55% 45%;
        grid-template-rows: auto auto;
        row-gap: 50px;
    }

    .map{
        height: 50vw;
    }

    .contact_form form{
        height: 70vw;
    }

    .message{
        height: 45%;
    }
}

@media (max-width: 450px){
    .menu_button{
        font-size: 2rem;
    }

    nav{
        top: 6.5rem;
    }

    nav ul{
        padding:0px;
        font-size: 1.2rem;
    }

    nav ul li{
        padding: 20px 30px;
    }

    .about_subnav ul li{
        padding: 10px;
        font-size: 1.2rem;
    }

    main{
        margin-top: 24vw;
        font-size: 1.5rem;
    }

    main p{
        text-align: justify;
        text-indent: 15px;
    }

    footer{
        gap: 1rem;
    }

    .diocese_of_daet_contact_address h3{
        font-size: 1.05rem;
    }

    .diocese_of_daet_contact_address h2{
        font-size: 1.7rem;
    }

    .connect_with_us{
        font-size: 1rem;
    }

    .connect_soccom{
        gap: 2rem;
    }

    /* HOME PAGE */
    .red_title{
        font-size: 3rem;
        margin-top: 5vh;
    }

    .bishop_image{
        width: 70%;
    }

    .bishop_name_description{
        width: 100%;
    }

    .bishop_name_description h2{
        font-size: 2.3rem;
    }

    .cathedral_image{
        width: 88.8%;
    }

    /* PARISHES - INDIVIDUAL*/
    .church_images_row{
        display: grid;
        grid-template-columns: 100%;
        row-gap: 15px;
    }

    .church_facebook{
        margin: 3rem 0;
    }

    .stand_alone{
        width: 100%;
        margin-left: 0%;
    }

    /* SPECIAL MAP */
    .special_map_holder{
        height: 77vw;
    }

    .maplibregl-popup{
        width: 50%;
    }

    .special_map_popup h2{
        font-size: 100%;
    }

    .special_map_popup p{
        font-size: 80%;
    }

    .special_map_popup p a{
        text-decoration: none;
        color: blue;
    }

    /* THE BISHOP */
    .bishop_header{
        grid-template-columns: 5% 20% 35% 30% 10%;
    }

    .bishop_portrait_image_holder{
        padding: 3px;
    }

    .bishop_header h3 span{
        font-size: 70%;
    }

    .bishop_header h3{
        font-size: 1.1rem;
        padding: 5px;
    }

    .bishop_header .bishop_name_header{
        font-size: 1.3rem;
        padding: 5px;
    }

    .more_button{
        font-size: 1rem;
    }

    .bishop_info_expanded_portrait_image_holder{
        width: 100%;
    }

    .bishop_info_expanded_basic_info{
        width: 100%;
    }

    .bishop_info_expanded_basic_info h2{
        font-size: 3rem;
    }

    .bishop_info_expanded{
        padding: 10px 2rem;
    }

    /* VICARIATES */
    .parish{
        grid-template-columns: 25% 75%;
    }

    .parish_image_holder{
        padding: 5px;
    }

    .parish_text_redirect{
        grid-template-columns: 77% 23%;
        padding: 0 5px;
    }

    .parish_text h2{
        font-size: 1.1rem;
    }

    .parish_text h3{
        font-size: 1rem;
    }

    .parish_redirect{
        font-size: 1rem;
    }

    /* CONTACT US */
    .contact_info ul{
        column-gap: 0;
        row-gap: 30px;
    }

    .contact_info ul li{
        font-size: 1.5rem;
    }

    .contact_info ul li i{
        font-size: 1.3rem;
    }

    .contact_info ul li a{
        font-size: 1rem;
    }

    .map{
        height: 70vw;
    }

    .contact_form form{
        height: 100vw;
    }

    .form_name{
        display: grid;
        grid-template-columns: 50% 50%;
        column-gap: 10px;
    }

    .form_contacts{
        display: grid;
        grid-template-columns: 60% 40%;
        column-gap: 10px;
    }

    .contact_form form span{
        margin: 5px 0;
    }

    .contact_form form label{
        font-size: 1.2rem;
    }

    .contact_form form input{
        padding: 7px;
        font-size: 1rem;
        border-radius: 5px;
    }

    .message{
        height: 40%;
        width: 102%;
        margin-bottom: 30px;
    }

    .message textarea{
        font-size: 1rem;
        padding: 5px;
        border-radius: 5px;
    }

    .contact_form form .submit_form{
        width: 40%;
    }
    
}