/* ============================================================
   OUR WORK — Completed Events
   Luxury, minimal, maroon + ivory theme
   ============================================================ */

/* ===== PAGE HEADER ===== */
.ourwork-header {
    background: linear-gradient(135deg, #F5F1ED 0%, #F5F1ED 100%);
    padding: clamp(3rem, 8vh, 6rem) 0 clamp(2rem, 5vh, 4rem);
    text-align: center;
}

.ourwork-eyebrow {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: #6A3E3F;
    margin-top: 3.5rem;
    margin-bottom: 1rem;
}

.ourwork-main-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 6vw, 3.6rem);
    font-weight: 700;
    line-height: 1.1;
    color: #4E2C2D;
    margin: 0 0 1rem;
}

.ourwork-main-title .accent-text {
    color: #6A3E3F;
    font-style: italic;
}

.ourwork-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== EVENTS GRID ===== */
.ourwork-grid-section {
    padding: clamp(2.5rem, 6vh, 4.5rem) 0;
    background: var(--bg-white);
}

.ourwork-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Forces exactly 3 items side by side */
    gap: 25px; /* Clean spacing between cards */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.ourwork-grid {
    width: 100%;
    margin: 0;
}

/* ===== EVENT CARD ===== */
.event-card {
    display: block;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    width: 100%;
    /* reveal animation start state */
    opacity: 0;
    transform: translateY(28px);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.6s ease,
                box-shadow 0.4s ease,
                border-color 0.4s ease;
}

.event-card.reveal {
    opacity: 1;
    transform: translateY(0);
}

.event-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 24px 50px rgba(106, 62, 63, 0.18);
    border-color: #C68366;
}

.event-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.event-card:hover .event-card-image img {
    transform: scale(1.08);
}

.event-photo-count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(106, 62, 63, 0.82);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    border-radius: 30px;
    backdrop-filter: blur(4px);
}

.event-card-body {
    padding: 1.5rem;
}

.event-card-category {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #6A3E3F;
    background: var(--bg-soft);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.85rem;
}

.event-card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #4E2C2D;
    margin: 0 0 0.75rem;
    line-height: 1.2;
}

.event-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--light-text);
    margin-bottom: 1.1rem;
}

.event-card-meta i {
    width: 16px;
    color: #6A3E3F;
    margin-right: 0.35rem;
}

.event-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6A3E3F;
    transition: gap 0.3s ease;
}

.event-card:hover .event-card-link {
    gap: 0.85rem;
}

/* ===== EMPTY STATE ===== */
.ourwork-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--light-text);
}

.ourwork-empty i {
    font-size: 2.5rem;
    color: #C68366;
    margin-bottom: 1rem;
}

/* ===== CTA ===== */
.ourwork-cta {
    padding: clamp(3rem, 8vh, 6rem) 0;
    background: linear-gradient(135deg, #6A3E3F 0%, #4E2C2D 100%);
}

.ourwork-cta-content {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    color: #fff;
}

.ourwork-cta-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    margin: 0 0 1rem;
}

.ourwork-cta-content p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 2rem;
    line-height: 1.7;
}

/* ============================================================
   DETAIL PAGE
   ============================================================ */

/* ===== HERO ===== */
.event-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.event-hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.event-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(106, 62, 63, 0.85) 0%, rgba(106, 62, 63, 0.25) 60%, rgba(106, 62, 63, 0.1) 100%);
}

.event-hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    padding-bottom: clamp(2rem, 5vh, 4rem);
    padding-top: clamp(4rem, 10vh, 7rem);
}

.event-hero-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    backdrop-filter: blur(4px);
}

.event-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.05;
    margin: 0 0 1.2rem;
    color: #FFFFFF;
}

.event-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.95rem;
}

.event-hero-meta i {
    margin-right: 0.4rem;
    color: #C68366;
}

/* ===== DESCRIPTION ===== */
.event-description-section {
    padding: clamp(2.5rem, 6vh, 4.5rem) 0;
    background: var(--bg-white);
}

.event-description {
    max-width: 820px;
    margin: 0 auto;
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.9;
    color: var(--paragraph);
    text-align: center;
}

/* ===== MASONRY GALLERY ===== */
.event-gallery-section {
    padding: 0 0 clamp(3rem, 7vh, 5rem);
    background: var(--bg-white);
}

.event-gallery-heading {
    text-align: center;
    margin-bottom: 2.5rem;
}

.event-gallery-heading .section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    color: #4E2C2D;
    margin: 0.5rem 0 0;
}

.event-gallery-heading .accent-text {
    color: #6A3E3F;
    font-style: italic;
}

.masonry-gallery {
    column-count: 3;
    column-gap: 1rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
}

.masonry-item img {
    width: 100%;
    display: block;
    border-radius: 14px;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}

.masonry-item:hover img {
    transform: scale(1.04);
    filter: brightness(1.05);
}

/* ===== PREV / NEXT NAV ===== */
.event-nav-section {
    padding: clamp(2rem, 5vh, 3.5rem) 0;
    background: var(--bg-section);
    border-top: 1px solid var(--border);
}

.event-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.event-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    color: #4E2C2D;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.9rem 1.3rem;
    max-width: 45%;
    transition: var(--transition);
}

.event-nav-btn:hover {
    border-color: #C68366;
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.event-nav-btn i { color: #6A3E3F; font-size: 1.1rem; }

.event-nav-btn span {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
}

.event-nav-btn.next { text-align: right; }
.event-nav-btn.next span { align-items: flex-end; }

.event-nav-btn small {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--light-text);
}

.event-nav-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    color: #6A3E3F;
    padding: 0.9rem 1.3rem;
}

.event-nav-all:hover { color: #4E2C2D; }

/* ===== LIGHTBOX ===== */
.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(78, 44, 45, 0.94);
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.gallery-lightbox.show { display: flex; }

.gallery-lightbox img {
    max-width: 92%;
    max-height: 88vh;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.85;
}

.lightbox-close:hover { opacity: 1; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .masonry-gallery { column-count: 2; }
}

@media (max-width: 640px) {
    .ourwork-container { grid-template-columns: 1fr; }
    .masonry-gallery { column-count: 1; }
    .event-hero { min-height: 50vh; }
    .event-hero-meta { gap: 0.85rem 1.25rem; font-size: 0.85rem; }
    .event-nav-btn { max-width: 100%; flex: 1 1 100%; }
    .event-nav-all { order: 3; flex: 1 1 100%; justify-content: center; }
}
/* Responsive behavior for smaller screens */
@media (max-width: 992px) {
    .ourwork-container {
        grid-template-columns: repeat(2, 1fr); /* 2 items on tablets */
    }
}

@media (max-width: 640px) {
    .ourwork-container {
        grid-template-columns: 1fr; /* 1 item on mobile phones */
    }
}