/* =====================================================
   SPICE HILLS – CLEAN GALLERY
   Desktop Grid | Mobile One-by-One
===================================================== */

/* Section isolation */
.sh-gallery-section {
    position: relative;
    z-index: 2;
    padding-bottom: 120px;
}

/* ===============================
   DESKTOP / TABLET
================================ */
.sh-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* Gallery card */
.sh-gallery-item {
    width: 100%;
    height: 320px;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
}

/* Image */
.sh-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 18px;
}

/* ===============================
   MOBILE – LIKE AMENITIES
================================ */
@media (max-width: 767px) {

    /* One image per row */
    .sh-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Same feel as amenities */
    .sh-gallery-item {
        height: 260px;
    }
}
/* ============================
   PREMIUM ROYAL GALLERY
============================ */

.sh-gallery-section {
    padding-bottom: 120px;
}

/* GRID */
.sh-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* CARD */
.sh-gallery-item {
    height: 320px;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    position: relative;
    cursor: pointer;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

/* IMAGE */
.sh-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease, filter 0.8s ease;
    filter: blur(12px);
}

/* LOADED */
.sh-gallery-item img.loaded {
    filter: blur(0);
}

/* HOVER (DESKTOP) */
@media (hover:hover) {
    .sh-gallery-item:hover img {
        transform: scale(1.08);
    }
}

/* MOBILE */
@media (max-width: 767px) {
    .sh-gallery {
        grid-template-columns: 1fr;
    }
    .sh-gallery-item {
        height: 260px;
    }
}

/* ============================
   LIGHTBOX
============================ */

#sh-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#sh-lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 20px;
    animation: zoomIn 0.4s ease;
}

.sh-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

@keyframes zoomIn {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* =====================================================
   PREMIUM ROYAL ENHANCEMENTS
   Gold Overlay + Apple Parallax
===================================================== */

/* GOLD GRADIENT OVERLAY */
.sh-gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(195,164,100,0.45),
        rgba(0,0,0,0.15),
        rgba(195,164,100,0.35)
    );
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 2;
}

@media (hover:hover) {
    .sh-gallery-item:hover::after {
        opacity: 1;
    }
}

/* GOLD BORDER GLOW */
.sh-gallery-item {
    box-shadow:
        0 25px 60px rgba(0,0,0,0.35),
        inset 0 0 0 1px rgba(195,164,100,0.35);
}

/* APPLE-STYLE PARALLAX */
.sh-gallery-item img {
    will-change: transform;
    transform: scale(1.1);
}

/* Lightbox premium feel */
#sh-lightbox img {
    box-shadow: 0 40px 120px rgba(0,0,0,0.85);
}

/* Hide hover effects on touch */
@media (hover:none) {
    .sh-gallery-item::after {
        opacity: 0.25;
    }
}
