html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* adjust to your header height */
}

.retreat-details {
    width: 100%;
    padding: 2rem 4vw 0.5rem 4vw;
    background-color: #f7f5f9;
    border-radius: 24px;
    box-sizing: border-box;
    margin: 3rem 0;
    font-size: 1rem;
}

.retreat-details>ul>li>ol {
    padding-left: 1.5rem;
    margin-left: 0;
}

.retreat-details>ul {
    list-style-type: none;
    padding-left: 0;
}

.retreat-details>ul>li {
    margin-bottom: 1rem;
    padding-left: 56px;
    /* 40px icon + 8px gap + 8px extra */
    position: relative;
}

.retreat-details>ul>li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background-color: #33BED4;
    border-radius: 8px;
    background-size: 24px 24px;
    background-position: center;
    background-repeat: no-repeat;
}

.retreat-details>ul>li:nth-child(1)::before {
    background-image: url('/images/icon-calendar.png');
}

.retreat-details>ul>li:nth-child(2)::before {
    background-image: url('/images/icon-location.png');
}

.retreat-details>ul>li:nth-child(3)::before {
    background-image: url('/images/icon-money.png');
}

.retreat-details>ul>li>ul {
    margin-top: 0.5rem;
}



.main-container {
    display: flex;
    width: 100%;
    gap: 2rem;
}

.main-left {
    flex: 1;
    /* takes up remaining space */
}

.main-right {
    width: 350px;
    flex-shrink: 0;
}

.sticky {
    position: sticky;
    top: 120px;
    border: solid 1px white;
    background-color: #f7f5f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15);
    font-size: 1rem;
}

.sticky-content {
    padding: 1rem;
}

/* Mobile sticky CTA - hidden by default */
.sticky-mobile-cta {
    display: none;
}

/* Mobile styles */
@media (max-width: 900px) {
    .main-container {
        flex-direction: column;
        gap: 1rem;
    }

    .retreat-details {
        font-size: 0.9rem;
    }

    /* Hide the sidebar completely */
    .main-right {
        display: none;
    }

    /* Show mobile sticky CTA */
    .sticky-mobile-cta {
        display: flex;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 100px;
        background-color: var(--color-callout-special);
        padding: 0 14px;
        z-index: 1000;
        font-size: 14px;
        color: white;
        border-top: solid 1px white;
        transition: transform 0.3s ease;
        box-sizing: border-box;
    }

    .sticky-mobile-cta a {
        color: white
    }

    .sticky-mobile-cta.minimized {
        transform: translateY(calc(100% - 10px)) !important;
    }

    .sticky-toggle {
        position: absolute;
        top: -30px;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 30px;
        background-color: var(--color-callout-special);
        border: solid 1px white;
        border-bottom: none;
        border-radius: 50px 50px 0 0;
        color: white;
        font-size: 16px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        z-index: 1001;
    }

    .sticky-mobile-cta.minimized .sticky-toggle::before {
        content: '▲';
        font-size: 16px;
    }

    .sticky-mobile-cta:not(.minimized) .sticky-toggle::before {
        content: '▼';
        font-size: 16px;
    }

    .sticky-mobile-cta-text {
        flex: 1;
        min-width: 0;
        /* Important: allows flex item to shrink below content size */
        overflow: hidden;
    }

    .sticky-mobile-cta strong {
        font-size: 16px;
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .sticky-mobile-cta-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 4px;
    }

    .sticky-mobile-cta-inner .cta-button {
        display: inline-block;
        margin: 0;
        white-space: nowrap;
        font-size: 14px;
    }
}








.slideshow {
    opacity: 1;
}

.thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1.2rem;
    margin: 3rem 0;
}

.thumb-grid img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    display: block;
    cursor: pointer;
}


.polaroid {
    width: 100%;
    padding: 3rem 2vw 0.5rem 2vw;
    background: #fef5f0;
    border-radius: 24px;
    box-sizing: border-box;
    margin: 3rem 0;
    text-align: center;
}

.polaroid-grid {
    position: relative;
    width: 100%;
    padding: 1rem;
    background: white;
    border-radius: 16px;
    box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20%, 1fr));
    gap: 2px;
    margin: 0;
}

.polaroid-grid img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    display: block;
    cursor: pointer;
}

@media (max-width: 500px) {
    .polaroid-grid img {
        height: 200px;
    }
}

/* Single image - all corners rounded */
.polaroid-grid img:first-child:last-child {
    border-radius: 8px;
}

/* Two images */
.polaroid-grid img:first-child:nth-last-child(2) {
    border-radius: 8px 0 0 8px;
}

.polaroid-grid img:nth-child(2):last-child {
    border-radius: 0 8px 8px 0;
}

/* Three images */
.polaroid-grid img:first-child:nth-last-child(3) {
    border-radius: 8px 0 0 8px;
}

.polaroid-grid img:nth-child(3):last-child {
    border-radius: 0 8px 8px 0;
}

/* Four images */
.polaroid-grid img:first-child:nth-last-child(4) {
    border-radius: 8px 0 0 8px;
}

.polaroid-grid img:nth-child(4):last-child {
    border-radius: 0 8px 8px 0;
}

.polaroid figcaption {
    font-family: 'Southam', "Raleway", sans-serif;
    font-size: clamp(32px, 5vw, 60px);
    font-weight: 400;
    color: rgba(0, 0, 0, 0.6);
    padding-bottom: 0.5rem;
}




/* Lightbox overlay */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 9999;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background 0.4s ease;
}

.lightbox.active {
    display: flex;
    background: rgba(0, 0, 0, 0.9);
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    transform: scale(0);
    opacity: 0;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

.lightbox.active img {
    transform: scale(1);
    opacity: 1;
}

/* Navigation buttons */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
    outline: none;
}

.lightbox-nav:focus {
    outline: none;
}

.lightbox-nav:active {
    outline: none;
}

.lightbox-nav svg {
    width: 28px;
    height: 28px;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .lightbox-nav {
        width: 50px;
        height: 50px;
    }

    .lightbox-nav svg {
        width: 24px;
        height: 24px;
    }

    .lightbox-nav.prev {
        left: 10px;
    }

    .lightbox-nav.next {
        right: 10px;
    }
}


/* Caption */
.lightbox-caption {
    position: absolute;
    bottom: 10vh;
    left: 50%;
    transform: translateX(-50%);
    background: black;
    border: solid 1px #333;
    color: white;
    padding: 12px 18px;
    border-radius: 8px;
    max-width: 100%;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10001;
}

.lightbox.active .lightbox-caption {
    opacity: 1;
}