/* =============================================
   JOSH ARKSEY SPORTS MASSAGE - PORTFOLIO PAGE
   arksey-portfolio-1.css
   
   TYPOGRAPHY SCALE (below hero ceiling):
   - Section h1: 2.4rem (desktop) | 2rem (tablet) | 1.7rem (mobile) | 1.45rem (small)
   - Section p: 1.05rem (desktop) | 1rem (tablet) | 0.95rem (mobile) | 0.9rem (small)
   ============================================= */

/* =============================================
   BASIC RESET
   ============================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'K2D', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* =============================================
   FONT FACE - EUROSTILE EXTENDED TWO
   ============================================= */

@font-face {
    font-family: 'Eurostile Extended Two';
    src: url('/fonts/EurostileExtendedTwo.woff2') format('woff2'),
         url('/fonts/EurostileExtendedTwo.woff') format('woff'),
         url('/fonts/EurostileExtendedTwo.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


/* =============================================
   GALLERY SECTION
   ============================================= */

.arksey-gallery {
    padding: 100px 20px;
    background: #f8f8f8;
}

.arksey-gallery-container {
    max-width: 1200px;
    margin: 0 auto;
}


/* =============================================
   GALLERY HEADER
   ============================================= */

.arksey-gallery-header {
    text-align: center;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.arksey-gallery-label {
    display: block;
    font-family: 'K2D', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ff0000;
    margin-bottom: 15px;
}

.arksey-gallery-title {
    font-family: 'Eurostile Extended Two', 'K2D', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: #111111;
    margin: 0 0 20px 0;
    line-height: 1.2;
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
}

.arksey-gallery-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ff0000, #cc0000);
    border-radius: 2px;
}

.arksey-gallery-subtitle {
    font-family: 'K2D', sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #666666;
    margin: 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}


/* =============================================
   GALLERY GRID
   ============================================= */

.arksey-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.arksey-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    background: #e0e0e0;
}

.arksey-gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.arksey-gallery-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #ffffff;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

/* Plus icon using CSS */
.arksey-gallery-item span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 300;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.arksey-gallery-item:hover::before {
    opacity: 1;
}

.arksey-gallery-item:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.arksey-gallery-item:hover span {
    opacity: 1;
}

.arksey-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.arksey-gallery-item:hover img {
    transform: scale(1.08);
}


/* =============================================
   LIGHTBOX
   ============================================= */

.arksey-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.arksey-lightbox.arksey-active {
    display: flex;
    opacity: 1;
}

.arksey-lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arksey-lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s ease;
}

.arksey-lightbox.arksey-active .arksey-lightbox-image {
    opacity: 1;
    transform: scale(1);
}


/* =============================================
   LIGHTBOX CLOSE BUTTON (Minimalist)
   ============================================= */

.arksey-lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10001;
    padding: 0;
    transition: all 0.3s ease;
}

.arksey-lightbox-close svg {
    width: 28px;
    height: 28px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.arksey-lightbox-close:hover svg {
    color: #ffffff;
    transform: rotate(90deg);
}


/* =============================================
   LIGHTBOX NAV ARROWS
   ============================================= */

.arksey-lightbox-prev,
.arksey-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10001;
    padding: 0;
    transition: all 0.3s ease;
}

.arksey-lightbox-prev {
    left: 30px;
}

.arksey-lightbox-next {
    right: 30px;
}

