/* Archive Pages Styles - 2023, 2024年度の歩み */

/* Archive Hero Section */
.archive-main {
    height: auto;
    min-height: 60vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 60px;
}

/* 2024年度用のパステル油絵風背景 - Oil Painting Style */
.archive-main-2024 {
    background: 
        /* 유화 붓질 효과 - 여러 겹의 그라데이션 */
        linear-gradient(45deg, 
            rgba(255, 228, 225, 0.9) 0%, 
            rgba(255, 218, 233, 0.85) 20%,
            rgba(230, 230, 250, 0.8) 40%,
            rgba(176, 224, 230, 0.85) 60%,
            rgba(255, 250, 205, 0.9) 80%,
            rgba(255, 228, 196, 0.85) 100%);
    position: relative;
    overflow: hidden;
}

/* 유화 질감 레이어 1 - 큰 붓질 */
.archive-main-2024::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* 부드러운 핑크 붓질 */
        radial-gradient(ellipse 120% 80% at 10% 90%, rgba(255, 182, 193, 0.7) 0%, transparent 50%),
        /* 라벤더 붓질 */
        radial-gradient(ellipse 100% 70% at 90% 20%, rgba(200, 162, 200, 0.6) 0%, transparent 45%),
        /* 하늘색 붓질 */
        radial-gradient(ellipse 80% 100% at 70% 70%, rgba(135, 206, 235, 0.5) 0%, transparent 40%),
        /* 크림색 붓질 */
        radial-gradient(ellipse 90% 60% at 30% 30%, rgba(255, 253, 208, 0.7) 0%, transparent 50%),
        /* 연한 민트 붓질 */
        radial-gradient(ellipse 70% 90% at 50% 50%, rgba(189, 252, 201, 0.4) 0%, transparent 45%),
        /* 피치 붓질 */
        radial-gradient(ellipse 60% 80% at 85% 85%, rgba(255, 218, 185, 0.6) 0%, transparent 40%);
    pointer-events: none;
    mix-blend-mode: soft-light;
}

/* 유화 질감 레이어 2 - 캔버스 텍스처 */
.archive-main-2024::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='canvas'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.04' numOctaves='5' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23canvas)'/%3E%3C/svg%3E");
    opacity: 0.08;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.archive-main-2024 .archive-hero-content {
    position: relative;
    z-index: 1;
}

