.jubilee-widget {
    position: relative;
    width: 100%;
    margin: 35px 0;
    padding: 8px 50px 20px 50px;
    font-family: Arial, Helvetica, sans-serif;
    background: transparent;
    border-bottom: 1px solid #e3eaf2;
    border-radius: 0;
    overflow: hidden;
}

.jubilee-widget__viewport {
    overflow: hidden;
    width: 100%;
}

.jubilee-widget__track {
    display: table;
    table-layout: fixed;
    white-space: nowrap;
    transition: transform 420ms ease;
}

.jubilee-widget__tile {
    position: relative;
    display: inline-block;
    width: 245px;
    min-height: 104px;
    margin-right: 12px;
    padding: 18px 16px;
    vertical-align: top;
    color: #184b7a;
    background: linear-gradient(180deg, #ffffff 0%, #f3f8fd 100%);
    border: 1px solid #d7e5f3;
    border-radius: 18px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 77, 153, 0.08);
    overflow: hidden;
    transition: box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.jubilee-widget__tile:before {
    content: "";
    position: absolute;
    left: -50px;
    top: -70px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(184, 138, 42, 0.10);
}

.jubilee-widget__tile:after {
    content: "";
    position: absolute;
    right: -45px;
    bottom: -65px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(0, 87, 184, 0.06);
}

.jubilee-widget__tile:focus,
.jubilee-widget__tile:hover {
    color: #0057b8;
    border-color: #aac6e3;
    box-shadow: 0 12px 24px rgba(0, 77, 153, 0.12);
    text-decoration: none;
}

.jubilee-widget__logo {
    position: relative;
    z-index: 2;
    display: inline-block;
    width: 46px;
    height: 46px;
    margin-right: 12px;
    object-fit: contain;
    vertical-align: middle;
}

.jubilee-widget__name {
    position: relative;
    z-index: 2;
    display: inline-block;
    width: 155px;
    max-height: 56px;
    overflow: hidden;
    vertical-align: middle;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    white-space: normal;
}

.jubilee-widget__tile--no-logo .jubilee-widget__name {
    width: 100%;
}

.jubilee-widget__nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 38px;
    height: 38px;
    margin-top: -19px;
    padding: 0;
    color: #0057b8;
    background: #fff;
    border: 1px solid #d7e5f3;
    border-radius: 50%;
    box-shadow: 0 8px 18px rgba(0, 77, 153, 0.10);
    font-size: 24px;
    line-height: 34px;
    text-align: center;
}

.jubilee-widget__nav:hover,
.jubilee-widget__nav:focus {
    color: #0057b8;
    background: #f1f7fd;
    border-color: #aac6e3;
    outline: none;
}

.jubilee-widget__nav--prev {
    left: 0;
}

.jubilee-widget__nav--next {
    right: 0;
}

.jubilee-widget__empty,
.jubilee-widget__error {
    margin: 0;
    padding: 20px;
    color: #667085;
    background: #f7fafc;
    border: 1px solid #dfeaf4;
    border-radius: 12px;
}

.jubilee-detail {
    margin-top: 35px;
    margin-bottom: 40px;
    font-family: Arial, Helvetica, sans-serif;
}

.jubilee-detail-main {
    margin-bottom: 26px;
}

.jubilee-detail-card {
    position: relative;
    padding: 26px 72px 30px 72px;
    color: #184b7a;
    background: linear-gradient(135deg, #fafdff 0%, #eef5fc 55%, #e6f0fa 100%);
    border: 1px solid #b7d0ea;
    border-radius: 18px;
    box-shadow: 0 14px 28px rgba(0, 77, 153, 0.14);
    overflow: hidden;
}

.jubilee-detail-card:before {
    content: "";
    position: absolute;
    left: -70px;
    top: -95px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: rgba(184, 138, 42, 0.10);
}

.jubilee-detail-card:after {
    content: "";
    position: absolute;
    right: -75px;
    bottom: -105px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(0, 87, 184, 0.06);
}

.jubilee-detail__head {
    position: relative;
    z-index: 2;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e3eaf2;
}

.jubilee-detail__logo {
    width: 72px;
    max-height: 72px;
    margin-right: 16px;
    object-fit: contain;
    vertical-align: middle;
}

.jubilee-detail__title {
    display: inline-block;
    margin: 0;
    vertical-align: middle;
    color: #0057b8;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
}

.jubilee-detail__text {
    position: relative;
    z-index: 2;
    padding: 20px 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f3f8fd 100%);
    border: 1px solid #d7e5f3;
    border-radius: 18px;
    color: #52708f;
    box-shadow: 0 8px 20px rgba(0, 77, 153, 0.08);
    font-size: 15px;
    line-height: 1.55;
}

