/* Organization Page Specific Styles */

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #000 0%, #2a2a2a 100%);
    color: #FFD700;
    padding: 70px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 56px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 20px;
    color: #FFF;
}

/* Content Container */
.content-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Historic Photo Section */
.historic-photo-section {
    text-align: center;
    margin-bottom: 40px;
}

.historic-photo-section img {
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.photo-caption {
    color: #FFD700;
    font-size: 18px;
    font-style: italic;
    margin-top: 15px;
}

/* Breadcrumb Navigation */
.breadcrumb {
    color: #c0c0c0;
    font-size: 14px;
    margin-bottom: 30px;
    padding: 10px 0;
}

.breadcrumb a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #FFF;
}

/* Organization Content */
.organization-content {
    background-color: #2a2a2a;
    padding: 50px 40px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    border-left: 5px solid #FFD700;
}

/* Article Header */
.article-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 3px solid #FFD700;
}

.article-header h2 {
    color: #FFD700;
    font-size: 42px;
    margin-bottom: 15px;
}

.article-header .author {
    color: #c0c0c0;
    font-size: 18px;
    font-style: italic;
}

/* Article Body - Paragraph Style */
.article-body {
    margin-bottom: 50px;
}

.article-body p {
    color: #e0e0e0;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: justify;
}

.article-body p:first-of-type:first-letter {
    font-size: 24px;
    font-weight: bold;
    color: #FFD700;
}

/* History Sections (for backward compatibility) */
.history-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #444;
}

.history-section:last-of-type {
    border-bottom: none;
}

.history-section h3 {
    color: #FFD700;
    font-size: 28px;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 4px solid #FFD700;
}

.history-section p {
    color: #e0e0e0;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Key Dates Section */
.key-dates {
    background-color: #333;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    border: 2px solid #FFD700;
}

.key-dates h3 {
    color: #FFD700;
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
}

.key-dates ul {
    list-style: none;
    padding: 0;
}

.key-dates li {
    color: #e0e0e0;
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}

.key-dates li:before {
    content: "▸";
    color: #FFD700;
    position: absolute;
    left: 0;
    font-size: 20px;
}

.key-dates li strong {
    color: #FFD700;
    font-weight: bold;
}

/* Family Legacy Section */
.family-legacy {
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    border: 2px solid #FFD700;
}

.family-legacy h3 {
    color: #FFD700;
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
}

.family-legacy p {
    color: #e0e0e0;
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.family-legacy strong {
    color: #FFD700;
}

/* Related Organizations Section */
.related-organizations {
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 8px;
    border: 2px solid #FFD700;
}

.related-organizations h3 {
    color: #FFD700;
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
}

.related-organizations p {
    color: #e0e0e0;
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.related-organizations strong {
    color: #FFD700;
}

/* Artifacts Section */
.artifacts-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 3px solid #FFD700;
}

.artifacts-section h3 {
    color: #FFD700;
    font-size: 32px;
    margin-bottom: 15px;
    text-align: center;
}

.artifacts-intro {
    color: #c0c0c0;
    font-size: 18px;
    text-align: center;
    margin-bottom: 40px;
    font-style: italic;
}

.artifacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.artifact-item {
    background-color: #1a1a1a;
    border: 2px solid #333;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.artifact-item:hover {
    border-color: #FFD700;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.2);
}

.artifact-item img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    display: block;
    background-color: #000;
}

.artifact-caption {
    color: #e0e0e0;
    font-size: 16px;
    padding: 15px;
    text-align: center;
    background-color: #2a2a2a;
}

/* Gallery Link Section */
.gallery-link-section {
    margin-top: 50px;
    text-align: center;
    padding: 30px;
    background-color: #1a1a1a;
    border-radius: 8px;
    border: 2px solid #FFD700;
}

.gallery-link-section p {
    color: #e0e0e0;
    font-size: 18px;
    margin-bottom: 20px;
}

.gallery-link-button {
    display: inline-block;
    background-color: #FFD700;
    color: #000;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.gallery-link-button:hover {
    background-color: #FFF;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 38px;
    }

    .organization-content {
        padding: 30px 20px;
    }

    .article-header h2 {
        font-size: 32px;
    }

    .article-body p {
        font-size: 16px;
        text-align: left;
    }

    .history-section h3 {
        font-size: 24px;
    }

    .key-dates,
    .family-legacy,
    .related-organizations {
        padding: 20px;
    }

    .key-dates h3,
    .family-legacy h3,
    .related-organizations h3 {
        font-size: 24px;
    }

    .artifacts-section h3 {
        font-size: 26px;
    }

    .artifacts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .artifact-item img {
        height: 250px;
    }
}

/* Artifact Viewer Modal */
.artifact-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.98);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.viewer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #FFD700;
    color: #000;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 32px;
    font-weight: bold;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3001;
    transition: all 0.3s;
}

.viewer-close:hover {
    background-color: #FFF;
    transform: scale(1.1);
}

.viewer-content {
    width: 90%;
    height: 90%;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#openseadragon-viewer {
    flex: 1;
    background-color: #000;
    border: 2px solid #FFD700;
    border-radius: 8px;
}

.viewer-info {
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #FFD700;
}

.viewer-info h3 {
    color: #FFD700;
    font-size: 24px;
    margin-bottom: 15px;
    text-align: center;
}

.viewer-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.control-btn {
    background-color: #FFD700;
    color: #000;
    border: none;
    width: 45px;
    height: 45px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.control-btn:hover {
    background-color: #FFF;
    transform: scale(1.1);
}

.zoom-level {
    background-color: #333;
    color: #FFD700;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    min-width: 80px;
    text-align: center;
}

@media (max-width: 768px) {
    .viewer-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .viewer-content {
        width: 100%;
        height: 100%;
    }

    .viewer-info h3 {
        font-size: 18px;
    }

    .control-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .zoom-level {
        min-width: 60px;
        font-size: 14px;
        padding: 8px 15px;
    }
}
