body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

h1 {
    font-size: 0;
}

h1::after {
    content: 'Sawiya';
    font-size: 1.5rem;
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

#breadcrumb {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 2rem;
}

a {
    text-decoration: none !important;
    color: #000 !important;
    padding: 0.25rem 0;
    display: block;
    line-height: 1.5;
}

a:visited {
    color: #000 !important;
}

a:hover {
    background: #f8f9fa;
}

a[href$='/']:not([href='/']):not([href*='Parent']) {
    font-weight: bold;
    color: #0066cc !important;
}

a[href$='/']:not([href='/']):not([href*='Parent']):visited {
    color: #0066cc !important;
}

.video-icon,
.back-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 5px;
}

tr.indexhead {
    display: none !important;
}

table {
    line-height: 1.5;
    margin-bottom: 3rem;
}

td {
    padding: 0 !important;
}

/* Galerie */
#gallery {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

#gallery h2 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #333;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.heic-loading {
    width: 100%;
    height: 150px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    color: white;
    font-size: 3rem;
    pointer-events: none;
}

.gallery-item-name {
    padding: 0.5rem;
    background: #fff;
    font-size: 0.75rem;
    color: #666;
    text-align: center;
    word-break: break-word;
}