/* Whispers Lens customization — Portfolio full-frame swipe view.
   Horizontal, left-to-right swipe (not vertical scroll).
   Used only on tag pages marked as portfolio categories (see tag.hbs comment). */

.portfolio-swipe-page {
    background: var(--background-color);
    overflow: hidden;
}

.portfolio-swipe-header {
    position: fixed;
    top: 78px; /* sits just below the site's top menu bar so they never overlap */
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: max(20px, 2.2vh) 32px;
    background: linear-gradient(rgba(0,0,0,0.35), transparent);
    pointer-events: none;
}

.portfolio-swipe-title {
    font-family: 'Alex Brush', cursive;
    text-transform: none;
    font-size: max(28px, 4vh);
    color: var(--overlay-text-color, #f4f1ea);
}

.portfolio-swipe-counter {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--overlay-text-color, #f4f1ea);
    opacity: 0.8;
}

.portfolio-swipe-stage {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: pan-y;
    user-select: none;
}

.portfolio-swipe-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
    .portfolio-swipe-track { transition: none; }
}

.portfolio-swipe-slide {
    position: relative; /* keeps each photo's caption with its own photo */
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* room for the menu bar above and the caption + dots below, so tall (vertical) photos
       never run underneath them */
    padding: 96px 70px 104px;
    box-sizing: border-box;
}

.portfolio-swipe-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    cursor: zoom-in;
    border-radius: 2px;
}

.portfolio-swipe-caption {
    position: absolute;
    bottom: 6vh;
    left: 0;
    right: 0;
    text-align: center;
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: max(16px, 1.4vh + 0.6rem);
    color: var(--overlay-text-color, #f4f1ea);
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
    pointer-events: none;
}

.portfolio-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(244,241,234,0.35);
    color: var(--overlay-text-color, #f4f1ea);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 15;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.portfolio-nav:hover {
    background: rgba(199,160,70,0.35);
    border-color: var(--gold, #C7A046);
}

.portfolio-nav-prev { left: 20px; }
.portfolio-nav-next { right: 20px; }

.portfolio-dots {
    position: fixed;
    bottom: max(16px, 2vh);
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    max-width: 680px;
    margin: 0 auto;
    padding: 0 20px;
}

.portfolio-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(216,213,205,0.35);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.portfolio-dot.active {
    background: var(--gold, #C7A046);
    transform: scale(1.3);
}

@media screen and (max-width: 720px) {
    .portfolio-swipe-header { padding: 16px 18px; }
    .portfolio-swipe-title { font-size: 1.3rem; }
    .portfolio-swipe-slide { padding: 92px 20px 100px; }
    .portfolio-nav { width: 56px; height: 56px; font-size: 1.8rem; background: rgba(0,0,0,0.45); }
    .portfolio-nav-prev { left: 6px; }
    .portfolio-nav-next { right: 6px; }
}


/* Whispers Lens: bigger invisible tap area around the arrows so a near-miss still counts as a tap on the arrow */
.portfolio-nav::after {
    content: "";
    position: absolute;
    top: -22px;
    bottom: -22px;
    left: -14px;
    right: -14px;
}
.portfolio-nav { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
