/* Photography Page Specific Styles */

.photography-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem 2rem;
}

/* Header */
.photography-header {
    text-align: center;
    margin-bottom: 3rem;
}

.photography-title {
    font-family: 'Heebo', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 300;
    color: var(--sea-foam);
    letter-spacing: 0.05em;
}

/* Weekly Section */
.weekly-section {
    margin-bottom: 3rem;
}

.weekly-title,
.category-title {
    font-family: 'Heebo', sans-serif;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--shore-sand);
    text-align: center;
    margin-bottom: 2rem;
}

/* Category Galleries */
.archive-section {
    margin-bottom: 3rem;
}

/* Photo Grid (archive) */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

/* Photo Name Tag - shown on every photo, small + large view alike */
.photo-name-tag {
    position: absolute;
    top: 0.5rem;
    inset-inline-start: 0.5rem;
    background: rgba(10, 24, 40, 0.75);
    color: var(--shore-sand);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-family: 'Heebo', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    pointer-events: none;
    z-index: 1;
}

/* Weekly Carousel - one large landscape photo at a time, swipeable */
.carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.carousel-track {
    flex: 1;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    border-radius: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    position: relative;
    flex: 0 0 100%;
    scroll-snap-align: start;
    cursor: zoom-in;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(156, 199, 217, 0.3);
}

.carousel-slide img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.carousel-arrow {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(10, 24, 40, 0.8);
    border: 2px solid var(--shore-sand);
    color: var(--shore-sand);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-arrow:hover {
    background: var(--shore-sand);
    color: var(--deep-ocean);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin: 1.25rem 0 3rem;
}

.carousel-dots .dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    border: 2px solid var(--shore-sand);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.carousel-dots .dot.active {
    background: var(--shore-sand);
}

.photo-item {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(156, 199, 217, 0.3);
    cursor: zoom-in;
    background: rgba(10, 24, 40, 0.6);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-item:hover img {
    transform: scale(1.05);
}

/* Buy Button (on thumbnails and in the lightbox) */
.buy-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem;
    background: rgba(10, 24, 40, 0.85);
    color: var(--shore-sand);
    border: none;
    border-top: 1px solid rgba(212, 165, 116, 0.4);
    font-family: 'Heebo', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.buy-btn:hover {
    background: var(--shore-sand);
    color: var(--deep-ocean);
}

/* Story Section */
.story-section {
    text-align: center;
    margin-bottom: 3rem;
}

/* Countdown */
.countdown-section {
    text-align: center;
    margin-bottom: 3rem;
}

.countdown-text {
    display: inline-block;
    font-family: 'Heebo', sans-serif;
    font-size: 0.95rem;
    color: var(--white-foam);
    background: rgba(212, 165, 116, 0.12);
    border: 1px solid rgba(212, 165, 116, 0.4);
    border-radius: 20px;
    padding: 0.6rem 1.4rem;
}

/* Back Section */
.back-section {
    text-align: center;
    margin: 2rem 0 4rem 0;
}

/* Navigation Button (shared style) */
.nav-btn {
    padding: 1rem 2.5rem;
    background: transparent;
    border: 2px solid var(--shore-sand);
    color: var(--shore-sand);
    text-decoration: none;
    font-family: 'Heebo', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    position: relative;
    z-index: 0; /* give the button its own stacking context so ::before's z-index:-1
                   stays scoped to it, instead of escaping behind an ancestor's
                   background (e.g. .purchase-modal-content) when nested in the modal */
    overflow: hidden;
    display: inline-block;
    cursor: pointer;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--shore-sand);
    transition: left 0.3s ease;
    z-index: -1;
}

.nav-btn:hover::before {
    left: 0;
}

.nav-btn:hover {
    color: var(--deep-ocean);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 24, 40, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.open {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    display: block;
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid var(--shore-sand);
}

.lightbox-buy-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 0 0 6px 6px;
    border: none;
    background: var(--shore-sand);
    color: var(--deep-ocean);
}

.lightbox-buy-btn:hover {
    filter: brightness(1.1);
}

.lightbox-close {
    position: absolute;
    top: -2.5rem;
    inset-inline-end: 0;
    background: transparent;
    border: none;
    color: var(--shore-sand);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.5rem;
}

/* Purchase Modal */
.purchase-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 24, 40, 0.92);
    z-index: 2100;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

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

.purchase-modal-content {
    position: relative;
    max-width: 500px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    background: rgba(10, 24, 40, 0.95);
    border: 2px solid var(--shore-sand);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
}

.purchase-modal-content h2 {
    font-family: 'Heebo', sans-serif;
    font-weight: 400;
    color: var(--sea-foam);
    margin-bottom: 1.5rem;
}

/* Purchase Type Choice */
.purchase-type-choice {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.purchase-type-choice label,
.purchase-format-choice label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white-foam);
    font-size: 1rem;
    cursor: pointer;
}

.purchase-type-choice input,
.purchase-format-choice input {
    accent-color: var(--shore-sand);
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
}

.purchase-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.purchase-panel[hidden] {
    display: none;
}

.field-label {
    color: var(--sea-foam);
    font-size: 0.95rem;
    letter-spacing: 0.03em;
}

.purchase-select {
    width: 100%;
    max-width: 280px;
    padding: 0.7rem 1rem;
    background: rgba(10, 24, 40, 0.8);
    border: 2px solid rgba(156, 199, 217, 0.4);
    border-radius: 6px;
    color: var(--white-foam);
    font-family: 'Heebo', sans-serif;
    font-size: 1rem;
}

.purchase-format-choice {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.whatsapp-purchase-btn {
    margin-top: 0.5rem;
}

.purchase-disclaimer {
    color: var(--white-foam);
    opacity: 0.7;
    font-size: 0.85rem;
    line-height: 1.6;
    max-width: 320px;
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    inset-inline-end: 1rem;
    background: transparent;
    border: none;
    color: var(--shore-sand);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .photography-page {
        padding: 2rem 1rem;
    }

    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .buy-btn {
        font-size: 0.75rem;
        padding: 0.4rem;
    }

    .carousel {
        gap: 0.4rem;
    }

    .carousel-arrow {
        width: 2rem;
        height: 2rem;
        font-size: 1.2rem;
    }
}
