/* =========================
   SOUTH HOTEL - GALLERY PAGE
   CLEAN PREMIUM VERSION
   ========================= */

:root {
    --bg: #ffffff;
    --bg2: #ffffff;
    --card: #ffffff;
    --text: #121212;
    --muted: rgba(0, 0, 0, .62);
    --gold: #d4af37;
    --gold2: #b08d57;
    --line: rgba(0, 0, 0, .12);
    --shadow: 0 16px 34px rgba(0, 0, 0, .10);
}

*,
*::before,
*::after {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

html,
body {
    overflow-x: hidden
}

body {
    margin: 0;
    font-family: 'Times New Roman', Times, serif;
    background: white;
    color: var(--text);
    padding-top: 72px;
    font-size: 16px;
    line-height: 1.5;
}

.sh-gallery {
    padding: 18px 0 80px !important;
    margin: 0 !important;
    background: #ffffff !important;
}

.sh-gallery .container {
    max-width: 1150px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.gallery-page-title,
.sh-gallery .sh-title {
    margin: 0 0 18px 0 !important;
    padding: 0 !important;
}

.gallery-page-title h2,
.sh-gallery .sh-title h2 {
    margin-bottom: 10px;
    font-size: 35px;
}

.gallery-page-title p,
.sh-gallery .sh-title p {
    margin-bottom: 0;
    font-size: 25px;
}


/* 3 columns */

.sh-gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 28px !important;
    margin-top: 28px !important;
}


/* card */

.sh-g-item {
    position: relative;
    overflow: hidden;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
    border-radius: 24px !important;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: translateY(60px) scale(0.96);
    transition: opacity 0.8s ease, transform 0.8s ease, box-shadow 0.35s ease;
    will-change: opacity, transform;
}

.sh-g-item.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.sh-g-item img {
    width: 100% !important;
    height: 320px !important;
    object-fit: cover !important;
    display: block;
    border-radius: 24px !important;
    transition: transform 0.45s ease, filter 0.35s ease;
}

.sh-g-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
    font-size: 28px;
    border-radius: 24px;
}

.sh-g-item::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    border: 1px solid rgba(212, 175, 55, 0);
    transition: border-color 0.3s ease;
    pointer-events: none;
}

.sh-g-item:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.18);
}

.sh-g-item:hover img {
    transform: scale(1.08);
    filter: brightness(0.82);
}

.sh-g-item:hover .sh-g-overlay {
    opacity: 1;
}

.sh-g-item:hover::after {
    border-color: rgba(212, 175, 55, 0.62);
}

.sh-contact-titlebox h2 {
    font-size: 35px;
}

.sh-contact-titlebox p {
    font-size: 25px;
}


/* stagger */

.sh-g-item:nth-child(1) {
    transition-delay: 0.05s;
}

.sh-g-item:nth-child(2) {
    transition-delay: 0.10s;
}

.sh-g-item:nth-child(3) {
    transition-delay: 0.15s;
}

.sh-g-item:nth-child(4) {
    transition-delay: 0.20s;
}

.sh-g-item:nth-child(5) {
    transition-delay: 0.25s;
}

.sh-g-item:nth-child(6) {
    transition-delay: 0.30s;
}

.sh-g-item:nth-child(7) {
    transition-delay: 0.35s;
}

.sh-g-item:nth-child(8) {
    transition-delay: 0.40s;
}

.sh-g-item:nth-child(9) {
    transition-delay: 0.45s;
}


/* modal */

.sh-gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(8, 8, 10, 0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 90px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.sh-gallery-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.sh-gallery-modal__content {
    position: relative;
    max-width: min(1200px, 100%);
    max-height: 100%;
    text-align: center;
}

.sh-gallery-modal__content img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    background: rgba(17, 17, 17, 0.41);
}

.sh-gallery-caption {
    margin-top: 14px;
    color: #f3efe6;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.sh-gallery-close {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: 0.25s ease;
    z-index: 3;
}

.sh-gallery-close:hover {
    background: linear-gradient(135deg, #d4af37, #f2d477);
    color: #111;
}

.sh-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: 0.25s ease;
    z-index: 3;
}

.sh-gallery-nav:hover {
    background: linear-gradient(135deg, #d4af37, #f2d477);
    color: #111;
}

.sh-gallery-prev {
    left: 24px;
}

.sh-gallery-next {
    right: 24px;
}

body.sh-gallery-open {
    overflow: hidden;
}


/* responsive */

@media (max-width: 991.98px) {
    .sh-gallery {
        padding: 16px 0 70px !important;
    }
    .sh-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 20px !important;
    }
    .sh-g-item img {
        height: 290px !important;
    }
}

@media (max-width: 575.98px) {
    .sh-gallery {
        padding: 12px 0 60px !important;
    }
    .sh-gallery .container {
        padding-left: 14px;
        padding-right: 14px;
    }
    .sh-gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .sh-g-item img {
        height: 250px !important;
    }
    .sh-gallery-modal {
        padding: 20px 16px 30px;
    }
    .sh-gallery-nav {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
    .sh-gallery-prev {
        left: 10px;
    }
    .sh-gallery-next {
        right: 10px;
    }
    .sh-gallery-close {
        top: 12px;
        right: 12px;
        width: 42px;
        height: 42px;
    }
    .sh-gallery-modal__content img {
        max-height: 72vh;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sh-g-item,
    .sh-g-item.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* =========================================================
   GALLERY PAGE PREMIUM
   ========================================================= */

.sh-g-item {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
}

.sh-g-item img {
    width: 100%;
    transition: transform 0.7s ease, filter 0.4s ease;
}


/* hover zoom */

.sh-g-item:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}


/* glow border effect */

.sh-g-item::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 215, 120, 0.0);
    transition: 0.4s;
}

.sh-g-item:hover::after {
    border: 1px solid rgba(255, 215, 120, 0.6);
}


/* floating effect */

.sh-g-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}