.jubilee-detail-card__arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 42px;
    height: 42px;
    margin-top: -21px;
    padding: 0;
    color: #0057b8;
    background: #fff;
    border: 1px solid #d7e5f3;
    border-radius: 50%;
    box-shadow: 0 8px 18px rgba(0, 77, 153, 0.10);
    font-size: 28px;
    line-height: 38px;
    text-align: center;
}

.jubilee-detail-card__arrow:hover,
.jubilee-detail-card__arrow:focus {
    color: #0057b8;
    background: #f1f7fd;
    border-color: #aac6e3;
    outline: none;
}

.jubilee-detail-card__arrow--prev {
    left: 18px;
}

.jubilee-detail-card__arrow--next {
    right: 18px;
}

.jubilee-detail-card__body {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(160px, 20%) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.jubilee-detail-card__media,
.jubilee-detail-card__text {
    min-width: 0;
}

.jubilee-detail__scan-placeholder {
    position: relative;
    z-index: 2;
    padding: 20px;
    color: #667085;
    background: #f7fafc;
    border: 1px solid #dfeaf4;
    border-radius: 12px;
}

.jubilee-detail__loading,
.jubilee-detail__missing {
    margin-top: 24px;
}

.jubilee-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0;
}

.jubilee-gallery__item {
    position: relative;
    z-index: 2;
    display: block;
    margin: 0;
    padding: 0;
}

