/* Networking event pages – background images (same pattern as speak.html) */
.section-bg-1 { background-image: url('../images/gallery-4.jpg'); }
.section-bg-2 { background-image: url('../images/gallery-5.jpg'); }
.section-bg-3 { background-image: url('../images/gallery-1.jpg'); }

/* Industry partners – same-width image column, proportional scaling (partners.html pattern) */
.event-partner-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 24px;
}
.event-partner-row:first-of-type {
    margin-top: 0;
}
.event-partner-thumb {
    width: 160px;
    flex-shrink: 0;
    background: #fff;
    padding: 10px;
    border-radius: 4px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(7, 38, 56, 0.08);
}
.event-partner-thumb img {
    width: 100%;
    height: 72px; /* keep all partner logos same visual height */
    display: block;
    object-fit: contain;
}
.event-partner-row .event-partner-desc {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 680px;
    flex: 1;
    min-width: 200px;
}

@media (max-width: 600px) {
    .event-partner-row {
        flex-direction: column; /* ensure image appears before text */
        flex-wrap: nowrap;
        gap: 12px;
    }

    .event-partner-thumb {
        width: 100%;
        max-width: 260px;
    }

    .event-partner-thumb img {
        height: 72px; /* match desktop partner image height */
    }

    .event-partner-row .event-partner-desc {
        min-width: 0;
    }
}

/* Event page photo carousel (same structure as index.html gallery) */
.event-intro-gallery {
    margin: 28px 0 22px;
    max-width: 800px;
}

.event-intro-gallery .gallery-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(7, 38, 56, 0.12);
}

.event-intro-gallery .gallery-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.event-intro-gallery .gallery-slide {
    min-width: 100%;
    position: relative;
}

.event-intro-gallery .gallery-slide img {
    width: 100%;
    height: 420px;
    aspect-ratio: 800 / 420;
    object-fit: cover;
    display: block;
}

.event-intro-gallery .gallery-slide-placeholder {
    width: 100%;
    height: 420px;
    aspect-ratio: 800 / 420;
    background: linear-gradient(145deg, #e8edf2 0%, #dde4eb 100%);
    box-sizing: border-box;
}

.event-intro-gallery .gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(7, 38, 56, 0.9));
    color: #ffffff;
    padding: 35px 25px 20px;
}

.event-intro-gallery .gallery-caption h4 {
    font-size: 16px;
    margin-bottom: 4px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.event-intro-gallery .gallery-caption p {
    font-size: 13px;
    opacity: 0.8;
    margin: 0;
    color: #ffffff;
}

.event-intro-gallery .gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.95);
    color: #072638;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 10;
}

.event-intro-gallery .gallery-btn:hover {
    background-color: #ffae42;
    transform: translateY(-50%) scale(1.05);
}

.event-intro-gallery .gallery-btn.prev { left: 16px; }
.event-intro-gallery .gallery-btn.next { right: 16px; }

.event-intro-gallery .gallery-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    row-gap: 10px;
    margin-top: 20px;
    max-width: 100%;
}

.event-intro-gallery .gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.event-intro-gallery .gallery-dot:hover { background-color: #9ca3af; }
.event-intro-gallery .gallery-dot.active {
    background-color: #ffae42;
    width: 24px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .event-intro-gallery .gallery-track { transition: none; }
}

@media (max-width: 768px) {
    .event-intro-gallery .gallery-slide img,
    .event-intro-gallery .gallery-slide-placeholder {
        height: 300px;
    }
    .event-intro-gallery .gallery-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}
