/* Photowall Page Styles */
#photowall-page {
    min-height: 100vh;
    background: #000;
    padding-top: var(--header-height);
    padding-bottom: 40px;
}

.photowall-header {
    text-align: center;
    padding: 60px 20px 40px;
    color: #fff;
}

.photowall-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: #ff8c00;
}

.photowall-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Masonry Grid */
.photowall-grid {
    column-count: 4;
    column-gap: 15px;
    padding: 0 15px;
    max-width: 1600px;
    margin: 0 auto;
}

.photowall-item {
    break-inside: avoid;
    margin-bottom: 15px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #111;
}

.photowall-item-inner {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* Default square aspect ratio */
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.03) 0%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.03) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.photowall-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.3s ease;
}

.photowall-item img.loaded {
    opacity: 1;
}

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

/* Responsive columns */
@media (max-width: 1200px) {
    .photowall-grid { column-count: 3; }
}

@media (max-width: 768px) {
    .photowall-grid { column-count: 2; column-gap: 10px; padding: 0 10px; }
    .photowall-item { margin-bottom: 10px; }
    .photowall-header h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
    .photowall-grid { column-count: 2; }
}

/* Lightbox Slider */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.98);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 3.5rem;
    color: #fff;
    cursor: pointer;
    z-index: 10002;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #ff8c00;
}

.lightbox-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10002;
    transition: all 0.3s ease;
}

.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

.lightbox-arrow:hover {
    background: rgba(255, 140, 0, 0.2);
    border-color: rgba(255, 140, 0, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-arrow svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lightbox-arrow:hover svg {
    stroke: #ff8c00;
}

.lightbox-counter {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 20px;
    z-index: 10002;
}

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

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.lightbox-content img.loaded {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 768px) {
    .lightbox-arrow {
        width: 50px;
        height: 50px;
    }
    .lightbox-prev { left: 15px; }
    .lightbox-next { right: 15px; }
    .lightbox-arrow svg {
        width: 20px;
        height: 20px;
    }
    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 2.5rem;
    }
}