.jubilee-gallery__thumb {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: contain;
    background: linear-gradient(180deg, #ffffff 0%, #f3f8fd 100%);
    border: 1px solid #d7e5f3;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0, 77, 153, 0.08);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.jubilee-gallery__link:hover .jubilee-gallery__thumb,
.jubilee-gallery__link:focus .jubilee-gallery__thumb {
    border-color: #aac6e3;
    box-shadow: 0 12px 24px rgba(0, 77, 153, 0.12);
    transform: translateY(-3px);
}

.jubilee-detail-nav {
    padding-top: 8px;
    border-top: 1px solid #e3eaf2;
}

.jubilee-detail-nav__title {
    margin-bottom: 14px;
    color: #b88a2a;
    font-size: 13px;
    line-height: 1.2;
    font-weight: bold;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.jubilee-detail-nav__grid {
    display: table;
    width: 100%;
    table-layout: fixed;
    border-spacing: 12px 12px;
    margin: -12px;
}

.jubilee-detail-nav__tile {
    position: relative;
    display: table-cell;
    width: 20%;
    min-height: 96px;
    padding: 16px 15px;
    overflow: hidden;
    vertical-align: top;
    color: #184b7a;
    background: linear-gradient(180deg, #ffffff 0%, #f3f8fd 100%);
    border: 1px solid #d7e5f3;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0, 77, 153, 0.08);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.jubilee-detail-nav__tile:before {
    content: "";
    position: absolute;
    left: -45px;
    top: -65px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(184, 138, 42, 0.10);
}

.jubilee-detail-nav__tile:hover,
.jubilee-detail-nav__tile:focus,
.jubilee-detail-nav__tile.is-active {
    color: #0057b8;
    border-color: #aac6e3;
    box-shadow: 0 12px 24px rgba(0, 77, 153, 0.12);
    text-decoration: none;
    transform: translateY(-3px);
}

.jubilee-detail-nav__tile.is-active {
    background: linear-gradient(135deg, #fafdff 0%, #eef5fc 55%, #e6f0fa 100%);
}

.jubilee-detail-nav__logo {
    position: relative;
    z-index: 2;
    display: inline-block;
    width: 38px;
    height: 38px;
    margin-right: 10px;
    object-fit: contain;
    vertical-align: middle;
}

.jubilee-detail-nav__name {
    position: relative;
    z-index: 2;
    display: inline-block;
    width: 130px;
    max-height: 56px;
    overflow: hidden;
    vertical-align: middle;
    font-size: 14px;
    line-height: 1.25;
    font-weight: bold;
    white-space: normal;
}

.jubilee-detail-nav__tile--no-logo .jubilee-detail-nav__name {
    width: 100%;
}

.jubilee-detail-nav__break {
    display: table-row;
}

.jubilee-lightbox {
    position: fixed;
    z-index: 9999;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    padding: 28px;
    background: rgba(24, 75, 122, .88);
    text-align: center;
}

.jubilee-lightbox.is-open {
    display: block;
}

.jubilee-lightbox__image {
    max-width: 96%;
    max-height: 90vh;
    margin-top: 20px;
    background: #fff;
    border: 6px solid #fff;
    border-radius: 12px;
    box-shadow: 0 10px 34px rgba(0, 0, 0, .35);
}

.jubilee-lightbox__close {
    position: absolute;
    top: 14px;
    right: 18px;
    width: 42px;
    height: 42px;
    color: #0057b8;
    background: #fff;
    border: 1px solid #d7e5f3;
    border-radius: 50%;
    box-shadow: 0 8px 18px rgba(0, 77, 153, 0.10);
    font-size: 38px;
    line-height: 38px;
}

.jubilee-lightbox__close:hover,
.jubilee-lightbox__close:focus {
    background: #f1f7fd;
    color: #0057b8;
    outline: none;
}

.jubilee-admin {
    margin-top: 24px;
    margin-bottom: 40px;
}

.jubilee-admin__gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
    gap: 12px;
    max-height: 420px;
    overflow: auto;
    padding: 12px;
    border: 1px solid #d7e5f3;
    border-radius: 12px;
    background: #f7fafc;
}

.jubilee-admin__file {
    position: relative;
    display: block;
    min-width: 0;
    margin: 0;
    padding: 8px;
    background: #fff;
    border: 1px solid #d7e5f3;
    border-radius: 12px;
    font-weight: normal;
}

.jubilee-admin__file.is-used {
    color: #184b7a;
    font-weight: 600;
    border-color: #aac6e3;
    box-shadow: 0 8px 18px rgba(0, 77, 153, 0.10);
}

.jubilee-admin__thumb-link {
    display: block;
    margin-bottom: 8px;
}

.jubilee-admin__thumb {
    display: block;
    width: 100%;
    height: 92px;
    object-fit: contain;
    background: #f7fafc;
    border: 1px solid #e3eaf2;
    border-radius: 8px;
}

.jubilee-admin__file-name {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    min-width: 0;
    margin: 0;
    font-size: 12px;
    line-height: 1.25;
    cursor: pointer;
}

.jubilee-admin__file-name span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.jubilee-admin__used-mark {
    position: absolute;
    top: 6px;
    right: 6px;
    display: block;
    width: 22px;
    height: 22px;
    color: #fff;
    background: #0057b8;
    border-radius: 50%;
    font-size: 14px;
    line-height: 22px;
    text-align: center;
}

.jubilee-admin__preview-image {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
}

.jubilee-admin-editor__toolbar {
    margin-bottom: 8px;
}

.jubilee-admin-editor__area {
    min-height: 190px;
    height: auto;
    overflow: auto;
    line-height: 1.5;
}

.jubilee-admin-editor__area:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);
    outline: 0;
}

.jubilee-admin__paths,
.jubilee-admin__copy {
    margin-bottom: 20px;
    padding: 15px;
    background: #f7fafc;
    border: 1px solid #d7e5f3;
    border-radius: 12px;
}

.jubilee-admin__fetch-form {
    margin-top: 12px;
}

.jubilee-admin__json-copy {
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
    line-height: 1.45;
    resize: vertical;
}

@media (max-width: 767px) {
    .jubilee-widget {
        padding-right: 0;
        padding-left: 0;
    }

    .jubilee-widget__tile {
        width: 220px;
        margin-right: 9px;
    }

    .jubilee-widget__nav {
        display: none;
    }

    .jubilee-detail__title {
        display: block;
        margin-top: 12px;
        font-size: 24px;
    }

    .jubilee-detail-card {
        padding: 24px 18px 26px 18px;
    }

    .jubilee-detail-card__body {
        display: block;
    }

    .jubilee-detail-card__media {
        margin-bottom: 18px;
    }

    .jubilee-gallery__thumb {
        height: 320px;
    }

    .jubilee-detail-card__arrow {
        position: static;
        display: inline-block;
        margin: 0 8px 18px 0;
    }

    .jubilee-detail-nav__grid {
        display: block;
        margin: 0;
        border-spacing: 0;
    }

    .jubilee-detail-nav__tile {
        display: block;
        width: 100%;
        margin-bottom: 12px;
    }
}
