.ffg-gallery {
    width: 100%;
}
.ffg-filter-wrap {
    margin-bottom: 28px;
}
.ffg-filter-title {
    font-size: 15px;
    line-height: 1.3;
    margin-bottom: 14px;
    color: #111;
}
.ffg-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.ffg-filter-button {
    appearance: none;
    min-width: 95px;
    border: 0;
    background: #fff;
    color: #111;
    padding: 20px 28px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: transform .18s ease, background .18s ease, opacity .18s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.ffg-filter-button::before {
    content: "";
    width: 13px;
    height: 13px;
    border-radius: 999px;
    background: #f1efdf;
    flex: 0 0 13px;
    transition: background .18s ease, transform .18s ease;
}
.ffg-filter-button.is-active::before {
    background: #0f4d5c;
}
.ffg-filter-button:hover {
    transform: translateY(-1px);
}
.ffg-filter-button.is-active {
    background: #9ac8d1;
}
.ffg-grid {
    display: grid;
    grid-template-columns: repeat(var(--ffg-cols-desktop, 3), minmax(0, 1fr));
    gap: var(--ffg-gap, 16px);
}
.ffg-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--ffg-card-radius, 0px);
}
.ffg-card.is-hidden {
    display: none;
}
.ffg-card-button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
    position: relative;
    overflow: hidden;
    color: inherit;
    font: inherit;
        border-radius: 0px !important;
}
.ffg-image-box {
    display: block;
    width: 100%;
    padding-top: var(--ffg-ratio, 70%);
    position: relative;
    background: #f4f4f4;
    overflow: hidden;
    border-radius: var(--ffg-image-radius, 0px);
}
.ffg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease, filter .25s ease;
}
.ffg-image-box > img.ffg-image {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    display: block !important;
}
.ffg-card-button:hover .ffg-image {
    transform: scale(1.035);
}
.ffg-info-overlay .ffg-card-button:hover .ffg-image {
    filter: brightness(.82);
}
.ffg-info-hover .ffg-card-button:hover .ffg-image {
    filter: brightness(.72);
}
.ffg-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 22px 24px;
    color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,.58), rgba(0,0,0,0));
    display: flex;
    flex-direction: column;
    gap: 2px;
    pointer-events: none;
}
.ffg-info-hover .ffg-overlay {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .22s ease, transform .22s ease;
}
.ffg-info-hover .ffg-card-button:hover .ffg-overlay,
.ffg-info-hover .ffg-card-button:focus-visible .ffg-overlay {
    opacity: 1;
    transform: translateY(0);
}
.ffg-meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-top: var(--ffg-info-gap, 12px);
    color: #111;
    text-decoration: none;
}
.ffg-info-below .ffg-card-button:hover .ffg-image {
    filter: none;
}
.ffg-title,
.ffg-subtitle,
.ffg-description {
    display: block;
    line-height: 1.12;
}
.ffg-info-overlay .ffg-title,
.ffg-info-overlay .ffg-subtitle,
.ffg-info-overlay .ffg-description,
.ffg-info-hover .ffg-title,
.ffg-info-hover .ffg-subtitle,
.ffg-info-hover .ffg-description {
    color: #fff;
    text-shadow: 0 1px 8px rgba(0,0,0,.35);
}
.ffg-info-below .ffg-title,
.ffg-info-below .ffg-subtitle,
.ffg-info-below .ffg-description {
        font-family: 'Plus Jakarta Sans';
    color: #111;
    text-shadow: none;
}
.ffg-title {
    font-weight: 700;
    font-size: var(--ffg-title-size, 16px);
}
.ffg-subtitle {
    font-weight: 700;
    font-size: 20px;
    font-weight: 400;
}
.ffg-description {
    font-size: var(--ffg-description-size, 14px);
    font-weight: 400;
}
.ffg-align-left .ffg-overlay,
.ffg-align-left .ffg-meta {
    text-align: left;
    align-items: flex-start;
}
.ffg-align-center .ffg-overlay,
.ffg-align-center .ffg-meta {
    text-align: center;
    align-items: center;
}
.ffg-align-right .ffg-overlay,
.ffg-align-right .ffg-meta {
    text-align: right;
    align-items: flex-end;
}
.ffg-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: #303030;
    display: grid;
    grid-template-rows: minmax(0, 1fr) 54px;
    padding: 0;
}
.ffg-lightbox-stage {
    min-height: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 54px 30px;
}
.ffg-lightbox-image {
    max-width: calc(100vw - 110px);
    max-height: calc(100vh - 86px);
    width: auto;
    height: 100%;
    object-fit: contain;
    display: block;
}
.ffg-lightbox-caption {
    position: absolute;
    right: 18px;
    bottom: 12px;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    font-size: 10px;
    line-height: 1.1;
    text-align: right;
    max-width: 280px;
    text-shadow: 0 1px 6px rgba(0,0,0,.65);
}
.ffg-lightbox-caption strong,
.ffg-lightbox-caption span,
.ffg-lightbox-caption small {
    color: #fff;
}
.ffg-lightbox-close {
    position: fixed;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-size: 0;
    line-height: 0;
    cursor: pointer;
    z-index: 3;
    padding: 0;
}
.ffg-lightbox-close img {
    width: 22px;
    height: 22px;
    display: block;
    pointer-events: none;
}
.ffg-lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 50px;
    border: 0;
    background: #000;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    line-height: 1;
    z-index: 2;
    padding: 0;
    padding-bottom: 12px;
}
.ffg-lightbox-prev {
    left: 0;
}
.ffg-lightbox-next {
    right: 0;
}
.ffg-lightbox-thumbs {
    min-width: 0;
    height: 44px;
    align-self: start;
    display: flex;
    align-items: stretch;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
}
.ffg-lightbox-thumb {
    flex: 0 0 43px;
    width: 43px;
    height: 44px;
    border: 0;
    padding: 0;
    background: #222;
    cursor: pointer;
    opacity: .72;
    position: relative;
}
.ffg-lightbox-thumb.is-active {
    opacity: 1;
}
.ffg-lightbox-thumb.is-active::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid #fff;
    pointer-events: none;
}
.ffg-lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
button.ffg-card-button:hover {
    background: transparent !important;
}
@media (max-width: 900px) {
    .ffg-grid {
        grid-template-columns: repeat(var(--ffg-cols-tablet, 2), minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .ffg-filter-button {
        padding: 13px 18px;
        font-size: 14px;
        min-width: auto;
    }
    .ffg-filter-button::before {
        width: 11px;
        height: 11px;
        flex-basis: 11px;
    }
    .ffg-grid {
        grid-template-columns: repeat(var(--ffg-cols-mobile, 1), minmax(0, 1fr));
    }
    .ffg-overlay {
        padding: 16px;
    }
    .ffg-lightbox-stage {
        padding: 28px 42px 34px;
    }
    .ffg-lightbox-image {
        max-width: calc(100vw - 84px);
        max-height: calc(100vh - 112px);
    }
    .ffg-lightbox-nav {
        width: 40px;
        height: 48px;
        font-size: 44px;
    }
    .ffg-lightbox-caption {
        right: 10px;
        bottom: 12px;
        max-width: 220px;
    }
}
