body {
    background-color: #020202;
    background-image: url("assets/background.png");
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-size: 150vh;
    min-height: 212vh;
    color: white;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

#home-link {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 470px;
    height: 180px;
    cursor: pointer;
    z-index: 100;
}

#main-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    position: absolute;
    top: 21vh;
    left: 50%;
    transform: translateX(-50%);
}

#main-menu li {
    display: inline-block;
    margin: 0 3vh;
}

#main-menu a {
    color: #2c2c2c;
    text-decoration: none;
    font-size: 5.35vh;
    font-family: 'Amatic SC', monospace;
    font-weight: 700;
}

#main-menu a:hover {
    color: #791c1c;
}

.element-invisible {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.main-content {
    margin-top: 100px;
    padding: 20px;
    text-align: center;
}

.content-box {
    background-color: rgb(19, 19, 19);
    padding: 1.4vw;
    border-radius: 0.7vw;
    max-width: 49vw;
    margin: 18vh auto 0;
    position: relative;
    box-shadow: 0 0 0.7vw 0.35vw rgba(0, 0, 0, 0.7);
    min-height: fit-content;
    padding-bottom: 1.4vw;
}

.content-section {
    margin-bottom: 3.5vw;
    padding: 0;
    padding-right: 26vw;
    padding-bottom: 1.4vw;
    border-radius: 0.7vw;
    position: relative;
    text-align: left;
}

.section-header {
    background-image: url("assets/redtapeSidebar.png");
    background-repeat: no-repeat;
    background-size: 16vw 1.8vw;
    width: 16vw;
    height: 1.8vw;
    margin: 1vw 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 1vw;
}

.about-page-image-container .top-right-image {
    max-width: 24vw;
    height: auto;
}

.about-page-image-container p {
    font-size: 12px;
    margin-top: 5px;
    color: #ccc;
}

.group-link {
    color: #7c2126;
    font-weight: bold;
    font-size: 30px;
    text-decoration: none;
}

.group-link:hover {
    color: rgb(179, 179, 179);
    text-decoration: underline;
}

.video-container {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 5px;
    aspect-ratio: 16 / 9;
    min-width: 200px;
    width: 200px;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    display: block;
    transition: opacity 0.3s;
    object-fit: cover;
}

.video-container:hover .video-thumbnail {
    opacity: 0.8;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background: rgba(255, 0, 0, 0.8);
    border-radius: 12px;
    transition: background 0.3s;
    opacity: 0;
}

.video-container:hover .play-button {
    opacity: 1;
    background: rgba(255, 0, 0, 1);
}

.play-button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent white;
}

.video-container iframe {
    border-radius: 5px;
}

.photo-container {
    position: relative;
    aspect-ratio: 1;
    overflow: visible;
    border-radius: 5px;
    cursor: pointer;
}

.photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 5px;
}

#archive-photo {
    aspect-ratio: 3 / 4;
    width: 15vw;
    max-width: 15vw;
    min-width: 120px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#archive-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.photo-container:hover img {
    width: auto;
    height: auto;
    max-width: 160%;
    max-height: 160%;
    z-index: 10;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px 5px rgba(0, 0, 0, 0.9);
    object-fit: contain;
}

    @media (hover: none) and (pointer: coarse), (max-width: 768px) {
        .photo-container:hover img {
            width: 100% !important;
            height: 100% !important;
            max-width: 100% !important;
            max-height: 100% !important;
            z-index: 1 !important;
            position: relative !important;
            top: auto !important;
            left: auto !important;
            transform: none !important;
            box-shadow: none !important;
            object-fit: cover !important;
        }

        .photo-container {
            overflow: hidden;
        }
    }

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 5px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.45);
    border: none;
    color: white;
    font-size: 42px;
    width: 56px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1002;
    border-radius: 4px;
    transition: background 0.15s, transform 0.15s, opacity 0.15s;
    opacity: 0.85;
}

.lightbox-arrow-left {
    left: 18px;
}

.lightbox-arrow-right {
    right: 18px;
}

.lightbox-arrow:hover {
    background: rgba(0,0,0,0.7);
    transform: translateY(-50%) scale(1.03);
}

@media (max-width: 768px), (hover: none) and (pointer: coarse) {
    .lightbox-arrow { display: none; }
}

.article-item {
    margin-bottom: 20px;
}

