.ft-gallery-page {
    --ft-gallery-primary: var(--ft-primary, #2b4b7c);
    --ft-gallery-text-dark: var(--ft-secondary, #333333);
    --ft-gallery-text-gray: var(--ft-gray, #555555);
    --ft-gallery-bg: var(--ft-white, #ffffff);
    --ft-gallery-border: var(--ft-gray-light, #dddddd);

    background-color: var(--ft-gallery-bg);
    color: var(--ft-gallery-text-dark);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

.ft-gallery-page__hero {
    position: relative;
    min-height: 350px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
    color: #ffffff;
    background-size: cover;
    background-position: center;
}

.ft-about-page__hero {
    position: relative;
    min-height: 350px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
    color: #ffffff;
    background-size: cover;
    background-position: center;
}

.ft-about-page__hero-fallback {
    margin-bottom: 60px;
}

.ft-gallery-page__hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.ft-gallery-page__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.ft-about-page__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.ft-gallery-page__hero .breadcrumbs {
    margin-bottom: 12px;
    color: #dddddd;
    font-size: .9rem;
}

.ft-about-page__hero .breadcrumbs {
    margin-bottom: 12px;
    color: #dddddd;
    font-size: .9rem;
}

.ft-gallery-page__hero .breadcrumbs a {
    color: #f3f3f3;
    font-weight: 700;
}

.ft-about-page__hero .breadcrumbs a {
    color: #f3f3f3;
    font-weight: 700;
}

.ft-gallery-page__hero .breadcrumbs a:hover,
.ft-gallery-page__hero .breadcrumbs a:focus-visible {
    color: #f3f3f3;
}

.ft-about-page__hero .breadcrumbs a:hover,
.ft-about-page__hero .breadcrumbs a:focus-visible {
    color: #f3f3f3;
}

.ft-gallery-page__hero h1 {
    margin: 0;
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
}

.ft-about-page__hero h1 {
    margin: 0;
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
}

.ft-gallery-page__intro {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 1.05rem;
    color: var(--ft-gallery-text-gray);
}

.ft-gallery-page__intro p {
    margin-bottom: 15px;
}

.ft-gallery-page__intro > :last-child {
    margin-bottom: 0;
}

.ft-gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 0 auto 14px;
}

.ft-gallery-tab {
    border: 1px solid var(--ft-gallery-border);
    background: #ffffff;
    color: var(--ft-gallery-text-dark);
    border-radius: 999px;
    padding: 9px 18px;
    font: inherit;
    cursor: pointer;
    transition: all .25s ease;
}

.ft-gallery-tab:hover,
.ft-gallery-tab:focus-visible {
    border-color: var(--ft-gallery-primary);
    color: var(--ft-gallery-primary);
    outline: none;
}

.ft-gallery-tab.is-active {
    background: var(--ft-gallery-primary);
    border-color: var(--ft-gallery-primary);
    color: #ffffff;
}

.ft-gallery-tab-description {
    max-width: 760px;
    margin: 0 auto 26px;
    text-align: center;
    color: var(--ft-gallery-text-gray);
    min-height: 1.6em;
}

.ft-gallery-panels {
    margin-bottom: 80px;
}

.ft-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.ft-gallery-item {
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    background: #f4f4f4;
}

.ft-gallery-item__link {
    display: block;
}

.ft-gallery-item__link:focus-visible {
    outline: 3px solid var(--ft-gallery-primary);
    outline-offset: -3px;
}

.ft-gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
    cursor: pointer;
}

.ft-gallery-item:hover img,
.ft-gallery-item:focus-within img {
    transform: scale(1.05);
}

.ft-gallery-loading {
    text-align: center;
    padding: 20px 0 10px;
    color: var(--ft-gallery-text-gray);
}

.ft-gallery-sentinel {
    width: 100%;
    height: 1px;
}

.ft-gallery-empty {
    margin: 0 auto 80px;
    max-width: 640px;
    text-align: center;
    color: var(--ft-gallery-text-gray);
    border: 1px dashed var(--ft-gallery-border);
    border-radius: 12px;
    padding: 18px;
}

@media (max-width: 992px) {
    .ft-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .ft-gallery-page__hero {
        min-height: 250px;
        margin-bottom: 46px;
    }

    .ft-about-page__hero {
        min-height: 250px;
        margin-bottom: 46px;
    }

    .ft-about-page__hero-fallback {
        margin-bottom: 46px;
    }

    .ft-gallery-page__intro {
        font-size: 1rem;
        padding: 0 15px;
    }

    .ft-gallery-grid {
        grid-template-columns: 1fr;
    }
}