.archive-main-2024 .archive-year-badge {
    color: #4a3f5c;
    text-shadow: 
        3px 3px 0px rgba(255, 255, 255, 0.8),
        -1px -1px 0px rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.archive-main-2024 .archive-title {
    color: #5a4a6a;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.7);
}

.archive-main-2024 .archive-motto {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 8px 32px rgba(100, 80, 120, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.archive-main-2024 .archive-motto h4 {
    color: #6a5a7a;
}

.archive-main-2024 .archive-motto h4 i {
    color: #d4a574;
}

.archive-main-2024 .archive-motto h3 {
    color: #4a4a5a;
}

/* 2023年度用のパステル油絵風背景 - Warm Sunset Oil Painting */
.archive-main-2023 {
    background: 
        linear-gradient(135deg, 
            rgba(255, 245, 238, 0.95) 0%, 
            rgba(255, 228, 196, 0.9) 25%,
            rgba(255, 218, 185, 0.85) 50%,
            rgba(221, 160, 221, 0.8) 75%,
            rgba(176, 196, 222, 0.9) 100%);
    position: relative;
    overflow: hidden;
}

.archive-main-2023::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 100% 80% at 20% 80%, rgba(255, 200, 150, 0.6) 0%, transparent 50%),
        radial-gradient(ellipse 80% 100% at 80% 30%, rgba(255, 182, 193, 0.5) 0%, transparent 45%),
        radial-gradient(ellipse 90% 70% at 50% 60%, rgba(255, 248, 220, 0.5) 0%, transparent 50%),
        radial-gradient(ellipse 70% 80% at 25% 25%, rgba(230, 190, 255, 0.4) 0%, transparent 40%),
        radial-gradient(ellipse 80% 60% at 75% 75%, rgba(176, 224, 230, 0.4) 0%, transparent 45%);
    pointer-events: none;
    mix-blend-mode: soft-light;
}

.archive-main-2023::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='canvas'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.04' numOctaves='5' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23canvas)'/%3E%3C/svg%3E");
    opacity: 0.06;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.archive-main-2023 .archive-hero-content {
    position: relative;
    z-index: 1;
}

.archive-main-2023 .archive-year-badge {
    color: #8b4513;
    text-shadow: 
        3px 3px 0px rgba(255, 255, 255, 0.8),
        -1px -1px 0px rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.archive-main-2023 .archive-title {
    color: #6b4423;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.7);
}

.archive-main-2023 .archive-motto {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 8px 32px rgba(139, 69, 19, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.archive-main-2023 .archive-motto h4 {
    color: #8b5a2b;
}

.archive-main-2023 .archive-motto h4 i {
    color: #e67e22;
}

.archive-main-2023 .archive-motto h3 {
    color: #5a4030;
}

.archive-hero {
    text-align: center;
    color: white;
}

.archive-hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.archive-year-badge {
    display: inline-block;
    font-size: 5rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    font-family: 'Lato', sans-serif;
}

.archive-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.archive-motto {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-top: 20px;
}

.archive-motto .motto-item {
    margin-bottom: 20px;
}

.archive-motto .motto-item:last-child {
    margin-bottom: 0;
}

.archive-motto h4 {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    font-weight: 500;
}

.archive-motto h4 i {
    color: #ffeb3b;
    margin-right: 8px;
}

.archive-motto h3 {
    font-size: 1.2rem;
    color: white;
    font-weight: 600;
    line-height: 1.6;
}

/* Archive Header - Always Active */
.archive-header {
    background-color: rgb(254, 214, 214) !important;
}

/* Archive Header Layout - 로고와 네비게이션 간격 조정 */
.archive-header .container {
    justify-content: flex-start;
    gap: 40px;
}

/* Archive Page Container - 오버플로우 방지 */
.archive-page .container {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Archive Page - 세례 기록 섹션 컨테이너 반응형 */
@media screen and (max-width: 768px) {
    .archive-page > .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }
}

@media screen and (max-width: 480px) {
    .archive-page > .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 10px !important;
    }
}

/* Archive Header Navigation Spacing */
.archive-header .nav-menu {
    gap: 25px;
    flex-wrap: nowrap;
}

.archive-header .nav-menu li {
    padding: 8px 10px;
}

.archive-header .nav-menu li button {
    font-size: 1.2rem;
    padding: 8px 10px;
}

/* Archive Header 모바일 반응형 */
@media screen and (max-width: 768px) {
    .archive-header .nav-menu {
        gap: 15px;
    }
    
    .archive-header .nav-menu li {
        padding: 5px 8px;
    }
    
    .archive-header .nav-back-btn {
        padding: 8px 14px;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    .archive-header .nav-menu {
        gap: 8px;
    }
    
    .archive-header .nav-menu li {
        padding: 4px 5px;
    }
    
    .archive-header .nav-menu li button {
        font-size: 0.85rem;
        padding: 8px 5px;
    }
    
    .archive-header .nav-back-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
        border-radius: 15px;
    }
}

/* Archive Photos */
.archive-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

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

.archive-photo-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1;
    min-width: 200px;
    max-width: 350px;
}

.archive-photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.archive-photo-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.archive-photo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.archive-photo-card:hover .archive-photo-image img {
    transform: scale(1.05);
}

.archive-photo-caption {
    padding: 12px 15px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    font-size: 0.9rem;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* CS Photo Card for Archive */
.cs-photo-card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cs-photo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Archive Navigation */
.archive-navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 40px 20px;
    flex-wrap: wrap;
}

.archive-nav-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: white;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.archive-nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.archive-nav-button span,
.archive-nav-button i {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.archive-nav-button i {
    font-size: 1.1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
}

.archive-nav-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.25);
    border-color: #667eea;
}

.archive-nav-button:hover::before {
    opacity: 1;
}

.archive-nav-button:hover span {
    color: white;
}

.archive-nav-button:hover i {
    background: rgba(255, 255, 255, 0.2);
}

/* Navigation Back Button in Header */
.nav-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.nav-back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Archive Navigation Timeline - 新スタイル */
.archive-nav-timeline {
    width: 100%;
    max-width: 100%;
    margin: 40px auto;
    padding: 20px 30px;
    box-sizing: border-box;
    overflow-x: hidden;
}

.archive-nav-timeline .timeline-track {
    position: relative;
    padding: 10px 0;
}

.archive-nav-timeline .timeline-line {
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 3px;
    background: linear-gradient(90deg, #e8d5f0, #d4a5e8, #b388d4, #667eea);
    transform: translateY(-50%);
    border-radius: 2px;
}

.archive-nav-timeline .timeline-items {
    display: flex;
    justify-content: center;
    gap: 30px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.archive-nav-timeline .timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.archive-nav-timeline .timeline-dot {
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(142, 68, 173, 0.4);
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.archive-nav-timeline .timeline-dot.active {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5);
}

.archive-nav-timeline .timeline-dot.home {
    background: linear-gradient(135deg, #667eea, #5a67d8);
}

.archive-nav-timeline .timeline-year {
    background: white;
    padding: 6px 16px;
    border-radius: 18px;
    font-size: 1rem;
    font-weight: 700;
    color: #8e44ad;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.archive-nav-timeline .timeline-year.current {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.archive-nav-timeline .timeline-year.home {
    background: white;
    color: #667eea;
    padding: 6px 14px;
    white-space: nowrap;
}

.archive-nav-timeline .timeline-year.home i {
    font-size: 1rem;
    margin-right: 4px;
}

.archive-nav-timeline .timeline-item:not(.timeline-current):hover .timeline-dot {
    transform: scale(1.3);
    box-shadow: 0 4px 15px rgba(142, 68, 173, 0.6);
}

.archive-nav-timeline .timeline-item:not(.timeline-current):hover .timeline-year {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(142, 68, 173, 0.4);
}

.archive-nav-timeline .timeline-home:hover .timeline-year.home {
    background: linear-gradient(135deg, #667eea, #5a67d8);
    color: white;
}

/* Archive Timeline 反応型 */
@media screen and (max-width: 768px) {
    .archive-nav-timeline {
        padding: 20px 15px;
    }
    
    .archive-nav-timeline .timeline-items {
        gap: 20px;
    }
    
    .archive-nav-timeline .timeline-year {
        padding: 5px 14px;
        font-size: 0.95rem;
    }
}

@media screen and (max-width: 480px) {
    .archive-nav-timeline {
        padding: 15px 5px;
        width: 100%;
    }
    
    .archive-nav-timeline .timeline-items {
        gap: 8px;
        flex-wrap: nowrap;
    }
    
    .archive-nav-timeline .timeline-year {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    .archive-nav-timeline .timeline-year.home {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
    
    .archive-nav-timeline .timeline-dot {
        width: 8px;
        height: 8px;
        margin-bottom: 5px;
        border-width: 2px;
    }
    
    .archive-nav-timeline .timeline-dot.active {
        width: 10px;
        height: 10px;
    }
    
    .archive-nav-timeline .timeline-line {
        left: 0;
        right: 0;
    }
}

/* アーカイブイベントグリッド - 新しいレイアウト */
.archive-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.archive-event-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 20px;
}

.archive-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.archive-event-wide {
    grid-column: span 2;
}

.archive-event-full {
    grid-column: 1 / -1;
}

.archive-event-date {
    font-size: 0.9rem;
    color: #8e44ad;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.archive-event-date::before {
    content: '';
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
}

.archive-event-title {
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.5;
}

.archive-event-photo {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
}

.archive-event-photo:hover {
    transform: scale(1.02);
}

.archive-event-photo img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.archive-event-photo .photo-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 15px 12px 10px;
    font-size: 0.85rem;
    font-weight: 500;
}

.archive-event-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.archive-event-photos-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.archive-event-photos-row .archive-event-photo {
    flex: 1;
    min-width: 150px;
}

.archive-event-note {
    margin-top: 15px;
    text-align: center;
    color: #8e44ad;
    font-weight: 500;
    font-size: 0.95rem;
}

/* CS Activities Grid for Archive */
.cs-activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Video Container */
.video-container {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.video-container video {
    width: 100%;
    display: block;
}

.video-caption {
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    font-size: 0.9rem;
    color: #2c3e50;
}

/* Announcement Banner for Archive */
.archive-announcement {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 15px;
    padding: 25px 30px;
    margin: 30px 0;
    border-left: 5px solid #4caf50;
}

.archive-announcement p {
    margin: 10px 0;
    font-size: 1rem;
    color: #2c3e50;
    line-height: 1.8;
}

.archive-announcement span {
    font-weight: bold;
}

/* Meeting Section for Archive */
.archive-meetings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.archive-meeting-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.archive-meeting-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.archive-meeting-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.archive-meeting-content {
    padding: 20px;
}

.archive-meeting-content h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.archive-meeting-content p {
    margin: 8px 0;
    font-size: 0.95rem;
    color: #34495e;
    line-height: 1.6;
}

.archive-meeting-content p i {
    margin-right: 8px;
}

/* Wide Meeting Card - 2列幅 */
.archive-meeting-wide {
    grid-column: span 2;
}

@media screen and (max-width: 768px) {
    .archive-meeting-wide {
        grid-column: 1;
    }
}

/* Abraham Trip Gallery - 親睦旅行写真ギャラリー */
.abraham-trip-gallery {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dashed rgba(104, 23, 151, 0.2);
}

.abraham-trip-gallery h4 {
    font-size: 1rem;
    color: rgb(104, 23, 151);
    margin-bottom: 15px;
    font-weight: 600;
}

.abraham-trip-gallery h4 i {
    margin-right: 8px;
}

.abraham-trip-photos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.abraham-trip-photo {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.abraham-trip-photo:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(104, 23, 151, 0.25);
}

.abraham-trip-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.abraham-trip-photo .photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: white;
    padding: 25px 10px 8px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .abraham-trip-photos {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .abraham-trip-photos {
        grid-template-columns: 1fr;
    }
}

/* Summer School Gallery */
.summerschool-archive {
    margin-top: 30px;
}

.summerschool-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.summerschool-archive-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.summerschool-archive-item:hover {
    transform: scale(1.02);
}

.summerschool-archive-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.summerschool-archive-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 20px 15px 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .archive-year-badge {
        font-size: 3.5rem;
    }
    
    .archive-title {
        font-size: 1.5rem;
    }
    
    .archive-motto h3 {
        font-size: 1rem;
    }
    
    .archive-photos-grid {
        grid-template-columns: 1fr;
    }
    
    .archive-photo-card {
        max-width: 100%;
    }
    
    .cs-activities-grid {
        grid-template-columns: 1fr;
    }
    
    .archive-navigation {
        flex-direction: column;
        align-items: center;
    }
    
    .archive-nav-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .archive-meetings-grid {
        grid-template-columns: 1fr;
    }
    
    .summerschool-archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .archive-events-grid {
        grid-template-columns: 1fr;
    }
    
    .archive-event-wide,
    .archive-event-full {
        grid-column: 1;
    }
    
    .archive-event-photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .archive-event-photos-row {
        flex-direction: column;
    }
    
    .archive-event-photos-row .archive-event-photo {
        min-width: 100%;
    }
    
    /* Archive Baptism Responsive */
    .archive-page .baptism-announcement {
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px 15px !important;
        margin: 20px 0 !important;
        box-sizing: border-box !important;
    }
    
    .archive-page .baptism-names {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .archive-page .baptism-name-item {
        padding: 12px 15px !important;
        gap: 10px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .archive-page .baptism-name-item .name {
        font-size: 1rem !important;
    }
    
    .archive-page .baptism-date {
        font-size: 1rem !important;
        padding: 0 5px !important;
    }
    
    .archive-page .baptism-text {
        font-size: 0.95rem !important;
    }
}

@media screen and (max-width: 480px) {
    .archive-main {
        min-height: 50vh;
        padding-top: 80px;
    }
    
    .archive-year-badge {
        font-size: 3rem;
    }
    
    .archive-motto {
        padding: 20px;
    }
    
    .summerschool-archive-grid {
        grid-template-columns: 1fr;
    }
    
    /* Archive Baptism - Mobile */
    .archive-page .baptism-announcement {
        padding: 15px 8px !important;
        border-width: 2px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .archive-page .baptism-name-item {
        padding: 10px 10px !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .archive-page .baptism-name-item .name {
        font-size: 0.95rem !important;
    }
    
    .archive-page .baptism-name-item .title-suffix {
        font-size: 0.85rem !important;
    }
    
    .archive-page .baptism-date {
        font-size: 0.9rem !important;
        white-space: normal !important;
        word-break: keep-all !important;
    }
    
    .archive-page .baptism-text {
        font-size: 0.9rem !important;
    }
    
    .archive-page .baptism-header i {
        font-size: 1.8rem !important;
    }
}

/* Wide timeline item for summer school */
.cs-timeline-wide {
    grid-column: 1 / -1;
}

/* Additional Archive Styles */
.archive-photos .cs-photo-card {
    flex: 1;
    min-width: 150px;
    max-width: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.archive-photos .cs-photo-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Section subtitle */
.section-subtitle {
    text-align: center;
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

/* Audio player styling enhancement */
.cs-timeline-item .audio-player {
    margin-top: 15px;
}

/* Video container in timeline */
.timeline-content .video-container,
.cs-timeline-content .video-container,
.archive-event-card .video-container {
    margin: 15px 0;
    border-radius: 12px;
    overflow: hidden;
}

/* Audio player in event card */
.archive-event-card .audio-player {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.archive-event-card .audio-player audio {
    width: 100%;
}

/* Summer school grid within event card */
.archive-event-card .summerschool-archive {
    margin-top: 0;
}

.archive-event-card .summerschool-archive-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
