.swiper-button-next,
.swiper-button-prev {
    color: #5f6b4f;
}

.swiper-pagination-bullet-active {
    background: #5f6b4f;
}

.gallery-grid {
    gap: 1rem;
}

.gallery-featured,
.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
    width: 100%;
}

.gallery-featured:hover,
.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.14);
}

.gallery-featured img,
.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-featured:hover img,
.gallery-card:hover img {
    transform: scale(1.07);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 40%,
        rgba(0, 0, 0, 0.58) 100%
    );
    pointer-events: none;
}

.gallery-meta {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 2;
    color: #fff;
}

.gallery-meta span {
    display: block;
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.88;
}

.gallery-meta h3 {
    margin: 0.35rem 0 0;
    font-family: "DM Serif Display", serif;
    font-size: clamp(20px, 2.4vw, 32px);
    line-height: 1.05;
}

.gallery-action {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.65rem 0.9rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.88);
    color: #090909;
    font-family: "DM Sans", sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
}

.gallery-card button {
    width: 100%;
    height: 100%;
    text-align: left;
    border: none;
    padding: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.gallery-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(8, 15, 25, 0.88);
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.gallery-modal.open {
    display: flex;
}

.gallery-modal-backdrop {
    position: absolute;
    inset: 0;
    cursor: pointer;
}

/* Fixed-size centered modal */
.gallery-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;      /* Medium-small consistent width */
    height: 70vh;          /* Consistent height */
    max-height: 600px;
    background: #000;      /* Optional: creates a frame around the image */
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

/* Ensure the image fits perfectly without cropping */
.gallery-modal-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* Shows the entire image without cropping */
    object-position: center;
    border-radius: 20px;
    background: #000;      /* Fills empty space for different aspect ratios */
}
.gallery-modal-caption {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: #ffffff;
    font-family: "DM Sans", sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
    width: calc(100% - 3rem);
    max-width: 700px;

    /* Transparent dark background */
    background: rgba(0, 0, 0, 0.6);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;

    /* Optional glass effect */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    /* Subtle shadow for better separation */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.gallery-modal-close,
.gallery-modal-nav {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease;
    font-size: 1rem;
}

.gallery-modal-close:hover,
.gallery-modal-nav:hover {
    transform: scale(1.05);
    background: rgba(0, 0, 0, 0.65);
}

.gallery-modal-close {
    top: 1rem;
    right: 1rem;
}

.gallery-modal-nav.prev {
    left: 1rem;
}

.gallery-modal-nav.next {
    right: 1rem;
}

.gallery-modal-caption {
    position: absolute;
    bottom: 1rem;
    left: 25rem;
    right: 1rem;
    color: #fff;
    font-family: "DM Sans", sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
    max-width: calc(100vw - 6rem);
}

.banner-slide {
    display: none;
}
.banner-slide.active {
    display: block;
}
.banner-dot.active {
    background: #8e94f3;
    width: 8px;
    height: 14px;
    border-radius: 9999px;
}
.banner-dot {
    background: rgba(255, 255, 255, 0.4);
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}
