/* INCA Gallery — scoped styles; existing theme header/footer remain unchanged. */
.inca-gallery-page { color: #10264b; padding-top: 16px; padding-bottom: 54px; }
.inca-gallery-page *, .inca-gallery-page *::before, .inca-gallery-page *::after { box-sizing: border-box; }
.inca-gallery-container { width: min(100% - 48px, 1308px); margin-inline: auto; }
.inca-gallery-hero { background: #eff8eb; border-radius: 20px; padding: 46px 60px 48px; }
.inca-gallery-hero h1 { color: #10264b; font-size: clamp(32px, 3.3vw, 48px); line-height: 1.15; font-weight: 800; margin: 0 0 14px; }
.inca-gallery-hero p { color: #617083; font-size: 17px; line-height: 1.6; margin: 0; }
.inca-gallery-content { padding-top: 44px; }
.inca-gallery-content h2 { color: #10264b; font-size: clamp(24px, 2.2vw, 31px); font-weight: 800; line-height: 1.3; margin: 0 0 26px; }
.inca-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.inca-gallery-item { margin: 0; overflow: hidden; border-radius: 12px; background: #f2f5f1; aspect-ratio: 1.85 / 1; }
.inca-gallery-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.inca-gallery-empty { color: #617083; grid-column: 1 / -1; margin: 0; }
@media (max-width: 800px) {
  .inca-gallery-container { width: min(100% - 36px, 1308px); }
  .inca-gallery-hero { padding: 36px 30px; }
  .inca-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 520px) {
  .inca-gallery-container { width: min(100% - 28px, 1308px); }
  .inca-gallery-hero { border-radius: 14px; padding: 30px 22px; }
  .inca-gallery-hero p { font-size: 15px; }
  .inca-gallery-content { padding-top: 32px; }
  .inca-gallery-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* INCA Gallery — Clickable Images and Lightbox */

.inca-gallery-open {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    overflow: hidden;
    border-radius: inherit;
}

.inca-gallery-open img {
    display: block;
    width: 100%;
    transition: transform 0.3s ease;
}

.inca-gallery-open:hover img {
    transform: scale(1.04);
}

.inca-gallery-open:focus-visible {
    outline: 3px solid #188000;
    outline-offset: 3px;
}

.inca-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(4, 13, 30, 0.95);
    align-items: center;
    justify-content: center;
    color: #fff;
}

.inca-lightbox.is-open {
    display: flex;
}

.inca-lightbox-stage {
    width: calc(100% - 150px);
    height: calc(100% - 150px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.inca-lightbox-stage img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
    transform-origin: center;
}

.inca-lightbox button {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inca-lightbox button:hover {
    background: #188000;
}

.inca-lightbox-toolbar {
    position: absolute;
    top: 24px;
    right: 28px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.inca-lightbox-toolbar .inca-lightbox-reset {
    width: auto;
    padding: 0 15px;
    border-radius: 24px;
    font-size: 13px;
}

.inca-lightbox-prev,
.inca-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.inca-lightbox-prev {
    left: 25px;
}

.inca-lightbox-next {
    right: 25px;
}

.inca-lightbox-counter {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: #d6dce6;
}

@media (max-width: 700px) {
    .inca-lightbox-stage {
        width: calc(100% - 24px);
        height: calc(100% - 180px);
    }

    .inca-lightbox-toolbar {
        top: 18px;
        right: 12px;
        gap: 6px;
    }

    .inca-lightbox button {
        width: 38px;
        height: 38px;
    }

    .inca-lightbox-prev {
        left: 10px;
    }

    .inca-lightbox-next {
        right: 10px;
    }
}
