.page-gallery {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.page-gallery__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 1.25rem;
}

.page-gallery__title {
    margin: 0 0 0.35rem;
    font-size: 1.45rem;
    font-weight: 700;
    color: #003366;
}

.page-gallery__subtitle {
    margin: 0;
    color: #4b5563;
    font-size: 0.95rem;
}

.page-gallery__nav {
    display: flex;
    gap: 8px;
}

.page-gallery__btn,
.page-gallery__close {
    border: 0;
    cursor: pointer;
}

.page-gallery__btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font-size: 1.2rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.page-gallery__btn:hover {
    background: #004b93;
    border-color: #004b93;
    color: #fff;
}

.page-gallery__viewport {
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 6px 0;
}

.page-gallery__viewport::-webkit-scrollbar {
    display: none;
}

.page-gallery__track {
    display: flex;
    gap: 20px;
}

.page-gallery__item {
    flex: 0 0 280px;
    position: relative;
    padding: 0;
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    text-align: left;
}

.page-gallery__item img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.page-gallery__item:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

.page-gallery__item img {
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.page-gallery__caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 12px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.75) 100%);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
}

.page-gallery__lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(17, 24, 39, 0.92);
}

.page-gallery__lightbox.is-open {
    display: flex;
}

.page-gallery__close {
    position: absolute;
    top: 24px;
    right: 28px;
    background: transparent;
    color: #fff;
    font-size: 2.4rem;
    line-height: 1;
}

.page-gallery__lightbox img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 12px;
    object-fit: contain;
}

.page-gallery__lightbox-caption {
    margin-top: 16px;
    color: #e5e7eb;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}
