/* ===== GENERAL STYLES (unchanged from your original) ===== */
body {
    font-family: 'Georgia', serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

header {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: #fff;
}

header h1 {
    margin: 0;
    font-size: 2em;
}

header h2 {
    margin: 0;
    font-size: 1.5em;
}

header h3 {
    margin: 0;
    font-size: 1em;
}

nav {
    background-color: #444;
    padding: 10px;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2em;
}

nav ul li a:hover {
    text-decoration: underline;
}

main {
    padding: 20px;
    text-align: center;
}

.article-text {
    max-width: 600px;
    text-align: left;
    margin: 0 auto;
}

.article-text p {
    max-width: 800px;
    text-align: left;
    margin: 0 auto;
}

.photo-container {
    max-width: 400px;
    margin: 0 auto;
}

.photo-container img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    opacity: 1;
    transition: opacity 1s;
}

.obituary-photo {
    max-width: 400px;
    margin: 0 auto;
}

.obituary-photo img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

footer {
    text-align: center;
    padding: 10px;
    background-color: #333;
    color: #fff;
    position: fixed;
    bottom: 0;
    width: 100%;
}

// input[type="text"] {
//   width: 100%;
//   padding: 8px;
//   margin-bottom: 10px;
// }

// button {
//   padding: 8px 16px;
//   background-color: #4CAF50;
//   color: white;
//   border: none;
//   cursor: pointer;
// }

// button:hover {
//   background-color: #45a049;
// }

// #result {
//   margin-top: 20px;
//   word-wrap: break-word;
// }

/* ===== SLIDESHOW STYLES ===== */
.slideshow-container {
    position: relative;
    max-width: 800px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    height: 70vh;
    background-color: #000;
}

.slideshow {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
    width: 100%;
}

.slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Navigation buttons */
.slideshow-prev,
.slideshow-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.25);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.slideshow-prev {
    left: 8px;
}

.slideshow-next {
    right: 8px;
}

/* Play/Pause button */
.slideshow-play-pause {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s;
}

.slideshow-container:hover .slideshow-play-pause {
    opacity: 1;
}

/* ===== MOBILE STYLES ===== */
@media (max-width: 768px) {
    .slideshow-container {
        height: 50vh;
        max-width: 100%;
        border-radius: 0;
    }
    
    .slideshow-play-pause {
        opacity: 1;
        bottom: 10px;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .slideshow-container {
        height: 70vh;
    }
}
