﻿body {
}
section:not(.exception) {
    margin: 0 auto;
    margin-bottom:100px;
    /*padding: 2rem;*/
    max-width: 100%;
    background:none;
    /*background-color: #f9f9f9;*/
    border-radius: 16px;
    /*box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);*/
}

h2 {
    font-size: 2.2rem;
    color: #3e3e3e;
    margin-bottom: 2rem;
    text-align: center;
    font-family: 'Georgia', serif;
}



.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 2rem;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}


@media (orientation: portrait) and (min-width: 650px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (orientation: portrait) and (max-width: 649px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

.video-item {
    width: 100%;
    max-width: 100%;
    height:auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition:all ease-in-out 0.3s;
    /*aspect-ratio:6/6;*/
}

    .video-item iframe {
        width: 100%;
        aspect-ratio: 16 / 9; /* keeps videos responsive */
        max-width: 100%;
        height: auto;
        border: none;
        border-radius: 8px;
        display: block;
    }

    .video-item:hover {
        transform: scale(1.02);
    }

    .video-item iframe {
        width: 100%;
        aspect-ratio:8/5;
        border-radius: 8px;
    }

    /*.video-item p {
        margin-top: 0.8rem;
        font-size: 1rem;
        text-align: center;
        color: #555;
    }*/

.video-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #c25e2c; /* matching theme tone */
    margin-bottom: 0.5rem;
}

.video-date {
    font-size: 0.5rem;
    color: #888;
    margin-bottom: 1rem;
    text-align: end;
}

.video-desc {
    font-family: "Sorts Mill Goudy", serif;
    font-size: 1.1rem;
    color: #444;
    margin-top: 0.5rem;
}

.link-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.link-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 5px solid #f3a271; /* Theme color */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
    transition: all ease-in-out 0.3s;
}


    .link-item:hover {
        background: #fff5f0;
        transform: scale(1.02);
    }
    .link-item img {
        mix-blend-mode: multiply;
    }



    .link-item h3 a {
        font-size: 1.3rem;
        color: #c25e2c; /* Deeper version of the theme color for contrast */
        text-decoration: none;
        font-weight: bold;
    }

    

        .link-item h3 a:hover {
            text-decoration: underline;
        }

    .link-item h3 i {
        margin-right: 0.5rem;
        color: #f3a271;
    }

    .link-item p {
        font-family: "Sorts Mill Goudy", serif;
        margin-top: 0.5rem;
        font-size: 1.1rem;
        color: #444;
    }
