/* ============================================
   Facilities Block
   ============================================ */

.amoun-fac {
    padding: 70px 0;
    background: #fff;
}

.amoun-fac__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.amoun-fac__title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    color: #111;
    margin: 0 0 24px;
}

.amoun-fac__desc {
    font-size: 17px;
    line-height: 1.8;
    color: #444;
    max-width: 800px;
    margin: 0 auto 48px;
}

/* ---- Grid ---- */
.amoun-fac__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.amoun-fac__thumb {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    border: none;
    background: transparent;
}

.amoun-fac__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.35s ease;
}

.amoun-fac__thumb:hover img {
    transform: scale(1.06);
}

/* ============================================
   Lightbox
   ============================================ */

.amoun-fac__lightbox {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.amoun-fac__lightbox.is-open {
    opacity: 1;
    pointer-events: all;
}

.amoun-fac__lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    cursor: zoom-out;
}

.amoun-fac__lb-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100vw;
    height: 100vh;
    padding: 0 70px;
    box-sizing: border-box;
}

/* Close button */
.amoun-fac__lb-close {
    position: fixed;
    top: 20px;
    right: 24px;
    color: #fff;
    background: rgba(255,255,255,0.12);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 2;
}

.amoun-fac__lb-close:hover { background: rgba(255,255,255,0.25); }

/* Prev / Next */
.amoun-fac__lb-prev,
.amoun-fac__lb-next {
    flex-shrink: 0;
    color: #fff;
    background: rgba(255,255,255,0.12);
    border: none;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.amoun-fac__lb-prev:hover,
.amoun-fac__lb-next:hover { background: rgba(255,255,255,0.28); }

/* Image */
.amoun-fac__lb-img-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.amoun-fac__lb-img {
    max-width: 100%;
    max-height: 100vh;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 0;
    transition: opacity 0.2s ease;
}

.amoun-fac__lb-img.is-loading {
    opacity: 0.3;
}

/* Counter */
.amoun-fac__lb-counter {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    white-space: nowrap;
}

/* ============================================
   Scroll Fade Animation
   ============================================ */

.amoun-fac__inner {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.amoun-fac__inner.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
    .amoun-fac__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 550px) {
    .amoun-fac__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .amoun-fac__inner { padding: 0 16px; }

    .amoun-fac__lb-prev,
    .amoun-fac__lb-next { width: 38px; height: 38px; }

    .amoun-fac__lb-img { max-width: 90vw; }
}
