.fv-page {
    padding: 0 0 48px;
}

.fv-section {
    margin-bottom: 48px;
}

.fv-section:last-child {
    margin-bottom: 0;
}

.fv-section-title {
    margin: 28px 0 10px;
    padding-bottom: 10px;
    font-size: 2.15rem;
    font-weight: 700;
    color: #033f88;
    line-height: 1.15;
    letter-spacing: -0.02em;
    border-bottom: 3px solid #f9a800;
}

.fv-section-lead {
    margin: 0 0 24px;
    font-size: 15px;
    line-height: 1.6;
    color: #444444;
    max-width: 62ch;
}

.fv-album-grid,
.fv-video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.fv-album-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(3, 63, 136, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fv-album-card:hover,
.fv-album-card:focus {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(3, 63, 136, 0.16);
    text-decoration: none;
}

.fv-album-cover {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eef1f6;
}

.fv-album-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fv-album-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px 16px;
}

.fv-album-title {
    font-size: 15px;
    font-weight: 700;
    color: #033f88;
    line-height: 1.35;
}

.fv-album-count {
    font-size: 13px;
    color: #666666;
}

.fv-video-card {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fv-video-card:hover,
.fv-video-card:focus {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
    outline: none;
}

.fv-video-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: #111111;
}

.fv-video-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fv-video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(3, 63, 136, 0.28);
    transition: background 0.2s ease;
}

.fv-video-play::after {
    content: "";
    width: 0;
    height: 0;
    margin-left: 6px;
    border-style: solid;
    border-width: 18px 0 18px 30px;
    border-color: transparent transparent transparent #ffffff;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.fv-video-card:hover .fv-video-play,
.fv-video-card:focus .fv-video-play {
    background: rgba(249, 168, 0, 0.45);
}

.fv-empty {
    margin: 0;
    padding: 28px 24px;
    text-align: center;
    font-size: 16px;
    color: #555555;
    background: #f7f8fb;
    border-radius: 10px;
}

.fv-empty--error {
    color: #8a2a2a;
    background: #fff5f5;
}

.fv-breadcrumb {
    padding-top: 20px;
    margin-bottom: 8px;
    font-size: 14px;
}

.fv-breadcrumb a {
    color: #033f88;
    font-weight: 600;
    text-decoration: none;
}

.fv-breadcrumb a:hover,
.fv-breadcrumb a:focus {
    color: #f9a800;
    text-decoration: underline;
}

.fv-album-header {
    margin-bottom: 20px;
}

.fv-album-heading {
    margin: 0;
    font-size: 1.85rem;
    font-weight: 700;
    color: #033f88;
    line-height: 1.2;
}

.fv-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding: 12px 0;
    border-top: 1px solid #e4e8ef;
    border-bottom: 1px solid #e4e8ef;
}

.fv-pagination-link {
    color: #033f88;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.fv-pagination-link:hover,
.fv-pagination-link:focus {
    color: #f9a800;
    text-decoration: underline;
}

.fv-pagination-info {
    font-size: 14px;
    color: #555555;
}

.fv-pagination-spacer {
    flex: 0 0 80px;
}

.fv-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 10px;
}

.fv-photo-thumb {
    display: block;
    width: 100%;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    background: #eef1f6;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.fv-photo-thumb:hover,
.fv-photo-thumb:focus {
    border-color: #f9a800;
    transform: scale(1.03);
    outline: none;
}

.fv-photo-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
}

body.fv-modal-open {
    overflow: hidden;
}

.fv-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.fv-modal.is-open {
    visibility: visible;
    opacity: 1;
}

.fv-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 30, 60, 0.82);
}

.fv-modal-dialog {
    position: relative;
    z-index: 1;
}

.fv-modal-close {
    position: absolute;
    top: -12px;
    right: -12px;
    z-index: 3;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #033f88;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    transition: background 0.2s ease, color 0.2s ease;
}

.fv-modal-close:hover,
.fv-modal-close:focus {
    background: #f9a800;
    color: #ffffff;
    outline: none;
}

.fv-modal-dialog--video {
    width: 100%;
    max-width: 860px;
}

.fv-modal-video-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.fv-modal-video-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.fv-modal-dialog--photo {
    width: 100%;
    max-width: min(960px, 96vw);
    max-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fv-photo-viewer {
    margin: 0;
    width: 100%;
    text-align: center;
}

.fv-photo-image {
    display: block;
    max-width: 100%;
    max-height: calc(92vh - 80px);
    width: auto;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.fv-photo-caption {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 14px;
    padding: 0 48px;
}

.fv-photo-counter {
    font-size: 13px;
    font-weight: 700;
    color: #f9a800;
    letter-spacing: 0.04em;
}

.fv-photo-title {
    font-size: 15px;
    color: #ffffff;
    line-height: 1.4;
}

.fv-photo-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #033f88;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    transition: background 0.2s ease, color 0.2s ease;
}

.fv-photo-nav:hover,
.fv-photo-nav:focus {
    background: #f9a800;
    color: #ffffff;
    outline: none;
}

.fv-photo-nav--prev {
    left: 0;
}

.fv-photo-nav--next {
    right: 0;
}

.fv-photo-nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.fv-photo-nav:disabled:hover,
.fv-photo-nav:disabled:focus {
    background: rgba(255, 255, 255, 0.92);
    color: #033f88;
}

@media (max-width: 991.98px) {
    .fv-album-grid,
    .fv-video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (max-width: 767.98px) {
    .fv-section-title {
        font-size: 1.75rem;
    }

    .fv-album-grid,
    .fv-video-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .fv-album-heading {
        font-size: 1.5rem;
    }

    .fv-photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
        gap: 8px;
    }

    .fv-photo-nav {
        width: 40px;
        height: 40px;
        font-size: 26px;
    }

    .fv-photo-caption {
        padding: 0 8px;
    }

    .fv-modal-close {
        top: 8px;
        right: 8px;
    }
}
