* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier Prime', 'Courier New', monospace;
    background-color: #FEFEFC;
    color: #333333;
    line-height: 1.75;
    position: relative;
    min-height: 100vh;
    padding: 0;
    display: flex;
    flex-direction: column;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.08;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px);
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.15;
    background: 
        radial-gradient(circle, transparent 20%, rgba(0,0,0,.015) 20%, rgba(0,0,0,.015) 80%, transparent 80%, transparent),
        radial-gradient(circle, transparent 20%, rgba(0,0,0,.015) 20%, rgba(0,0,0,.015) 80%, transparent 80%, transparent) 25px 25px,
        linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px) 0 -25px,
        linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px) -25px 0;
    background-size: 50px 50px, 50px 50px, 25px 25px, 25px 25px;
    animation: grain 8s steps(10) infinite;
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-15%, 5%); }
    30% { transform: translate(7%, -25%); }
    40% { transform: translate(-5%, 25%); }
    50% { transform: translate(-15%, 10%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 15%); }
    80% { transform: translate(3%, 25%); }
    90% { transform: translate(-10%, 10%); }
}

/* Navigation Bar */
.navbar {
    width: 100%;
    background-color: #E4E4E4;
    margin-bottom: 60px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0);
}

.nav-content {
    display: flex;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-link {
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 16px;
    font-weight: 700;
    color: #333333;
    text-decoration: none;
    padding: 20px 30px;
    display: block;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 0.7;
}

.nav-link.active {
    background-color: #333333;
    color: #E4E4E4;
}

/* Blog Page - was previously "Article" */
.articles {
    width: 100%;
    padding: 0 40px 80px 40px;
    display: flex;
    justify-content: center;
}

.articles-content {
    width: 100%;
    max-width: 900px;
}

.article-post {
    margin-bottom: 60px;
    position: relative;
}

.article-post:last-child {
    margin-bottom: 0;
}

.article-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 20px;
    font-weight: 500;
    color: #333333;
    margin-bottom: 10px;
    line-height: 1.3;
}

.article-title a {
    color: #333333;
    text-decoration: none;
    transition: opacity 0.3s;
}

.article-title a:hover {
    opacity: 0.6;
}

.article-date {
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 16px;
    color: #666666;
    margin-bottom: 20px;
}

.article-body {
    background-color: #E4E4E4;
    padding: 30px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.article-body p {
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 19px;
    color: #333333;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    text-overflow: ellipsis;
}

.article-view-link {
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 16px;
    color: #333333;
    text-decoration: none;
    transition: opacity 0.3s;
    display: flex;
    align-items: baseline;
    gap: 8px;
    justify-content: flex-end;
}

.article-view-link::before {
    content: '→';
    font-weight: 700;
}

.article-view-link span {
    border-bottom: 1px dotted #333333;
    padding-bottom: 0px;
}

.article-view-link:hover {
    opacity: 0.6;
}

@media (max-width: 768px) {
    .articles {
        padding: 0 30px 60px 30px;
    }

    .article-title {
        font-size: 18px;
    }

    .article-date {
        font-size: 15px;
    }

    .article-body {
        padding: 25px;
    }

    .article-body p {
        font-size: 17px;
        -webkit-line-clamp: 3;
    }
}

@media (max-width: 480px) {
    .articles {
        padding: 0 20px 50px 20px;
    }

    .article-post {
        margin-bottom: 40px;
    }

    .article-title {
        font-size: 18px;
    }

    .article-date {
        font-size: 14px;
    }

    .article-body {
        padding: 20px;
    }

    .article-body p {
        font-size: 16px;
        -webkit-line-clamp: 2;
    }
}

/* Hero Section*/
.hero {
    width: 100%;
    padding: 0 40px 80px 40px;
    display: flex;
    justify-content: center;
}

.hero-content {
    width: 100%;
    max-width: 900px;
}

.hero-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 55px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 50px;
    line-height: 1.1;
    text-align: left;
}

.hero-text {
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 19px;
    line-height: 1.9;
    text-align: left;
}

.quote-box {
    margin: 80px 0;
    text-align: left;
}

.quote-mark {
    font-family: "Times New Roman", serif;
    font-size: 70px;
    line-height: 0.5;
    display: block;
    text-align: left;
    margin-bottom: 10px;
    color: #333333;
    font-weight: 700;
}

