/* --- RESET & BASICS --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 11px;
    background-color: #ffffff;
    color: #333;
    display: block; 
    min-height: 100vh;
    overflow-y: scroll; 
}

/* --- SITE WRAPPER --- */
.site-wrapper {
    width: 100%;
    max-width: 1600px;
    padding: 20px;
    margin: 0 auto;
}

/* --- HEADER STYLES --- */
header {
    text-align: center;
    margin-bottom: 20px;
    padding-top: 10px;
}

.logo {
    max-width: 45px;
    margin-bottom: 10px;
    display: inline-block;
    border: none;
}

nav a {
    color: #b0b0b0; 
    text-decoration: none;
    margin: 0 6px;
    position: relative;
    font-size: 0.9rem;
    letter-spacing: 2px;
    font-weight: 600;
    transition: color 0.3s ease;
}

/* --- PIPE SEPARATOR --- */
nav a:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: -9px; 
    color: #b0b0b0; 
    font-weight: normal;
    pointer-events: none;
}

/* --- BRAND COLOR --- */
nav a:hover { color: #9b3135; }
nav a.active { color: #9b3135; }

/* --- MASONRY GRID --- */
.gallery-container {
    width: 100%;
    margin: 0 auto;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.photo-item {
    float: left;
    margin-bottom: 0; 
    overflow: hidden;
    border: 1px solid #e6e6e6;
    position: relative; 
}

.photo-item img {
    display: block;
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.8s ease, opacity 0.3s ease;
    transform: scale(1);
}

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

/* --- PLAY ICON --- */
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
}

.play-icon::after {
    content: '';
    display: block;
    width: 0; height: 0; 
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 14px solid #fff;
    margin-left: 3px;
}

.photo-item:hover .play-icon {
    background: rgba(155, 49, 53, 0.9); 
}

/* --- RESPONSIVE WIDTHS --- */
.photo-item { width: 100%; }
@media (min-width: 600px) { .photo-item { width: 50%; } }
@media (min-width: 900px) { .photo-item { width: 33.333%; } }
@media (min-width: 1400px) { .photo-item { width: 25%; } }

/* --- LIGHTBOX --- */
#lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    justify-content: center; align-items: center;
    flex-direction: column;
    opacity: 0; transition: opacity 0.3s ease;
}

#lightbox.active { display: flex; opacity: 1; }

#lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.video-wrapper {
    position: relative;
    width: 80%; max-width: 1000px;
    aspect-ratio: 16 / 9;
    background: #000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.video-wrapper iframe {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; border: 0;
}

/* Controls */
.lb-control {
    position: absolute;
    color: #333; cursor: pointer;
    font-size: 2rem; padding: 10px;
    user-select: none;
}
.lb-control:hover { color: #000; }

.lb-close {
    top: 20px; right: 30px; font-size: 3rem;
    line-height: 0.5; position: absolute; 
    cursor: pointer; color: #333;
}
.lb-close:hover { color: #000; }

.lb-prev { left: 30px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 30px; top: 50%; transform: translateY(-50%); }

.lb-counter {
    position: absolute; top: 30px; left: 30px;
    font-size: 0.9rem; letter-spacing: 2px;
    color: #888; text-transform: uppercase;
}

/* MOBILE SETTINGS */
@media (max-width: 768px) {
    /* Hide arrows on mobile to keep it clean */
    .lb-prev, .lb-next { display: none; }
    
    #lightbox-img { max-width: 95%; }
    .video-wrapper { width: 95%; }
}