body {
    background: #000;
    margin: 0;
    font-family: Arial, sans-serif;
}

#wrapper {
    width: 100%;
    background: black;
    color: #606060;
}

/* HEADER */

#topHeader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background-color: black;
    padding: 20px;
    color: #af0000;
    text-align: center;
}

.headerCenter {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sideBanner {
    height: 180px;
    width: auto;
    object-fit: contain;
}

/* SECOND HEADER */

#secondheader {
    background-image: url("images/primary.png");
    background-repeat: repeat-x;
    height: 90px;
    text-align: center;
    padding-top: 20px;
    box-sizing: border-box;
}

/* MAIN CONTENT */

#container {
    display: flex;
    justify-content: center;
    text-align: center;
    background: black;
}

#leftColumn,
#rightColumn {
    width: 10%;
}

#middleColumn {
    width: 70%;
    min-height: 600px;
}

/* FEATURED IMAGE */

.featuredImage {
    margin-top: 20px;
    margin-bottom: 25px;
}

.featuredImage img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid #222;
}

.featuredImage img:hover {
    border-color: #af0000;
}

/* FOOTER */

#footer {
    background-image: url("images/randombg.png");
    background-repeat: repeat-x;
    height: 130px;
    text-align: center;
    padding-top: 10px;
}

/* TEXT */

a {
    color: blue;
    text-decoration: none;
}

.obituaryLink {
    color: blue !important;
    text-decoration: underline;
}

.obituaryLink:visited {
    color: blue !important;
}

.obituaryLink:hover {
    color: #66aaff !important;
}

.titleText {
    font-size: 3em;
    color: #af0000;
}

.subtitleText {
    font-size: 1.5em;
    color: #af0000;
}

.smallLink {
    font-size: 3em;
}

.messageText {
    color: #af0000;
    font-size: 2em;
    margin: 30px 0;
}

/* GALLERY MENU */

.galleryMenu {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.galleryButton {
    background: #111;
    color: #af0000;
    border: 2px solid #af0000;
    padding: 10px 25px;
    cursor: pointer;
    font-size: 1em;
    transition: .2s;
    border-radius: 6px;
}

.galleryButton:hover {
    background: #af0000;
    color: white;
}

.galleryButton.active {
    background: #af0000;
    color: white;
}

/* GALLERY */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    padding: 20px;
}

.galleryItem {
    width: 100%;
}

.gallery img,
.gallery video {
    width: 100%;
    height: 220px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 8px;
    border: 2px solid #222;
    transition: .2s;
}

.gallery img:hover,
.gallery video:hover {
    transform: scale(1.03);
    border-color: #af0000;
}

/* LIGHTBOX */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightboxMedia {
    max-width: 85vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

video.lightboxMedia {
    background: black;
}

.close,
.prev,
.next {
    position: absolute;
    color: white;
    font-size: 52px;
    cursor: pointer;
    padding: 20px;
    user-select: none;
}

.close {
    top: 10px;
    right: 25px;
}

.prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* MOBILE */

@media screen and (max-width: 800px) {

    #container {
        display: block;
    }

    #leftColumn,
    #rightColumn {
        display: none;
    }

    #middleColumn {
        width: 100%;
    }

    .titleText {
        font-size: 2em;
    }

    .subtitleText {
        font-size: 1.2em;
    }

    .sideBanner {
        height: 100px;
    }

    .featuredImage img {
        width: 70%;
    }
}