.quote-text {
    font-family: 'Libre Baskerville', serif;
    font-size: 20px;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 30px;
}

.quote-author {
    font-family: 'Libre Baskerville', serif;
    font-size: 17px;
    font-style: normal;
}

.noise{
	background: #FFFFFF;
	background-image: url(assets/noise.svg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 56px;
    }
    
    .hero-text {
        font-size: 18px;
    }
    
    .quote-mark {
        font-size: 60px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 0 30px 60px 30px;
    }
    
    .hero-title {
        font-size: 42px;
        /*margin-bottom: 60px;*/
    }
    
    .hero-text {
        font-size: 17px;
    }
    
    .quote-box {
        margin: 70px 0;
    }
    
    .quote-mark {
        font-size: 50px;
    }
    
    .quote-text {
        font-size: 18px;
    }

	.quote-author {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 0 20px 50px 20px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-text {
        font-size: 16px;
    }
    
    .quote-author {
        font-size: 15px;
    }
}

/* Current Reading Section */
.current-reading {
    width: 100%;
    padding: 0 40px 80px 40px;
    display: flex;
    justify-content: center;
}

.current-reading-content {
    width: 100%;
    max-width: 900px;
}

.section-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #333333;
    text-align: left;
}

.reading-intro {
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 19px;
    line-height: 1.9;
    margin-bottom: 50px;
    text-align: left;
}

.reading-intro strong {
    font-weight: 700;
}

.book-cover-container {
    display: flex;
    justify-content: center;
    margin: 50px 0;
}

