/* ========================================
   Spa Gallery - ReviSpa Theme
======================================== */

.spa-gallery-page {
    --gallery-bg: #f6f0ec;
    --gallery-card: #fffaf7;
    --gallery-text: #241e1e;
    --gallery-muted: #6d6564;
    --gallery-accent: #b88448;
    --gallery-border: #ece1d9;

    background: var(--gallery-bg);
    color: var(--gallery-text);
    min-height: 70vh;
    padding: 48px 24px 80px;
}

.spa-gallery-container {
    width: 100%;
    max-width: 1390px;
    margin: 0 auto;
}

/* Heading */

.spa-gallery-heading {
    text-align: center;
    margin-bottom: 36px;
}

.spa-gallery-eyebrow {
    display: block;
    color: var(--gallery-accent);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.spa-gallery-heading h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 400;
    line-height: 1.15;
    margin: 0 0 10px;
    color: var(--gallery-text);
}

.spa-gallery-heading p {
    color: var(--gallery-muted);
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

/* Album Grid */

.spa-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
}

/* Album Card */

.spa-album-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;

    background: var(--gallery-card);
    border: 1px solid var(--gallery-border);
    border-radius: 18px;

    text-decoration: none;
    color: inherit;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.spa-album-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(45, 30, 25, 0.1);
    border-color: var(--gallery-accent);
}

.spa-album-card:focus-visible {
    outline: 3px solid var(--gallery-accent);
    outline-offset: 4px;
}

/* Album Image */

.spa-album-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #eae1dc;
}

.spa-album-cover {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;

    transition: transform 0.5s ease;
}

.spa-album-card:hover .spa-album-cover {
    transform: scale(1.06);
}

.spa-album-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        135deg,
        #e7d3c4,
        #c9a6a1
    );
}

.spa-album-placeholder span {
    font-family: Georgia, serif;
    font-size: 23px;
    letter-spacing: 2px;
    color: #fff;
}

/* Card Content */

.spa-album-content {
    padding: 24px;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
}

.spa-album-content h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    font-weight: 400;
    line-height: 1.25;
    margin: 0 0 12px;
    color: var(--gallery-text);
}

.spa-album-content p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--gallery-muted);
    margin: 0 0 22px;
}

.spa-album-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;

    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.6px;
    color: var(--gallery-accent);

    transition: gap 0.25s ease;
}

.spa-album-card:hover .spa-album-link {
    gap: 12px;
}

/* Single Album */

.spa-gallery-back {
    display: inline-block;
    margin-bottom: 28px;
    color: var(--gallery-accent);
    font-size: 14px;
    text-decoration: none;
}

.spa-gallery-back:hover {
    text-decoration: underline;
}

.spa-gallery-photos {
    max-width: 1300px;
    margin: 0 auto;
}

.spa-gallery-empty {
    text-align: center;
    color: var(--gallery-muted);
    padding: 60px 0;
}

/* Dark Mode - adjust selectors to theme system */

body.dark-mode .spa-gallery-page,
html[data-theme="dark"] .spa-gallery-page,
body[data-theme="dark"] .spa-gallery-page {
    --gallery-bg: #1c191a;
    --gallery-card: #282325;
    --gallery-text: #f8f1ed;
    --gallery-muted: #c0b4b1;
    --gallery-accent: #ddb49c;
    --gallery-border: #423639;
}

/* Responsive */

@media (max-width: 1100px) {
    .spa-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .spa-gallery-page {
        padding: 40px 18px 60px;
    }

    .spa-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .spa-album-content {
        padding: 18px;
    }

    .spa-album-content h2 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .spa-gallery-grid {
        grid-template-columns: 1fr;
    }

    .spa-album-image {
        aspect-ratio: 4 / 3;
    }

    .spa-gallery-heading {
        margin-bottom: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .spa-album-card,
    .spa-album-cover,
    .spa-album-link {
        transition: none;
    }
}
