/* ====== Language Switcher - Top Right ====== */
.language-switcher {
    position: fixed;
    top: 15px;
    right: 20px;
    z-index: 9999;
    background: rgba(255,255,255,0.95);
    padding: 5px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.language-switcher a {
    margin: 0 3px;
}

.language-switcher img {
    width: 28px;
    height: auto;
    vertical-align: middle;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.language-switcher img:hover,
.language-switcher .active img {
    opacity: 1;
}

/* ====== Hide "Powered by Omeka S" ====== */
footer {
    display: none !important;
}

/* ====== Header Styling ====== */
#site-title a {
    color: #8B1A1A !important;
    letter-spacing: 2px;
}

/* ====== Navigation ====== */
nav.navigation {
    background: #8B1A1A;
    padding: 10px 0;
}

nav.navigation a {
    color: #fff !important;
    font-weight: 500;
    padding: 8px 16px;
    transition: background 0.2s;
}

nav.navigation a:hover {
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
}

/* ====== Item Cards ====== */
.resource-list .resource {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.resource-list .resource h4 a {
    color: #8B1A1A;
    font-size: 1.1em;
}

/* ====== Browse Preview Headings ====== */
.preview-block h2,
.browse-preview h2 {
    color: #8B1A1A;
    border-bottom: 2px solid #8B1A1A;
    padding-bottom: 8px;
    margin-top: 30px;
}

/* ====== Cookie Bar Styling ====== */
#eu-cookie-bar {
    background: #333 !important;
    color: #fff !important;
    font-size: 0.9em;
}



/* ====== Item Page - 3D Viewer ====== */
.three-d-viewer-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ====== Language Flags in Navigation ====== */
nav.navigation::after {
    content: "";
    clear: both;
}

/* ====== Browse page styling ====== */
.browse h2,
.browse .pagination {
    color: #8B1A1A;
}

.resource.item h4 a {
    color: #8B1A1A !important;
}

/* ====== Fix thumbnail grid ====== */
.resource-grid .resource {
    margin-bottom: 20px;
}

.resource-grid .resource img {
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}


/* ====== Hero Background ====== */
#content {
    position: relative;
}

body {
    background-image: url('/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* Overlay to lower opacity of background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    z-index: -1;
}

/* Make content readable over background */
#content,
.page-content,
.browse-preview {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 15px;
}

header {
    background: rgba(255, 255, 255, 0.9);
}

/* ====== Item Carousel ====== */
.carousel-block {
    margin: 20px 0;
    background: #fff;
    padding: 20px 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.carousel-block .slick-slide img {
    max-height: 450px;
    width: auto;
    margin: 0 auto;
    display: block;
    object-fit: contain;
}

.carousel-block .slide-text .title a {
    color: #8B1A1A !important;
    font-size: 1.2em;
    font-weight: 600;
    text-decoration: none;
}