.book-cover {
    max-width: 350px;
    width: 100%;
    height: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.reading-note {
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 19px;
    line-height: 1.9;
    margin-bottom: 60px;
    text-align: left;
}

.book-quote-box {
    margin: 40px 0;
    text-align: left;
}

.book-quote-mark {
    font-family: "Times New Roman", serif;
    font-size: 70px;
    line-height: 0.5;
    display: block;
    text-align: left;
    color: #333333;
    font-weight: 700;
}

.book-quote-text {
    font-family: 'Libre Baskerville', serif;
    font-size: 20px;
    font-style: italic;
    line-height: 1.7;
    text-align: left;
}

.book-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.book-link {
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 18px;
    color: #333333;
    text-decoration: none;
    transition: opacity 0.3s;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.book-link::before {
    content: '→';
    font-weight: 700;
}

.book-link span {
    border-bottom: 1px dotted #333333;
    padding-bottom: 0px;
}

.book-link:hover {
    opacity: 0.6;
}

@media (max-width: 768px) {
    .current-reading {
        padding: 0 30px 60px 30px;
    }

    .section-title {
        font-size: 28px;
    }

    .reading-intro,
    .reading-note {
        font-size: 17px;
    }

    .book-cover {
        max-width: 280px;
    }

    .book-quote-mark {
        font-size: 50px;
    }

    .book-quote-text {
        font-size: 18px;
    }

    .book-link {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .current-reading {
        padding: 0 20px 50px 20px;
    }

    .section-title {
        font-size: 24px;
    }

    .book-cover {
        max-width: 220px;
    }
}

/* Short Reading Section */
.short-reading {
    width: 100%;
    padding: 0 40px 80px 40px;
    display: flex;
    justify-content: center;
}

.short-reading-content {
    width: 100%;
    max-width: 900px;
}

.article-links {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-link {
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 19px;
    color: #333333;
    text-decoration: none;
    transition: opacity 0.3s;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.article-link::before {
    content: '→';
    font-weight: 700;
}

.article-link span {
    border-bottom: 1px dotted #333333;
    padding-bottom: 0px;
}

.article-link:hover {
    opacity: 0.6;
}

@media (max-width: 768px) {
    .short-reading {
        padding: 0 30px 60px 30px;
    }

    .article-link {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .short-reading {
        padding: 0 20px 50px 20px;
    }

    .article-link {
        font-size: 16px;
    }
}

/* Upcoming Events Section */
.upcoming-events {
    width: 100%;
    padding: 0 40px 60px 40px;
    display: flex;
    justify-content: center;
}

.upcoming-events-content {
    width: 100%;
    max-width: 900px;
}

.events-intro {
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 19px;
    line-height: 1.9;
    margin-bottom: 50px;
    text-align: left;
}

.calendar-container {
    padding: 40px 0;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.event-card {
    border: 2px solid #333333;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.event-date {
    font-family: 'Libre Baskerville', serif;
    font-size: 20px;
    font-weight: 700;
    color: #FEFEFC;
    background-color: #333333;
    padding: 20px;
    border-bottom: 2px solid #333333;
}

.event-description {
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 15px;
    line-height: 1.6;
    color: #333333;
    padding: 20px;
    max-height: 150px;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .upcoming-events {
        padding: 0 30px 60px 30px;
    }

    .calendar-container {
        padding: 30px 0;
    }

    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .event-card {
        padding: 0;
    }

    .event-date {
        padding: 15px;
    }

    .event-description {
        padding: 15px;
        max-height: 120px;
    }

    .events-intro {
        font-size: 17px;
    }

    .event-description {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .upcoming-events {
        padding: 0 20px 50px 20px;
    }

    .calendar-container {
        padding: 20px 0;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .event-date {
        padding: 12px;
    }

    .event-description {
        padding: 12px;
        max-height: 100px;
    }

    .events-intro {
        font-size: 16px;
    }
}

/*Previous Meetings Section - Has been omitted*/
.previous-meetings {
    width: 100%;
    padding: 0 40px 80px 40px;
    display: flex;
    justify-content: center;
}

.previous-meetings-content {
    width: 100%;
    max-width: 900px;
}

.timeline {
    margin-top: 40px;
}

.timeline-year {
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 16px;
    font-weight: 400;
    color: #666666;
    margin-bottom: 25px;
    margin-top: 30px;
}

.timeline-year:first-child {
    margin-top: 0;
}

.timeline-item {
    display: grid;
    grid-template-columns: 80px 30px 1fr;
    gap: 15px;
    margin-bottom: 0px;
    align-items: start;
}

.timeline-date {
    font-family: 'Libre Baskerville', serif;
    font-size: 18px;
    font-weight: 700;
    color: #333333;
    text-align: right;
    padding-top: 8px;
}

.timeline-connector {
    width: 30px;
    height: 100%;
    min-height: 80px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.timeline-connector::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #333333;
}

.timeline-connector::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 0;
    width: 2px;
    height: 100%;
    background-color: #333333;
}

.timeline-link {
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 18px;
    color: #333333;
    text-decoration: none;
    transition: opacity 0.3s;
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding-top: 2px;
    padding-bottom: 30px;
}

.timeline-link::before {
    content: '';
    font-weight: 700;
}

.timeline-link span {
    border-bottom: 1px dotted #333333;
    padding-bottom: 0px;
}

.timeline-link:hover {
    opacity: 0.6;
}

.timeline-text {
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 18px;
    color: #666666;
    display: block;
    padding-top: 2px;
    padding-bottom: 30px;
}

@media (max-width: 768px) {
    .previous-meetings {
        padding: 0 30px 60px 30px;
    }

    .timeline-item {
        grid-template-columns: 70px 25px 1fr;
        gap: 12px;
    }

    .timeline-date {
        font-size: 16px;
    }

    .timeline-link {
        font-size: 16px;
    }

	.timeline-text {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .previous-meetings {
        padding: 0 20px 50px 20px;
    }

    .timeline-item {
        grid-template-columns: 60px 20px 1fr;
        gap: 10px;
    }

    .timeline-date {
        font-size: 15px;
    }

    .timeline-link {
        font-size: 15px;
    }

    .events-intro {
        font-size: 16px;
    }

	.timeline-text {
        font-size: 15px;
    }
}

/*Purpose/Mission Section*/
.purpose {
    width: 100%;
    padding: 0 40px 80px 40px;
    display: flex;
    justify-content: center;
}

.purpose-content {
    width: 100%;
    max-width: 900px;
}

.purpose-text {
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 19px;
    line-height: 1.9;
    text-align: left;
    margin-bottom: 25px;
}

.purpose-text:last-child {
    margin-bottom: 0;
}

/* Membership Guidelines Section */
.membership {
    width: 100%;
    padding: 0 40px 80px 40px;
    display: flex;
    justify-content: center;
}

.membership-content {
    width: 100%;
    max-width: 900px;
}

.membership-intro {
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 19px;
    line-height: 1.9;
    margin-bottom: 30px;
    text-align: left;
}

.membership-list {
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 19px;
    line-height: 1.9;
    margin-bottom: 30px;
    padding-left: 60px;
}

.membership-list li {
    margin-bottom: 12px;
}

.membership-list li::marker {
    font-weight: 700;
}

.membership-outro {
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 19px;
    line-height: 1.9;
    margin-bottom: 20px;
    text-align: left;
}

.registration-link {
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 18px;
    color: #333333;
    text-decoration: none;
    transition: opacity 0.3s;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.registration-link::before {
    content: '→';
    font-weight: 700;
}

.registration-link span {
    border-bottom: 1px dotted #333333;
    padding-bottom: 0px;
}

.registration-link:hover {
    opacity: 0.6;
}

@media (max-width: 768px) {
    .purpose {
        padding: 0 30px 60px 30px;
    }

    .membership {
        padding: 0 30px 60px 30px;
    }

    .purpose-text,
    .membership-intro,
    .membership-list,
    .membership-outro {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .purpose {
        padding: 0 20px 50px 20px;
    }

    .membership {
        padding: 0 20px 50px 20px;
    }

    .purpose-text,
    .membership-intro,
    .membership-list,
    .membership-outro {
        font-size: 16px;
    }

    .membership-list {
        padding-left: 30px;
    }
}

/* FAQ Section */
.faq {
    width: 100%;
    padding: 0 40px 80px 40px;
    display: flex;
    justify-content: center;
}

.faq-content {
    width: 100%;
    max-width: 900px;
}

.faq-item {
    margin-bottom: 30px;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 19px;
    font-weight: 700;
    color: #333333;
    text-align: left;
    cursor: pointer;
    padding: 0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: opacity 0.3s;
}

.faq-question:hover {
    opacity: 0.7;
}

.faq-icon {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 36px;
}

.faq-item.active .faq-answer {
    max-height: 2000px;
    margin-top: 20px;
}

.faq-text {
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 19px;
    line-height: 1.9;
    margin-bottom: 20px;
    text-align: left;
}

.faq-text:last-child {
    margin-bottom: 0;
}

.faq-text em {
    font-style: italic;
}

.faq-list {
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 19px;
    line-height: 1.9;
    margin-bottom: 20px;
    padding-left: 60px;
    list-style: none;
}

.faq-list li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.faq-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    font-weight: 700;
}

.faq-link {
    color: #333333;
    text-decoration: none;
    transition: opacity 0.3s;
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
}

.faq-link::before {
    content: '→';
    font-weight: 700;
}

.faq-link span {
    border-bottom: 1px dotted #333333;
    padding-bottom: 0px;
}

.faq-link:hover {
    opacity: 0.6;
}

.squeak-word {
    cursor: pointer;
    background: linear-gradient(
        90deg,
        #ff0080,
        #ff8c00,
        #40e0d0,
        #9370db,
        #ff0080
    );
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
    font-weight: 700;
    transition: transform 0.2s;
}

.squeak-word:hover {
    transform: scale(1.05);
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

@media (max-width: 768px) {
    .faq {
        padding: 0 30px 50px 30px;
    }

    .faq-question,
    .faq-text,
    .faq-list {
        font-size: 17px;
    }

    .faq-answer {
        padding-left: 32px;
    }
}

@media (max-width: 480px) {
    .faq {
        padding: 0 20px 40px 20px;
    }

    .faq-question,
    .faq-text,
    .faq-list {
        font-size: 16px;
    }

    .faq-answer {
        padding-left: 28px;
    }
}

/* Gallery Section*/
.gallery {
    width: 100%;
    padding: 0 40px 80px 40px;
    display: flex;
    justify-content: center;
}

.gallery-content {
    width: 100%;
    max-width: 900px;
}

.gallery-wrapper {
    position: relative;
    margin-top: 20px;
    padding-bottom: 70px;
}

.gallery-container {
    border: 2px solid #333333;
    padding: 40px;
    height: 550px;
    display: flex;
    flex-direction: column;
}

.gallery-image-wrapper {
    flex: 1;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: none;
}

/* Landscape images*/
.gallery-image.landscape {
    min-width: 85%;
}

/* Portrait images */
.gallery-image.portrait {
    max-width: 60%;
    max-height: 100%;
}

.gallery-caption {
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 18px;
    line-height: 1.8;
    text-align: left;
    flex-shrink: 0;
    height: 64px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.gallery-nav {
    position: absolute;
    right: 0;
    display: flex;
    margin-top: -1px;
    gap: 0;
}

.gallery-nav-btn {
    width: 65px;
    height: 65px;
    border: 2px solid #333333;
    background: #FEFEFC;
    font-size: 28px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-family: Arial, sans-serif;
    color: #333333;
    background-image: url(assets/noise.svg);
}

.gallery-nav-btn:last-child {
    background: #333333;
    color: #FEFEFC;
    border-left: none;
    background-image: none;
}

.gallery-nav-btn:first-child:hover {
    background: #333333;
    color: #FEFEFC;
    background-image: none;
}

.gallery-nav-btn:first-child:hover ~ .gallery-nav-btn:last-child {
    background: #FEFEFC;
    color: #333333;
    background-image: url(assets/noise.svg);
}

.gallery-nav-btn:last-child:hover {
    background: #333333;
    color: #FEFEFC;
    background-image: none;
}

.gallery-nav:hover .gallery-nav-btn:first-child:not(:hover) {
    background: #FEFEFC;
    color: #333333;
    background-image: url(assets/noise.svg);
}

@media (max-width: 768px) {
    .gallery {
        padding: 0 30px 60px 30px;
    }

    .gallery-container {
        padding: 30px 20px;
        height: 450px;
    }

    .gallery-caption {
        font-size: 16px;
    }

    .gallery-nav-btn {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .gallery {
        padding: 0 20px 50px 20px;
    }

    .gallery-container {
        padding: 20px 15px;
        height: 450px;
    }

    .gallery-caption {
        font-size: 15px;
    }

    .gallery-nav-btn {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
}

/* Modal Overlay */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.gallery-modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-image {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-top: 60px;
}

.modal-caption {
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 18px;
    line-height: 1.8;
    color: #E4E4E4;
    text-align: left;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.35);
    padding: 20px 40px;
    max-height: 150px;
    overflow-y: auto;
    z-index: 10002;
    backdrop-filter: blur(5px);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: transparent;
    border: none;
    font-size: 40px;
    font-weight: 700;
    color: #E4E4E4;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
    z-index: 10001;
}

.modal-close:hover {
    opacity: 0.7;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 0;
    pointer-events: none;
}

.modal-nav-btn {
    width: 65px;
    height: 65px;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    font-size: 28px;
    font-weight: 900;
    color: #FEFEFC;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-family: Arial, sans-serif;
    pointer-events: all;
}

/*.modal-nav-btn:hover {
    background: rgba(0, 0, 0, 1);
}*/

.gallery-image.active {
    display: block;
    cursor: pointer;
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 100vw;
        max-height: 100vh;
        width: 100%;
        height: 100%;
    }

    .modal-image {
        max-width: 100%;
        max-height: calc(100vh - 70px);
        width: 100%;
        height: 100%;
        object-fit: contain;
        margin-top: 50px;
    }

    .modal-caption {
        font-size: 16px;
        padding: 15px 20px;
        max-height: 120px;
    }
    
    .modal-close {
        width: 45px;
        height: 45px;
        font-size: 26px;
        top: 10px;
        right: 10px;
    }
    
    .modal-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .gallery-caption {
        font-size: 15px;
        height: 54px;
        -webkit-line-clamp: 2;
    }
    
    .modal-content {
        max-width: 100vw;
        max-height: 100vh;
        width: 100%;
        height: 100%;
    }

    .modal-image {
        max-width: 100%;
        max-height: calc(100vh - 60px);
        width: 100%;
        height: 100%;
        object-fit: contain;
        margin-top: 40px;
    }
    
    .modal-caption {
        font-size: 15px;
        padding: 12px 15px;
        max-height: 100px;
    }
    
    .modal-close {
        width: 40px;
        height: 40px;
        font-size: 32px;
    }
    
    .modal-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
}

/* Footer */
.footer {
    width: 100%;
    padding: 40px;
    background-color: #E4E4E4;
    margin-top: auto;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0);
}

.footer-text {
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 14px;
    color: #333333;
    text-align: center;
    margin: 0;
}