.arksey-lightbox-prev svg,
.arksey-lightbox-next svg {
    width: 22px;
    height: 22px;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.arksey-lightbox-prev:hover,
.arksey-lightbox-next:hover {
    background: rgba(255, 0, 0, 0.8);
    border-color: rgba(255, 0, 0, 0.8);
}

.arksey-lightbox-prev:hover svg,
.arksey-lightbox-next:hover svg {
    color: #ffffff;
}


/* =============================================
   BODY LOCK WHEN LIGHTBOX OPEN
   ============================================= */

body.arksey-lightbox-open {
    overflow: hidden;
}


/* =============================================
   TABLET (769px - 1024px)
   ============================================= */

@media (min-width: 769px) and (max-width: 1024px) {
    .arksey-gallery {
        padding: 80px 20px;
    }
    
    .arksey-gallery-header {
        margin-bottom: 50px;
    }
    
    .arksey-gallery-title {
        font-size: 2rem;
    }
    
    .arksey-gallery-subtitle {
        font-size: 1rem;
    }
    
    .arksey-gallery-grid {
        gap: 18px;
    }
    
    .arksey-lightbox-close {
        top: 25px;
        right: 25px;
        width: 44px;
        height: 44px;
    }
    
    .arksey-lightbox-close svg {
        width: 26px;
        height: 26px;
    }
    
    .arksey-lightbox-prev,
    .arksey-lightbox-next {
        width: 46px;
        height: 46px;
    }
    
    .arksey-lightbox-prev {
        left: 20px;
    }
    
    .arksey-lightbox-next {
        right: 20px;
    }
}


/* =============================================
   MOBILE (max-width: 768px)
   ============================================= */

@media (max-width: 768px) {
    .arksey-gallery {
        padding: 60px 15px;
    }
    
    .arksey-gallery-header {
        margin-bottom: 40px;
    }
    
    .arksey-gallery-label {
        font-size: 0.78rem;
    }
    
    .arksey-gallery-title {
        font-size: 1.7rem;
        padding-bottom: 18px;
    }
    
    .arksey-gallery-title::after {
        width: 60px;
    }
    
    .arksey-gallery-subtitle {
        font-size: 0.95rem;
    }
    
    .arksey-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .arksey-gallery-item {
        border-radius: 10px;
    }
    
    .arksey-gallery-item::after {
        width: 42px;
        height: 42px;
    }
    
    .arksey-gallery-item span {
        font-size: 1.5rem;
    }
    
    .arksey-lightbox-close {
        top: 15px;
        right: 15px;
        width: 42px;
        height: 42px;
    }
    
    .arksey-lightbox-close svg {
        width: 24px;
        height: 24px;
    }
    
    .arksey-lightbox-prev,
    .arksey-lightbox-next {
        width: 42px;
        height: 42px;
    }
    
    .arksey-lightbox-prev svg,
    .arksey-lightbox-next svg {
        width: 20px;
        height: 20px;
    }
    
    .arksey-lightbox-prev {
        left: 10px;
    }
    
    .arksey-lightbox-next {
        right: 10px;
    }
    
    .arksey-lightbox-image {
        border-radius: 6px;
    }
}


/* =============================================
   SMALL MOBILE (max-width: 480px)
   ============================================= */

@media (max-width: 480px) {
    .arksey-gallery {
        padding: 50px 12px;
    }
    
    .arksey-gallery-header {
        margin-bottom: 35px;
    }
    
    .arksey-gallery-title {
        font-size: 1.45rem;
        padding-bottom: 15px;
    }
    
    .arksey-gallery-title::after {
        width: 50px;
    }
    
    .arksey-gallery-subtitle {
        font-size: 0.9rem;
    }
    
    .arksey-gallery-grid {
        gap: 10px;
    }
    
    .arksey-gallery-item {
        border-radius: 8px;
    }
    
    .arksey-gallery-item::after {
        width: 38px;
        height: 38px;
        border-width: 1.5px;
    }
    
    .arksey-gallery-item span {
        font-size: 1.3rem;
    }
    
    .arksey-lightbox-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
    }
    
    .arksey-lightbox-close svg {
        width: 22px;
        height: 22px;
    }
    
    .arksey-lightbox-prev,
    .arksey-lightbox-next {
        width: 38px;
        height: 38px;
    }
    
    .arksey-lightbox-prev svg,
    .arksey-lightbox-next svg {
        width: 18px;
        height: 18px;
    }
    
    .arksey-lightbox-prev {
        left: 8px;
    }
    
    .arksey-lightbox-next {
        right: 8px;
    }
}