/* Relief Packages — gallery ([relief_gallery]) */
.rpk-g { --cols: 3; --gap: 14px; display: block; }
.rpk-g__head { margin: 0 0 24px; }
.rpk-g__filters { margin: 0 0 22px; }
.rpk-g__grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gap); }
.rpk-g.is-masonry .rpk-g__grid { display: block; column-count: var(--cols); column-gap: var(--gap); }
.rpk-g__item { position: relative; display: block; overflow: hidden; border-radius: calc(var(--rpk-radius) + 2px); background: linear-gradient(110deg, #e9ebf3 30%, #f4f5fa 50%, #e9ebf3 70%) 0 0 / 200% 100%; animation: rpk-g-shimmer 1.4s linear infinite; cursor: zoom-in; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.rpk-g__grid .rpk-g__item { aspect-ratio: var(--ratio, 4 / 3); }
.rpk-g.is-masonry .rpk-g__item { aspect-ratio: var(--ar, 4 / 3); margin: 0 0 var(--gap); break-inside: avoid; }
.rpk-g__item.is-loaded { animation: none; background: #e9ebf3; }
.rpk-g__item img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity .5s var(--rpk-ease), transform .8s var(--rpk-ease); }
.rpk-g__item.is-loaded img, .rpk-g:not(.is-js) .rpk-g__item img { opacity: 1; transform: none; }
.rpk-g__item:hover img { transform: scale(1.04); }
.rpk-g__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(3, 12, 40, .55)); opacity: 0; transition: opacity .3s; pointer-events: none; }
.rpk-g__item:hover::after, .rpk-g__item:focus-visible::after { opacity: 1; }
.rpk-g__item:focus-visible { outline: 3px solid var(--rpk-primary); outline-offset: 2px; }
.rpk-g__cap { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 10px; font-size: .84rem; line-height: 1.3; color: #fff; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--rpk-ease); pointer-events: none; }
.rpk-g__item:hover .rpk-g__cap, .rpk-g__item:focus-visible .rpk-g__cap { opacity: 1; transform: none; }
.rpk-g__more { margin: 36px 0 0; padding-bottom: 8px; text-align: center; }
@media (max-width: 700px) { .rpk-g__more { margin-top: 44px; padding-bottom: 28px; } }
.rpk-g__more .rpk-btn.is-busy { opacity: .6; pointer-events: none; }
.rpk-g.is-busy .rpk-g__grid { opacity: .55; transition: opacity .2s; }
@keyframes rpk-g-shimmer { to { background-position: -200% 0; } }
@media (max-width: 1024px) { .rpk-g { --cols: 3; } }
@media (max-width: 700px) { .rpk-g { --cols: 2; --gap: 10px; } .rpk-g__cap { display: none; } }
@media (hover: none) { .rpk-g__item::after { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rpk-g__item { animation: none; } .rpk-g__item img { transition: none; transform: none; } }

/* Lightbox */
.rpk-lb { position: fixed; inset: 0; z-index: 100000; display: none; align-items: center; justify-content: center; flex-direction: column; padding: 56px 16px 64px; background: rgba(4, 8, 24, .94); animation: rpk-lb-in .25s ease; touch-action: pan-y; }
.rpk-lb.is-open { display: flex; }
.rpk-lb__img { max-width: min(100%, 1400px); max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); transition: opacity .2s; user-select: none; -webkit-user-drag: none; }
.rpk-lb__img.is-swap { opacity: 0; }
.rpk-lb__cap { position: absolute; left: 0; right: 0; bottom: 18px; margin: 0; padding: 0 70px; text-align: center; font-size: .95rem; color: #e6e9f7; }
.rpk-lb__count { position: absolute; top: 18px; left: 20px; font-size: .85rem; color: #aab2d6; }
.rpk-lb button { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; font-size: 1.5rem; line-height: 1; color: #fff; background: rgba(255, 255, 255, .12); border: 0; border-radius: 50%; cursor: pointer; transition: background .2s; }
.rpk-lb button:hover { background: rgba(255, 255, 255, .26); }
.rpk-lb button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.rpk-lb__x { top: 12px; right: 14px; }
.rpk-lb__prev, .rpk-lb__next { top: 50%; margin-top: -23px; }
.rpk-lb__prev { left: 14px; }
.rpk-lb__next { right: 14px; }
@media (max-width: 640px) { .rpk-lb { padding: 56px 0 70px; } .rpk-lb__prev, .rpk-lb__next { top: auto; bottom: 14px; margin: 0; } .rpk-lb__prev { left: 14px; } .rpk-lb__next { right: 14px; } .rpk-lb__cap { padding: 0 70px; bottom: 22px; font-size: .85rem; } .rpk-lb__img { border-radius: 0; } }
@keyframes rpk-lb-in { from { opacity: 0; } }
body.rpk-lb-open { overflow: hidden; }

/* category badge on each photo */
.rpk-g__tag { position: absolute; z-index: 1; top: 10px; left: 10px; width: auto; max-width: calc(100% - 20px); padding: 3px 9px; font-size: 11px !important; line-height: 1.3 !important; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: var(--rpk-accent); border-radius: var(--rpk-radius); pointer-events: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 700px) { .rpk-g__tag { display: none !important; } }