.article-title {
    color: #7c2126;
    font-weight: bold;
    font-size: 20px;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.article-link:hover {
    color: rgb(179, 179, 179);
    text-decoration: underline;
}

.dotted-line-video {
        margin-bottom: 30px;
    }

@media (max-width: 768px) {
    #home-link {
        width: 235px;
        height: 90px;
    }

        .section-header,
        #archive-photo,
        #upcoming-poster-container {
            width: 80vw !important;
            max-width: 80vw !important;
            margin-left: auto !important;
            margin-right: auto !important;
            box-sizing: border-box;
        }

        .section-header {
            background-size: 45vw 5vw !important;
            padding-left: 1vw !important;
        }

        .section-header h2 {
            font-size: 4vw !important;
            text-align: left !important;
            width: 100%;
            margin: 0.6vw 0 !important;
        }

        #upcoming-poster,
        #upcoming-poster-2,
        #archive-photo img {
            width: 100% !important;
            height: auto !important;
            max-width: 100% !important;
            display: block !important;
        }

        #archive-photo {
            aspect-ratio: 4 / 3 !important;
            max-height: 45vw !important;
            overflow: hidden !important;
        }

        #archive-video {
            margin-top: 1vw !important;
        }

    .content-box > div[style*="display:flex"] {
        display: flex !important;
        flex-direction: column !important;
    }

    .content-box > div[style*="display:flex"] > div:nth-child(2) {
        order: 2 !important;
    }

    .content-box > div[style*="display:flex"] > div:first-child {
        order: 3 !important;
    }

    .content-box > div[style*="position: absolute"] {
        order: 1 !important;
    }

    body {
        background-size: 100vh;
        min-height: 100vh;
    }

    #main-menu {
        top: 14vh;
        white-space: nowrap;
    }

    #main-menu li {
        margin: 0 2vw;
    }

    #main-menu a {
        font-size: 7vw;
    }

    .content-box {
        max-width: 90vw;
        margin: 5vh auto 0;
        padding: 3vw;
    }

    .content-box > div[style*="grid"] {
        grid-template-columns: 1fr !important;
        padding-right: 0 !important;
        gap: 4vw !important;
    }

    .content-box > div[style*="grid"] {
        display: flex !important;
        flex-direction: column !important;
    }

    .content-box > div[style*="grid"]:last-of-type {
        order: 3 !important;
    }

    .content-box div[style*="text-align: left"] {
        text-align: left !important;
    }

    div[style*="position: absolute"] {
        position: static !important;
        text-align: center !important;
        margin-bottom: 4vw;
    }

    div[style*="display: flex"] {
        justify-content: center !important;
    }

    .social-link img {
        width: 8vw !important;
        height: 8vw !important;
    }
    
    a[href^="https://signal.group"] img {
        width: 7vw !important;
        height: 7.8vw !important;
    }

    p[style*="font-size: 0.9vw"] {
        font-size: 2.5vw !important;
    }

    p[style*="font-size: 0.9vw"] strong {
        font-size: 3vw !important;
    }

    p[style*="font-size: 0.9vw"] a {
        font-size: 3vw !important;
    }

    .section-header {
        background-size: 100% 5vw;
        width: 66.6667%;
        height: 5vw;
        margin: 2vw 0;
        justify-content: flex-start;
        padding-left: 5px;
    }

    .section-header h2 {
        font-size: 3.5vw;
    }

    #archive-photo,
    #upcoming-poster-container,
    .video-container {
        max-width: 80vw !important;
    }

    #archive-video .video-container {
        max-width: 80vw !important;
        width: 80vw !important;
    }

    p[style*="font-size: 0.8vw"] {
        font-size: 2.2vw !important;
    }

    .photo-container:hover img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        z-index: 1;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        box-shadow: none;
    }

    .archive-videos {
        grid-template-columns: 1fr !important;
    }

    .archive-videos .video-container {
        min-width: unset;
        width: 100%;
    }

    .archive-videos .video-container:nth-child(n+2) {
        display: none;
    }

    .archive-videos-row2 {
        display: none !important;
    }

    .content-section > div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 4vw !important;
    }

    .content-section .video-container {
        max-width: 70vw !important;
        width: 70vw !important;
        min-width: unset !important;
        margin: 0 auto !important;
    }

    .content-section > div[style*="grid-template-columns: repeat(6, 1fr)"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 3vw !important;
    }

    .about-page-image-container {
        position: static !important;
        margin: 3vw auto !important;
        text-align: center !important;
    }

    .about-page-image-container .top-right-image {
        max-width: 60vw !important;
    }

    .about-page-image-container p {
        font-size: 10px !important;
        margin: 2vw 0 0 0 !important;
    }

    .group-link {
        font-size: 20px !important;
    }

    .dotted-line-video {
        margin-bottom: -2px;
    }

    .content-box > div[style*="position: absolute"] {
        order: 1;
    }

    .content-box > div[style*="grid-template-columns: 1fr 1fr"] > div:first-child {
        order: 4;
    }

    .content-box > div[style*="grid-template-columns: 1fr 1fr"] > div:nth-child(2) {
        order: 2;
    }

    #archive-video {
        order: 6;
    }

    #archive-photo {
        order: 5;
    }

    #upcoming-poster-container {
        order: 3;
    }

    .content-box > div[style*="grid-template-columns: 1fr 1fr"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 4vw !important;
    }

    .content-box > div[style*="position: absolute"] {
        position: static !important;
        text-align: center !important;
        margin-bottom: 4vw !important;
        order: 1;
    }
}

.pagination-btn,
.pagination-number {
    display: inline-block;
    padding: 8px 15px;
    color: white;
    background-color: rgba(124, 33, 38, 0.3);
    border: 1px solid #7c2126;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s, color 0.3s;
    cursor: pointer;
}

.pagination-btn:hover,
.pagination-number:hover {
    background-color: #7c2126;
    color: white;
}

.pagination-number.active {
    background-color: #7c2126;
    color: white;
    font-weight: bold;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: rgba(124, 33, 38, 0.1);
    border-color: rgba(124, 33, 38, 0.3);
}

.social-link {
    display: inline-block;
    transition: opacity 0.3s, transform 0.3s;
}

.social-link:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.social-link img {
    display: block;
}

.article-description {
    color: #ccc;
    font-size: 14px;
    line-height: 1.5;
    margin: 10px 0;
}

.article-meta {
    color: #999;
    font-size: 13px;
    margin-top: 10px;
}

.article-link {
    color: #7c2126;
    text-decoration: none;
}

.article-link:hover {
    color: rgb(179, 179, 179);
    text-decoration: underline;
}

