.infrastructure-page {
    max-width: 100%;
    padding-bottom: 1.5rem;
}

.infrastructure-main-card {
    border: 1px solid #dbe4ef;
    border-radius: 14px;
    overflow: hidden;
}

.infrastructure-main-card > .card-body {
    padding: 1.1rem 1rem 1.25rem;
}

@media (min-width: 768px) {
    .infrastructure-main-card > .card-body {
        padding: 1.4rem 1.35rem 1.6rem;
    }
}

.infrastructure-intro {
    color: #334155;
    line-height: 1.72;
    font-size: 0.95rem;
}

.infrastructure-subtitle {
    color: #003366;
    font-size: 1.02rem;
    font-weight: 700;
    margin: 0 0 0.45rem;
}

.infrastructure-subintro {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.95rem;
}

.infrastructure-grid.row.g-3 {
    gap: 0;
}

.infra-card {
    border: 1px solid #dbe4ef;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(15, 34, 58, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.infra-card-media {
    aspect-ratio: 16 / 10;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    overflow: hidden;
}

.infra-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.infra-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    color: #64748b;
    background: linear-gradient(135deg, #edf3f9 0%, #e2e8f0 100%);
}

.infra-placeholder i {
    font-size: 1.3rem;
}

.infra-placeholder span {
    font-size: 0.82rem;
    font-weight: 600;
}

.infra-card-caption {
    padding: 0.75rem 0.85rem;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #1e293b;
    font-weight: 600;
    min-height: 3.3rem;
}

.infra-card-trigger {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.infra-card-trigger:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: -2px;
}

.infra-card-trigger img {
    transition: transform 0.25s ease;
}

.infra-card-trigger:hover img {
    transform: scale(1.03);
}

body.infra-lightbox-open {
    overflow: hidden;
}

.infra-lightbox[hidden] {
    display: none !important;
}

.infra-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.infra-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(2px);
}

.infra-lightbox__dialog {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    max-height: min(90vh, 900px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.infra-lightbox__figure {
    margin: 0;
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
    max-width: 100%;
    max-height: min(90vh, 900px);
    display: flex;
    flex-direction: column;
}

.infra-lightbox__img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: min(78vh, 780px);
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    background: #0f172a;
}

.infra-lightbox__caption {
    margin: 0;
    padding: 0.7rem 1rem;
    color: #e2e8f0;
    font-size: 0.92rem;
    font-weight: 600;
    text-align: center;
    background: rgba(15, 23, 42, 0.95);
}

.infra-lightbox__close,
.infra-lightbox__nav {
    position: absolute;
    border: 0;
    border-radius: 999px;
    width: 2.4rem;
    height: 2.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 2;
}

.infra-lightbox__close:hover,
.infra-lightbox__nav:hover {
    background: #fff;
}

.infra-lightbox__close {
    top: 0.35rem;
    right: 0.35rem;
}

.infra-lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
}

.infra-lightbox__nav--prev {
    left: 0.2rem;
}

.infra-lightbox__nav--next {
    right: 0.2rem;
}

.infra-lightbox__close i,
.infra-lightbox__nav i {
    font-size: 1.35rem;
    line-height: 1;
}

@media (max-width: 575.98px) {
    .infra-lightbox {
        padding: 0.5rem;
    }

    .infra-lightbox__nav--prev {
        left: 0;
    }

    .infra-lightbox__nav--next {
        right: 0;
    }

    .infra-lightbox__img {
        max-height: min(70vh, 640px);
    }
}
