  2/* ===================================
   Swigert Family Website - Unified Styles
   =================================== */

/* === GLOBAL RESET & BASE STYLES === */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* === HEADER === */
header {
    background-color: #e8f4f8;
    padding: 20px 0;
    text-align: center;
    color: #2c3e50;
}

header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-weight: 700;
}

header p {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin: 0;
}

/* === MAIN CONTENT CONTAINERS === */
main,
.content,
.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    padding: 32px 24px;
}

/* === SECTIONS === */
section {
    margin-bottom: 3rem;
}

.bio-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* === HEADINGS === */
h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    border-bottom: 3px solid #4a90e2;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.bio-section h2 {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.video-gallery-title {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 2rem;
    font-weight: bold;
}

/* === IMAGES === */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.top-image,
.portrait-img {
    max-width: 400px;
    width: 50%;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    margin: 20px auto 10px;
}

.centered-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.centered-image img {
    max-width: 320px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
}

/* === CAPTIONS === */
.caption {
    margin-top: 8px;
    font-size: 1rem;
    color: #555;
    text-align: center;
}

.portrait-caption {
    font-style: italic;
    color: #2980b9;
    margin-top: 8px;
    font-size: 1.1rem;
    text-align: center;
}

/* === GALLERIES === */
.gallery,
.gallery-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 2rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-item,
.gallery-image-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-image,
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* === VIDEO GALLERY === */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, 320px);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    justify-content: center;
}

.video-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 320px;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

/* Video wrapper with fixed dimensions and overflow hidden */
.video-item {
    position: relative;
    height: 250px;
}

video,
.video-item video {
    width: 320px !important;
    height: 200px !important;
    max-width: 320px !important;
    max-height: 200px !important;
    min-width: 320px !important;
    min-height: 200px !important;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: black;
    display: block !important;
    object-fit: cover !important;
    position: relative !important;
}

.video-gallery .video-item {
    height: 250px !important;
    overflow: hidden !important;
}

.video-gallery .video-item video {
    width: 320px !important;
    height: 200px !important;
    max-width: 320px !important;
    max-height: 200px !important;
    min-width: 320px !important;
    min-height: 200px !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
}

/* Nuclear option - force exact dimensions on ALL videos */
.video-gallery video,
body .video-gallery .video-item video,
body video[controls],
video[controls][aria-label] {
    width: 320px !important;
    height: 200px !important;
    max-width: 320px !important;
    max-height: 200px !important;
    object-fit: cover !important;
}

.video-container {
    margin: 30px auto;
    text-align: center;
}

.video-container h2 {
    color: #2c3e50;
}

.video-container img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
    width: auto;
    height: 200px;
    margin-left: auto;
    margin-right: auto;
}

/* === LINKS === */
a {
    color: #2980b9;
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    text-decoration: underline;
}

.obit-link {
    display: block;
    text-align: center;
    margin: 20px 0;
    font-size: 1.2rem;
}

.obit-link a {
    color: #2980b9;
    text-decoration: none;
    font-weight: bold;
}

/* === BUTTONS === */
.donate-btn {
    display: block;
    margin: 0 auto 32px auto;
    background: #3a7bd5;
    color: #fff;
    font-size: 1.15rem;
    padding: 14px 36px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(58, 123, 213, 0.3);
    transition: background 0.2s ease;
    max-width: 300px;
}

.donate-btn:hover {
    background: #285fa6;
    text-decoration: none;
}

/* === TEXT BLOCKS === */
.tribute {
    font-style: italic;
    font-size: 1.15rem;
    color: #555;
    margin: 32px 0 24px 0;
    line-height: 1.6;
    text-align: center;
}

.bio-section .tribute {
    border-left: 4px solid #2980b9;
    padding-left: 15px;
    text-align: left;
}

.donation-section {
    text-align: center;
    margin: 30px 0;
    font-size: 1.15rem;
    color: #2c3e50;
}

.donation-section a {
    color: #2980b9;
    font-weight: bold;
}

/* === LISTS === */
.bio-section ul {
    list-style-type: none;
    padding-left: 0;
}

.bio-section li {
    margin-bottom: 10px;
}

.bio-section li strong {
    font-weight: bold;
}

.bio-section ul ul {
    margin-top: 5px;
    margin-bottom: 5px;
    padding-left: 20px;
}

/* === FOOTER === */
footer {
    display: block;
    clear: both;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
    color: #555;
    background-color: #f5f5f5;
    border-top: 2px solid #ddd;
    margin-top: 3rem;
    width: 100%;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }

    header p {
        font-size: 1rem;
    }

    .top-image,
    .portrait-img {
        width: 80%;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .video-gallery {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .video-item,
    .video-item video {
        width: 100%;
        max-width: 320px;
    }

    .video-gallery-title {
        font-size: 1.5rem;
    }

    .gallery-image {
        height: 200px;
    }

    .gallery-row {
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .top-image,
    .portrait-img {
        width: 90%;
    }

    .container {
        padding: 16px;
    }

    .centered-image img {
        max-width: 95vw;
    }
}

@media (max-width: 480px) {
    main,
    .content {
        padding: 10px;
    }

    .bio-section {
        padding: 15px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    