.category-wrap {
    border-bottom: 1px solid black;

    background-color: #fff;
}

.category-wrap img,
.archive img,
#fullscreenModal img,
#flipbook-wrapper canvas {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.category-wrap.container-fluid{  width: 100%; padding-right: 16px; }
.category-wrap .wrap {
    /* max-width: 1420px;  */
    margin: 0 auto;
}
.custom-carousel-container {
    /* margin: 20px 0; */
    width: 100%;
}

.custom-carousel {
    position: relative;
    background: white;
    overflow: hidden;
    width: 100%;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a2a2a;
    padding: 24px 0px;
}

.carousel-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}


.carousel-controls {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-slide:hover .carousel-controls {
    opacity: 1;
}

.carousel-btn {
    background: rgba(0,0,0,0.8);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: #000066;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255);
    color: #333;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px  3px 1px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow:hover {
    background: #000066;
    color: #ffffff;
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* ── Thumbnail grid (normal view, under the main image) ─────────────────── */
.gallery-thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    padding: 16px;


    overflow-y: auto;

}

.grid-thumb-item {
    aspect-ratio: 1 / 1;
    cursor: pointer;
    border: 2px solid #bdb9b9;
    border-radius: 2px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.grid-thumb-item.active {
    border-color: #000066;
}

.grid-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.grid-thumb-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.grid-thumb-item:hover::after {
    opacity: 1;
}

.grid-thumb-item.active::after {
    opacity: 0;
}

/* ── Thumbnail filmstrip (fullscreen view only) ──────────────────────────── */
.fullscreen-thumbnails {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(0,0,0,0.4);
}

.fullscreen-thumb-item.hidden-thumb {
    display: none;
}

.fullscreen-thumb-item {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 2px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.fullscreen-thumb-item.active {
    border-color: #fff;
    opacity: 1;
}

.fullscreen-thumb-item:hover {
    opacity: 1;
}

.fullscreen-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.current-image-description {
    margin-bottom: 10px;
    color: #000066;
    line-height: 1.6;
}


/* Fixed Fullscreen Modal */
.fullscreen-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.fullscreen-modal.active {
    opacity: 1;
    visibility: visible;
}

.fullscreen-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}


.fullscreen-carousel {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px 20px;
}

.fullscreen-track {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fullscreen-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fullscreen-slide img {
    max-width: 85vw;
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}



.fullscreen-close,
.fullscreen-arrow {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    width: 36px;
    height:36px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
     box-shadow: 0 1px  3px 1px rgba(0,0,0,1);
}

.fullscreen-close {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 100;
    font-size: 30px;
}

.fullscreen-arrow {
    position: absolute;
    top: 50%;

}

.fullscreen-close:hover,
.fullscreen-arrow:hover {
    background: #000066;

}

.fullscreen-prev {
    left: 30px;
}

.fullscreen-next {
    right: 30px;
}

.fullscreen-info {
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 25px;
    text-align: center;
    backdrop-filter: blur(20px);
}

.fullscreen-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.fullscreen-description {
    margin-bottom: 10px;
    opacity: 0.9;
    line-height: 1.5;
}

.fullscreen-date {
    opacity: 0.7;
    font-size: 0.9rem;
}

.progress-indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 4px;
    color: white;
    font-size: 1.3rem;
    backdrop-filter: blur(10px);
}


.carousel-counter {
    position: absolute;
    background-color: #ffffff;
    z-index: 10;
    left: 1%;
    top: 2%;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #000066;

}

.current-image-info,
.record-content {
    gap: 16px;
    display: flex;
    flex-direction: column;
    /* margin-top: 36px; */
}

.record-content a {   color: #000066; ; }
.record-content  a:hover { color: #000066;  }


.record-category-items{
    display: flex;
    flex-direction: column;
}

.record-links {
    display: flex;
    flex-direction: column;
 gap: 4px;
}

.bold {
    font-weight: bold;
}

@media screen and (max-width: 1622px) and (min-width: 1302px) {
      .main_content {
        margin-top:  48px !important; /* Adjust this value as needed */
    }
}

.alt-image img{
    max-width: 1500px;
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.single-image-fallback img {
    width: 100%;
    max-height: 680px;
    object-fit: cover;
    object-position: center;
}

.navigation-links {
    margin-bottom: 16px;
    font-weight: bold;
}

.navigation-links a {
    color: #000066;
}

.navigation-links a:hover {
    color: #000066;
    text-decoration: none;
}



/* ── Record detail 2-column layout ─────────────────────────────────────── */
.record-layout-2col {
    /* margin-top: 24px; */
    /* display: flex;
    align-items: stretch; */
    background-color: rgb(251, 253, 2555);
}

.record-media-col {
    height: 100%;
    padding: 36px 24px 36px 64px;
    /* background-color: rgb(251, 253, 2555); */
}

.record-info-col {
    padding: 36px 64px 36px 24px;
    /* background-color: rgb(255, 255, 255); */

}

.record-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
     padding-bottom: 32px;
}

.record-title {
    margin-top: 0;
    padding-top: 0;
    font-size: 22px;
    font-weight: bold;
    color: #000066;
}

.record-description {
    line-height: 1.7;
    color: #333;
}

.record-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
}

.record-meta-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.record-meta-label {
    font-weight: bold;
    color: #000066;
    white-space: nowrap;
}

.record-category-items {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.record-category-items a {
    color: #000066;
}

.record-category-items a:hover {
    color: #051f85;
    text-decoration: none;
}

/* Tags */
.record-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.record-tag {
    display: inline-block;
    background: #f0f0f5;
    color: #051f85;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 2px 8px;
    font-size: 12px;
    text-decoration: none;
}

.record-tag:hover {
    background: #000066;
    color: #fff;
    border-color: #000066;
    text-decoration: none;
}

/* Downloads */
.record-downloads {
    font-size: 14px;
}

.record-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.record-links a {
    color: #000066;
}

.record-links a:hover {
    color: #000066;
}

/* Per-image info in right col */
.current-image-info {

    margin-bottom: 20px;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.current-image-title {
    font-weight: bold;
    font-size: 15px;
    color: #000066;
}

.current-image-date {
    font-size: 13px;
    color: #777;
}

.current-image-description {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

/* Plain image in the media column (no gallery/document, but a thumbnail image exists) */
.record-image-only {

}

.record-image-only img {
    max-height: 520px;
    width: 100%;
    object-fit: contain;
    border-radius: 4px;
}

/* Single-column layout */
.record-single-col {
    max-width: 860px;
    margin: 24px auto 0;
}

.record-single-image {
    margin-bottom: 20px;
}

.record-single-image img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
}

/* Flipbook embed */
.record-flipbook-embed {
    width: 100%;
    min-height: 500px;
}

.record-flipbook-embed iframe,
.record-flipbook-embed object,
.record-flipbook-embed embed {
    width: 100%;
    min-height: 500px;
    border: none;
}

/* Media tabs */
.record-media-tabs {
    margin-bottom: 0;
    border-bottom: 2px solid #000066;
}

.record-media-tabs > li > a {
    color: #000066;
    border-radius: 3px 3px 0 0;
    background: #fff;
    border: 0;
}

.record-media-tabs > li.active > a,
.record-media-tabs > li.active > a:focus,
.record-media-tabs > li.active > a:hover {
    background: #000066;
    color: #e6eaec;
    border-color: #000066 #000066 #000066;

}

.record-media-tab-content {

    border-top: none;

}

.archive-breadcrumb {
    font-size: 16px;
    color: #636262;
    margin-bottom: 0;
    /* margin-left: 16px; */
    margin-top: 163px;
    padding: 24px 64px;
    background-color: #eef0f7;
}


.archive-breadcrumb a {
    color: #555;
    text-decoration: none;
}

.archive-breadcrumb a:hover {
    color: #000066;
    text-decoration: underline;
}

.archive-breadcrumb-sep {
    margin: 0 6px;
    color: #ccc;
}

.archive-breadcrumb-current {
    color: #051f85;
    font-weight: 600;
}





@media screen and (max-width: 996px) {
    .record-info-col {
        margin-top: 24px;
    }

}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-wrapper {
        height: 300px;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .gallery-thumb-grid {
        padding: 12px;
        gap: 8px;
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }

    .fullscreen-thumb-item {
        width: 48px;
        height: 48px;
    }

    .fullscreen-arrow {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .fullscreen-prev {
        left: 15px;
    }

    .fullscreen-next {
        right: 15px;
    }

    .fullscreen-slide img {
        max-width: 90vw;
        max-height: 65vh;
    }

    .fullscreen-carousel {
        padding: 60px 20px 20px;
    }

    .record-media-col,
    .record-info-col {
        padding: 8px 24px;
    }
    .record-media-col {
        margin-bottom: 24px;
    }

    .archive-breadcrumb {
        padding: 20px 24px;
    }

}

@media screen and (max-width: 576px) {
    .fullscreen-thumb-item {
        width: 36px;
        height: 36px;
    }

    /* .category-wrap {
        padding-top: 23% !important;
    } */

    .carousel-controls .fullscreen-btn{
        display: none;
    }
}


@media screen and (max-width: 1300px) {
    .archive-breadcrumb {
    margin-top: 115px;

    }

}
